@sentio/runtime 2.49.1-rc.4 → 2.49.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/processor-runner.js +37 -37
- package/lib/processor-runner.js.map +1 -1
- package/package.json +1 -1
package/lib/processor-runner.js
CHANGED
@@ -1,62 +1,62 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
|
3
|
-
import{A as
|
4
|
-
GFS4: `),console.error(t)});ie[ve]||(yE=global[ve]||[],OE(ie,yE),ie.close=function(t){function e(n,i){return t.call(ie,n,function(a){a||AE(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,Vi,{value:t}),e}(ie.close),ie.closeSync=function(t){function e(n){t.apply(ie,arguments),AE()}return Object.defineProperty(e,Vi,{value:t}),e}(ie.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Tr(ie[ve]),L("assert").equal(ie[ve].length,0)}));var yE;global[ve]||OE(global,ie[ve]);xl.exports=bl(qU(ie));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ie.__patched&&(xl.exports=bl(ie),ie.__patched=!0);function bl(t){FU(t),t.gracefulify=bl,t.createReadStream=G,t.createWriteStream=F;var e=t.readFile;t.readFile=n;function n(x,B,w){return typeof B=="function"&&(w=B,B=null),W(x,B,w);function W(z,ne,oe,se){return e(z,ne,function(Z){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?Kr([W,[z,ne,oe],Z,se||Date.now(),Date.now()]):typeof oe=="function"&&oe.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=a;function a(x,B,w,W){return typeof w=="function"&&(W=w,w=null),z(x,B,w,W);function z(ne,oe,se,Z,Te){return i(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Kr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(x,B,w,W){return typeof w=="function"&&(W=w,w=null),z(x,B,w,W);function z(ne,oe,se,Z,Te){return s(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Kr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var r=t.copyFile;r&&(t.copyFile=u);function u(x,B,w,W){return typeof w=="function"&&(W=w,w=0),z(x,B,w,W);function z(ne,oe,se,Z,Te){return r(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Kr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var l=t.readdir;t.readdir=p;var c=/^v[0-5]\./;function p(x,B,w){typeof B=="function"&&(w=B,B=null);var W=c.test(process.version)?function(oe,se,Z,Te){return l(oe,z(oe,se,Z,Te))}:function(oe,se,Z,Te){return l(oe,se,z(oe,se,Z,Te))};return W(x,B,w);function z(ne,oe,se,Z){return function(Te,re){Te&&(Te.code==="EMFILE"||Te.code==="ENFILE")?Kr([W,[ne,oe,se],Te,Z||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof se=="function"&&se.call(this,Te,re))}}}if(process.version.substr(0,4)==="v0.8"){var _=YU(t);A=_.ReadStream,N=_.WriteStream}var f=t.ReadStream;f&&(A.prototype=Object.create(f.prototype),A.prototype.open=O);var S=t.WriteStream;S&&(N.prototype=Object.create(S.prototype),N.prototype.open=D),Object.defineProperty(t,"ReadStream",{get:function(){return A},set:function(x){A=x},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return N},set:function(x){N=x},enumerable:!0,configurable:!0});var v=A;Object.defineProperty(t,"FileReadStream",{get:function(){return v},set:function(x){v=x},enumerable:!0,configurable:!0});var T=N;Object.defineProperty(t,"FileWriteStream",{get:function(){return T},set:function(x){T=x},enumerable:!0,configurable:!0});function A(x,B){return this instanceof A?(f.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function O(){var x=this;j(x.path,x.flags,x.mode,function(B,w){B?(x.autoClose&&x.destroy(),x.emit("error",B)):(x.fd=w,x.emit("open",w),x.read())})}function N(x,B){return this instanceof N?(S.apply(this,arguments),this):N.apply(Object.create(N.prototype),arguments)}function D(){var x=this;j(x.path,x.flags,x.mode,function(B,w){B?(x.destroy(),x.emit("error",B)):(x.fd=w,x.emit("open",w))})}function G(x,B){return new t.ReadStream(x,B)}function F(x,B){return new t.WriteStream(x,B)}var ae=t.open;t.open=j;function j(x,B,w,W){return typeof w=="function"&&(W=w,w=null),z(x,B,w,W);function z(ne,oe,se,Z,Te){return ae(ne,oe,se,function(re,M7){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Kr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}return t}function Kr(t){Tr("ENQUEUE",t[0].name,t[1]),ie[ve].push(t),Ml()}var Di;function AE(){for(var t=Date.now(),e=0;e<ie[ve].length;++e)ie[ve][e].length>2&&(ie[ve][e][3]=t,ie[ve][e][4]=t);Ml()}function Ml(){if(clearTimeout(Di),Di=void 0,ie[ve].length!==0){var t=ie[ve].shift(),e=t[0],n=t[1],i=t[2],a=t[3],s=t[4];if(a===void 0)Tr("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-a>=6e4){Tr("TIMEOUT",e.name,n);var o=n.pop();typeof o=="function"&&o.call(null,i)}else{var r=Date.now()-s,u=Math.max(s-a,1),l=Math.min(u*1.2,100);r>=l?(Tr("RETRY",e.name,n),e.apply(null,n.concat([a]))):ie[ve].push(t)}Di===void 0&&(Di=setTimeout(Ml,0))}}});var Le=h(xt=>{"use strict";var gE=Ee().fromCallback,xe=Wr(),$U=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof xe[t]=="function");Object.assign(xt,xe);$U.forEach(t=>{xt[t]=gE(xe[t])});xt.exists=function(t,e){return typeof e=="function"?xe.exists(t,e):new Promise(n=>xe.exists(t,n))};xt.read=function(t,e,n,i,a,s){return typeof s=="function"?xe.read(t,e,n,i,a,s):new Promise((o,r)=>{xe.read(t,e,n,i,a,(u,l,c)=>{if(u)return r(u);o({bytesRead:l,buffer:c})})})};xt.write=function(t,e,...n){return typeof n[n.length-1]=="function"?xe.write(t,e,...n):new Promise((i,a)=>{xe.write(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffer:r})})})};xt.readv=function(t,e,...n){return typeof n[n.length-1]=="function"?xe.readv(t,e,...n):new Promise((i,a)=>{xe.readv(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesRead:o,buffers:r})})})};xt.writev=function(t,e,...n){return typeof n[n.length-1]=="function"?xe.writev(t,e,...n):new Promise((i,a)=>{xe.writev(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffers:r})})})};typeof xe.realpath.native=="function"?xt.realpath.native=gE(xe.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var RE=h((D7,NE)=>{"use strict";var KU=L("path");NE.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(KU.parse(e).root,""))){let i=new Error(`Path contains invalid characters: ${e}`);throw i.code="EINVAL",i}}});var xE=h((V7,Ll)=>{"use strict";var PE=Le(),{checkPath:bE}=RE(),ME=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};Ll.exports.makeDir=async(t,e)=>(bE(t),PE.mkdir(t,{mode:ME(e),recursive:!0}));Ll.exports.makeDirSync=(t,e)=>(bE(t),PE.mkdirSync(t,{mode:ME(e),recursive:!0}))});var at=h((B7,LE)=>{"use strict";var WU=Ee().fromPromise,{makeDir:zU,makeDirSync:Il}=xE(),Cl=WU(zU);LE.exports={mkdirs:Cl,mkdirsSync:Il,mkdirp:Cl,mkdirpSync:Il,ensureDir:Cl,ensureDirSync:Il}});var Ht=h((G7,CE)=>{"use strict";var XU=Ee().fromPromise,IE=Le();function JU(t){return IE.access(t).then(()=>!0).catch(()=>!1)}CE.exports={pathExists:XU(JU),pathExistsSync:IE.existsSync}});var wl=h((k7,wE)=>{"use strict";var zr=Le(),QU=Ee().fromPromise;async function ZU(t,e,n){let i=await zr.open(t,"r+"),a=null;try{await zr.futimes(i,e,n)}finally{try{await zr.close(i)}catch(s){a=s}}if(a)throw a}function eD(t,e,n){let i=zr.openSync(t,"r+");return zr.futimesSync(i,e,n),zr.closeSync(i)}wE.exports={utimesMillis:QU(ZU),utimesMillisSync:eD}});var vr=h((H7,BE)=>{"use strict";var Xr=Le(),_e=L("path"),UE=Ee().fromPromise;function tD(t,e,n){let i=n.dereference?a=>Xr.stat(a,{bigint:!0}):a=>Xr.lstat(a,{bigint:!0});return Promise.all([i(t),i(e).catch(a=>{if(a.code==="ENOENT")return null;throw a})]).then(([a,s])=>({srcStat:a,destStat:s}))}function rD(t,e,n){let i,a=n.dereference?o=>Xr.statSync(o,{bigint:!0}):o=>Xr.lstatSync(o,{bigint:!0}),s=a(t);try{i=a(e)}catch(o){if(o.code==="ENOENT")return{srcStat:s,destStat:null};throw o}return{srcStat:s,destStat:i}}async function nD(t,e,n,i){let{srcStat:a,destStat:s}=await tD(t,e,i);if(s){if(eo(a,s)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&Ul(t,e))throw new Error(Bi(t,e,n));return{srcStat:a,destStat:s}}function oD(t,e,n,i){let{srcStat:a,destStat:s}=rD(t,e,i);if(s){if(eo(a,s)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&Ul(t,e))throw new Error(Bi(t,e,n));return{srcStat:a,destStat:s}}async function DE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),s=_e.resolve(_e.dirname(n));if(s===a||s===_e.parse(s).root)return;let o;try{o=await Xr.stat(s,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(eo(e,o))throw new Error(Bi(t,n,i));return DE(t,e,s,i)}function VE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),s=_e.resolve(_e.dirname(n));if(s===a||s===_e.parse(s).root)return;let o;try{o=Xr.statSync(s,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(eo(e,o))throw new Error(Bi(t,n,i));return VE(t,e,s,i)}function eo(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function Ul(t,e){let n=_e.resolve(t).split(_e.sep).filter(a=>a),i=_e.resolve(e).split(_e.sep).filter(a=>a);return n.every((a,s)=>i[s]===a)}function Bi(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}BE.exports={checkPaths:UE(nD),checkPathsSync:oD,checkParentPaths:UE(DE),checkParentPathsSync:VE,isSrcSubdir:Ul,areIdentical:eo}});var YE=h((F7,FE)=>{"use strict";var Pe=Le(),to=L("path"),{mkdirs:iD}=at(),{pathExists:aD}=Ht(),{utimesMillis:sD}=wl(),ro=vr();async function uD(t,e,n={}){typeof n=="function"&&(n={filter:n}),n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
3
|
+
import{A as dE,B as Kr,C as EE,D as _E,E as pt,F as J,G as SE,H as kt,I as wi,J as dt,K as hE,L as Et,M as TE,N as vE,O as Ye,P as g,Q as Ui,R as it,S as X,T as Pe,U as b,a as L,b as m,ba as mE,c as h,d as nt,e as Fe,f as Y,g as GU,h as sE,j as xl,k as uE,l as lE,q as Tr,r as Ml,s as cE,t as eo,u as fE,v as pE,w as kU,x as HU,y as Ll,z as ot}from"./chunk-WFPBTN5B.js";var Ee=h(Il=>{"use strict";Il.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((n,i)=>{e.push((a,s)=>a!=null?i(a):n(s)),t.apply(this,e)})},"name",{value:t.name})};Il.fromPromise=function(t){return Object.defineProperty(function(...e){let n=e[e.length-1];if(typeof n!="function")return t.apply(this,e);e.pop(),t.apply(this,e).then(i=>n(null,i),n)},"name",{value:t.name})}});var AE=h((G7,yE)=>{"use strict";var Ht=L("constants"),FU=process.cwd,Di=null,YU=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Di||(Di=FU.call(process)),Di};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Cl=process.chdir,process.chdir=function(t){Di=null,Cl.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Cl));var Cl;yE.exports=qU;function qU(t){Ht.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||n(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=a(t.chmodSync),t.fchmodSync=a(t.fchmodSync),t.lchmodSync=a(t.lchmodSync),t.stat=r(t.stat),t.fstat=r(t.fstat),t.lstat=r(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,p,_){_&&process.nextTick(_)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,p,_,f){f&&process.nextTick(f)},t.lchownSync=function(){}),YU==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function p(_,f,S){var v=Date.now(),T=0;c(_,f,function A(O){if(O&&(O.code==="EACCES"||O.code==="EPERM"||O.code==="EBUSY")&&Date.now()-v<6e4){setTimeout(function(){t.stat(f,function(N,D){N&&N.code==="ENOENT"?c(_,f,A):S(O)})},T),T<100&&(T+=10);return}S&&S(O)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function p(_,f,S,v,T,A){var O;if(A&&typeof A=="function"){var N=0;O=function(D,G,F){if(D&&D.code==="EAGAIN"&&N<10)return N++,c.call(t,_,f,S,v,T,O);A.apply(this,arguments)}}return c.call(t,_,f,S,v,T,O)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(p,_,f,S,v){for(var T=0;;)try{return c.call(t,p,_,f,S,v)}catch(A){if(A.code==="EAGAIN"&&T<10){T++;continue}throw A}}}(t.readSync);function e(c){c.lchmod=function(p,_,f){c.open(p,Ht.O_WRONLY|Ht.O_SYMLINK,_,function(S,v){if(S){f&&f(S);return}c.fchmod(v,_,function(T){c.close(v,function(A){f&&f(T||A)})})})},c.lchmodSync=function(p,_){var f=c.openSync(p,Ht.O_WRONLY|Ht.O_SYMLINK,_),S=!0,v;try{v=c.fchmodSync(f,_),S=!1}finally{if(S)try{c.closeSync(f)}catch{}else c.closeSync(f)}return v}}function n(c){Ht.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(p,_,f,S){c.open(p,Ht.O_SYMLINK,function(v,T){if(v){S&&S(v);return}c.futimes(T,_,f,function(A){c.close(T,function(O){S&&S(A||O)})})})},c.lutimesSync=function(p,_,f){var S=c.openSync(p,Ht.O_SYMLINK),v,T=!0;try{v=c.futimesSync(S,_,f),T=!1}finally{if(T)try{c.closeSync(S)}catch{}else c.closeSync(S)}return v}):c.futimes&&(c.lutimes=function(p,_,f,S){S&&process.nextTick(S)},c.lutimesSync=function(){})}function i(c){return c&&function(p,_,f){return c.call(t,p,_,function(S){l(S)&&(S=null),f&&f.apply(this,arguments)})}}function a(c){return c&&function(p,_){try{return c.call(t,p,_)}catch(f){if(!l(f))throw f}}}function s(c){return c&&function(p,_,f,S){return c.call(t,p,_,f,function(v){l(v)&&(v=null),S&&S.apply(this,arguments)})}}function o(c){return c&&function(p,_,f){try{return c.call(t,p,_,f)}catch(S){if(!l(S))throw S}}}function r(c){return c&&function(p,_,f){typeof _=="function"&&(f=_,_=null);function S(v,T){T&&(T.uid<0&&(T.uid+=4294967296),T.gid<0&&(T.gid+=4294967296)),f&&f.apply(this,arguments)}return _?c.call(t,p,_,S):c.call(t,p,S)}}function u(c){return c&&function(p,_){var f=_?c.call(t,p,_):c.call(t,p);return f&&(f.uid<0&&(f.uid+=4294967296),f.gid<0&&(f.gid+=4294967296)),f}}function l(c){if(!c||c.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var NE=h((k7,gE)=>{"use strict";var OE=L("stream").Stream;gE.exports=jU;function jU(t){return{ReadStream:e,WriteStream:n};function e(i,a){if(!(this instanceof e))return new e(i,a);OE.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var o=Object.keys(a),r=0,u=o.length;r<u;r++){var l=o[r];this[l]=a[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(c,p){if(c){s.emit("error",c),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function n(i,a){if(!(this instanceof n))return new n(i,a);OE.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var s=Object.keys(a),o=0,r=s.length;o<r;o++){var u=s[o];this[u]=a[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var PE=h((H7,RE)=>{"use strict";RE.exports=KU;var $U=Object.getPrototypeOf||function(t){return t.__proto__};function KU(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:$U(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}});var zr=h((F7,Dl)=>{"use strict";var ie=L("fs"),WU=AE(),zU=NE(),XU=PE(),Vi=L("util"),me,Gi;typeof Symbol=="function"&&typeof Symbol.for=="function"?(me=Symbol.for("graceful-fs.queue"),Gi=Symbol.for("graceful-fs.previous")):(me="___graceful-fs.queue",Gi="___graceful-fs.previous");function JU(){}function ME(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var vr=JU;Vi.debuglog?vr=Vi.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(vr=function(){var t=Vi.format.apply(Vi,arguments);t="GFS4: "+t.split(/\n/).join(`
|
4
|
+
GFS4: `),console.error(t)});ie[me]||(bE=global[me]||[],ME(ie,bE),ie.close=function(t){function e(n,i){return t.call(ie,n,function(a){a||xE(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,Gi,{value:t}),e}(ie.close),ie.closeSync=function(t){function e(n){t.apply(ie,arguments),xE()}return Object.defineProperty(e,Gi,{value:t}),e}(ie.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){vr(ie[me]),L("assert").equal(ie[me].length,0)}));var bE;global[me]||ME(global,ie[me]);Dl.exports=wl(XU(ie));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ie.__patched&&(Dl.exports=wl(ie),ie.__patched=!0);function wl(t){WU(t),t.gracefulify=wl,t.createReadStream=G,t.createWriteStream=F;var e=t.readFile;t.readFile=n;function n(M,B,w){return typeof B=="function"&&(w=B,B=null),W(M,B,w);function W(z,ne,oe,se){return e(z,ne,function(Z){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?Wr([W,[z,ne,oe],Z,se||Date.now(),Date.now()]):typeof oe=="function"&&oe.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=a;function a(M,B,w,W){return typeof w=="function"&&(W=w,w=null),z(M,B,w,W);function z(ne,oe,se,Z,ve){return i(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([z,[ne,oe,se,Z],re,ve||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(M,B,w,W){return typeof w=="function"&&(W=w,w=null),z(M,B,w,W);function z(ne,oe,se,Z,ve){return s(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([z,[ne,oe,se,Z],re,ve||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var r=t.copyFile;r&&(t.copyFile=u);function u(M,B,w,W){return typeof w=="function"&&(W=w,w=0),z(M,B,w,W);function z(ne,oe,se,Z,ve){return r(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([z,[ne,oe,se,Z],re,ve||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var l=t.readdir;t.readdir=p;var c=/^v[0-5]\./;function p(M,B,w){typeof B=="function"&&(w=B,B=null);var W=c.test(process.version)?function(oe,se,Z,ve){return l(oe,z(oe,se,Z,ve))}:function(oe,se,Z,ve){return l(oe,se,z(oe,se,Z,ve))};return W(M,B,w);function z(ne,oe,se,Z){return function(ve,re){ve&&(ve.code==="EMFILE"||ve.code==="ENFILE")?Wr([W,[ne,oe,se],ve,Z||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof se=="function"&&se.call(this,ve,re))}}}if(process.version.substr(0,4)==="v0.8"){var _=zU(t);A=_.ReadStream,N=_.WriteStream}var f=t.ReadStream;f&&(A.prototype=Object.create(f.prototype),A.prototype.open=O);var S=t.WriteStream;S&&(N.prototype=Object.create(S.prototype),N.prototype.open=D),Object.defineProperty(t,"ReadStream",{get:function(){return A},set:function(M){A=M},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return N},set:function(M){N=M},enumerable:!0,configurable:!0});var v=A;Object.defineProperty(t,"FileReadStream",{get:function(){return v},set:function(M){v=M},enumerable:!0,configurable:!0});var T=N;Object.defineProperty(t,"FileWriteStream",{get:function(){return T},set:function(M){T=M},enumerable:!0,configurable:!0});function A(M,B){return this instanceof A?(f.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function O(){var M=this;j(M.path,M.flags,M.mode,function(B,w){B?(M.autoClose&&M.destroy(),M.emit("error",B)):(M.fd=w,M.emit("open",w),M.read())})}function N(M,B){return this instanceof N?(S.apply(this,arguments),this):N.apply(Object.create(N.prototype),arguments)}function D(){var M=this;j(M.path,M.flags,M.mode,function(B,w){B?(M.destroy(),M.emit("error",B)):(M.fd=w,M.emit("open",w))})}function G(M,B){return new t.ReadStream(M,B)}function F(M,B){return new t.WriteStream(M,B)}var ae=t.open;t.open=j;function j(M,B,w,W){return typeof w=="function"&&(W=w,w=null),z(M,B,w,W);function z(ne,oe,se,Z,ve){return ae(ne,oe,se,function(re,V7){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([z,[ne,oe,se,Z],re,ve||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}return t}function Wr(t){vr("ENQUEUE",t[0].name,t[1]),ie[me].push(t),Ul()}var Bi;function xE(){for(var t=Date.now(),e=0;e<ie[me].length;++e)ie[me][e].length>2&&(ie[me][e][3]=t,ie[me][e][4]=t);Ul()}function Ul(){if(clearTimeout(Bi),Bi=void 0,ie[me].length!==0){var t=ie[me].shift(),e=t[0],n=t[1],i=t[2],a=t[3],s=t[4];if(a===void 0)vr("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-a>=6e4){vr("TIMEOUT",e.name,n);var o=n.pop();typeof o=="function"&&o.call(null,i)}else{var r=Date.now()-s,u=Math.max(s-a,1),l=Math.min(u*1.2,100);r>=l?(vr("RETRY",e.name,n),e.apply(null,n.concat([a]))):ie[me].push(t)}Bi===void 0&&(Bi=setTimeout(Ul,0))}}});var Ie=h(Mt=>{"use strict";var LE=Ee().fromCallback,Le=zr(),QU=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof Le[t]=="function");Object.assign(Mt,Le);QU.forEach(t=>{Mt[t]=LE(Le[t])});Mt.exists=function(t,e){return typeof e=="function"?Le.exists(t,e):new Promise(n=>Le.exists(t,n))};Mt.read=function(t,e,n,i,a,s){return typeof s=="function"?Le.read(t,e,n,i,a,s):new Promise((o,r)=>{Le.read(t,e,n,i,a,(u,l,c)=>{if(u)return r(u);o({bytesRead:l,buffer:c})})})};Mt.write=function(t,e,...n){return typeof n[n.length-1]=="function"?Le.write(t,e,...n):new Promise((i,a)=>{Le.write(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffer:r})})})};Mt.readv=function(t,e,...n){return typeof n[n.length-1]=="function"?Le.readv(t,e,...n):new Promise((i,a)=>{Le.readv(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesRead:o,buffers:r})})})};Mt.writev=function(t,e,...n){return typeof n[n.length-1]=="function"?Le.writev(t,e,...n):new Promise((i,a)=>{Le.writev(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffers:r})})})};typeof Le.realpath.native=="function"?Mt.realpath.native=LE(Le.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var CE=h((q7,IE)=>{"use strict";var ZU=L("path");IE.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(ZU.parse(e).root,""))){let i=new Error(`Path contains invalid characters: ${e}`);throw i.code="EINVAL",i}}});var VE=h((j7,Vl)=>{"use strict";var wE=Ie(),{checkPath:UE}=CE(),DE=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};Vl.exports.makeDir=async(t,e)=>(UE(t),wE.mkdir(t,{mode:DE(e),recursive:!0}));Vl.exports.makeDirSync=(t,e)=>(UE(t),wE.mkdirSync(t,{mode:DE(e),recursive:!0}))});var at=h(($7,BE)=>{"use strict";var eD=Ee().fromPromise,{makeDir:tD,makeDirSync:Bl}=VE(),Gl=eD(tD);BE.exports={mkdirs:Gl,mkdirsSync:Bl,mkdirp:Gl,mkdirpSync:Bl,ensureDir:Gl,ensureDirSync:Bl}});var Ft=h((K7,kE)=>{"use strict";var rD=Ee().fromPromise,GE=Ie();function nD(t){return GE.access(t).then(()=>!0).catch(()=>!1)}kE.exports={pathExists:rD(nD),pathExistsSync:GE.existsSync}});var kl=h((W7,HE)=>{"use strict";var Xr=Ie(),oD=Ee().fromPromise;async function iD(t,e,n){let i=await Xr.open(t,"r+"),a=null;try{await Xr.futimes(i,e,n)}finally{try{await Xr.close(i)}catch(s){a=s}}if(a)throw a}function aD(t,e,n){let i=Xr.openSync(t,"r+");return Xr.futimesSync(i,e,n),Xr.closeSync(i)}HE.exports={utimesMillis:oD(iD),utimesMillisSync:aD}});var mr=h((z7,jE)=>{"use strict";var Jr=Ie(),_e=L("path"),FE=Ee().fromPromise;function sD(t,e,n){let i=n.dereference?a=>Jr.stat(a,{bigint:!0}):a=>Jr.lstat(a,{bigint:!0});return Promise.all([i(t),i(e).catch(a=>{if(a.code==="ENOENT")return null;throw a})]).then(([a,s])=>({srcStat:a,destStat:s}))}function uD(t,e,n){let i,a=n.dereference?o=>Jr.statSync(o,{bigint:!0}):o=>Jr.lstatSync(o,{bigint:!0}),s=a(t);try{i=a(e)}catch(o){if(o.code==="ENOENT")return{srcStat:s,destStat:null};throw o}return{srcStat:s,destStat:i}}async function lD(t,e,n,i){let{srcStat:a,destStat:s}=await sD(t,e,i);if(s){if(to(a,s)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&Hl(t,e))throw new Error(ki(t,e,n));return{srcStat:a,destStat:s}}function cD(t,e,n,i){let{srcStat:a,destStat:s}=uD(t,e,i);if(s){if(to(a,s)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&Hl(t,e))throw new Error(ki(t,e,n));return{srcStat:a,destStat:s}}async function YE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),s=_e.resolve(_e.dirname(n));if(s===a||s===_e.parse(s).root)return;let o;try{o=await Jr.stat(s,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(to(e,o))throw new Error(ki(t,n,i));return YE(t,e,s,i)}function qE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),s=_e.resolve(_e.dirname(n));if(s===a||s===_e.parse(s).root)return;let o;try{o=Jr.statSync(s,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(to(e,o))throw new Error(ki(t,n,i));return qE(t,e,s,i)}function to(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function Hl(t,e){let n=_e.resolve(t).split(_e.sep).filter(a=>a),i=_e.resolve(e).split(_e.sep).filter(a=>a);return n.every((a,s)=>i[s]===a)}function ki(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}jE.exports={checkPaths:FE(lD),checkPathsSync:cD,checkParentPaths:FE(YE),checkParentPathsSync:qE,isSrcSubdir:Hl,areIdentical:to}});var XE=h((X7,zE)=>{"use strict";var be=Ie(),ro=L("path"),{mkdirs:fD}=at(),{pathExists:pD}=Ft(),{utimesMillis:dD}=kl(),no=mr();async function ED(t,e,n={}){typeof n=="function"&&(n={filter:n}),n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
5
5
|
|
6
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:i,destStat:a}=await
|
6
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:i,destStat:a}=await no.checkPaths(t,e,"copy",n);if(await no.checkParentPaths(t,i,e,"copy"),!await KE(t,e,n))return;let o=ro.dirname(e);await pD(o)||await fD(o),await WE(a,t,e,n)}async function KE(t,e,n){return n.filter?n.filter(t,e):!0}async function WE(t,e,n,i){let s=await(i.dereference?be.stat:be.lstat)(e);if(s.isDirectory())return TD(s,t,e,n,i);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return _D(s,t,e,n,i);if(s.isSymbolicLink())return vD(t,e,n,i);throw s.isSocket()?new Error(`Cannot copy a socket file: ${e}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}async function _D(t,e,n,i,a){if(!e)return $E(t,n,i,a);if(a.overwrite)return await be.unlink(i),$E(t,n,i,a);if(a.errorOnExist)throw new Error(`'${i}' already exists`)}async function $E(t,e,n,i){if(await be.copyFile(e,n),i.preserveTimestamps){SD(t.mode)&&await hD(n,t.mode);let a=await be.stat(e);await dD(n,a.atime,a.mtime)}return be.chmod(n,t.mode)}function SD(t){return(t&128)===0}function hD(t,e){return be.chmod(t,e|128)}async function TD(t,e,n,i,a){e||await be.mkdir(i);let s=await be.readdir(n);await Promise.all(s.map(async o=>{let r=ro.join(n,o),u=ro.join(i,o);if(!await KE(r,u,a))return;let{destStat:c}=await no.checkPaths(r,u,"copy",a);return WE(c,r,u,a)})),e||await be.chmod(i,t.mode)}async function vD(t,e,n,i){let a=await be.readlink(e);if(i.dereference&&(a=ro.resolve(process.cwd(),a)),!t)return be.symlink(a,n);let s=null;try{s=await be.readlink(n)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return be.symlink(a,n);throw o}if(i.dereference&&(s=ro.resolve(process.cwd(),s)),no.isSrcSubdir(a,s))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${s}'.`);if(no.isSrcSubdir(s,a))throw new Error(`Cannot overwrite '${s}' with '${a}'.`);return await be.unlink(n),be.symlink(a,n)}zE.exports=ED});var t_=h((J7,e_)=>{"use strict";var Ce=zr(),oo=L("path"),mD=at().mkdirsSync,yD=kl().utimesMillisSync,io=mr();function AD(t,e,n){typeof n=="function"&&(n={filter:n}),n=n||{},n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
7
7
|
|
8
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:i,destStat:a}=
|
9
|
-
`,finalEOL:n=!0,replacer:i=null,spaces:a}={}){let s=n?e:"";return JSON.stringify(t,i,a).replace(/\n/g,e)+s}function o1(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}I_.exports={stringify:n1,stripBom:o1}});var D_=h((eQ,U_)=>{"use strict";var Jr;try{Jr=Wr()}catch{Jr=L("fs")}var Hi=Ee(),{stringify:C_,stripBom:w_}=ki();async function i1(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||Jr,i="throws"in e?e.throws:!0,a=await Hi.fromCallback(n.readFile)(t,e);a=w_(a);let s;try{s=JSON.parse(a,e?e.reviver:null)}catch(o){if(i)throw o.message=`${t}: ${o.message}`,o;return null}return s}var a1=Hi.fromPromise(i1);function s1(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||Jr,i="throws"in e?e.throws:!0;try{let a=n.readFileSync(t,e);return a=w_(a),JSON.parse(a,e.reviver)}catch(a){if(i)throw a.message=`${t}: ${a.message}`,a;return null}}async function u1(t,e,n={}){let i=n.fs||Jr,a=C_(e,n);await Hi.fromCallback(i.writeFile)(t,a,n)}var l1=Hi.fromPromise(u1);function c1(t,e,n={}){let i=n.fs||Jr,a=C_(e,n);return i.writeFileSync(t,a,n)}var f1={readFile:a1,readFileSync:s1,writeFile:l1,writeFileSync:c1};U_.exports=f1});var B_=h((tQ,V_)=>{"use strict";var Fi=D_();V_.exports={readJson:Fi.readFile,readJsonSync:Fi.readFileSync,writeJson:Fi.writeFile,writeJsonSync:Fi.writeFileSync}});var Yi=h((rQ,H_)=>{"use strict";var p1=Ee().fromPromise,Vl=Le(),G_=L("path"),k_=at(),d1=Ht().pathExists;async function E1(t,e,n="utf-8"){let i=G_.dirname(t);return await d1(i)||await k_.mkdirs(i),Vl.writeFile(t,e,n)}function _1(t,...e){let n=G_.dirname(t);Vl.existsSync(n)||k_.mkdirsSync(n),Vl.writeFileSync(t,...e)}H_.exports={outputFile:p1(E1),outputFileSync:_1}});var Y_=h((nQ,F_)=>{"use strict";var{stringify:S1}=ki(),{outputFile:h1}=Yi();async function T1(t,e,n={}){let i=S1(e,n);await h1(t,i,n)}F_.exports=T1});var j_=h((oQ,q_)=>{"use strict";var{stringify:v1}=ki(),{outputFileSync:m1}=Yi();function y1(t,e,n){let i=v1(e,n);m1(t,i,n)}q_.exports=y1});var K_=h((iQ,$_)=>{"use strict";var A1=Ee().fromPromise,Ce=B_();Ce.outputJson=A1(Y_());Ce.outputJsonSync=j_();Ce.outputJSON=Ce.outputJson;Ce.outputJSONSync=Ce.outputJsonSync;Ce.writeJSON=Ce.writeJson;Ce.writeJSONSync=Ce.writeJsonSync;Ce.readJSON=Ce.readJson;Ce.readJSONSync=Ce.readJsonSync;$_.exports=Ce});var Q_=h((aQ,J_)=>{"use strict";var O1=Le(),W_=L("path"),{copy:g1}=Gi(),{remove:X_}=io(),{mkdirp:N1}=at(),{pathExists:R1}=Ht(),z_=vr();async function P1(t,e,n={}){let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:s=!1}=await z_.checkPaths(t,e,"move",n);await z_.checkParentPaths(t,a,e,"move");let o=W_.dirname(e);return W_.parse(o).root!==o&&await N1(o),b1(t,e,i,s)}async function b1(t,e,n,i){if(!i){if(n)await X_(e);else if(await R1(e))throw new Error("dest already exists.")}try{await O1.rename(t,e)}catch(a){if(a.code!=="EXDEV")throw a;await M1(t,e,n)}}async function M1(t,e,n){return await g1(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),X_(t)}J_.exports=P1});var nS=h((sQ,rS)=>{"use strict";var eS=Wr(),Gl=L("path"),x1=Gi().copySync,tS=io().removeSync,L1=at().mkdirpSync,Z_=vr();function I1(t,e,n){n=n||{};let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:s=!1}=Z_.checkPathsSync(t,e,"move",n);return Z_.checkParentPathsSync(t,a,e,"move"),C1(e)||L1(Gl.dirname(e)),w1(t,e,i,s)}function C1(t){let e=Gl.dirname(t);return Gl.parse(e).root===e}function w1(t,e,n,i){if(i)return Bl(t,e,n);if(n)return tS(e),Bl(t,e,n);if(eS.existsSync(e))throw new Error("dest already exists.");return Bl(t,e,n)}function Bl(t,e,n){try{eS.renameSync(t,e)}catch(i){if(i.code!=="EXDEV")throw i;return U1(t,e,n)}}function U1(t,e,n){return x1(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),tS(t)}rS.exports=I1});var iS=h((uQ,oS)=>{"use strict";var D1=Ee().fromPromise;oS.exports={move:D1(Q_()),moveSync:nS()}});var kl=h((lQ,aS)=>{"use strict";aS.exports={...Le(),...Gi(),...i_(),...L_(),...K_(),...at(),...iS(),...Yi(),...Ht(),...io()}});var _S=h((cQ,ES)=>{"use strict";function V1(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var Hl=V1(CU());function B1(t){return typeof t=="object"&&t!==null}function G1(t){return B1(t)&&typeof t.length=="number"}function lo(t){return Array.isArray(t)?t:t===void 0?[]:G1(t)||t instanceof Set?Array.from(t):[t]}function k1(t){return typeof t=="object"&&t!==null}function H1(t){return k1(t)&&typeof t.length=="number"}function sS(t){return Array.isArray(t)?t:t===void 0?[]:H1(t)?Array.prototype.slice.call(t):[t]}function fS(t,e){let n=[],i=sS(arguments);return i.splice(0,2),sS(t).forEach((a,s)=>{let o=[];i.forEach(r=>{typeof r=="function"?o=o.concat(r(a)):o.push(r)}),e(a)&&n.push({index:s,replaceWithValue:o})}),n.reverse().forEach(a=>{let s=[a.index,1].concat(a.replaceWithValue);t.splice.apply(t,s)}),t}var pe={short:/^-([^\d-])$/,long:/^--(\S+)/,combinedShort:/^-[^\d-]{2,}$/,optEquals:/^(--\S+?)=(.*)/},Fl=class extends Array{load(e){if(this.clear(),e&&e!==process.argv)e=lo(e);else{e=process.argv.slice(0);let n=process.execArgv.some(j1)?1:2;e.splice(0,n)}e.forEach(n=>this.push(String(n)))}clear(){this.length=0}expandOptionEqualsNotation(){if(this.some(e=>pe.optEquals.test(e))){let e=[];this.forEach(n=>{let i=n.match(pe.optEquals);i?e.push(i[1],i[2]):e.push(n)}),this.clear(),this.load(e)}}expandGetoptNotation(){this.hasCombinedShortOptions()&&fS(this,pe.combinedShort,F1)}hasCombinedShortOptions(){return this.some(e=>pe.combinedShort.test(e))}static from(e){let n=new this;return n.load(e),n}};function F1(t){return t=t.slice(1),t.split("").map(e=>"-"+e)}function $l(t){return pe.optEquals.test(t)}function Kl(t){return(pe.short.test(t)||pe.long.test(t))&&!pe.optEquals.test(t)}function Y1(t){return pe.long.test(t)&&!$l(t)}function uS(t){return pe.short.test(t)?t.match(pe.short)[1]:Y1(t)?t.match(pe.long)[1]:$l(t)?t.match(pe.optEquals)[1].replace(/^--/,""):null}function q1(t){return!(Kl(t)||pe.combinedShort.test(t)||pe.optEquals.test(t))}function j1(t){return["--eval","-e"].indexOf(t)>-1||t.startsWith("--eval=")}function $1(t){return!isNaN(parseFloat(t))&&isFinite(t)}function K1(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function W1(t){return pS(t)&&typeof t.length=="number"}function pS(t){return typeof t=="object"&&t!==null}function Wl(t){return typeof t<"u"}function z1(t){return typeof t=="string"}function X1(t){return typeof t=="boolean"}function dS(t){return typeof t=="function"}function J1(t){return dS(t)?/^class /.test(Function.prototype.toString.call(t)):!1}function Q1(t){if(t===null)return!0;switch(typeof t){case"string":case"number":case"symbol":case"undefined":case"boolean":return!0;default:return!1}}function Z1(t){if(t){let e=Wl(Promise)&&t instanceof Promise,n=t.then&&typeof t.then=="function";return!!(e||n)}else return!1}function eV(t){return t===null||!Wl(t)?!1:typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function"}var We={isNumber:$1,isString:z1,isBoolean:X1,isPlainObject:K1,isArrayLike:W1,isObject:pS,isDefined:Wl,isFunction:dS,isClass:J1,isPrimitive:Q1,isPromise:Z1,isIterable:eV},so=class{constructor(e){this.name=e.name,this.type=e.type||String,this.alias=e.alias,this.multiple=e.multiple,this.lazyMultiple=e.lazyMultiple,this.defaultOption=e.defaultOption,this.defaultValue=e.defaultValue,this.group=e.group;for(let n in e)this[n]||(this[n]=e[n])}isBoolean(){return this.type===Boolean||We.isFunction(this.type)&&this.type.name==="Boolean"}isMultiple(){return this.multiple||this.lazyMultiple}static create(e){return new this(e)}},uo=class extends Array{validate(e){this.some(_=>!_.name)&&It("INVALID_DEFINITIONS","Invalid option definitions: the `name` property is required on each definition"),this.some(_=>_.type&&typeof _.type!="function")&&It("INVALID_DEFINITIONS","Invalid option definitions: the `type` property must be a setter fuction (default: `Boolean`)");let a;this.some(_=>(a=_,We.isDefined(_.alias)&&We.isNumber(_.alias)))&&It("INVALID_DEFINITIONS","Invalid option definition: to avoid ambiguity an alias cannot be numeric [--"+a.name+" alias is -"+a.alias+"]"),this.some(_=>(a=_,We.isDefined(_.alias)&&_.alias.length!==1))&&It("INVALID_DEFINITIONS","Invalid option definition: an alias must be a single character"),this.some(_=>(a=_,_.alias==="-"))&&It("INVALID_DEFINITIONS",'Invalid option definition: an alias cannot be "-"'),cS(this.map(_=>e?_.name.toLowerCase():_.name))&&It("INVALID_DEFINITIONS","Two or more option definitions have the same name"),cS(this.map(_=>e&&We.isDefined(_.alias)?_.alias.toLowerCase():_.alias))&&It("INVALID_DEFINITIONS","Two or more option definitions have the same alias"),this.filter(_=>_.defaultOption===!0).length>1&&It("INVALID_DEFINITIONS","Only one option definition can be the defaultOption"),this.some(_=>(a=_,_.isBoolean()&&_.defaultOption))&&It("INVALID_DEFINITIONS",`A boolean option ["${a.name}"] can not also be the defaultOption.`)}get(e,n){if(Kl(e))if(pe.short.test(e)){let i=uS(e);if(n){let a=i.toLowerCase();return this.find(s=>We.isDefined(s.alias)&&s.alias.toLowerCase()===a)}else return this.find(a=>a.alias===i)}else{let i=uS(e);if(n){let a=i.toLowerCase();return this.find(s=>s.name.toLowerCase()===a)}else return this.find(a=>a.name===i)}else return this.find(i=>i.name===e)}getDefault(){return this.find(e=>e.defaultOption===!0)}isGrouped(){return this.some(e=>e.group)}whereGrouped(){return this.filter(lS)}whereNotGrouped(){return this.filter(e=>!lS(e))}whereDefaultValueSet(){return this.filter(e=>We.isDefined(e.defaultValue))}static from(e,n){if(e instanceof this)return e;let i=super.from(lo(e),a=>so.create(a));return i.validate(n),i}};function It(t,e){let n=new Error(e);throw n.name=t,n}function lS(t){return lo(t.group).some(e=>e)}function cS(t){let e={};for(let n=0;n<t.length;n++){let i=t[n];if(e[i])return!0;We.isDefined(i)&&(e[i]=!0)}}var Yl=class{constructor(e,n){this.options=Object.assign({},n),this.definitions=uo.from(e,this.options.caseInsensitive),this.argv=Fl.from(this.options.argv),this.argv.hasCombinedShortOptions()&&fS(this.argv,pe.combinedShort.test.bind(pe.combinedShort),i=>(i=i.slice(1),i.split("").map(a=>({origArg:`-${i}`,arg:"-"+a}))))}*[Symbol.iterator](){let e=this.definitions,n,i,a,s,o=!1,r=!1,u;for(let l of this.argv){if(We.isPlainObject(l)&&(u=l.origArg,l=l.arg),r&&this.options.stopAtFirstUnknown){yield{event:"unknown_value",arg:l,name:"_unknown",value:void 0};continue}if(Kl(l))n=e.get(l,this.options.caseInsensitive),i=void 0,n?(i=n.isBoolean()?!0:null,s="set"):s="unknown_option";else if($l(l)){let p=l.match(pe.optEquals);n=e.get(p[1],this.options.caseInsensitive),n?n.isBoolean()?(yield{event:"unknown_value",arg:l,name:"_unknown",value:i,def:n},s="set",i=!0):(s="set",i=p[2]):s="unknown_option"}else q1(l)&&(n?(i=l,s="set"):(n=this.definitions.getDefault(),n&&!o?(i=l,s="set"):(s="unknown_value",n=void 0)));a=n?n.name:"_unknown";let c={event:s,arg:l,name:a,value:i,def:n};u&&(c.subArg=l,c.arg=u),yield c,a==="_unknown"&&(r=!0),n&&n.defaultOption&&!n.isMultiple()&&s==="set"&&(o=!0),n&&n.isBoolean()&&(n=void 0),n&&!n.multiple&&We.isDefined(i)&&i!==null&&(n=void 0),i=void 0,s=void 0,a=void 0,u=void 0}}},mr=new WeakMap,Qr=class{constructor(e){this.definition=new so(e),this.state=null,this.resetToDefault()}get(){return mr.get(this)}set(e){this._set(e,"set")}_set(e,n){let i=this.definition;if(i.isMultiple()){if(e!=null){let a=this.get();this.state==="default"&&(a.length=0),a.push(i.type(e)),this.state=n}}else if(!i.isMultiple()&&this.state==="set"){let a=new Error(`Singular option already set [${this.definition.name}=${this.get()}]`);throw a.name="ALREADY_SET",a.value=e,a.optionName=i.name,a}else e==null?mr.set(this,e):(mr.set(this,i.type(e)),this.state=n)}resetToDefault(){We.isDefined(this.definition.defaultValue)?this.definition.isMultiple()?mr.set(this,lo(this.definition.defaultValue).slice()):mr.set(this,this.definition.defaultValue):this.definition.isMultiple()?mr.set(this,[]):mr.set(this,null),this.state="default"}static create(e){return e=new so(e),e.isBoolean()?ql.create(e):new this(e)}},ql=class extends Qr{set(e){super.set(!0)}static create(e){return new this(e)}},qi=class extends Map{constructor(e){super(),this.definitions=uo.from(e),this.set("_unknown",Qr.create({name:"_unknown",multiple:!0}));for(let n of this.definitions.whereDefaultValueSet())this.set(n.name,Qr.create(n))}toObject(e){e=e||{};let n={};for(let i of this){let a=e.camelCase&&i[0]!=="_unknown"?Hl(i[0]):i[0],s=i[1];a==="_unknown"&&!s.get().length||(n[a]=s.get())}return e.skipUnknown&&delete n._unknown,n}},jl=class extends qi{toObject(e){let n=super.toObject({skipUnknown:e.skipUnknown}),i=super.toObject(e),a=i._unknown;delete i._unknown;let s={_all:i};return a&&a.length&&(s._unknown=a),this.definitions.whereGrouped().forEach(o=>{let r=e.camelCase?Hl(o.name):o.name,u=n[o.name];for(let l of lo(o.group))s[l]=s[l]||{},We.isDefined(u)&&(s[l][r]=u)}),this.definitions.whereNotGrouped().forEach(o=>{let r=e.camelCase?Hl(o.name):o.name,u=n[o.name];We.isDefined(u)&&(s._none||(s._none={}),s._none[r]=u)}),s}};function tV(t,e){e=e||{},e.stopAtFirstUnknown&&(e.partial=!0),t=uo.from(t,e.caseInsensitive);let n=new Yl(t,{argv:e.argv,stopAtFirstUnknown:e.stopAtFirstUnknown,caseInsensitive:e.caseInsensitive}),i=t.isGrouped()?jl:qi,a=new i(t);for(let s of n){let o=s.subArg||s.arg;if(!e.partial){if(s.event==="unknown_value"){let u=new Error(`Unknown value: ${o}`);throw u.name="UNKNOWN_VALUE",u.value=o,u}else if(s.event==="unknown_option"){let u=new Error(`Unknown option: ${o}`);throw u.name="UNKNOWN_OPTION",u.optionName=o,u}}let r;a.has(s.name)?r=a.get(s.name):(r=Qr.create(s.def),a.set(s.name,r)),s.name==="_unknown"?r.set(o):r.set(s.value)}return a.toObject({skipUnknown:!e.partial,camelCase:e.camelCase})}ES.exports=tV});function ce(t){for(var e={},n=t.length,i=0;i<n;i++){var a=t[i];a&&(e[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return e}var zl=m(()=>{"use strict"});var SS,hS,TS,vS,mS,yS,AS,OS,gS,NS,RS,PS,bS,MS,xS,LS,IS,CS,wS,US,DS,VS,BS,GS,kS,HS,FS,YS,qS,jS,$S,KS,WS,zS,XS,JS,QS,ZS,eh,th,rh,nh,oh,ih,ah,sh,uh,lh,ch,fh,ph,dh,Eh,_h,Sh,hh,Th,vh,mh,yh,Ah,Oh,gh,Nh,Rh,Ph,bh,Mh,xh,Lh,Ih,Ch,wh,Uh,Dh,Vh,Bh,Gh,kh,Hh,Fh,Yh,qh,jh,$h,Kh,Wh,zh,Xh,Jh,Qh,Zh,eT,tT,rT,nT,oT,iT,aT,sT,uT,lT,cT,fT,pT,dT,ET,_T,ST,hT,TT,vT,mT,yT,AT,OT,gT,NT,RT,PT,bT,MT,xT,LT,IT,CT,wT,UT,rV,nV,oV,iV,aV,sV,uV,lV,cV,fV,pV,dV,EV,_V,SV,hV,TV,vV,mV,yV,AV,OV,gV,NV,RV,PV,bV,MV,xV,LV,IV,CV,wV,UV,DV,VV,BV,GV,kV,HV,FV,YV,qV,jV,$V,KV,WV,zV,XV,JV,QV,ZV,e2,t2,r2,n2,o2,i2,a2,s2,u2,l2,c2,f2,p2,d2,E2,_2,S2,h2,T2,v2,m2,y2,A2,O2,g2,N2,R2,P2,b2,M2,x2,L2,I2,C2,w2,U2,D2,V2,B2,G2,k2,H2,F2,Y2,q2,j2,$2,K2,W2,z2,X2,J2,Q2,Z2,eB,tB,rB,nB,oB,iB,aB,sB,uB,lB,cB,fB,pB,dB,EB,_B,SB,hB,TB,vB,mB,yB,AB,DT,VT,BT,GT,kT,HT,FT,YT,qT,jT,$T,KT,WT,zT,XT,JT,QT,ZT,ev,tv,rv,nv,ov,iv,av,sv,uv,lv,cv,fv,pv,dv,Ev,_v,Sv,hv,Tv,vv,mv,yv,Av,Ov,gv,Nv,Rv,Pv,bv,OB,gB,NB,RB,PB,bB,MB,xB,LB,IB,CB,wB,UB,DB,VB,BB,GB,kB,HB,FB,YB,qB,jB,$B,KB,WB,zB,XB,JB,QB,ZB,eG,tG,rG,nG,oG,iG,aG,sG,uG,lG,cG,fG,pG,dG,EG,_G,SG,Mv,xv,Lv,Iv,Cv,wv,Uv,Dv,Vv,Bv,Gv,hG,TG,vG,mG,yG,AG,OG,gG,NG,RG,PG,bG,kv,Hv,Fv,Yv,qv,MG,xG,LG,IG,CG,wG,jv,$v,Kv,UG,DG,VG,BG,Wv,zv,Xv,Jv,GG,kG,HG,FG,YG,Qv,Zv,em,tm,rm,nm,om,qG,jG,$G,KG,WG,zG,XG,JG,im,am,sm,um,lm,QG,ZG,ek,tk,rk,nk,cm,fm,pm,dm,Em,_m,Sm,hm,Tm,vm,mm,ym,Am,Om,gm,Nm,Rm,Pm,bm,Mm,xm,ok,ik,ak,sk,uk,lk,ck,fk,pk,dk,Ek,_k,Sk,hk,Tk,vk,mk,yk,Ak,Ok,gk,Nk,Lm,Im,Cm,wm,Um,Rk,Pk,bk,Mk,xk,Lk,Dm,Vm,Ik,Ck,wk,Bm,Gm,Uk,Dk,Vk,km,Hm,Fm,Ym,qm,jm,$m,Km,Wm,zm,Xm,Jm,Qm,Zm,ey,ty,ry,Bk,Gk,kk,Hk,Fk,Yk,qk,jk,$k,Kk,Wk,zk,Xk,Jk,Qk,Zk,eH,tH,ny,oy,rH,nH,oH,iy=m(()=>{"use strict";zl();SS="aws.lambda.invoked_arn",hS="db.system",TS="db.connection_string",vS="db.user",mS="db.jdbc.driver_classname",yS="db.name",AS="db.statement",OS="db.operation",gS="db.mssql.instance_name",NS="db.cassandra.keyspace",RS="db.cassandra.page_size",PS="db.cassandra.consistency_level",bS="db.cassandra.table",MS="db.cassandra.idempotence",xS="db.cassandra.speculative_execution_count",LS="db.cassandra.coordinator.id",IS="db.cassandra.coordinator.dc",CS="db.hbase.namespace",wS="db.redis.database_index",US="db.mongodb.collection",DS="db.sql.table",VS="exception.type",BS="exception.message",GS="exception.stacktrace",kS="exception.escaped",HS="faas.trigger",FS="faas.execution",YS="faas.document.collection",qS="faas.document.operation",jS="faas.document.time",$S="faas.document.name",KS="faas.time",WS="faas.cron",zS="faas.coldstart",XS="faas.invoked_name",JS="faas.invoked_provider",QS="faas.invoked_region",ZS="net.transport",eh="net.peer.ip",th="net.peer.port",rh="net.peer.name",nh="net.host.ip",oh="net.host.port",ih="net.host.name",ah="net.host.connection.type",sh="net.host.connection.subtype",uh="net.host.carrier.name",lh="net.host.carrier.mcc",ch="net.host.carrier.mnc",fh="net.host.carrier.icc",ph="peer.service",dh="enduser.id",Eh="enduser.role",_h="enduser.scope",Sh="thread.id",hh="thread.name",Th="code.function",vh="code.namespace",mh="code.filepath",yh="code.lineno",Ah="http.method",Oh="http.url",gh="http.target",Nh="http.host",Rh="http.scheme",Ph="http.status_code",bh="http.flavor",Mh="http.user_agent",xh="http.request_content_length",Lh="http.request_content_length_uncompressed",Ih="http.response_content_length",Ch="http.response_content_length_uncompressed",wh="http.server_name",Uh="http.route",Dh="http.client_ip",Vh="aws.dynamodb.table_names",Bh="aws.dynamodb.consumed_capacity",Gh="aws.dynamodb.item_collection_metrics",kh="aws.dynamodb.provisioned_read_capacity",Hh="aws.dynamodb.provisioned_write_capacity",Fh="aws.dynamodb.consistent_read",Yh="aws.dynamodb.projection",qh="aws.dynamodb.limit",jh="aws.dynamodb.attributes_to_get",$h="aws.dynamodb.index_name",Kh="aws.dynamodb.select",Wh="aws.dynamodb.global_secondary_indexes",zh="aws.dynamodb.local_secondary_indexes",Xh="aws.dynamodb.exclusive_start_table",Jh="aws.dynamodb.table_count",Qh="aws.dynamodb.scan_forward",Zh="aws.dynamodb.segment",eT="aws.dynamodb.total_segments",tT="aws.dynamodb.count",rT="aws.dynamodb.scanned_count",nT="aws.dynamodb.attribute_definitions",oT="aws.dynamodb.global_secondary_index_updates",iT="messaging.system",aT="messaging.destination",sT="messaging.destination_kind",uT="messaging.temp_destination",lT="messaging.protocol",cT="messaging.protocol_version",fT="messaging.url",pT="messaging.message_id",dT="messaging.conversation_id",ET="messaging.message_payload_size_bytes",_T="messaging.message_payload_compressed_size_bytes",ST="messaging.operation",hT="messaging.consumer_id",TT="messaging.rabbitmq.routing_key",vT="messaging.kafka.message_key",mT="messaging.kafka.consumer_group",yT="messaging.kafka.client_id",AT="messaging.kafka.partition",OT="messaging.kafka.tombstone",gT="rpc.system",NT="rpc.service",RT="rpc.method",PT="rpc.grpc.status_code",bT="rpc.jsonrpc.version",MT="rpc.jsonrpc.request_id",xT="rpc.jsonrpc.error_code",LT="rpc.jsonrpc.error_message",IT="message.type",CT="message.id",wT="message.compressed_size",UT="message.uncompressed_size",rV=SS,nV=hS,oV=TS,iV=vS,aV=mS,sV=yS,uV=AS,lV=OS,cV=gS,fV=NS,pV=RS,dV=PS,EV=bS,_V=MS,SV=xS,hV=LS,TV=IS,vV=CS,mV=wS,yV=US,AV=DS,OV=VS,gV=BS,NV=GS,RV=kS,PV=HS,bV=FS,MV=YS,xV=qS,LV=jS,IV=$S,CV=KS,wV=WS,UV=zS,DV=XS,VV=JS,BV=QS,GV=ZS,kV=eh,HV=th,FV=rh,YV=nh,qV=oh,jV=ih,$V=ah,KV=sh,WV=uh,zV=lh,XV=ch,JV=fh,QV=ph,ZV=dh,e2=Eh,t2=_h,r2=Sh,n2=hh,o2=Th,i2=vh,a2=mh,s2=yh,u2=Ah,l2=Oh,c2=gh,f2=Nh,p2=Rh,d2=Ph,E2=bh,_2=Mh,S2=xh,h2=Lh,T2=Ih,v2=Ch,m2=wh,y2=Uh,A2=Dh,O2=Vh,g2=Bh,N2=Gh,R2=kh,P2=Hh,b2=Fh,M2=Yh,x2=qh,L2=jh,I2=$h,C2=Kh,w2=Wh,U2=zh,D2=Xh,V2=Jh,B2=Qh,G2=Zh,k2=eT,H2=tT,F2=rT,Y2=nT,q2=oT,j2=iT,$2=aT,K2=sT,W2=uT,z2=lT,X2=cT,J2=fT,Q2=pT,Z2=dT,eB=ET,tB=_T,rB=ST,nB=hT,oB=TT,iB=vT,aB=mT,sB=yT,uB=AT,lB=OT,cB=gT,fB=NT,pB=RT,dB=PT,EB=bT,_B=MT,SB=xT,hB=LT,TB=IT,vB=CT,mB=wT,yB=UT,AB=ce([SS,hS,TS,vS,mS,yS,AS,OS,gS,NS,RS,PS,bS,MS,xS,LS,IS,CS,wS,US,DS,VS,BS,GS,kS,HS,FS,YS,qS,jS,$S,KS,WS,zS,XS,JS,QS,ZS,eh,th,rh,nh,oh,ih,ah,sh,uh,lh,ch,fh,ph,dh,Eh,_h,Sh,hh,Th,vh,mh,yh,Ah,Oh,gh,Nh,Rh,Ph,bh,Mh,xh,Lh,Ih,Ch,wh,Uh,Dh,Vh,Bh,Gh,kh,Hh,Fh,Yh,qh,jh,$h,Kh,Wh,zh,Xh,Jh,Qh,Zh,eT,tT,rT,nT,oT,iT,aT,sT,uT,lT,cT,fT,pT,dT,ET,_T,ST,hT,TT,vT,mT,yT,AT,OT,gT,NT,RT,PT,bT,MT,xT,LT,IT,CT,wT,UT]),DT="other_sql",VT="mssql",BT="mysql",GT="oracle",kT="db2",HT="postgresql",FT="redshift",YT="hive",qT="cloudscape",jT="hsqldb",$T="progress",KT="maxdb",WT="hanadb",zT="ingres",XT="firstsql",JT="edb",QT="cache",ZT="adabas",ev="firebird",tv="derby",rv="filemaker",nv="informix",ov="instantdb",iv="interbase",av="mariadb",sv="netezza",uv="pervasive",lv="pointbase",cv="sqlite",fv="sybase",pv="teradata",dv="vertica",Ev="h2",_v="coldfusion",Sv="cassandra",hv="hbase",Tv="mongodb",vv="redis",mv="couchbase",yv="couchdb",Av="cosmosdb",Ov="dynamodb",gv="neo4j",Nv="geode",Rv="elasticsearch",Pv="memcached",bv="cockroachdb",OB=DT,gB=VT,NB=BT,RB=GT,PB=kT,bB=HT,MB=FT,xB=YT,LB=qT,IB=jT,CB=$T,wB=KT,UB=WT,DB=zT,VB=XT,BB=JT,GB=QT,kB=ZT,HB=ev,FB=tv,YB=rv,qB=nv,jB=ov,$B=iv,KB=av,WB=sv,zB=uv,XB=lv,JB=cv,QB=fv,ZB=pv,eG=dv,tG=Ev,rG=_v,nG=Sv,oG=hv,iG=Tv,aG=vv,sG=mv,uG=yv,lG=Av,cG=Ov,fG=gv,pG=Nv,dG=Rv,EG=Pv,_G=bv,SG=ce([DT,VT,BT,GT,kT,HT,FT,YT,qT,jT,$T,KT,WT,zT,XT,JT,QT,ZT,ev,tv,rv,nv,ov,iv,av,sv,uv,lv,cv,fv,pv,dv,Ev,_v,Sv,hv,Tv,vv,mv,yv,Av,Ov,gv,Nv,Rv,Pv,bv]),Mv="all",xv="each_quorum",Lv="quorum",Iv="local_quorum",Cv="one",wv="two",Uv="three",Dv="local_one",Vv="any",Bv="serial",Gv="local_serial",hG=Mv,TG=xv,vG=Lv,mG=Iv,yG=Cv,AG=wv,OG=Uv,gG=Dv,NG=Vv,RG=Bv,PG=Gv,bG=ce([Mv,xv,Lv,Iv,Cv,wv,Uv,Dv,Vv,Bv,Gv]),kv="datasource",Hv="http",Fv="pubsub",Yv="timer",qv="other",MG=kv,xG=Hv,LG=Fv,IG=Yv,CG=qv,wG=ce([kv,Hv,Fv,Yv,qv]),jv="insert",$v="edit",Kv="delete",UG=jv,DG=$v,VG=Kv,BG=ce([jv,$v,Kv]),Wv="alibaba_cloud",zv="aws",Xv="azure",Jv="gcp",GG=Wv,kG=zv,HG=Xv,FG=Jv,YG=ce([Wv,zv,Xv,Jv]),Qv="ip_tcp",Zv="ip_udp",em="ip",tm="unix",rm="pipe",nm="inproc",om="other",qG=Qv,jG=Zv,$G=em,KG=tm,WG=rm,zG=nm,XG=om,JG=ce([Qv,Zv,em,tm,rm,nm,om]),im="wifi",am="wired",sm="cell",um="unavailable",lm="unknown",QG=im,ZG=am,ek=sm,tk=um,rk=lm,nk=ce([im,am,sm,um,lm]),cm="gprs",fm="edge",pm="umts",dm="cdma",Em="evdo_0",_m="evdo_a",Sm="cdma2000_1xrtt",hm="hsdpa",Tm="hsupa",vm="hspa",mm="iden",ym="evdo_b",Am="lte",Om="ehrpd",gm="hspap",Nm="gsm",Rm="td_scdma",Pm="iwlan",bm="nr",Mm="nrnsa",xm="lte_ca",ok=cm,ik=fm,ak=pm,sk=dm,uk=Em,lk=_m,ck=Sm,fk=hm,pk=Tm,dk=vm,Ek=mm,_k=ym,Sk=Am,hk=Om,Tk=gm,vk=Nm,mk=Rm,yk=Pm,Ak=bm,Ok=Mm,gk=xm,Nk=ce([cm,fm,pm,dm,Em,_m,Sm,hm,Tm,vm,mm,ym,Am,Om,gm,Nm,Rm,Pm,bm,Mm,xm]),Lm="1.0",Im="1.1",Cm="2.0",wm="SPDY",Um="QUIC",Rk=Lm,Pk=Im,bk=Cm,Mk=wm,xk=Um,Lk={HTTP_1_0:Lm,HTTP_1_1:Im,HTTP_2_0:Cm,SPDY:wm,QUIC:Um},Dm="queue",Vm="topic",Ik=Dm,Ck=Vm,wk=ce([Dm,Vm]),Bm="receive",Gm="process",Uk=Bm,Dk=Gm,Vk=ce([Bm,Gm]),km=0,Hm=1,Fm=2,Ym=3,qm=4,jm=5,$m=6,Km=7,Wm=8,zm=9,Xm=10,Jm=11,Qm=12,Zm=13,ey=14,ty=15,ry=16,Bk=km,Gk=Hm,kk=Fm,Hk=Ym,Fk=qm,Yk=jm,qk=$m,jk=Km,$k=Wm,Kk=zm,Wk=Xm,zk=Jm,Xk=Qm,Jk=Zm,Qk=ey,Zk=ty,eH=ry,tH={OK:km,CANCELLED:Hm,UNKNOWN:Fm,INVALID_ARGUMENT:Ym,DEADLINE_EXCEEDED:qm,NOT_FOUND:jm,ALREADY_EXISTS:$m,PERMISSION_DENIED:Km,RESOURCE_EXHAUSTED:Wm,FAILED_PRECONDITION:zm,ABORTED:Xm,OUT_OF_RANGE:Jm,UNIMPLEMENTED:Qm,INTERNAL:Zm,UNAVAILABLE:ey,DATA_LOSS:ty,UNAUTHENTICATED:ry},ny="SENT",oy="RECEIVED",rH=ny,nH=oy,oH=ce([ny,oy])});var ay=m(()=>{"use strict";iy()});var sy,uy,ly,cy,fy,py,dy,Ey,_y,Sy,hy,Ty,vy,my,yy,Ay,Oy,gy,Ny,Ry,Py,by,My,xy,Ly,Iy,Cy,wy,Uy,Dy,Vy,By,Gy,ky,Hy,Fy,Yy,qy,jy,$y,Ky,Wy,zy,Xy,Jy,Qy,Zy,eA,tA,rA,nA,oA,iA,aA,sA,uA,lA,cA,fA,pA,dA,EA,_A,SA,hA,TA,vA,mA,yA,AA,OA,gA,NA,RA,PA,bA,MA,xA,LA,IA,CA,iH,aH,sH,uH,lH,cH,fH,pH,dH,EH,_H,SH,hH,TH,vH,mH,yH,AH,OH,gH,NH,RH,PH,bH,MH,xH,LH,IH,CH,wH,UH,DH,VH,BH,GH,kH,HH,FH,YH,qH,jH,$H,KH,WH,zH,XH,JH,QH,ZH,e3,t3,r3,n3,o3,i3,a3,s3,u3,l3,c3,f3,p3,d3,E3,_3,S3,h3,T3,v3,m3,y3,A3,O3,g3,N3,R3,P3,b3,M3,x3,L3,I3,wA,UA,DA,VA,C3,w3,U3,D3,V3,BA,GA,kA,HA,FA,YA,qA,jA,$A,KA,WA,zA,XA,JA,QA,ZA,eO,B3,G3,k3,H3,F3,Y3,q3,j3,$3,K3,W3,z3,X3,J3,Q3,Z3,eF,tF,tO,rO,rF,nF,oF,nO,oO,iO,aO,sO,uO,lO,iF,aF,sF,uF,lF,cF,fF,pF,cO,fO,pO,dO,EO,_O,SO,hO,TO,vO,mO,dF,EF,_F,SF,hF,TF,vF,mF,yF,AF,OF,gF,yO,AO,OO,gO,NO,RO,PO,bO,MO,xO,NF,RF,PF,bF,MF,xF,LF,IF,CF,wF,UF,LO=m(()=>{"use strict";zl();sy="cloud.provider",uy="cloud.account.id",ly="cloud.region",cy="cloud.availability_zone",fy="cloud.platform",py="aws.ecs.container.arn",dy="aws.ecs.cluster.arn",Ey="aws.ecs.launchtype",_y="aws.ecs.task.arn",Sy="aws.ecs.task.family",hy="aws.ecs.task.revision",Ty="aws.eks.cluster.arn",vy="aws.log.group.names",my="aws.log.group.arns",yy="aws.log.stream.names",Ay="aws.log.stream.arns",Oy="container.name",gy="container.id",Ny="container.runtime",Ry="container.image.name",Py="container.image.tag",by="deployment.environment",My="device.id",xy="device.model.identifier",Ly="device.model.name",Iy="faas.name",Cy="faas.id",wy="faas.version",Uy="faas.instance",Dy="faas.max_memory",Vy="host.id",By="host.name",Gy="host.type",ky="host.arch",Hy="host.image.name",Fy="host.image.id",Yy="host.image.version",qy="k8s.cluster.name",jy="k8s.node.name",$y="k8s.node.uid",Ky="k8s.namespace.name",Wy="k8s.pod.uid",zy="k8s.pod.name",Xy="k8s.container.name",Jy="k8s.replicaset.uid",Qy="k8s.replicaset.name",Zy="k8s.deployment.uid",eA="k8s.deployment.name",tA="k8s.statefulset.uid",rA="k8s.statefulset.name",nA="k8s.daemonset.uid",oA="k8s.daemonset.name",iA="k8s.job.uid",aA="k8s.job.name",sA="k8s.cronjob.uid",uA="k8s.cronjob.name",lA="os.type",cA="os.description",fA="os.name",pA="os.version",dA="process.pid",EA="process.executable.name",_A="process.executable.path",SA="process.command",hA="process.command_line",TA="process.command_args",vA="process.owner",mA="process.runtime.name",yA="process.runtime.version",AA="process.runtime.description",OA="service.name",gA="service.namespace",NA="service.instance.id",RA="service.version",PA="telemetry.sdk.name",bA="telemetry.sdk.language",MA="telemetry.sdk.version",xA="telemetry.auto.version",LA="webengine.name",IA="webengine.version",CA="webengine.description",iH=sy,aH=uy,sH=ly,uH=cy,lH=fy,cH=py,fH=dy,pH=Ey,dH=_y,EH=Sy,_H=hy,SH=Ty,hH=vy,TH=my,vH=yy,mH=Ay,yH=Oy,AH=gy,OH=Ny,gH=Ry,NH=Py,RH=by,PH=My,bH=xy,MH=Ly,xH=Iy,LH=Cy,IH=wy,CH=Uy,wH=Dy,UH=Vy,DH=By,VH=Gy,BH=ky,GH=Hy,kH=Fy,HH=Yy,FH=qy,YH=jy,qH=$y,jH=Ky,$H=Wy,KH=zy,WH=Xy,zH=Jy,XH=Qy,JH=Zy,QH=eA,ZH=tA,e3=rA,t3=nA,r3=oA,n3=iA,o3=aA,i3=sA,a3=uA,s3=lA,u3=cA,l3=fA,c3=pA,f3=dA,p3=EA,d3=_A,E3=SA,_3=hA,S3=TA,h3=vA,T3=mA,v3=yA,m3=AA,y3=OA,A3=gA,O3=NA,g3=RA,N3=PA,R3=bA,P3=MA,b3=xA,M3=LA,x3=IA,L3=CA,I3=ce([sy,uy,ly,cy,fy,py,dy,Ey,_y,Sy,hy,Ty,vy,my,yy,Ay,Oy,gy,Ny,Ry,Py,by,My,xy,Ly,Iy,Cy,wy,Uy,Dy,Vy,By,Gy,ky,Hy,Fy,Yy,qy,jy,$y,Ky,Wy,zy,Xy,Jy,Qy,Zy,eA,tA,rA,nA,oA,iA,aA,sA,uA,lA,cA,fA,pA,dA,EA,_A,SA,hA,TA,vA,mA,yA,AA,OA,gA,NA,RA,PA,bA,MA,xA,LA,IA,CA]),wA="alibaba_cloud",UA="aws",DA="azure",VA="gcp",C3=wA,w3=UA,U3=DA,D3=VA,V3=ce([wA,UA,DA,VA]),BA="alibaba_cloud_ecs",GA="alibaba_cloud_fc",kA="aws_ec2",HA="aws_ecs",FA="aws_eks",YA="aws_lambda",qA="aws_elastic_beanstalk",jA="azure_vm",$A="azure_container_instances",KA="azure_aks",WA="azure_functions",zA="azure_app_service",XA="gcp_compute_engine",JA="gcp_cloud_run",QA="gcp_kubernetes_engine",ZA="gcp_cloud_functions",eO="gcp_app_engine",B3=BA,G3=GA,k3=kA,H3=HA,F3=FA,Y3=YA,q3=qA,j3=jA,$3=$A,K3=KA,W3=WA,z3=zA,X3=XA,J3=JA,Q3=QA,Z3=ZA,eF=eO,tF=ce([BA,GA,kA,HA,FA,YA,qA,jA,$A,KA,WA,zA,XA,JA,QA,ZA,eO]),tO="ec2",rO="fargate",rF=tO,nF=rO,oF=ce([tO,rO]),nO="amd64",oO="arm32",iO="arm64",aO="ia64",sO="ppc32",uO="ppc64",lO="x86",iF=nO,aF=oO,sF=iO,uF=aO,lF=sO,cF=uO,fF=lO,pF=ce([nO,oO,iO,aO,sO,uO,lO]),cO="windows",fO="linux",pO="darwin",dO="freebsd",EO="netbsd",_O="openbsd",SO="dragonflybsd",hO="hpux",TO="aix",vO="solaris",mO="z_os",dF=cO,EF=fO,_F=pO,SF=dO,hF=EO,TF=_O,vF=SO,mF=hO,yF=TO,AF=vO,OF=mO,gF=ce([cO,fO,pO,dO,EO,_O,SO,hO,TO,vO,mO]),yO="cpp",AO="dotnet",OO="erlang",gO="go",NO="java",RO="nodejs",PO="php",bO="python",MO="ruby",xO="webjs",NF=yO,RF=AO,PF=OO,bF=gO,MF=NO,xF=RO,LF=PO,IF=bO,CF=MO,wF=xO,UF=ce([yO,AO,OO,gO,NO,RO,PO,bO,MO,xO])});var IO=m(()=>{"use strict";LO()});var co={};nt(co,{AWSECSLAUNCHTYPEVALUES_EC2:()=>rF,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>nF,AwsEcsLaunchtypeValues:()=>oF,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>B3,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>G3,CLOUDPLATFORMVALUES_AWS_EC2:()=>k3,CLOUDPLATFORMVALUES_AWS_ECS:()=>H3,CLOUDPLATFORMVALUES_AWS_EKS:()=>F3,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>q3,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>Y3,CLOUDPLATFORMVALUES_AZURE_AKS:()=>K3,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>z3,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>$3,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>W3,CLOUDPLATFORMVALUES_AZURE_VM:()=>j3,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>eF,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>Z3,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>J3,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>X3,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>Q3,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>C3,CLOUDPROVIDERVALUES_AWS:()=>w3,CLOUDPROVIDERVALUES_AZURE:()=>U3,CLOUDPROVIDERVALUES_GCP:()=>D3,CloudPlatformValues:()=>tF,CloudProviderValues:()=>V3,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>hG,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>NG,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>TG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>gG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>mG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>PG,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>yG,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>vG,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>RG,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>OG,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>AG,DBSYSTEMVALUES_ADABAS:()=>kB,DBSYSTEMVALUES_CACHE:()=>GB,DBSYSTEMVALUES_CASSANDRA:()=>nG,DBSYSTEMVALUES_CLOUDSCAPE:()=>LB,DBSYSTEMVALUES_COCKROACHDB:()=>_G,DBSYSTEMVALUES_COLDFUSION:()=>rG,DBSYSTEMVALUES_COSMOSDB:()=>lG,DBSYSTEMVALUES_COUCHBASE:()=>sG,DBSYSTEMVALUES_COUCHDB:()=>uG,DBSYSTEMVALUES_DB2:()=>PB,DBSYSTEMVALUES_DERBY:()=>FB,DBSYSTEMVALUES_DYNAMODB:()=>cG,DBSYSTEMVALUES_EDB:()=>BB,DBSYSTEMVALUES_ELASTICSEARCH:()=>dG,DBSYSTEMVALUES_FILEMAKER:()=>YB,DBSYSTEMVALUES_FIREBIRD:()=>HB,DBSYSTEMVALUES_FIRSTSQL:()=>VB,DBSYSTEMVALUES_GEODE:()=>pG,DBSYSTEMVALUES_H2:()=>tG,DBSYSTEMVALUES_HANADB:()=>UB,DBSYSTEMVALUES_HBASE:()=>oG,DBSYSTEMVALUES_HIVE:()=>xB,DBSYSTEMVALUES_HSQLDB:()=>IB,DBSYSTEMVALUES_INFORMIX:()=>qB,DBSYSTEMVALUES_INGRES:()=>DB,DBSYSTEMVALUES_INSTANTDB:()=>jB,DBSYSTEMVALUES_INTERBASE:()=>$B,DBSYSTEMVALUES_MARIADB:()=>KB,DBSYSTEMVALUES_MAXDB:()=>wB,DBSYSTEMVALUES_MEMCACHED:()=>EG,DBSYSTEMVALUES_MONGODB:()=>iG,DBSYSTEMVALUES_MSSQL:()=>gB,DBSYSTEMVALUES_MYSQL:()=>NB,DBSYSTEMVALUES_NEO4J:()=>fG,DBSYSTEMVALUES_NETEZZA:()=>WB,DBSYSTEMVALUES_ORACLE:()=>RB,DBSYSTEMVALUES_OTHER_SQL:()=>OB,DBSYSTEMVALUES_PERVASIVE:()=>zB,DBSYSTEMVALUES_POINTBASE:()=>XB,DBSYSTEMVALUES_POSTGRESQL:()=>bB,DBSYSTEMVALUES_PROGRESS:()=>CB,DBSYSTEMVALUES_REDIS:()=>aG,DBSYSTEMVALUES_REDSHIFT:()=>MB,DBSYSTEMVALUES_SQLITE:()=>JB,DBSYSTEMVALUES_SYBASE:()=>QB,DBSYSTEMVALUES_TERADATA:()=>ZB,DBSYSTEMVALUES_VERTICA:()=>eG,DbCassandraConsistencyLevelValues:()=>bG,DbSystemValues:()=>SG,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>VG,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>DG,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>UG,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>GG,FAASINVOKEDPROVIDERVALUES_AWS:()=>kG,FAASINVOKEDPROVIDERVALUES_AZURE:()=>HG,FAASINVOKEDPROVIDERVALUES_GCP:()=>FG,FAASTRIGGERVALUES_DATASOURCE:()=>MG,FAASTRIGGERVALUES_HTTP:()=>xG,FAASTRIGGERVALUES_OTHER:()=>CG,FAASTRIGGERVALUES_PUBSUB:()=>LG,FAASTRIGGERVALUES_TIMER:()=>IG,FaasDocumentOperationValues:()=>BG,FaasInvokedProviderValues:()=>YG,FaasTriggerValues:()=>wG,HOSTARCHVALUES_AMD64:()=>iF,HOSTARCHVALUES_ARM32:()=>aF,HOSTARCHVALUES_ARM64:()=>sF,HOSTARCHVALUES_IA64:()=>uF,HOSTARCHVALUES_PPC32:()=>lF,HOSTARCHVALUES_PPC64:()=>cF,HOSTARCHVALUES_X86:()=>fF,HTTPFLAVORVALUES_HTTP_1_0:()=>Rk,HTTPFLAVORVALUES_HTTP_1_1:()=>Pk,HTTPFLAVORVALUES_HTTP_2_0:()=>bk,HTTPFLAVORVALUES_QUIC:()=>xk,HTTPFLAVORVALUES_SPDY:()=>Mk,HostArchValues:()=>pF,HttpFlavorValues:()=>Lk,MESSAGETYPEVALUES_RECEIVED:()=>nH,MESSAGETYPEVALUES_SENT:()=>rH,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>Ik,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>Ck,MESSAGINGOPERATIONVALUES_PROCESS:()=>Dk,MESSAGINGOPERATIONVALUES_RECEIVE:()=>Uk,MessageTypeValues:()=>oH,MessagingDestinationKindValues:()=>wk,MessagingOperationValues:()=>Vk,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>sk,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>ck,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>ik,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>hk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>uk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>lk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>_k,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>ok,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>vk,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>fk,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>dk,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>Tk,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>pk,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>Ek,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>yk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>Sk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>gk,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>Ak,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>Ok,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>mk,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>ak,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>ek,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>tk,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>rk,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>QG,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>ZG,NETTRANSPORTVALUES_INPROC:()=>zG,NETTRANSPORTVALUES_IP:()=>$G,NETTRANSPORTVALUES_IP_TCP:()=>qG,NETTRANSPORTVALUES_IP_UDP:()=>jG,NETTRANSPORTVALUES_OTHER:()=>XG,NETTRANSPORTVALUES_PIPE:()=>WG,NETTRANSPORTVALUES_UNIX:()=>KG,NetHostConnectionSubtypeValues:()=>Nk,NetHostConnectionTypeValues:()=>nk,NetTransportValues:()=>JG,OSTYPEVALUES_AIX:()=>yF,OSTYPEVALUES_DARWIN:()=>_F,OSTYPEVALUES_DRAGONFLYBSD:()=>vF,OSTYPEVALUES_FREEBSD:()=>SF,OSTYPEVALUES_HPUX:()=>mF,OSTYPEVALUES_LINUX:()=>EF,OSTYPEVALUES_NETBSD:()=>hF,OSTYPEVALUES_OPENBSD:()=>TF,OSTYPEVALUES_SOLARIS:()=>AF,OSTYPEVALUES_WINDOWS:()=>dF,OSTYPEVALUES_Z_OS:()=>OF,OsTypeValues:()=>gF,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>Wk,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>qk,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>Gk,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>Zk,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>Fk,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>Kk,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>Jk,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>Hk,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>Yk,RPCGRPCSTATUSCODEVALUES_OK:()=>Bk,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>zk,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>jk,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>$k,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>eH,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>Qk,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>Xk,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>kk,RpcGrpcStatusCodeValues:()=>tH,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>L2,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>Y2,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>b2,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>g2,SEMATTRS_AWS_DYNAMODB_COUNT:()=>H2,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>D2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>w2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>q2,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>I2,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>N2,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>x2,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>U2,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>M2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>R2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>P2,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>F2,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>B2,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>G2,SEMATTRS_AWS_DYNAMODB_SELECT:()=>C2,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>V2,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>O2,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>k2,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>rV,SEMATTRS_CODE_FILEPATH:()=>a2,SEMATTRS_CODE_FUNCTION:()=>o2,SEMATTRS_CODE_LINENO:()=>s2,SEMATTRS_CODE_NAMESPACE:()=>i2,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>dV,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>TV,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>hV,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>_V,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>fV,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>pV,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>SV,SEMATTRS_DB_CASSANDRA_TABLE:()=>EV,SEMATTRS_DB_CONNECTION_STRING:()=>oV,SEMATTRS_DB_HBASE_NAMESPACE:()=>vV,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>aV,SEMATTRS_DB_MONGODB_COLLECTION:()=>yV,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>cV,SEMATTRS_DB_NAME:()=>sV,SEMATTRS_DB_OPERATION:()=>lV,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>mV,SEMATTRS_DB_SQL_TABLE:()=>AV,SEMATTRS_DB_STATEMENT:()=>uV,SEMATTRS_DB_SYSTEM:()=>nV,SEMATTRS_DB_USER:()=>iV,SEMATTRS_ENDUSER_ID:()=>ZV,SEMATTRS_ENDUSER_ROLE:()=>e2,SEMATTRS_ENDUSER_SCOPE:()=>t2,SEMATTRS_EXCEPTION_ESCAPED:()=>RV,SEMATTRS_EXCEPTION_MESSAGE:()=>gV,SEMATTRS_EXCEPTION_STACKTRACE:()=>NV,SEMATTRS_EXCEPTION_TYPE:()=>OV,SEMATTRS_FAAS_COLDSTART:()=>UV,SEMATTRS_FAAS_CRON:()=>wV,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>MV,SEMATTRS_FAAS_DOCUMENT_NAME:()=>IV,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>xV,SEMATTRS_FAAS_DOCUMENT_TIME:()=>LV,SEMATTRS_FAAS_EXECUTION:()=>bV,SEMATTRS_FAAS_INVOKED_NAME:()=>DV,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>VV,SEMATTRS_FAAS_INVOKED_REGION:()=>BV,SEMATTRS_FAAS_TIME:()=>CV,SEMATTRS_FAAS_TRIGGER:()=>PV,SEMATTRS_HTTP_CLIENT_IP:()=>A2,SEMATTRS_HTTP_FLAVOR:()=>E2,SEMATTRS_HTTP_HOST:()=>f2,SEMATTRS_HTTP_METHOD:()=>u2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>S2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>h2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>T2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>v2,SEMATTRS_HTTP_ROUTE:()=>y2,SEMATTRS_HTTP_SCHEME:()=>p2,SEMATTRS_HTTP_SERVER_NAME:()=>m2,SEMATTRS_HTTP_STATUS_CODE:()=>d2,SEMATTRS_HTTP_TARGET:()=>c2,SEMATTRS_HTTP_URL:()=>l2,SEMATTRS_HTTP_USER_AGENT:()=>_2,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>mB,SEMATTRS_MESSAGE_ID:()=>vB,SEMATTRS_MESSAGE_TYPE:()=>TB,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>yB,SEMATTRS_MESSAGING_CONSUMER_ID:()=>nB,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>Z2,SEMATTRS_MESSAGING_DESTINATION:()=>$2,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>K2,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>sB,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>aB,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>iB,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>uB,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>lB,SEMATTRS_MESSAGING_MESSAGE_ID:()=>Q2,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>tB,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>eB,SEMATTRS_MESSAGING_OPERATION:()=>rB,SEMATTRS_MESSAGING_PROTOCOL:()=>z2,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>X2,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>oB,SEMATTRS_MESSAGING_SYSTEM:()=>j2,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>W2,SEMATTRS_MESSAGING_URL:()=>J2,SEMATTRS_NET_HOST_CARRIER_ICC:()=>JV,SEMATTRS_NET_HOST_CARRIER_MCC:()=>zV,SEMATTRS_NET_HOST_CARRIER_MNC:()=>XV,SEMATTRS_NET_HOST_CARRIER_NAME:()=>WV,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>KV,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>$V,SEMATTRS_NET_HOST_IP:()=>YV,SEMATTRS_NET_HOST_NAME:()=>jV,SEMATTRS_NET_HOST_PORT:()=>qV,SEMATTRS_NET_PEER_IP:()=>kV,SEMATTRS_NET_PEER_NAME:()=>FV,SEMATTRS_NET_PEER_PORT:()=>HV,SEMATTRS_NET_TRANSPORT:()=>GV,SEMATTRS_PEER_SERVICE:()=>QV,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>dB,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>SB,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>hB,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>_B,SEMATTRS_RPC_JSONRPC_VERSION:()=>EB,SEMATTRS_RPC_METHOD:()=>pB,SEMATTRS_RPC_SERVICE:()=>fB,SEMATTRS_RPC_SYSTEM:()=>cB,SEMATTRS_THREAD_ID:()=>r2,SEMATTRS_THREAD_NAME:()=>n2,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>fH,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>cH,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>pH,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>dH,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>EH,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>_H,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>SH,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>TH,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>hH,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>mH,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>vH,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>aH,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>uH,SEMRESATTRS_CLOUD_PLATFORM:()=>lH,SEMRESATTRS_CLOUD_PROVIDER:()=>iH,SEMRESATTRS_CLOUD_REGION:()=>sH,SEMRESATTRS_CONTAINER_ID:()=>AH,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>gH,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>NH,SEMRESATTRS_CONTAINER_NAME:()=>yH,SEMRESATTRS_CONTAINER_RUNTIME:()=>OH,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>RH,SEMRESATTRS_DEVICE_ID:()=>PH,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>bH,SEMRESATTRS_DEVICE_MODEL_NAME:()=>MH,SEMRESATTRS_FAAS_ID:()=>LH,SEMRESATTRS_FAAS_INSTANCE:()=>CH,SEMRESATTRS_FAAS_MAX_MEMORY:()=>wH,SEMRESATTRS_FAAS_NAME:()=>xH,SEMRESATTRS_FAAS_VERSION:()=>IH,SEMRESATTRS_HOST_ARCH:()=>BH,SEMRESATTRS_HOST_ID:()=>UH,SEMRESATTRS_HOST_IMAGE_ID:()=>kH,SEMRESATTRS_HOST_IMAGE_NAME:()=>GH,SEMRESATTRS_HOST_IMAGE_VERSION:()=>HH,SEMRESATTRS_HOST_NAME:()=>DH,SEMRESATTRS_HOST_TYPE:()=>VH,SEMRESATTRS_K8S_CLUSTER_NAME:()=>FH,SEMRESATTRS_K8S_CONTAINER_NAME:()=>WH,SEMRESATTRS_K8S_CRONJOB_NAME:()=>a3,SEMRESATTRS_K8S_CRONJOB_UID:()=>i3,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>r3,SEMRESATTRS_K8S_DAEMONSET_UID:()=>t3,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>QH,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>JH,SEMRESATTRS_K8S_JOB_NAME:()=>o3,SEMRESATTRS_K8S_JOB_UID:()=>n3,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>jH,SEMRESATTRS_K8S_NODE_NAME:()=>YH,SEMRESATTRS_K8S_NODE_UID:()=>qH,SEMRESATTRS_K8S_POD_NAME:()=>KH,SEMRESATTRS_K8S_POD_UID:()=>$H,SEMRESATTRS_K8S_REPLICASET_NAME:()=>XH,SEMRESATTRS_K8S_REPLICASET_UID:()=>zH,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>e3,SEMRESATTRS_K8S_STATEFULSET_UID:()=>ZH,SEMRESATTRS_OS_DESCRIPTION:()=>u3,SEMRESATTRS_OS_NAME:()=>l3,SEMRESATTRS_OS_TYPE:()=>s3,SEMRESATTRS_OS_VERSION:()=>c3,SEMRESATTRS_PROCESS_COMMAND:()=>E3,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>S3,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>_3,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>p3,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>d3,SEMRESATTRS_PROCESS_OWNER:()=>h3,SEMRESATTRS_PROCESS_PID:()=>f3,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>m3,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>T3,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>v3,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>O3,SEMRESATTRS_SERVICE_NAME:()=>y3,SEMRESATTRS_SERVICE_NAMESPACE:()=>A3,SEMRESATTRS_SERVICE_VERSION:()=>g3,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>b3,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>R3,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>N3,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>P3,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>L3,SEMRESATTRS_WEBENGINE_NAME:()=>M3,SEMRESATTRS_WEBENGINE_VERSION:()=>x3,SemanticAttributes:()=>AB,SemanticResourceAttributes:()=>I3,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>NF,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>RF,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>PF,TELEMETRYSDKLANGUAGEVALUES_GO:()=>bF,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>MF,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>xF,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>LF,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>IF,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>CF,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>wF,TelemetrySdkLanguageValues:()=>UF});var fo=m(()=>{"use strict";ay();IO()});var wO=h((CO,ji)=>{"use strict";(function(t){"use strict";let e="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp(`^${e}\\.${e}\\.${e}\\.${e}$`,"i"),threeOctet:new RegExp(`^${e}\\.${e}\\.${e}$`,"i"),twoOctet:new RegExp(`^${e}\\.${e}$`,"i"),longValue:new RegExp(`^${e}$`,"i")},i=new RegExp("^0[0-7]+$","i"),a=new RegExp("^0x[a-f0-9]+$","i"),s="%[0-9a-z]{1,}",o="(?:[0-9a-f]+::?)+",r={zoneIndex:new RegExp(s,"i"),native:new RegExp(`^(::)?(${o})?([0-9a-f]+)?(::)?(${s})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${e}\\.${e}\\.${e}\\.${e}(${s})?)$`,"i"),transitional:new RegExp(`^((?:${o})|(?:::)(?:${o})?)${e}\\.${e}\\.${e}\\.${e}(${s})?$`,"i")};function u(f,S){if(f.indexOf("::")!==f.lastIndexOf("::"))return null;let v=0,T=-1,A=(f.match(r.zoneIndex)||[])[0],O,N;for(A&&(A=A.substring(1),f=f.replace(/%.+$/,""));(T=f.indexOf(":",T+1))>=0;)v++;if(f.substr(0,2)==="::"&&v--,f.substr(-2,2)==="::"&&v--,v>S)return null;for(N=S-v,O=":";N--;)O+="0:";return f=f.replace("::",O),f[0]===":"&&(f=f.slice(1)),f[f.length-1]===":"&&(f=f.slice(0,-1)),S=function(){let D=f.split(":"),G=[];for(let F=0;F<D.length;F++)G.push(parseInt(D[F],16));return G}(),{parts:S,zoneId:A}}function l(f,S,v,T){if(f.length!==S.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let A=0,O;for(;T>0;){if(O=v-T,O<0&&(O=0),f[A]>>O!==S[A]>>O)return!1;T-=v,A+=1}return!0}function c(f){if(a.test(f))return parseInt(f,16);if(f[0]==="0"&&!isNaN(parseInt(f[1],10))){if(i.test(f))return parseInt(f,8);throw new Error(`ipaddr: cannot parse ${f} as octal`)}return parseInt(f,10)}function p(f,S){for(;f.length<S;)f=`0${f}`;return f}let _={};_.IPv4=function(){function f(S){if(S.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let v,T;for(v=0;v<S.length;v++)if(T=S[v],!(0<=T&&T<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=S}return f.prototype.SpecialRanges={unspecified:[[new f([0,0,0,0]),8]],broadcast:[[new f([255,255,255,255]),32]],multicast:[[new f([224,0,0,0]),4]],linkLocal:[[new f([169,254,0,0]),16]],loopback:[[new f([127,0,0,0]),8]],carrierGradeNat:[[new f([100,64,0,0]),10]],private:[[new f([10,0,0,0]),8],[new f([172,16,0,0]),12],[new f([192,168,0,0]),16]],reserved:[[new f([192,0,0,0]),24],[new f([192,0,2,0]),24],[new f([192,88,99,0]),24],[new f([198,18,0,0]),15],[new f([198,51,100,0]),24],[new f([203,0,113,0]),24],[new f([240,0,0,0]),4]],as112:[[new f([192,175,48,0]),24],[new f([192,31,196,0]),24]],amt:[[new f([192,52,193,0]),24]]},f.prototype.kind=function(){return"ipv4"},f.prototype.match=function(S,v){let T;if(v===void 0&&(T=S,S=T[0],v=T[1]),S.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,S.octets,8,v)},f.prototype.prefixLengthFromSubnetMask=function(){let S=0,v=!1,T={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},A,O,N;for(A=3;A>=0;A-=1)if(O=this.octets[A],O in T){if(N=T[O],v&&N!==0)return null;N!==8&&(v=!0),S+=N}else return null;return 32-S},f.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},f.prototype.toByteArray=function(){return this.octets.slice(0)},f.prototype.toIPv4MappedAddress=function(){return _.IPv6.parse(`::ffff:${this.toString()}`)},f.prototype.toNormalizedString=function(){return this.toString()},f.prototype.toString=function(){return this.octets.join(".")},f}(),_.IPv4.broadcastAddressFromCIDR=function(f){try{let S=this.parseCIDR(f),v=S[0].toByteArray(),T=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],O=0;for(;O<4;)A.push(parseInt(v[O],10)|parseInt(T[O],10)^255),O++;return new this(A)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},_.IPv4.isIPv4=function(f){return this.parser(f)!==null},_.IPv4.isValid=function(f){try{return new this(this.parser(f)),!0}catch{return!1}},_.IPv4.isValidCIDR=function(f){try{return this.parseCIDR(f),!0}catch{return!1}},_.IPv4.isValidFourPartDecimal=function(f){return!!(_.IPv4.isValid(f)&&f.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},_.IPv4.networkAddressFromCIDR=function(f){let S,v,T,A,O;try{for(S=this.parseCIDR(f),T=S[0].toByteArray(),O=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],v=0;v<4;)A.push(parseInt(T[v],10)&parseInt(O[v],10)),v++;return new this(A)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},_.IPv4.parse=function(f){let S=this.parser(f);if(S===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(S)},_.IPv4.parseCIDR=function(f){let S;if(S=f.match(/^(.+)\/(\d+)$/)){let v=parseInt(S[2]);if(v>=0&&v<=32){let T=[this.parse(S[1]),v];return Object.defineProperty(T,"toString",{value:function(){return this.join("/")}}),T}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},_.IPv4.parser=function(f){let S,v,T;if(S=f.match(n.fourOctet))return function(){let A=S.slice(1,6),O=[];for(let N=0;N<A.length;N++)v=A[N],O.push(c(v));return O}();if(S=f.match(n.longValue)){if(T=c(S[1]),T>4294967295||T<0)throw new Error("ipaddr: address outside defined range");return function(){let A=[],O;for(O=0;O<=24;O+=8)A.push(T>>O&255);return A}().reverse()}else return(S=f.match(n.twoOctet))?function(){let A=S.slice(1,4),O=[];if(T=c(A[1]),T>16777215||T<0)throw new Error("ipaddr: address outside defined range");return O.push(c(A[0])),O.push(T>>16&255),O.push(T>>8&255),O.push(T&255),O}():(S=f.match(n.threeOctet))?function(){let A=S.slice(1,5),O=[];if(T=c(A[2]),T>65535||T<0)throw new Error("ipaddr: address outside defined range");return O.push(c(A[0])),O.push(c(A[1])),O.push(T>>8&255),O.push(T&255),O}():null},_.IPv4.subnetMaskFromPrefixLength=function(f){if(f=parseInt(f),f<0||f>32)throw new Error("ipaddr: invalid IPv4 prefix length");let S=[0,0,0,0],v=0,T=Math.floor(f/8);for(;v<T;)S[v]=255,v++;return T<4&&(S[T]=Math.pow(2,f%8)-1<<8-f%8),new this(S)},_.IPv6=function(){function f(S,v){let T,A;if(S.length===16)for(this.parts=[],T=0;T<=14;T+=2)this.parts.push(S[T]<<8|S[T+1]);else if(S.length===8)this.parts=S;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(T=0;T<this.parts.length;T++)if(A=this.parts[T],!(0<=A&&A<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");v&&(this.zoneId=v)}return f.prototype.SpecialRanges={unspecified:[new f([0,0,0,0,0,0,0,0]),128],linkLocal:[new f([65152,0,0,0,0,0,0,0]),10],multicast:[new f([65280,0,0,0,0,0,0,0]),8],loopback:[new f([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new f([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new f([0,0,0,0,0,65535,0,0]),96],discard:[new f([256,0,0,0,0,0,0,0]),64],rfc6145:[new f([0,0,0,0,65535,0,0,0]),96],rfc6052:[new f([100,65435,0,0,0,0,0,0]),96],"6to4":[new f([8194,0,0,0,0,0,0,0]),16],teredo:[new f([8193,0,0,0,0,0,0,0]),32],benchmarking:[new f([8193,2,0,0,0,0,0,0]),48],amt:[new f([8193,3,0,0,0,0,0,0]),32],as112v6:[[new f([8193,4,274,0,0,0,0,0]),48],[new f([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new f([8193,16,0,0,0,0,0,0]),28],orchid2:[new f([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new f([8193,48,0,0,0,0,0,0]),28],reserved:[[new f([8193,0,0,0,0,0,0,0]),23],[new f([8193,3512,0,0,0,0,0,0]),32]]},f.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},f.prototype.kind=function(){return"ipv6"},f.prototype.match=function(S,v){let T;if(v===void 0&&(T=S,S=T[0],v=T[1]),S.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,S.parts,16,v)},f.prototype.prefixLengthFromSubnetMask=function(){let S=0,v=!1,T={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},A,O;for(let N=7;N>=0;N-=1)if(A=this.parts[N],A in T){if(O=T[A],v&&O!==0)return null;O!==16&&(v=!0),S+=O}else return null;return 128-S},f.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},f.prototype.toByteArray=function(){let S,v=[],T=this.parts;for(let A=0;A<T.length;A++)S=T[A],v.push(S>>8),v.push(S&255);return v},f.prototype.toFixedLengthString=function(){let S=function(){let T=[];for(let A=0;A<this.parts.length;A++)T.push(p(this.parts[A].toString(16),4));return T}.call(this).join(":"),v="";return this.zoneId&&(v=`%${this.zoneId}`),S+v},f.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let S=this.parts.slice(-2),v=S[0],T=S[1];return new _.IPv4([v>>8,v&255,T>>8,T&255])},f.prototype.toNormalizedString=function(){let S=function(){let T=[];for(let A=0;A<this.parts.length;A++)T.push(this.parts[A].toString(16));return T}.call(this).join(":"),v="";return this.zoneId&&(v=`%${this.zoneId}`),S+v},f.prototype.toRFC5952String=function(){let S=/((^|:)(0(:|$)){2,})/g,v=this.toNormalizedString(),T=0,A=-1,O;for(;O=S.exec(v);)O[0].length>A&&(T=O.index,A=O[0].length);return A<0?v:`${v.substring(0,T)}::${v.substring(T+A)}`},f.prototype.toString=function(){return this.toRFC5952String()},f}(),_.IPv6.broadcastAddressFromCIDR=function(f){try{let S=this.parseCIDR(f),v=S[0].toByteArray(),T=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],O=0;for(;O<16;)A.push(parseInt(v[O],10)|parseInt(T[O],10)^255),O++;return new this(A)}catch(S){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${S})`)}},_.IPv6.isIPv6=function(f){return this.parser(f)!==null},_.IPv6.isValid=function(f){if(typeof f=="string"&&f.indexOf(":")===-1)return!1;try{let S=this.parser(f);return new this(S.parts,S.zoneId),!0}catch{return!1}},_.IPv6.isValidCIDR=function(f){if(typeof f=="string"&&f.indexOf(":")===-1)return!1;try{return this.parseCIDR(f),!0}catch{return!1}},_.IPv6.networkAddressFromCIDR=function(f){let S,v,T,A,O;try{for(S=this.parseCIDR(f),T=S[0].toByteArray(),O=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],v=0;v<16;)A.push(parseInt(T[v],10)&parseInt(O[v],10)),v++;return new this(A)}catch(N){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${N})`)}},_.IPv6.parse=function(f){let S=this.parser(f);if(S.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(S.parts,S.zoneId)},_.IPv6.parseCIDR=function(f){let S,v,T;if((v=f.match(/^(.+)\/(\d+)$/))&&(S=parseInt(v[2]),S>=0&&S<=128))return T=[this.parse(v[1]),S],Object.defineProperty(T,"toString",{value:function(){return this.join("/")}}),T;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},_.IPv6.parser=function(f){let S,v,T,A,O,N;if(T=f.match(r.deprecatedTransitional))return this.parser(`::ffff:${T[1]}`);if(r.native.test(f))return u(f,8);if((T=f.match(r.transitional))&&(N=T[6]||"",S=T[1],T[1].endsWith("::")||(S=S.slice(0,-1)),S=u(S+N,6),S.parts)){for(O=[parseInt(T[2]),parseInt(T[3]),parseInt(T[4]),parseInt(T[5])],v=0;v<O.length;v++)if(A=O[v],!(0<=A&&A<=255))return null;return S.parts.push(O[0]<<8|O[1]),S.parts.push(O[2]<<8|O[3]),{parts:S.parts,zoneId:S.zoneId}}return null},_.IPv6.subnetMaskFromPrefixLength=function(f){if(f=parseInt(f),f<0||f>128)throw new Error("ipaddr: invalid IPv6 prefix length");let S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],v=0,T=Math.floor(f/8);for(;v<T;)S[v]=255,v++;return T<16&&(S[T]=Math.pow(2,f%8)-1<<8-f%8),new this(S)},_.fromByteArray=function(f){let S=f.length;if(S===4)return new _.IPv4(f);if(S===16)return new _.IPv6(f);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},_.isValid=function(f){return _.IPv6.isValid(f)||_.IPv4.isValid(f)},_.isValidCIDR=function(f){return _.IPv6.isValidCIDR(f)||_.IPv4.isValidCIDR(f)},_.parse=function(f){if(_.IPv6.isValid(f))return _.IPv6.parse(f);if(_.IPv4.isValid(f))return _.IPv4.parse(f);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},_.parseCIDR=function(f){try{return _.IPv6.parseCIDR(f)}catch{try{return _.IPv4.parseCIDR(f)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},_.process=function(f){let S=this.parse(f);return S.kind()==="ipv6"&&S.isIPv4MappedAddress()?S.toIPv4Address():S},_.subnetMatch=function(f,S,v){let T,A,O,N;v==null&&(v="unicast");for(A in S)if(Object.prototype.hasOwnProperty.call(S,A)){for(O=S[A],O[0]&&!(O[0]instanceof Array)&&(O=[O]),T=0;T<O.length;T++)if(N=O[T],f.kind()===N[0].kind()&&f.match.apply(f,N))return A}return v},typeof ji<"u"&&ji.exports?ji.exports=_:t.ipaddr=_})(CO)});var Xl=h(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.getPeerAttributes=qt.getStatusAttributes=qt.getMethodAttributes=void 0;var St=(fo(),Y(co)),DF=wO(),VF=gl();function BF(t){let[,e,n]=t.split("/");return{[St.SEMATTRS_RPC_SYSTEM]:"grpc",[St.SEMATTRS_RPC_SERVICE]:e,[St.SEMATTRS_RPC_METHOD]:n}}qt.getMethodAttributes=BF;function GF(t){return{[St.SEMATTRS_RPC_GRPC_STATUS_CODE]:t,"rpc.grpc.status_text":VF.Status[t]}}qt.getStatusAttributes=GF;function kF(t){let e=t.lastIndexOf(":");if(e===-1)return{[St.SEMATTRS_NET_PEER_NAME]:t};let n=t.slice(0,e),i=+t.slice(e+1);return Number.isNaN(i)?{[St.SEMATTRS_NET_PEER_NAME]:t}:DF.isValid(n)?{[St.SEMATTRS_NET_PEER_IP]:n,[St.SEMATTRS_NET_PEER_PORT]:i}:{[St.SEMATTRS_NET_PEER_NAME]:n,[St.SEMATTRS_NET_PEER_PORT]:i}}qt.getPeerAttributes=kF});var Jl=h(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.metadataGetter=Zr.metadataSetter=void 0;Zr.metadataSetter={set(t,e,n){t.set(e,n)}};Zr.metadataGetter={get:(t,e)=>t.get(e),keys:t=>Array.from(t,([e])=>e)}});var UO=h($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.VERSION=void 0;$i.VERSION="0.1.15"});var Ql=h(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.emitSpanEvents=jt.getSpanName=jt.tracer=void 0;var HF=(b(),Y(Re)),DO=(fo(),Y(co)),FF=UO();jt.tracer=HF.trace.getTracer("nice-grpc-opentelemetry",FF.VERSION);function YF(t){return t.slice(1)}jt.getSpanName=YF;async function*qF(t,e,n){let i=1;for await(let a of t)e.addEvent("message",{[DO.SEMATTRS_MESSAGE_TYPE]:n,[DO.SEMATTRS_MESSAGE_ID]:i++}),yield a}jt.emitSpanEvents=qF});var ec=h(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.bindAsyncGenerator=void 0;var Zl=(b(),Y(Re));function VO(t,e){return{next:Zl.context.bind(t,e.next.bind(e)),return:Zl.context.bind(t,e.return.bind(e)),throw:Zl.context.bind(t,e.throw.bind(e)),[Symbol.asyncIterator](){return VO(t,e[Symbol.asyncIterator]())}}}Ki.bindAsyncGenerator=VO});var GO=h(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.openTelemetryServerMiddleware=void 0;var po=(b(),Y(Re)),BO=(fo(),Y(co)),jF=(iE(),Y(oE)),en=gl(),tc=Xl(),$F=Jl(),Wi=Ql(),KF=ec();function WF(){return(t,e)=>Wi.tracer.startActiveSpan((0,Wi.getSpanName)(t.method.path),{kind:po.SpanKind.SERVER},po.propagation.extract(po.ROOT_CONTEXT,e.metadata,$F.metadataGetter),n=>(0,KF.bindAsyncGenerator)(po.context.active(),zF(n,t,e)))}zi.openTelemetryServerMiddleware=WF;async function*zF(t,e,n){let i={...(0,tc.getMethodAttributes)(e.method.path),...(0,tc.getPeerAttributes)(n.peer)};t.setAttributes(i);let a=en.Status.OK,s;try{let o;if(e.requestStream?o=(0,Wi.emitSpanEvents)(e.request,t,BO.MESSAGETYPEVALUES_RECEIVED):o=e.request,e.responseStream){yield*(0,Wi.emitSpanEvents)(e.next(o,n),t,BO.MESSAGETYPEVALUES_SENT);return}else return yield*e.next(o,n)}catch(o){throw o instanceof en.ServerError?(a=o.code,s=o.details):(0,jF.isAbortError)(o)?(a=en.Status.CANCELLED,s="The operation was cancelled"):(a=en.Status.UNKNOWN,s="Unknown server error occurred",t.recordException(o)),o}finally{let o=(0,tc.getStatusAttributes)(a);t.setAttributes(o),a!==en.Status.OK&&t.setStatus({code:po.SpanStatusCode.ERROR,message:`${en.Status[a]}: ${s}`}),t.end()}}});var FO=h(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.openTelemetryClientMiddleware=void 0;var Eo=(b(),Y(Re)),kO=(fo(),Y(co)),XF=(iE(),Y(oE)),$t=gl(),HO=Xl(),JF=Jl(),Xi=Ql(),QF=ec();function ZF(){return(t,e)=>Xi.tracer.startActiveSpan((0,Xi.getSpanName)(t.method.path),{kind:Eo.SpanKind.CLIENT},n=>{let i=(0,$t.Metadata)(e.metadata);return Eo.propagation.inject(Eo.context.active(),i,JF.metadataSetter),(0,QF.bindAsyncGenerator)(Eo.context.active(),eY(n,t,{...e,metadata:i}))})}Ji.openTelemetryClientMiddleware=ZF;async function*eY(t,e,n){let i=(0,HO.getMethodAttributes)(e.method.path);t.setAttributes(i);let a=!1,s=$t.Status.OK,o;try{let r;if(e.requestStream?r=(0,Xi.emitSpanEvents)(e.request,t,kO.MESSAGETYPEVALUES_SENT):r=e.request,e.responseStream){yield*(0,Xi.emitSpanEvents)(e.next(r,n),t,kO.MESSAGETYPEVALUES_RECEIVED),a=!0;return}else{let u=yield*e.next(r,n);return a=!0,u}}catch(r){throw a=!0,r instanceof $t.ClientError?(s=r.code,o=r.details):(0,XF.isAbortError)(r)?(s=$t.Status.CANCELLED,o="The operation was cancelled"):(s=$t.Status.UNKNOWN,o="Unknown server error occurred",t.recordException(r)),r}finally{a||(s=$t.Status.CANCELLED,o="Stream iteration was aborted by client, e.g. by breaking from the for .. of loop");let r=(0,HO.getStatusAttributes)(s);t.setAttributes(r),s!==$t.Status.OK&&t.setStatus({code:Eo.SpanStatusCode.ERROR,message:`${$t.Status[s]}: ${o}`}),t.end()}}});var YO=h(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.openTelemetryClientMiddleware=tn.openTelemetryServerMiddleware=void 0;var tY=GO();Object.defineProperty(tn,"openTelemetryServerMiddleware",{enumerable:!0,get:function(){return tY.openTelemetryServerMiddleware}});var rY=FO();Object.defineProperty(tn,"openTelemetryClientMiddleware",{enumerable:!0,get:function(){return rY.openTelemetryClientMiddleware}})});var Fe=h((jQ,KO)=>{"use strict";var oc=class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
8
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:i,destStat:a}=io.checkPathsSync(t,e,"copy",n);if(io.checkParentPathsSync(t,i,e,"copy"),n.filter&&!n.filter(t,e))return;let s=oo.dirname(e);return Ce.existsSync(s)||mD(s),JE(a,t,e,n)}function JE(t,e,n,i){let s=(i.dereference?Ce.statSync:Ce.lstatSync)(e);if(s.isDirectory())return xD(s,t,e,n,i);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return OD(s,t,e,n,i);if(s.isSymbolicLink())return ID(t,e,n,i);throw s.isSocket()?new Error(`Cannot copy a socket file: ${e}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}function OD(t,e,n,i,a){return e?gD(t,n,i,a):QE(t,n,i,a)}function gD(t,e,n,i){if(i.overwrite)return Ce.unlinkSync(n),QE(t,e,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}function QE(t,e,n,i){return Ce.copyFileSync(e,n),i.preserveTimestamps&&ND(t.mode,e,n),Fl(n,t.mode)}function ND(t,e,n){return RD(t)&&PD(n,t),bD(e,n)}function RD(t){return(t&128)===0}function PD(t,e){return Fl(t,e|128)}function Fl(t,e){return Ce.chmodSync(t,e)}function bD(t,e){let n=Ce.statSync(t);return yD(e,n.atime,n.mtime)}function xD(t,e,n,i,a){return e?ZE(n,i,a):MD(t.mode,n,i,a)}function MD(t,e,n,i){return Ce.mkdirSync(n),ZE(e,n,i),Fl(n,t)}function ZE(t,e,n){Ce.readdirSync(t).forEach(i=>LD(i,t,e,n))}function LD(t,e,n,i){let a=oo.join(e,t),s=oo.join(n,t);if(i.filter&&!i.filter(a,s))return;let{destStat:o}=io.checkPathsSync(a,s,"copy",i);return JE(o,a,s,i)}function ID(t,e,n,i){let a=Ce.readlinkSync(e);if(i.dereference&&(a=oo.resolve(process.cwd(),a)),t){let s;try{s=Ce.readlinkSync(n)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return Ce.symlinkSync(a,n);throw o}if(i.dereference&&(s=oo.resolve(process.cwd(),s)),io.isSrcSubdir(a,s))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${s}'.`);if(io.isSrcSubdir(s,a))throw new Error(`Cannot overwrite '${s}' with '${a}'.`);return CD(a,n)}else return Ce.symlinkSync(a,n)}function CD(t,e){return Ce.unlinkSync(e),Ce.symlinkSync(t,e)}e_.exports=AD});var Hi=h((Q7,r_)=>{"use strict";var wD=Ee().fromPromise;r_.exports={copy:wD(XE()),copySync:t_()}});var ao=h((Z7,o_)=>{"use strict";var n_=zr(),UD=Ee().fromCallback;function DD(t,e){n_.rm(t,{recursive:!0,force:!0},e)}function VD(t){n_.rmSync(t,{recursive:!0,force:!0})}o_.exports={remove:UD(DD),removeSync:VD}});var p_=h((eQ,f_)=>{"use strict";var BD=Ee().fromPromise,s_=Ie(),u_=L("path"),l_=at(),c_=ao(),i_=BD(async function(e){let n;try{n=await s_.readdir(e)}catch{return l_.mkdirs(e)}return Promise.all(n.map(i=>c_.remove(u_.join(e,i))))});function a_(t){let e;try{e=s_.readdirSync(t)}catch{return l_.mkdirsSync(t)}e.forEach(n=>{n=u_.join(t,n),c_.removeSync(n)})}f_.exports={emptyDirSync:a_,emptydirSync:a_,emptyDir:i_,emptydir:i_}});var S_=h((tQ,__)=>{"use strict";var GD=Ee().fromPromise,d_=L("path"),Lt=Ie(),E_=at();async function kD(t){let e;try{e=await Lt.stat(t)}catch{}if(e&&e.isFile())return;let n=d_.dirname(t),i=null;try{i=await Lt.stat(n)}catch(a){if(a.code==="ENOENT"){await E_.mkdirs(n),await Lt.writeFile(t,"");return}else throw a}i.isDirectory()?await Lt.writeFile(t,""):await Lt.readdir(n)}function HD(t){let e;try{e=Lt.statSync(t)}catch{}if(e&&e.isFile())return;let n=d_.dirname(t);try{Lt.statSync(n).isDirectory()||Lt.readdirSync(n)}catch(i){if(i&&i.code==="ENOENT")E_.mkdirsSync(n);else throw i}Lt.writeFileSync(t,"")}__.exports={createFile:GD(kD),createFileSync:HD}});var y_=h((rQ,m_)=>{"use strict";var FD=Ee().fromPromise,h_=L("path"),Yt=Ie(),T_=at(),{pathExists:YD}=Ft(),{areIdentical:v_}=mr();async function qD(t,e){let n;try{n=await Yt.lstat(e)}catch{}let i;try{i=await Yt.lstat(t)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}if(n&&v_(i,n))return;let a=h_.dirname(e);await YD(a)||await T_.mkdirs(a),await Yt.link(t,e)}function jD(t,e){let n;try{n=Yt.lstatSync(e)}catch{}try{let s=Yt.lstatSync(t);if(n&&v_(s,n))return}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let i=h_.dirname(e);return Yt.existsSync(i)||T_.mkdirsSync(i),Yt.linkSync(t,e)}m_.exports={createLink:FD(qD),createLinkSync:jD}});var O_=h((nQ,A_)=>{"use strict";var qt=L("path"),so=Ie(),{pathExists:$D}=Ft(),KD=Ee().fromPromise;async function WD(t,e){if(qt.isAbsolute(t)){try{await so.lstat(t)}catch(s){throw s.message=s.message.replace("lstat","ensureSymlink"),s}return{toCwd:t,toDst:t}}let n=qt.dirname(e),i=qt.join(n,t);if(await $D(i))return{toCwd:i,toDst:t};try{await so.lstat(t)}catch(s){throw s.message=s.message.replace("lstat","ensureSymlink"),s}return{toCwd:t,toDst:qt.relative(n,t)}}function zD(t,e){if(qt.isAbsolute(t)){if(!so.existsSync(t))throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}let n=qt.dirname(e),i=qt.join(n,t);if(so.existsSync(i))return{toCwd:i,toDst:t};if(!so.existsSync(t))throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:qt.relative(n,t)}}A_.exports={symlinkPaths:KD(WD),symlinkPathsSync:zD}});var R_=h((oQ,N_)=>{"use strict";var g_=Ie(),XD=Ee().fromPromise;async function JD(t,e){if(e)return e;let n;try{n=await g_.lstat(t)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}function QD(t,e){if(e)return e;let n;try{n=g_.lstatSync(t)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}N_.exports={symlinkType:XD(JD),symlinkTypeSync:QD}});var M_=h((iQ,x_)=>{"use strict";var ZD=Ee().fromPromise,P_=L("path"),_t=Ie(),{mkdirs:e1,mkdirsSync:t1}=at(),{symlinkPaths:r1,symlinkPathsSync:n1}=O_(),{symlinkType:o1,symlinkTypeSync:i1}=R_(),{pathExists:a1}=Ft(),{areIdentical:b_}=mr();async function s1(t,e,n){let i;try{i=await _t.lstat(e)}catch{}if(i&&i.isSymbolicLink()){let[r,u]=await Promise.all([_t.stat(t),_t.stat(e)]);if(b_(r,u))return}let a=await r1(t,e);t=a.toDst;let s=await o1(a.toCwd,n),o=P_.dirname(e);return await a1(o)||await e1(o),_t.symlink(t,e,s)}function u1(t,e,n){let i;try{i=_t.lstatSync(e)}catch{}if(i&&i.isSymbolicLink()){let r=_t.statSync(t),u=_t.statSync(e);if(b_(r,u))return}let a=n1(t,e);t=a.toDst,n=i1(a.toCwd,n);let s=P_.dirname(e);return _t.existsSync(s)||t1(s),_t.symlinkSync(t,e,n)}x_.exports={createSymlink:ZD(s1),createSymlinkSync:u1}});var B_=h((aQ,V_)=>{"use strict";var{createFile:L_,createFileSync:I_}=S_(),{createLink:C_,createLinkSync:w_}=y_(),{createSymlink:U_,createSymlinkSync:D_}=M_();V_.exports={createFile:L_,createFileSync:I_,ensureFile:L_,ensureFileSync:I_,createLink:C_,createLinkSync:w_,ensureLink:C_,ensureLinkSync:w_,createSymlink:U_,createSymlinkSync:D_,ensureSymlink:U_,ensureSymlinkSync:D_}});var Fi=h((sQ,G_)=>{"use strict";function l1(t,{EOL:e=`
|
9
|
+
`,finalEOL:n=!0,replacer:i=null,spaces:a}={}){let s=n?e:"";return JSON.stringify(t,i,a).replace(/\n/g,e)+s}function c1(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}G_.exports={stringify:l1,stripBom:c1}});var Y_=h((uQ,F_)=>{"use strict";var Qr;try{Qr=zr()}catch{Qr=L("fs")}var Yi=Ee(),{stringify:k_,stripBom:H_}=Fi();async function f1(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||Qr,i="throws"in e?e.throws:!0,a=await Yi.fromCallback(n.readFile)(t,e);a=H_(a);let s;try{s=JSON.parse(a,e?e.reviver:null)}catch(o){if(i)throw o.message=`${t}: ${o.message}`,o;return null}return s}var p1=Yi.fromPromise(f1);function d1(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||Qr,i="throws"in e?e.throws:!0;try{let a=n.readFileSync(t,e);return a=H_(a),JSON.parse(a,e.reviver)}catch(a){if(i)throw a.message=`${t}: ${a.message}`,a;return null}}async function E1(t,e,n={}){let i=n.fs||Qr,a=k_(e,n);await Yi.fromCallback(i.writeFile)(t,a,n)}var _1=Yi.fromPromise(E1);function S1(t,e,n={}){let i=n.fs||Qr,a=k_(e,n);return i.writeFileSync(t,a,n)}var h1={readFile:p1,readFileSync:d1,writeFile:_1,writeFileSync:S1};F_.exports=h1});var j_=h((lQ,q_)=>{"use strict";var qi=Y_();q_.exports={readJson:qi.readFile,readJsonSync:qi.readFileSync,writeJson:qi.writeFile,writeJsonSync:qi.writeFileSync}});var ji=h((cQ,W_)=>{"use strict";var T1=Ee().fromPromise,Yl=Ie(),$_=L("path"),K_=at(),v1=Ft().pathExists;async function m1(t,e,n="utf-8"){let i=$_.dirname(t);return await v1(i)||await K_.mkdirs(i),Yl.writeFile(t,e,n)}function y1(t,...e){let n=$_.dirname(t);Yl.existsSync(n)||K_.mkdirsSync(n),Yl.writeFileSync(t,...e)}W_.exports={outputFile:T1(m1),outputFileSync:y1}});var X_=h((fQ,z_)=>{"use strict";var{stringify:A1}=Fi(),{outputFile:O1}=ji();async function g1(t,e,n={}){let i=A1(e,n);await O1(t,i,n)}z_.exports=g1});var Q_=h((pQ,J_)=>{"use strict";var{stringify:N1}=Fi(),{outputFileSync:R1}=ji();function P1(t,e,n){let i=N1(e,n);R1(t,i,n)}J_.exports=P1});var eS=h((dQ,Z_)=>{"use strict";var b1=Ee().fromPromise,we=j_();we.outputJson=b1(X_());we.outputJsonSync=Q_();we.outputJSON=we.outputJson;we.outputJSONSync=we.outputJsonSync;we.writeJSON=we.writeJson;we.writeJSONSync=we.writeJsonSync;we.readJSON=we.readJson;we.readJSONSync=we.readJsonSync;Z_.exports=we});var iS=h((EQ,oS)=>{"use strict";var x1=Ie(),tS=L("path"),{copy:M1}=Hi(),{remove:nS}=ao(),{mkdirp:L1}=at(),{pathExists:I1}=Ft(),rS=mr();async function C1(t,e,n={}){let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:s=!1}=await rS.checkPaths(t,e,"move",n);await rS.checkParentPaths(t,a,e,"move");let o=tS.dirname(e);return tS.parse(o).root!==o&&await L1(o),w1(t,e,i,s)}async function w1(t,e,n,i){if(!i){if(n)await nS(e);else if(await I1(e))throw new Error("dest already exists.")}try{await x1.rename(t,e)}catch(a){if(a.code!=="EXDEV")throw a;await U1(t,e,n)}}async function U1(t,e,n){return await M1(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),nS(t)}oS.exports=C1});var cS=h((_Q,lS)=>{"use strict";var sS=zr(),jl=L("path"),D1=Hi().copySync,uS=ao().removeSync,V1=at().mkdirpSync,aS=mr();function B1(t,e,n){n=n||{};let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:s=!1}=aS.checkPathsSync(t,e,"move",n);return aS.checkParentPathsSync(t,a,e,"move"),G1(e)||V1(jl.dirname(e)),k1(t,e,i,s)}function G1(t){let e=jl.dirname(t);return jl.parse(e).root===e}function k1(t,e,n,i){if(i)return ql(t,e,n);if(n)return uS(e),ql(t,e,n);if(sS.existsSync(e))throw new Error("dest already exists.");return ql(t,e,n)}function ql(t,e,n){try{sS.renameSync(t,e)}catch(i){if(i.code!=="EXDEV")throw i;return H1(t,e,n)}}function H1(t,e,n){return D1(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),uS(t)}lS.exports=B1});var pS=h((SQ,fS)=>{"use strict";var F1=Ee().fromPromise;fS.exports={move:F1(iS()),moveSync:cS()}});var $l=h((hQ,dS)=>{"use strict";dS.exports={...Ie(),...Hi(),...p_(),...B_(),...eS(),...at(),...pS(),...ji(),...Ft(),...ao()}});function fe(t){for(var e={},n=t.length,i=0;i<n;i++){var a=t[i];a&&(e[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return e}var tc=m(()=>{"use strict"});var gS,NS,RS,PS,bS,xS,MS,LS,IS,CS,wS,US,DS,VS,BS,GS,kS,HS,FS,YS,qS,jS,$S,KS,WS,zS,XS,JS,QS,ZS,eh,th,rh,nh,oh,ih,ah,sh,uh,lh,ch,fh,ph,dh,Eh,_h,Sh,hh,Th,vh,mh,yh,Ah,Oh,gh,Nh,Rh,Ph,bh,xh,Mh,Lh,Ih,Ch,wh,Uh,Dh,Vh,Bh,Gh,kh,Hh,Fh,Yh,qh,jh,$h,Kh,Wh,zh,Xh,Jh,Qh,Zh,eT,tT,rT,nT,oT,iT,aT,sT,uT,lT,cT,fT,pT,dT,ET,_T,ST,hT,TT,vT,mT,yT,AT,OT,gT,NT,RT,PT,bT,xT,MT,LT,IT,CT,wT,UT,DT,VT,BT,GT,kT,HT,FT,YT,cV,fV,pV,dV,EV,_V,SV,hV,TV,vV,mV,yV,AV,OV,gV,NV,RV,PV,bV,xV,MV,LV,IV,CV,wV,UV,DV,VV,BV,GV,kV,HV,FV,YV,qV,jV,$V,KV,WV,zV,XV,JV,QV,ZV,e2,t2,r2,n2,o2,i2,a2,s2,u2,l2,c2,f2,p2,d2,E2,_2,S2,h2,T2,v2,m2,y2,A2,O2,g2,N2,R2,P2,b2,x2,M2,L2,I2,C2,w2,U2,D2,V2,B2,G2,k2,H2,F2,Y2,q2,j2,$2,K2,W2,z2,X2,J2,Q2,Z2,eB,tB,rB,nB,oB,iB,aB,sB,uB,lB,cB,fB,pB,dB,EB,_B,SB,hB,TB,vB,mB,yB,AB,OB,gB,NB,RB,PB,bB,xB,MB,qT,jT,$T,KT,WT,zT,XT,JT,QT,ZT,ev,tv,rv,nv,ov,iv,av,sv,uv,lv,cv,fv,pv,dv,Ev,_v,Sv,hv,Tv,vv,mv,yv,Av,Ov,gv,Nv,Rv,Pv,bv,xv,Mv,Lv,Iv,Cv,wv,Uv,Dv,LB,IB,CB,wB,UB,DB,VB,BB,GB,kB,HB,FB,YB,qB,jB,$B,KB,WB,zB,XB,JB,QB,ZB,eG,tG,rG,nG,oG,iG,aG,sG,uG,lG,cG,fG,pG,dG,EG,_G,SG,hG,TG,vG,mG,yG,AG,OG,gG,Vv,Bv,Gv,kv,Hv,Fv,Yv,qv,jv,$v,Kv,NG,RG,PG,bG,xG,MG,LG,IG,CG,wG,UG,DG,Wv,zv,Xv,Jv,Qv,VG,BG,GG,kG,HG,FG,Zv,em,tm,YG,qG,jG,$G,rm,nm,om,im,KG,WG,zG,XG,JG,am,sm,um,lm,cm,fm,pm,QG,ZG,ek,tk,rk,nk,ok,ik,dm,Em,_m,Sm,hm,ak,sk,uk,lk,ck,fk,Tm,vm,mm,ym,Am,Om,gm,Nm,Rm,Pm,bm,xm,Mm,Lm,Im,Cm,wm,Um,Dm,Vm,Bm,pk,dk,Ek,_k,Sk,hk,Tk,vk,mk,yk,Ak,Ok,gk,Nk,Rk,Pk,bk,xk,Mk,Lk,Ik,Ck,Gm,km,Hm,Fm,Ym,wk,Uk,Dk,Vk,Bk,Gk,qm,jm,kk,Hk,Fk,$m,Km,Yk,qk,jk,Wm,zm,Xm,Jm,Qm,Zm,ey,ty,ry,ny,oy,iy,ay,sy,uy,ly,cy,$k,Kk,Wk,zk,Xk,Jk,Qk,Zk,eH,tH,rH,nH,oH,iH,aH,sH,uH,lH,fy,py,cH,fH,pH,dy=m(()=>{"use strict";tc();gS="aws.lambda.invoked_arn",NS="db.system",RS="db.connection_string",PS="db.user",bS="db.jdbc.driver_classname",xS="db.name",MS="db.statement",LS="db.operation",IS="db.mssql.instance_name",CS="db.cassandra.keyspace",wS="db.cassandra.page_size",US="db.cassandra.consistency_level",DS="db.cassandra.table",VS="db.cassandra.idempotence",BS="db.cassandra.speculative_execution_count",GS="db.cassandra.coordinator.id",kS="db.cassandra.coordinator.dc",HS="db.hbase.namespace",FS="db.redis.database_index",YS="db.mongodb.collection",qS="db.sql.table",jS="exception.type",$S="exception.message",KS="exception.stacktrace",WS="exception.escaped",zS="faas.trigger",XS="faas.execution",JS="faas.document.collection",QS="faas.document.operation",ZS="faas.document.time",eh="faas.document.name",th="faas.time",rh="faas.cron",nh="faas.coldstart",oh="faas.invoked_name",ih="faas.invoked_provider",ah="faas.invoked_region",sh="net.transport",uh="net.peer.ip",lh="net.peer.port",ch="net.peer.name",fh="net.host.ip",ph="net.host.port",dh="net.host.name",Eh="net.host.connection.type",_h="net.host.connection.subtype",Sh="net.host.carrier.name",hh="net.host.carrier.mcc",Th="net.host.carrier.mnc",vh="net.host.carrier.icc",mh="peer.service",yh="enduser.id",Ah="enduser.role",Oh="enduser.scope",gh="thread.id",Nh="thread.name",Rh="code.function",Ph="code.namespace",bh="code.filepath",xh="code.lineno",Mh="http.method",Lh="http.url",Ih="http.target",Ch="http.host",wh="http.scheme",Uh="http.status_code",Dh="http.flavor",Vh="http.user_agent",Bh="http.request_content_length",Gh="http.request_content_length_uncompressed",kh="http.response_content_length",Hh="http.response_content_length_uncompressed",Fh="http.server_name",Yh="http.route",qh="http.client_ip",jh="aws.dynamodb.table_names",$h="aws.dynamodb.consumed_capacity",Kh="aws.dynamodb.item_collection_metrics",Wh="aws.dynamodb.provisioned_read_capacity",zh="aws.dynamodb.provisioned_write_capacity",Xh="aws.dynamodb.consistent_read",Jh="aws.dynamodb.projection",Qh="aws.dynamodb.limit",Zh="aws.dynamodb.attributes_to_get",eT="aws.dynamodb.index_name",tT="aws.dynamodb.select",rT="aws.dynamodb.global_secondary_indexes",nT="aws.dynamodb.local_secondary_indexes",oT="aws.dynamodb.exclusive_start_table",iT="aws.dynamodb.table_count",aT="aws.dynamodb.scan_forward",sT="aws.dynamodb.segment",uT="aws.dynamodb.total_segments",lT="aws.dynamodb.count",cT="aws.dynamodb.scanned_count",fT="aws.dynamodb.attribute_definitions",pT="aws.dynamodb.global_secondary_index_updates",dT="messaging.system",ET="messaging.destination",_T="messaging.destination_kind",ST="messaging.temp_destination",hT="messaging.protocol",TT="messaging.protocol_version",vT="messaging.url",mT="messaging.message_id",yT="messaging.conversation_id",AT="messaging.message_payload_size_bytes",OT="messaging.message_payload_compressed_size_bytes",gT="messaging.operation",NT="messaging.consumer_id",RT="messaging.rabbitmq.routing_key",PT="messaging.kafka.message_key",bT="messaging.kafka.consumer_group",xT="messaging.kafka.client_id",MT="messaging.kafka.partition",LT="messaging.kafka.tombstone",IT="rpc.system",CT="rpc.service",wT="rpc.method",UT="rpc.grpc.status_code",DT="rpc.jsonrpc.version",VT="rpc.jsonrpc.request_id",BT="rpc.jsonrpc.error_code",GT="rpc.jsonrpc.error_message",kT="message.type",HT="message.id",FT="message.compressed_size",YT="message.uncompressed_size",cV=gS,fV=NS,pV=RS,dV=PS,EV=bS,_V=xS,SV=MS,hV=LS,TV=IS,vV=CS,mV=wS,yV=US,AV=DS,OV=VS,gV=BS,NV=GS,RV=kS,PV=HS,bV=FS,xV=YS,MV=qS,LV=jS,IV=$S,CV=KS,wV=WS,UV=zS,DV=XS,VV=JS,BV=QS,GV=ZS,kV=eh,HV=th,FV=rh,YV=nh,qV=oh,jV=ih,$V=ah,KV=sh,WV=uh,zV=lh,XV=ch,JV=fh,QV=ph,ZV=dh,e2=Eh,t2=_h,r2=Sh,n2=hh,o2=Th,i2=vh,a2=mh,s2=yh,u2=Ah,l2=Oh,c2=gh,f2=Nh,p2=Rh,d2=Ph,E2=bh,_2=xh,S2=Mh,h2=Lh,T2=Ih,v2=Ch,m2=wh,y2=Uh,A2=Dh,O2=Vh,g2=Bh,N2=Gh,R2=kh,P2=Hh,b2=Fh,x2=Yh,M2=qh,L2=jh,I2=$h,C2=Kh,w2=Wh,U2=zh,D2=Xh,V2=Jh,B2=Qh,G2=Zh,k2=eT,H2=tT,F2=rT,Y2=nT,q2=oT,j2=iT,$2=aT,K2=sT,W2=uT,z2=lT,X2=cT,J2=fT,Q2=pT,Z2=dT,eB=ET,tB=_T,rB=ST,nB=hT,oB=TT,iB=vT,aB=mT,sB=yT,uB=AT,lB=OT,cB=gT,fB=NT,pB=RT,dB=PT,EB=bT,_B=xT,SB=MT,hB=LT,TB=IT,vB=CT,mB=wT,yB=UT,AB=DT,OB=VT,gB=BT,NB=GT,RB=kT,PB=HT,bB=FT,xB=YT,MB=fe([gS,NS,RS,PS,bS,xS,MS,LS,IS,CS,wS,US,DS,VS,BS,GS,kS,HS,FS,YS,qS,jS,$S,KS,WS,zS,XS,JS,QS,ZS,eh,th,rh,nh,oh,ih,ah,sh,uh,lh,ch,fh,ph,dh,Eh,_h,Sh,hh,Th,vh,mh,yh,Ah,Oh,gh,Nh,Rh,Ph,bh,xh,Mh,Lh,Ih,Ch,wh,Uh,Dh,Vh,Bh,Gh,kh,Hh,Fh,Yh,qh,jh,$h,Kh,Wh,zh,Xh,Jh,Qh,Zh,eT,tT,rT,nT,oT,iT,aT,sT,uT,lT,cT,fT,pT,dT,ET,_T,ST,hT,TT,vT,mT,yT,AT,OT,gT,NT,RT,PT,bT,xT,MT,LT,IT,CT,wT,UT,DT,VT,BT,GT,kT,HT,FT,YT]),qT="other_sql",jT="mssql",$T="mysql",KT="oracle",WT="db2",zT="postgresql",XT="redshift",JT="hive",QT="cloudscape",ZT="hsqldb",ev="progress",tv="maxdb",rv="hanadb",nv="ingres",ov="firstsql",iv="edb",av="cache",sv="adabas",uv="firebird",lv="derby",cv="filemaker",fv="informix",pv="instantdb",dv="interbase",Ev="mariadb",_v="netezza",Sv="pervasive",hv="pointbase",Tv="sqlite",vv="sybase",mv="teradata",yv="vertica",Av="h2",Ov="coldfusion",gv="cassandra",Nv="hbase",Rv="mongodb",Pv="redis",bv="couchbase",xv="couchdb",Mv="cosmosdb",Lv="dynamodb",Iv="neo4j",Cv="geode",wv="elasticsearch",Uv="memcached",Dv="cockroachdb",LB=qT,IB=jT,CB=$T,wB=KT,UB=WT,DB=zT,VB=XT,BB=JT,GB=QT,kB=ZT,HB=ev,FB=tv,YB=rv,qB=nv,jB=ov,$B=iv,KB=av,WB=sv,zB=uv,XB=lv,JB=cv,QB=fv,ZB=pv,eG=dv,tG=Ev,rG=_v,nG=Sv,oG=hv,iG=Tv,aG=vv,sG=mv,uG=yv,lG=Av,cG=Ov,fG=gv,pG=Nv,dG=Rv,EG=Pv,_G=bv,SG=xv,hG=Mv,TG=Lv,vG=Iv,mG=Cv,yG=wv,AG=Uv,OG=Dv,gG=fe([qT,jT,$T,KT,WT,zT,XT,JT,QT,ZT,ev,tv,rv,nv,ov,iv,av,sv,uv,lv,cv,fv,pv,dv,Ev,_v,Sv,hv,Tv,vv,mv,yv,Av,Ov,gv,Nv,Rv,Pv,bv,xv,Mv,Lv,Iv,Cv,wv,Uv,Dv]),Vv="all",Bv="each_quorum",Gv="quorum",kv="local_quorum",Hv="one",Fv="two",Yv="three",qv="local_one",jv="any",$v="serial",Kv="local_serial",NG=Vv,RG=Bv,PG=Gv,bG=kv,xG=Hv,MG=Fv,LG=Yv,IG=qv,CG=jv,wG=$v,UG=Kv,DG=fe([Vv,Bv,Gv,kv,Hv,Fv,Yv,qv,jv,$v,Kv]),Wv="datasource",zv="http",Xv="pubsub",Jv="timer",Qv="other",VG=Wv,BG=zv,GG=Xv,kG=Jv,HG=Qv,FG=fe([Wv,zv,Xv,Jv,Qv]),Zv="insert",em="edit",tm="delete",YG=Zv,qG=em,jG=tm,$G=fe([Zv,em,tm]),rm="alibaba_cloud",nm="aws",om="azure",im="gcp",KG=rm,WG=nm,zG=om,XG=im,JG=fe([rm,nm,om,im]),am="ip_tcp",sm="ip_udp",um="ip",lm="unix",cm="pipe",fm="inproc",pm="other",QG=am,ZG=sm,ek=um,tk=lm,rk=cm,nk=fm,ok=pm,ik=fe([am,sm,um,lm,cm,fm,pm]),dm="wifi",Em="wired",_m="cell",Sm="unavailable",hm="unknown",ak=dm,sk=Em,uk=_m,lk=Sm,ck=hm,fk=fe([dm,Em,_m,Sm,hm]),Tm="gprs",vm="edge",mm="umts",ym="cdma",Am="evdo_0",Om="evdo_a",gm="cdma2000_1xrtt",Nm="hsdpa",Rm="hsupa",Pm="hspa",bm="iden",xm="evdo_b",Mm="lte",Lm="ehrpd",Im="hspap",Cm="gsm",wm="td_scdma",Um="iwlan",Dm="nr",Vm="nrnsa",Bm="lte_ca",pk=Tm,dk=vm,Ek=mm,_k=ym,Sk=Am,hk=Om,Tk=gm,vk=Nm,mk=Rm,yk=Pm,Ak=bm,Ok=xm,gk=Mm,Nk=Lm,Rk=Im,Pk=Cm,bk=wm,xk=Um,Mk=Dm,Lk=Vm,Ik=Bm,Ck=fe([Tm,vm,mm,ym,Am,Om,gm,Nm,Rm,Pm,bm,xm,Mm,Lm,Im,Cm,wm,Um,Dm,Vm,Bm]),Gm="1.0",km="1.1",Hm="2.0",Fm="SPDY",Ym="QUIC",wk=Gm,Uk=km,Dk=Hm,Vk=Fm,Bk=Ym,Gk={HTTP_1_0:Gm,HTTP_1_1:km,HTTP_2_0:Hm,SPDY:Fm,QUIC:Ym},qm="queue",jm="topic",kk=qm,Hk=jm,Fk=fe([qm,jm]),$m="receive",Km="process",Yk=$m,qk=Km,jk=fe([$m,Km]),Wm=0,zm=1,Xm=2,Jm=3,Qm=4,Zm=5,ey=6,ty=7,ry=8,ny=9,oy=10,iy=11,ay=12,sy=13,uy=14,ly=15,cy=16,$k=Wm,Kk=zm,Wk=Xm,zk=Jm,Xk=Qm,Jk=Zm,Qk=ey,Zk=ty,eH=ry,tH=ny,rH=oy,nH=iy,oH=ay,iH=sy,aH=uy,sH=ly,uH=cy,lH={OK:Wm,CANCELLED:zm,UNKNOWN:Xm,INVALID_ARGUMENT:Jm,DEADLINE_EXCEEDED:Qm,NOT_FOUND:Zm,ALREADY_EXISTS:ey,PERMISSION_DENIED:ty,RESOURCE_EXHAUSTED:ry,FAILED_PRECONDITION:ny,ABORTED:oy,OUT_OF_RANGE:iy,UNIMPLEMENTED:ay,INTERNAL:sy,UNAVAILABLE:uy,DATA_LOSS:ly,UNAUTHENTICATED:cy},fy="SENT",py="RECEIVED",cH=fy,fH=py,pH=fe([fy,py])});var Ey=m(()=>{"use strict";dy()});var _y,Sy,hy,Ty,vy,my,yy,Ay,Oy,gy,Ny,Ry,Py,by,xy,My,Ly,Iy,Cy,wy,Uy,Dy,Vy,By,Gy,ky,Hy,Fy,Yy,qy,jy,$y,Ky,Wy,zy,Xy,Jy,Qy,Zy,eA,tA,rA,nA,oA,iA,aA,sA,uA,lA,cA,fA,pA,dA,EA,_A,SA,hA,TA,vA,mA,yA,AA,OA,gA,NA,RA,PA,bA,xA,MA,LA,IA,CA,wA,UA,DA,VA,BA,GA,kA,HA,dH,EH,_H,SH,hH,TH,vH,mH,yH,AH,OH,gH,NH,RH,PH,bH,xH,MH,LH,IH,CH,wH,UH,DH,VH,BH,GH,kH,HH,FH,YH,qH,jH,$H,KH,WH,zH,XH,JH,QH,ZH,e3,t3,r3,n3,o3,i3,a3,s3,u3,l3,c3,f3,p3,d3,E3,_3,S3,h3,T3,v3,m3,y3,A3,O3,g3,N3,R3,P3,b3,x3,M3,L3,I3,C3,w3,U3,D3,V3,B3,G3,k3,FA,YA,qA,jA,H3,F3,Y3,q3,j3,$A,KA,WA,zA,XA,JA,QA,ZA,eO,tO,rO,nO,oO,iO,aO,sO,uO,$3,K3,W3,z3,X3,J3,Q3,Z3,eF,tF,rF,nF,oF,iF,aF,sF,uF,lF,lO,cO,cF,fF,pF,fO,pO,dO,EO,_O,SO,hO,dF,EF,_F,SF,hF,TF,vF,mF,TO,vO,mO,yO,AO,OO,gO,NO,RO,PO,bO,yF,AF,OF,gF,NF,RF,PF,bF,xF,MF,LF,IF,xO,MO,LO,IO,CO,wO,UO,DO,VO,BO,CF,wF,UF,DF,VF,BF,GF,kF,HF,FF,YF,GO=m(()=>{"use strict";tc();_y="cloud.provider",Sy="cloud.account.id",hy="cloud.region",Ty="cloud.availability_zone",vy="cloud.platform",my="aws.ecs.container.arn",yy="aws.ecs.cluster.arn",Ay="aws.ecs.launchtype",Oy="aws.ecs.task.arn",gy="aws.ecs.task.family",Ny="aws.ecs.task.revision",Ry="aws.eks.cluster.arn",Py="aws.log.group.names",by="aws.log.group.arns",xy="aws.log.stream.names",My="aws.log.stream.arns",Ly="container.name",Iy="container.id",Cy="container.runtime",wy="container.image.name",Uy="container.image.tag",Dy="deployment.environment",Vy="device.id",By="device.model.identifier",Gy="device.model.name",ky="faas.name",Hy="faas.id",Fy="faas.version",Yy="faas.instance",qy="faas.max_memory",jy="host.id",$y="host.name",Ky="host.type",Wy="host.arch",zy="host.image.name",Xy="host.image.id",Jy="host.image.version",Qy="k8s.cluster.name",Zy="k8s.node.name",eA="k8s.node.uid",tA="k8s.namespace.name",rA="k8s.pod.uid",nA="k8s.pod.name",oA="k8s.container.name",iA="k8s.replicaset.uid",aA="k8s.replicaset.name",sA="k8s.deployment.uid",uA="k8s.deployment.name",lA="k8s.statefulset.uid",cA="k8s.statefulset.name",fA="k8s.daemonset.uid",pA="k8s.daemonset.name",dA="k8s.job.uid",EA="k8s.job.name",_A="k8s.cronjob.uid",SA="k8s.cronjob.name",hA="os.type",TA="os.description",vA="os.name",mA="os.version",yA="process.pid",AA="process.executable.name",OA="process.executable.path",gA="process.command",NA="process.command_line",RA="process.command_args",PA="process.owner",bA="process.runtime.name",xA="process.runtime.version",MA="process.runtime.description",LA="service.name",IA="service.namespace",CA="service.instance.id",wA="service.version",UA="telemetry.sdk.name",DA="telemetry.sdk.language",VA="telemetry.sdk.version",BA="telemetry.auto.version",GA="webengine.name",kA="webengine.version",HA="webengine.description",dH=_y,EH=Sy,_H=hy,SH=Ty,hH=vy,TH=my,vH=yy,mH=Ay,yH=Oy,AH=gy,OH=Ny,gH=Ry,NH=Py,RH=by,PH=xy,bH=My,xH=Ly,MH=Iy,LH=Cy,IH=wy,CH=Uy,wH=Dy,UH=Vy,DH=By,VH=Gy,BH=ky,GH=Hy,kH=Fy,HH=Yy,FH=qy,YH=jy,qH=$y,jH=Ky,$H=Wy,KH=zy,WH=Xy,zH=Jy,XH=Qy,JH=Zy,QH=eA,ZH=tA,e3=rA,t3=nA,r3=oA,n3=iA,o3=aA,i3=sA,a3=uA,s3=lA,u3=cA,l3=fA,c3=pA,f3=dA,p3=EA,d3=_A,E3=SA,_3=hA,S3=TA,h3=vA,T3=mA,v3=yA,m3=AA,y3=OA,A3=gA,O3=NA,g3=RA,N3=PA,R3=bA,P3=xA,b3=MA,x3=LA,M3=IA,L3=CA,I3=wA,C3=UA,w3=DA,U3=VA,D3=BA,V3=GA,B3=kA,G3=HA,k3=fe([_y,Sy,hy,Ty,vy,my,yy,Ay,Oy,gy,Ny,Ry,Py,by,xy,My,Ly,Iy,Cy,wy,Uy,Dy,Vy,By,Gy,ky,Hy,Fy,Yy,qy,jy,$y,Ky,Wy,zy,Xy,Jy,Qy,Zy,eA,tA,rA,nA,oA,iA,aA,sA,uA,lA,cA,fA,pA,dA,EA,_A,SA,hA,TA,vA,mA,yA,AA,OA,gA,NA,RA,PA,bA,xA,MA,LA,IA,CA,wA,UA,DA,VA,BA,GA,kA,HA]),FA="alibaba_cloud",YA="aws",qA="azure",jA="gcp",H3=FA,F3=YA,Y3=qA,q3=jA,j3=fe([FA,YA,qA,jA]),$A="alibaba_cloud_ecs",KA="alibaba_cloud_fc",WA="aws_ec2",zA="aws_ecs",XA="aws_eks",JA="aws_lambda",QA="aws_elastic_beanstalk",ZA="azure_vm",eO="azure_container_instances",tO="azure_aks",rO="azure_functions",nO="azure_app_service",oO="gcp_compute_engine",iO="gcp_cloud_run",aO="gcp_kubernetes_engine",sO="gcp_cloud_functions",uO="gcp_app_engine",$3=$A,K3=KA,W3=WA,z3=zA,X3=XA,J3=JA,Q3=QA,Z3=ZA,eF=eO,tF=tO,rF=rO,nF=nO,oF=oO,iF=iO,aF=aO,sF=sO,uF=uO,lF=fe([$A,KA,WA,zA,XA,JA,QA,ZA,eO,tO,rO,nO,oO,iO,aO,sO,uO]),lO="ec2",cO="fargate",cF=lO,fF=cO,pF=fe([lO,cO]),fO="amd64",pO="arm32",dO="arm64",EO="ia64",_O="ppc32",SO="ppc64",hO="x86",dF=fO,EF=pO,_F=dO,SF=EO,hF=_O,TF=SO,vF=hO,mF=fe([fO,pO,dO,EO,_O,SO,hO]),TO="windows",vO="linux",mO="darwin",yO="freebsd",AO="netbsd",OO="openbsd",gO="dragonflybsd",NO="hpux",RO="aix",PO="solaris",bO="z_os",yF=TO,AF=vO,OF=mO,gF=yO,NF=AO,RF=OO,PF=gO,bF=NO,xF=RO,MF=PO,LF=bO,IF=fe([TO,vO,mO,yO,AO,OO,gO,NO,RO,PO,bO]),xO="cpp",MO="dotnet",LO="erlang",IO="go",CO="java",wO="nodejs",UO="php",DO="python",VO="ruby",BO="webjs",CF=xO,wF=MO,UF=LO,DF=IO,VF=CO,BF=wO,GF=UO,kF=DO,HF=VO,FF=BO,YF=fe([xO,MO,LO,IO,CO,wO,UO,DO,VO,BO])});var kO=m(()=>{"use strict";GO()});var po={};nt(po,{AWSECSLAUNCHTYPEVALUES_EC2:()=>cF,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>fF,AwsEcsLaunchtypeValues:()=>pF,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>$3,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>K3,CLOUDPLATFORMVALUES_AWS_EC2:()=>W3,CLOUDPLATFORMVALUES_AWS_ECS:()=>z3,CLOUDPLATFORMVALUES_AWS_EKS:()=>X3,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>Q3,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>J3,CLOUDPLATFORMVALUES_AZURE_AKS:()=>tF,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>nF,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>eF,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>rF,CLOUDPLATFORMVALUES_AZURE_VM:()=>Z3,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>uF,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>sF,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>iF,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>oF,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>aF,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>H3,CLOUDPROVIDERVALUES_AWS:()=>F3,CLOUDPROVIDERVALUES_AZURE:()=>Y3,CLOUDPROVIDERVALUES_GCP:()=>q3,CloudPlatformValues:()=>lF,CloudProviderValues:()=>j3,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>NG,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>CG,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>RG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>IG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>bG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>UG,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>xG,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>PG,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>wG,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>LG,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>MG,DBSYSTEMVALUES_ADABAS:()=>WB,DBSYSTEMVALUES_CACHE:()=>KB,DBSYSTEMVALUES_CASSANDRA:()=>fG,DBSYSTEMVALUES_CLOUDSCAPE:()=>GB,DBSYSTEMVALUES_COCKROACHDB:()=>OG,DBSYSTEMVALUES_COLDFUSION:()=>cG,DBSYSTEMVALUES_COSMOSDB:()=>hG,DBSYSTEMVALUES_COUCHBASE:()=>_G,DBSYSTEMVALUES_COUCHDB:()=>SG,DBSYSTEMVALUES_DB2:()=>UB,DBSYSTEMVALUES_DERBY:()=>XB,DBSYSTEMVALUES_DYNAMODB:()=>TG,DBSYSTEMVALUES_EDB:()=>$B,DBSYSTEMVALUES_ELASTICSEARCH:()=>yG,DBSYSTEMVALUES_FILEMAKER:()=>JB,DBSYSTEMVALUES_FIREBIRD:()=>zB,DBSYSTEMVALUES_FIRSTSQL:()=>jB,DBSYSTEMVALUES_GEODE:()=>mG,DBSYSTEMVALUES_H2:()=>lG,DBSYSTEMVALUES_HANADB:()=>YB,DBSYSTEMVALUES_HBASE:()=>pG,DBSYSTEMVALUES_HIVE:()=>BB,DBSYSTEMVALUES_HSQLDB:()=>kB,DBSYSTEMVALUES_INFORMIX:()=>QB,DBSYSTEMVALUES_INGRES:()=>qB,DBSYSTEMVALUES_INSTANTDB:()=>ZB,DBSYSTEMVALUES_INTERBASE:()=>eG,DBSYSTEMVALUES_MARIADB:()=>tG,DBSYSTEMVALUES_MAXDB:()=>FB,DBSYSTEMVALUES_MEMCACHED:()=>AG,DBSYSTEMVALUES_MONGODB:()=>dG,DBSYSTEMVALUES_MSSQL:()=>IB,DBSYSTEMVALUES_MYSQL:()=>CB,DBSYSTEMVALUES_NEO4J:()=>vG,DBSYSTEMVALUES_NETEZZA:()=>rG,DBSYSTEMVALUES_ORACLE:()=>wB,DBSYSTEMVALUES_OTHER_SQL:()=>LB,DBSYSTEMVALUES_PERVASIVE:()=>nG,DBSYSTEMVALUES_POINTBASE:()=>oG,DBSYSTEMVALUES_POSTGRESQL:()=>DB,DBSYSTEMVALUES_PROGRESS:()=>HB,DBSYSTEMVALUES_REDIS:()=>EG,DBSYSTEMVALUES_REDSHIFT:()=>VB,DBSYSTEMVALUES_SQLITE:()=>iG,DBSYSTEMVALUES_SYBASE:()=>aG,DBSYSTEMVALUES_TERADATA:()=>sG,DBSYSTEMVALUES_VERTICA:()=>uG,DbCassandraConsistencyLevelValues:()=>DG,DbSystemValues:()=>gG,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>jG,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>qG,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>YG,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>KG,FAASINVOKEDPROVIDERVALUES_AWS:()=>WG,FAASINVOKEDPROVIDERVALUES_AZURE:()=>zG,FAASINVOKEDPROVIDERVALUES_GCP:()=>XG,FAASTRIGGERVALUES_DATASOURCE:()=>VG,FAASTRIGGERVALUES_HTTP:()=>BG,FAASTRIGGERVALUES_OTHER:()=>HG,FAASTRIGGERVALUES_PUBSUB:()=>GG,FAASTRIGGERVALUES_TIMER:()=>kG,FaasDocumentOperationValues:()=>$G,FaasInvokedProviderValues:()=>JG,FaasTriggerValues:()=>FG,HOSTARCHVALUES_AMD64:()=>dF,HOSTARCHVALUES_ARM32:()=>EF,HOSTARCHVALUES_ARM64:()=>_F,HOSTARCHVALUES_IA64:()=>SF,HOSTARCHVALUES_PPC32:()=>hF,HOSTARCHVALUES_PPC64:()=>TF,HOSTARCHVALUES_X86:()=>vF,HTTPFLAVORVALUES_HTTP_1_0:()=>wk,HTTPFLAVORVALUES_HTTP_1_1:()=>Uk,HTTPFLAVORVALUES_HTTP_2_0:()=>Dk,HTTPFLAVORVALUES_QUIC:()=>Bk,HTTPFLAVORVALUES_SPDY:()=>Vk,HostArchValues:()=>mF,HttpFlavorValues:()=>Gk,MESSAGETYPEVALUES_RECEIVED:()=>fH,MESSAGETYPEVALUES_SENT:()=>cH,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>kk,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>Hk,MESSAGINGOPERATIONVALUES_PROCESS:()=>qk,MESSAGINGOPERATIONVALUES_RECEIVE:()=>Yk,MessageTypeValues:()=>pH,MessagingDestinationKindValues:()=>Fk,MessagingOperationValues:()=>jk,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>_k,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>Tk,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>dk,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>Nk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>Sk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>hk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>Ok,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>pk,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>Pk,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>vk,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>yk,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>Rk,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>mk,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>Ak,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>xk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>gk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>Ik,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>Mk,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>Lk,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>bk,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>Ek,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>uk,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>lk,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>ck,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>ak,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>sk,NETTRANSPORTVALUES_INPROC:()=>nk,NETTRANSPORTVALUES_IP:()=>ek,NETTRANSPORTVALUES_IP_TCP:()=>QG,NETTRANSPORTVALUES_IP_UDP:()=>ZG,NETTRANSPORTVALUES_OTHER:()=>ok,NETTRANSPORTVALUES_PIPE:()=>rk,NETTRANSPORTVALUES_UNIX:()=>tk,NetHostConnectionSubtypeValues:()=>Ck,NetHostConnectionTypeValues:()=>fk,NetTransportValues:()=>ik,OSTYPEVALUES_AIX:()=>xF,OSTYPEVALUES_DARWIN:()=>OF,OSTYPEVALUES_DRAGONFLYBSD:()=>PF,OSTYPEVALUES_FREEBSD:()=>gF,OSTYPEVALUES_HPUX:()=>bF,OSTYPEVALUES_LINUX:()=>AF,OSTYPEVALUES_NETBSD:()=>NF,OSTYPEVALUES_OPENBSD:()=>RF,OSTYPEVALUES_SOLARIS:()=>MF,OSTYPEVALUES_WINDOWS:()=>yF,OSTYPEVALUES_Z_OS:()=>LF,OsTypeValues:()=>IF,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>rH,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>Qk,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>Kk,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>sH,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>Xk,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>tH,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>iH,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>zk,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>Jk,RPCGRPCSTATUSCODEVALUES_OK:()=>$k,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>nH,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>Zk,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>eH,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>uH,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>aH,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>oH,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>Wk,RpcGrpcStatusCodeValues:()=>lH,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>G2,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>J2,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>D2,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>I2,SEMATTRS_AWS_DYNAMODB_COUNT:()=>z2,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>q2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>F2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>Q2,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>k2,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>C2,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>B2,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>Y2,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>V2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>w2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>U2,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>X2,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>$2,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>K2,SEMATTRS_AWS_DYNAMODB_SELECT:()=>H2,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>j2,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>L2,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>W2,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>cV,SEMATTRS_CODE_FILEPATH:()=>E2,SEMATTRS_CODE_FUNCTION:()=>p2,SEMATTRS_CODE_LINENO:()=>_2,SEMATTRS_CODE_NAMESPACE:()=>d2,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>yV,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>RV,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>NV,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>OV,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>vV,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>mV,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>gV,SEMATTRS_DB_CASSANDRA_TABLE:()=>AV,SEMATTRS_DB_CONNECTION_STRING:()=>pV,SEMATTRS_DB_HBASE_NAMESPACE:()=>PV,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>EV,SEMATTRS_DB_MONGODB_COLLECTION:()=>xV,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>TV,SEMATTRS_DB_NAME:()=>_V,SEMATTRS_DB_OPERATION:()=>hV,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>bV,SEMATTRS_DB_SQL_TABLE:()=>MV,SEMATTRS_DB_STATEMENT:()=>SV,SEMATTRS_DB_SYSTEM:()=>fV,SEMATTRS_DB_USER:()=>dV,SEMATTRS_ENDUSER_ID:()=>s2,SEMATTRS_ENDUSER_ROLE:()=>u2,SEMATTRS_ENDUSER_SCOPE:()=>l2,SEMATTRS_EXCEPTION_ESCAPED:()=>wV,SEMATTRS_EXCEPTION_MESSAGE:()=>IV,SEMATTRS_EXCEPTION_STACKTRACE:()=>CV,SEMATTRS_EXCEPTION_TYPE:()=>LV,SEMATTRS_FAAS_COLDSTART:()=>YV,SEMATTRS_FAAS_CRON:()=>FV,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>VV,SEMATTRS_FAAS_DOCUMENT_NAME:()=>kV,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>BV,SEMATTRS_FAAS_DOCUMENT_TIME:()=>GV,SEMATTRS_FAAS_EXECUTION:()=>DV,SEMATTRS_FAAS_INVOKED_NAME:()=>qV,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>jV,SEMATTRS_FAAS_INVOKED_REGION:()=>$V,SEMATTRS_FAAS_TIME:()=>HV,SEMATTRS_FAAS_TRIGGER:()=>UV,SEMATTRS_HTTP_CLIENT_IP:()=>M2,SEMATTRS_HTTP_FLAVOR:()=>A2,SEMATTRS_HTTP_HOST:()=>v2,SEMATTRS_HTTP_METHOD:()=>S2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>g2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>N2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>R2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>P2,SEMATTRS_HTTP_ROUTE:()=>x2,SEMATTRS_HTTP_SCHEME:()=>m2,SEMATTRS_HTTP_SERVER_NAME:()=>b2,SEMATTRS_HTTP_STATUS_CODE:()=>y2,SEMATTRS_HTTP_TARGET:()=>T2,SEMATTRS_HTTP_URL:()=>h2,SEMATTRS_HTTP_USER_AGENT:()=>O2,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>bB,SEMATTRS_MESSAGE_ID:()=>PB,SEMATTRS_MESSAGE_TYPE:()=>RB,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>xB,SEMATTRS_MESSAGING_CONSUMER_ID:()=>fB,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>sB,SEMATTRS_MESSAGING_DESTINATION:()=>eB,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>tB,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>_B,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>EB,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>dB,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>SB,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>hB,SEMATTRS_MESSAGING_MESSAGE_ID:()=>aB,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>lB,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>uB,SEMATTRS_MESSAGING_OPERATION:()=>cB,SEMATTRS_MESSAGING_PROTOCOL:()=>nB,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>oB,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>pB,SEMATTRS_MESSAGING_SYSTEM:()=>Z2,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>rB,SEMATTRS_MESSAGING_URL:()=>iB,SEMATTRS_NET_HOST_CARRIER_ICC:()=>i2,SEMATTRS_NET_HOST_CARRIER_MCC:()=>n2,SEMATTRS_NET_HOST_CARRIER_MNC:()=>o2,SEMATTRS_NET_HOST_CARRIER_NAME:()=>r2,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>t2,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>e2,SEMATTRS_NET_HOST_IP:()=>JV,SEMATTRS_NET_HOST_NAME:()=>ZV,SEMATTRS_NET_HOST_PORT:()=>QV,SEMATTRS_NET_PEER_IP:()=>WV,SEMATTRS_NET_PEER_NAME:()=>XV,SEMATTRS_NET_PEER_PORT:()=>zV,SEMATTRS_NET_TRANSPORT:()=>KV,SEMATTRS_PEER_SERVICE:()=>a2,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>yB,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>gB,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>NB,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>OB,SEMATTRS_RPC_JSONRPC_VERSION:()=>AB,SEMATTRS_RPC_METHOD:()=>mB,SEMATTRS_RPC_SERVICE:()=>vB,SEMATTRS_RPC_SYSTEM:()=>TB,SEMATTRS_THREAD_ID:()=>c2,SEMATTRS_THREAD_NAME:()=>f2,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>vH,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>TH,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>mH,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>yH,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>AH,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>OH,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>gH,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>RH,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>NH,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>bH,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>PH,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>EH,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>SH,SEMRESATTRS_CLOUD_PLATFORM:()=>hH,SEMRESATTRS_CLOUD_PROVIDER:()=>dH,SEMRESATTRS_CLOUD_REGION:()=>_H,SEMRESATTRS_CONTAINER_ID:()=>MH,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>IH,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>CH,SEMRESATTRS_CONTAINER_NAME:()=>xH,SEMRESATTRS_CONTAINER_RUNTIME:()=>LH,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>wH,SEMRESATTRS_DEVICE_ID:()=>UH,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>DH,SEMRESATTRS_DEVICE_MODEL_NAME:()=>VH,SEMRESATTRS_FAAS_ID:()=>GH,SEMRESATTRS_FAAS_INSTANCE:()=>HH,SEMRESATTRS_FAAS_MAX_MEMORY:()=>FH,SEMRESATTRS_FAAS_NAME:()=>BH,SEMRESATTRS_FAAS_VERSION:()=>kH,SEMRESATTRS_HOST_ARCH:()=>$H,SEMRESATTRS_HOST_ID:()=>YH,SEMRESATTRS_HOST_IMAGE_ID:()=>WH,SEMRESATTRS_HOST_IMAGE_NAME:()=>KH,SEMRESATTRS_HOST_IMAGE_VERSION:()=>zH,SEMRESATTRS_HOST_NAME:()=>qH,SEMRESATTRS_HOST_TYPE:()=>jH,SEMRESATTRS_K8S_CLUSTER_NAME:()=>XH,SEMRESATTRS_K8S_CONTAINER_NAME:()=>r3,SEMRESATTRS_K8S_CRONJOB_NAME:()=>E3,SEMRESATTRS_K8S_CRONJOB_UID:()=>d3,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>c3,SEMRESATTRS_K8S_DAEMONSET_UID:()=>l3,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>a3,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>i3,SEMRESATTRS_K8S_JOB_NAME:()=>p3,SEMRESATTRS_K8S_JOB_UID:()=>f3,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>ZH,SEMRESATTRS_K8S_NODE_NAME:()=>JH,SEMRESATTRS_K8S_NODE_UID:()=>QH,SEMRESATTRS_K8S_POD_NAME:()=>t3,SEMRESATTRS_K8S_POD_UID:()=>e3,SEMRESATTRS_K8S_REPLICASET_NAME:()=>o3,SEMRESATTRS_K8S_REPLICASET_UID:()=>n3,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>u3,SEMRESATTRS_K8S_STATEFULSET_UID:()=>s3,SEMRESATTRS_OS_DESCRIPTION:()=>S3,SEMRESATTRS_OS_NAME:()=>h3,SEMRESATTRS_OS_TYPE:()=>_3,SEMRESATTRS_OS_VERSION:()=>T3,SEMRESATTRS_PROCESS_COMMAND:()=>A3,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>g3,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>O3,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>m3,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>y3,SEMRESATTRS_PROCESS_OWNER:()=>N3,SEMRESATTRS_PROCESS_PID:()=>v3,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>b3,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>R3,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>P3,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>L3,SEMRESATTRS_SERVICE_NAME:()=>x3,SEMRESATTRS_SERVICE_NAMESPACE:()=>M3,SEMRESATTRS_SERVICE_VERSION:()=>I3,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>D3,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>w3,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>C3,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>U3,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>G3,SEMRESATTRS_WEBENGINE_NAME:()=>V3,SEMRESATTRS_WEBENGINE_VERSION:()=>B3,SemanticAttributes:()=>MB,SemanticResourceAttributes:()=>k3,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>CF,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>wF,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>UF,TELEMETRYSDKLANGUAGEVALUES_GO:()=>DF,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>VF,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>BF,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>GF,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>kF,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>HF,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>FF,TelemetrySdkLanguageValues:()=>YF});var Eo=m(()=>{"use strict";Ey();kO()});var FO=h((HO,Ji)=>{"use strict";(function(t){"use strict";let e="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp(`^${e}\\.${e}\\.${e}\\.${e}$`,"i"),threeOctet:new RegExp(`^${e}\\.${e}\\.${e}$`,"i"),twoOctet:new RegExp(`^${e}\\.${e}$`,"i"),longValue:new RegExp(`^${e}$`,"i")},i=new RegExp("^0[0-7]+$","i"),a=new RegExp("^0x[a-f0-9]+$","i"),s="%[0-9a-z]{1,}",o="(?:[0-9a-f]+::?)+",r={zoneIndex:new RegExp(s,"i"),native:new RegExp(`^(::)?(${o})?([0-9a-f]+)?(::)?(${s})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${e}\\.${e}\\.${e}\\.${e}(${s})?)$`,"i"),transitional:new RegExp(`^((?:${o})|(?:::)(?:${o})?)${e}\\.${e}\\.${e}\\.${e}(${s})?$`,"i")};function u(f,S){if(f.indexOf("::")!==f.lastIndexOf("::"))return null;let v=0,T=-1,A=(f.match(r.zoneIndex)||[])[0],O,N;for(A&&(A=A.substring(1),f=f.replace(/%.+$/,""));(T=f.indexOf(":",T+1))>=0;)v++;if(f.substr(0,2)==="::"&&v--,f.substr(-2,2)==="::"&&v--,v>S)return null;for(N=S-v,O=":";N--;)O+="0:";return f=f.replace("::",O),f[0]===":"&&(f=f.slice(1)),f[f.length-1]===":"&&(f=f.slice(0,-1)),S=function(){let D=f.split(":"),G=[];for(let F=0;F<D.length;F++)G.push(parseInt(D[F],16));return G}(),{parts:S,zoneId:A}}function l(f,S,v,T){if(f.length!==S.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let A=0,O;for(;T>0;){if(O=v-T,O<0&&(O=0),f[A]>>O!==S[A]>>O)return!1;T-=v,A+=1}return!0}function c(f){if(a.test(f))return parseInt(f,16);if(f[0]==="0"&&!isNaN(parseInt(f[1],10))){if(i.test(f))return parseInt(f,8);throw new Error(`ipaddr: cannot parse ${f} as octal`)}return parseInt(f,10)}function p(f,S){for(;f.length<S;)f=`0${f}`;return f}let _={};_.IPv4=function(){function f(S){if(S.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let v,T;for(v=0;v<S.length;v++)if(T=S[v],!(0<=T&&T<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=S}return f.prototype.SpecialRanges={unspecified:[[new f([0,0,0,0]),8]],broadcast:[[new f([255,255,255,255]),32]],multicast:[[new f([224,0,0,0]),4]],linkLocal:[[new f([169,254,0,0]),16]],loopback:[[new f([127,0,0,0]),8]],carrierGradeNat:[[new f([100,64,0,0]),10]],private:[[new f([10,0,0,0]),8],[new f([172,16,0,0]),12],[new f([192,168,0,0]),16]],reserved:[[new f([192,0,0,0]),24],[new f([192,0,2,0]),24],[new f([192,88,99,0]),24],[new f([198,18,0,0]),15],[new f([198,51,100,0]),24],[new f([203,0,113,0]),24],[new f([240,0,0,0]),4]],as112:[[new f([192,175,48,0]),24],[new f([192,31,196,0]),24]],amt:[[new f([192,52,193,0]),24]]},f.prototype.kind=function(){return"ipv4"},f.prototype.match=function(S,v){let T;if(v===void 0&&(T=S,S=T[0],v=T[1]),S.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,S.octets,8,v)},f.prototype.prefixLengthFromSubnetMask=function(){let S=0,v=!1,T={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},A,O,N;for(A=3;A>=0;A-=1)if(O=this.octets[A],O in T){if(N=T[O],v&&N!==0)return null;N!==8&&(v=!0),S+=N}else return null;return 32-S},f.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},f.prototype.toByteArray=function(){return this.octets.slice(0)},f.prototype.toIPv4MappedAddress=function(){return _.IPv6.parse(`::ffff:${this.toString()}`)},f.prototype.toNormalizedString=function(){return this.toString()},f.prototype.toString=function(){return this.octets.join(".")},f}(),_.IPv4.broadcastAddressFromCIDR=function(f){try{let S=this.parseCIDR(f),v=S[0].toByteArray(),T=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],O=0;for(;O<4;)A.push(parseInt(v[O],10)|parseInt(T[O],10)^255),O++;return new this(A)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},_.IPv4.isIPv4=function(f){return this.parser(f)!==null},_.IPv4.isValid=function(f){try{return new this(this.parser(f)),!0}catch{return!1}},_.IPv4.isValidCIDR=function(f){try{return this.parseCIDR(f),!0}catch{return!1}},_.IPv4.isValidFourPartDecimal=function(f){return!!(_.IPv4.isValid(f)&&f.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},_.IPv4.networkAddressFromCIDR=function(f){let S,v,T,A,O;try{for(S=this.parseCIDR(f),T=S[0].toByteArray(),O=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],v=0;v<4;)A.push(parseInt(T[v],10)&parseInt(O[v],10)),v++;return new this(A)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},_.IPv4.parse=function(f){let S=this.parser(f);if(S===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(S)},_.IPv4.parseCIDR=function(f){let S;if(S=f.match(/^(.+)\/(\d+)$/)){let v=parseInt(S[2]);if(v>=0&&v<=32){let T=[this.parse(S[1]),v];return Object.defineProperty(T,"toString",{value:function(){return this.join("/")}}),T}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},_.IPv4.parser=function(f){let S,v,T;if(S=f.match(n.fourOctet))return function(){let A=S.slice(1,6),O=[];for(let N=0;N<A.length;N++)v=A[N],O.push(c(v));return O}();if(S=f.match(n.longValue)){if(T=c(S[1]),T>4294967295||T<0)throw new Error("ipaddr: address outside defined range");return function(){let A=[],O;for(O=0;O<=24;O+=8)A.push(T>>O&255);return A}().reverse()}else return(S=f.match(n.twoOctet))?function(){let A=S.slice(1,4),O=[];if(T=c(A[1]),T>16777215||T<0)throw new Error("ipaddr: address outside defined range");return O.push(c(A[0])),O.push(T>>16&255),O.push(T>>8&255),O.push(T&255),O}():(S=f.match(n.threeOctet))?function(){let A=S.slice(1,5),O=[];if(T=c(A[2]),T>65535||T<0)throw new Error("ipaddr: address outside defined range");return O.push(c(A[0])),O.push(c(A[1])),O.push(T>>8&255),O.push(T&255),O}():null},_.IPv4.subnetMaskFromPrefixLength=function(f){if(f=parseInt(f),f<0||f>32)throw new Error("ipaddr: invalid IPv4 prefix length");let S=[0,0,0,0],v=0,T=Math.floor(f/8);for(;v<T;)S[v]=255,v++;return T<4&&(S[T]=Math.pow(2,f%8)-1<<8-f%8),new this(S)},_.IPv6=function(){function f(S,v){let T,A;if(S.length===16)for(this.parts=[],T=0;T<=14;T+=2)this.parts.push(S[T]<<8|S[T+1]);else if(S.length===8)this.parts=S;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(T=0;T<this.parts.length;T++)if(A=this.parts[T],!(0<=A&&A<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");v&&(this.zoneId=v)}return f.prototype.SpecialRanges={unspecified:[new f([0,0,0,0,0,0,0,0]),128],linkLocal:[new f([65152,0,0,0,0,0,0,0]),10],multicast:[new f([65280,0,0,0,0,0,0,0]),8],loopback:[new f([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new f([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new f([0,0,0,0,0,65535,0,0]),96],discard:[new f([256,0,0,0,0,0,0,0]),64],rfc6145:[new f([0,0,0,0,65535,0,0,0]),96],rfc6052:[new f([100,65435,0,0,0,0,0,0]),96],"6to4":[new f([8194,0,0,0,0,0,0,0]),16],teredo:[new f([8193,0,0,0,0,0,0,0]),32],benchmarking:[new f([8193,2,0,0,0,0,0,0]),48],amt:[new f([8193,3,0,0,0,0,0,0]),32],as112v6:[[new f([8193,4,274,0,0,0,0,0]),48],[new f([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new f([8193,16,0,0,0,0,0,0]),28],orchid2:[new f([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new f([8193,48,0,0,0,0,0,0]),28],reserved:[[new f([8193,0,0,0,0,0,0,0]),23],[new f([8193,3512,0,0,0,0,0,0]),32]]},f.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},f.prototype.kind=function(){return"ipv6"},f.prototype.match=function(S,v){let T;if(v===void 0&&(T=S,S=T[0],v=T[1]),S.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,S.parts,16,v)},f.prototype.prefixLengthFromSubnetMask=function(){let S=0,v=!1,T={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},A,O;for(let N=7;N>=0;N-=1)if(A=this.parts[N],A in T){if(O=T[A],v&&O!==0)return null;O!==16&&(v=!0),S+=O}else return null;return 128-S},f.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},f.prototype.toByteArray=function(){let S,v=[],T=this.parts;for(let A=0;A<T.length;A++)S=T[A],v.push(S>>8),v.push(S&255);return v},f.prototype.toFixedLengthString=function(){let S=function(){let T=[];for(let A=0;A<this.parts.length;A++)T.push(p(this.parts[A].toString(16),4));return T}.call(this).join(":"),v="";return this.zoneId&&(v=`%${this.zoneId}`),S+v},f.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let S=this.parts.slice(-2),v=S[0],T=S[1];return new _.IPv4([v>>8,v&255,T>>8,T&255])},f.prototype.toNormalizedString=function(){let S=function(){let T=[];for(let A=0;A<this.parts.length;A++)T.push(this.parts[A].toString(16));return T}.call(this).join(":"),v="";return this.zoneId&&(v=`%${this.zoneId}`),S+v},f.prototype.toRFC5952String=function(){let S=/((^|:)(0(:|$)){2,})/g,v=this.toNormalizedString(),T=0,A=-1,O;for(;O=S.exec(v);)O[0].length>A&&(T=O.index,A=O[0].length);return A<0?v:`${v.substring(0,T)}::${v.substring(T+A)}`},f.prototype.toString=function(){return this.toRFC5952String()},f}(),_.IPv6.broadcastAddressFromCIDR=function(f){try{let S=this.parseCIDR(f),v=S[0].toByteArray(),T=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],O=0;for(;O<16;)A.push(parseInt(v[O],10)|parseInt(T[O],10)^255),O++;return new this(A)}catch(S){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${S})`)}},_.IPv6.isIPv6=function(f){return this.parser(f)!==null},_.IPv6.isValid=function(f){if(typeof f=="string"&&f.indexOf(":")===-1)return!1;try{let S=this.parser(f);return new this(S.parts,S.zoneId),!0}catch{return!1}},_.IPv6.isValidCIDR=function(f){if(typeof f=="string"&&f.indexOf(":")===-1)return!1;try{return this.parseCIDR(f),!0}catch{return!1}},_.IPv6.networkAddressFromCIDR=function(f){let S,v,T,A,O;try{for(S=this.parseCIDR(f),T=S[0].toByteArray(),O=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],v=0;v<16;)A.push(parseInt(T[v],10)&parseInt(O[v],10)),v++;return new this(A)}catch(N){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${N})`)}},_.IPv6.parse=function(f){let S=this.parser(f);if(S.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(S.parts,S.zoneId)},_.IPv6.parseCIDR=function(f){let S,v,T;if((v=f.match(/^(.+)\/(\d+)$/))&&(S=parseInt(v[2]),S>=0&&S<=128))return T=[this.parse(v[1]),S],Object.defineProperty(T,"toString",{value:function(){return this.join("/")}}),T;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},_.IPv6.parser=function(f){let S,v,T,A,O,N;if(T=f.match(r.deprecatedTransitional))return this.parser(`::ffff:${T[1]}`);if(r.native.test(f))return u(f,8);if((T=f.match(r.transitional))&&(N=T[6]||"",S=T[1],T[1].endsWith("::")||(S=S.slice(0,-1)),S=u(S+N,6),S.parts)){for(O=[parseInt(T[2]),parseInt(T[3]),parseInt(T[4]),parseInt(T[5])],v=0;v<O.length;v++)if(A=O[v],!(0<=A&&A<=255))return null;return S.parts.push(O[0]<<8|O[1]),S.parts.push(O[2]<<8|O[3]),{parts:S.parts,zoneId:S.zoneId}}return null},_.IPv6.subnetMaskFromPrefixLength=function(f){if(f=parseInt(f),f<0||f>128)throw new Error("ipaddr: invalid IPv6 prefix length");let S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],v=0,T=Math.floor(f/8);for(;v<T;)S[v]=255,v++;return T<16&&(S[T]=Math.pow(2,f%8)-1<<8-f%8),new this(S)},_.fromByteArray=function(f){let S=f.length;if(S===4)return new _.IPv4(f);if(S===16)return new _.IPv6(f);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},_.isValid=function(f){return _.IPv6.isValid(f)||_.IPv4.isValid(f)},_.isValidCIDR=function(f){return _.IPv6.isValidCIDR(f)||_.IPv4.isValidCIDR(f)},_.parse=function(f){if(_.IPv6.isValid(f))return _.IPv6.parse(f);if(_.IPv4.isValid(f))return _.IPv4.parse(f);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},_.parseCIDR=function(f){try{return _.IPv6.parseCIDR(f)}catch{try{return _.IPv4.parseCIDR(f)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},_.process=function(f){let S=this.parse(f);return S.kind()==="ipv6"&&S.isIPv4MappedAddress()?S.toIPv4Address():S},_.subnetMatch=function(f,S,v){let T,A,O,N;v==null&&(v="unicast");for(A in S)if(Object.prototype.hasOwnProperty.call(S,A)){for(O=S[A],O[0]&&!(O[0]instanceof Array)&&(O=[O]),T=0;T<O.length;T++)if(N=O[T],f.kind()===N[0].kind()&&f.match.apply(f,N))return A}return v},typeof Ji<"u"&&Ji.exports?Ji.exports=_:t.ipaddr=_})(HO)});var rc=h(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.getPeerAttributes=jt.getStatusAttributes=jt.getMethodAttributes=void 0;var St=(Eo(),Y(po)),qF=FO(),jF=Ml();function $F(t){let[,e,n]=t.split("/");return{[St.SEMATTRS_RPC_SYSTEM]:"grpc",[St.SEMATTRS_RPC_SERVICE]:e,[St.SEMATTRS_RPC_METHOD]:n}}jt.getMethodAttributes=$F;function KF(t){return{[St.SEMATTRS_RPC_GRPC_STATUS_CODE]:t,"rpc.grpc.status_text":jF.Status[t]}}jt.getStatusAttributes=KF;function WF(t){let e=t.lastIndexOf(":");if(e===-1)return{[St.SEMATTRS_NET_PEER_NAME]:t};let n=t.slice(0,e),i=+t.slice(e+1);return Number.isNaN(i)?{[St.SEMATTRS_NET_PEER_NAME]:t}:qF.isValid(n)?{[St.SEMATTRS_NET_PEER_IP]:n,[St.SEMATTRS_NET_PEER_PORT]:i}:{[St.SEMATTRS_NET_PEER_NAME]:n,[St.SEMATTRS_NET_PEER_PORT]:i}}jt.getPeerAttributes=WF});var nc=h(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.metadataGetter=en.metadataSetter=void 0;en.metadataSetter={set(t,e,n){t.set(e,n)}};en.metadataGetter={get:(t,e)=>t.get(e),keys:t=>Array.from(t,([e])=>e)}});var YO=h(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.VERSION=void 0;Qi.VERSION="0.1.15"});var oc=h($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.emitSpanEvents=$t.getSpanName=$t.tracer=void 0;var zF=(b(),Y(Pe)),qO=(Eo(),Y(po)),XF=YO();$t.tracer=zF.trace.getTracer("nice-grpc-opentelemetry",XF.VERSION);function JF(t){return t.slice(1)}$t.getSpanName=JF;async function*QF(t,e,n){let i=1;for await(let a of t)e.addEvent("message",{[qO.SEMATTRS_MESSAGE_TYPE]:n,[qO.SEMATTRS_MESSAGE_ID]:i++}),yield a}$t.emitSpanEvents=QF});var ac=h(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.bindAsyncGenerator=void 0;var ic=(b(),Y(Pe));function jO(t,e){return{next:ic.context.bind(t,e.next.bind(e)),return:ic.context.bind(t,e.return.bind(e)),throw:ic.context.bind(t,e.throw.bind(e)),[Symbol.asyncIterator](){return jO(t,e[Symbol.asyncIterator]())}}}Zi.bindAsyncGenerator=jO});var KO=h(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.openTelemetryServerMiddleware=void 0;var _o=(b(),Y(Pe)),$O=(Eo(),Y(po)),ZF=(pE(),Y(fE)),tn=Ml(),sc=rc(),eY=nc(),ea=oc(),tY=ac();function rY(){return(t,e)=>ea.tracer.startActiveSpan((0,ea.getSpanName)(t.method.path),{kind:_o.SpanKind.SERVER},_o.propagation.extract(_o.ROOT_CONTEXT,e.metadata,eY.metadataGetter),n=>(0,tY.bindAsyncGenerator)(_o.context.active(),nY(n,t,e)))}ta.openTelemetryServerMiddleware=rY;async function*nY(t,e,n){let i={...(0,sc.getMethodAttributes)(e.method.path),...(0,sc.getPeerAttributes)(n.peer)};t.setAttributes(i);let a=tn.Status.OK,s;try{let o;if(e.requestStream?o=(0,ea.emitSpanEvents)(e.request,t,$O.MESSAGETYPEVALUES_RECEIVED):o=e.request,e.responseStream){yield*(0,ea.emitSpanEvents)(e.next(o,n),t,$O.MESSAGETYPEVALUES_SENT);return}else return yield*e.next(o,n)}catch(o){throw o instanceof tn.ServerError?(a=o.code,s=o.details):(0,ZF.isAbortError)(o)?(a=tn.Status.CANCELLED,s="The operation was cancelled"):(a=tn.Status.UNKNOWN,s="Unknown server error occurred",t.recordException(o)),o}finally{let o=(0,sc.getStatusAttributes)(a);t.setAttributes(o),a!==tn.Status.OK&&t.setStatus({code:_o.SpanStatusCode.ERROR,message:`${tn.Status[a]}: ${s}`}),t.end()}}});var XO=h(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.openTelemetryClientMiddleware=void 0;var So=(b(),Y(Pe)),WO=(Eo(),Y(po)),oY=(pE(),Y(fE)),Kt=Ml(),zO=rc(),iY=nc(),ra=oc(),aY=ac();function sY(){return(t,e)=>ra.tracer.startActiveSpan((0,ra.getSpanName)(t.method.path),{kind:So.SpanKind.CLIENT},n=>{let i=(0,Kt.Metadata)(e.metadata);return So.propagation.inject(So.context.active(),i,iY.metadataSetter),(0,aY.bindAsyncGenerator)(So.context.active(),uY(n,t,{...e,metadata:i}))})}na.openTelemetryClientMiddleware=sY;async function*uY(t,e,n){let i=(0,zO.getMethodAttributes)(e.method.path);t.setAttributes(i);let a=!1,s=Kt.Status.OK,o;try{let r;if(e.requestStream?r=(0,ra.emitSpanEvents)(e.request,t,WO.MESSAGETYPEVALUES_SENT):r=e.request,e.responseStream){yield*(0,ra.emitSpanEvents)(e.next(r,n),t,WO.MESSAGETYPEVALUES_RECEIVED),a=!0;return}else{let u=yield*e.next(r,n);return a=!0,u}}catch(r){throw a=!0,r instanceof Kt.ClientError?(s=r.code,o=r.details):(0,oY.isAbortError)(r)?(s=Kt.Status.CANCELLED,o="The operation was cancelled"):(s=Kt.Status.UNKNOWN,o="Unknown server error occurred",t.recordException(r)),r}finally{a||(s=Kt.Status.CANCELLED,o="Stream iteration was aborted by client, e.g. by breaking from the for .. of loop");let r=(0,zO.getStatusAttributes)(s);t.setAttributes(r),s!==Kt.Status.OK&&t.setStatus({code:So.SpanStatusCode.ERROR,message:`${Kt.Status[s]}: ${o}`}),t.end()}}});var JO=h(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.openTelemetryClientMiddleware=rn.openTelemetryServerMiddleware=void 0;var lY=KO();Object.defineProperty(rn,"openTelemetryServerMiddleware",{enumerable:!0,get:function(){return lY.openTelemetryServerMiddleware}});var cY=XO();Object.defineProperty(rn,"openTelemetryClientMiddleware",{enumerable:!0,get:function(){return cY.openTelemetryClientMiddleware}})});var qe=h((MZ,tg)=>{"use strict";var cc=class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
10
10
|
Found: ${e.toString().split(`
|
11
11
|
`)[0]}
|
12
|
-
`),Error.captureStackTrace(this,t)}};
|
13
|
-
`)!=-1,i=this._styles,a=i.length;a--;){var s=
|
14
|
-
`));return!0}
|
12
|
+
`),Error.captureStackTrace(this,t)}};tg.exports=t=>{if(t.length>2)throw new cc(t);function e(i={}){this.options=i}e.prototype.transform=t;function n(i){return new e(i)}return n.Format=e,n}});var ig=h((LZ,og)=>{"use strict";var ng={};og.exports=ng;var rg={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(rg).forEach(function(t){var e=rg[t],n=ng[t]=[];n.open="\x1B["+e[0]+"m",n.close="\x1B["+e[1]+"m"})});var sg=h((IZ,ag)=>{"use strict";ag.exports=function(t,e){e=e||process.argv||[];var n=e.indexOf("--"),i=/^-{1,2}/.test(t)?"":"--",a=e.indexOf(i+t);return a!==-1&&(n===-1?!0:a<n)}});var lg=h((CZ,ug)=>{"use strict";var EY=L("os"),st=sg(),Ue=process.env,nn=void 0;st("no-color")||st("no-colors")||st("color=false")?nn=!1:(st("color")||st("colors")||st("color=true")||st("color=always"))&&(nn=!0);"FORCE_COLOR"in Ue&&(nn=Ue.FORCE_COLOR.length===0||parseInt(Ue.FORCE_COLOR,10)!==0);function _Y(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function SY(t){if(nn===!1)return 0;if(st("color=16m")||st("color=full")||st("color=truecolor"))return 3;if(st("color=256"))return 2;if(t&&!t.isTTY&&nn!==!0)return 0;var e=nn?1:0;if(process.platform==="win32"){var n=EY.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Ue)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(a){return a in Ue})||Ue.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in Ue)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ue.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in Ue){var i=parseInt((Ue.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ue.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ue.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(Ue.TERM)||"COLORTERM"in Ue?1:(Ue.TERM==="dumb",e)}function fc(t){var e=SY(t);return _Y(e)}ug.exports={supportsColor:fc,stdout:fc(process.stdout),stderr:fc(process.stderr)}});var fg=h((wZ,cg)=>{"use strict";cg.exports=function(e,n){var i="";e=e||"Run the trap, drop the bass",e=e.split("");var a={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(s){s=s.toLowerCase();var o=a[s]||[" "],r=Math.floor(Math.random()*o.length);typeof a[s]<"u"?i+=a[s][r]:i+=s}),i}});var dg=h((UZ,pg)=>{"use strict";pg.exports=function(e,n){e=e||" he is here ";var i={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},a=[].concat(i.up,i.down,i.mid);function s(u){var l=Math.floor(Math.random()*u);return l}function o(u){var l=!1;return a.filter(function(c){l=c===u}),l}function r(u,l){var c="",p,_;l=l||{},l.up=typeof l.up<"u"?l.up:!0,l.mid=typeof l.mid<"u"?l.mid:!0,l.down=typeof l.down<"u"?l.down:!0,l.size=typeof l.size<"u"?l.size:"maxi",u=u.split("");for(_ in u)if(!o(_)){switch(c=c+u[_],p={up:0,down:0,mid:0},l.size){case"mini":p.up=s(8),p.mid=s(2),p.down=s(8);break;case"maxi":p.up=s(16)+3,p.mid=s(4)+1,p.down=s(64)+3;break;default:p.up=s(8)+1,p.mid=s(6)/2,p.down=s(8)+1;break}var f=["up","mid","down"];for(var S in f)for(var v=f[S],T=0;T<=p[v];T++)l[v]&&(c=c+i[v][s(i[v].length)])}return c}return r(e,n)}});var _g=h((DZ,Eg)=>{"use strict";Eg.exports=function(t){return function(e,n,i){if(e===" ")return e;switch(n%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}});var hg=h((VZ,Sg)=>{"use strict";Sg.exports=function(t){return function(e,n,i){return n%2===0?e:t.inverse(e)}}});var vg=h((BZ,Tg)=>{"use strict";Tg.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(n,i,a){return n===" "?n:t[e[i++%e.length]](n)}}});var yg=h((GZ,mg)=>{"use strict";mg.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(n,i,a){return n===" "?n:t[e[Math.round(Math.random()*(e.length-2))]](n)}}});var Pg=h((HZ,Rg)=>{"use strict";var H={};Rg.exports=H;H.themes={};var hY=L("util"),Ar=H.styles=ig(),Og=Object.defineProperties,TY=new RegExp(/[\r\n]+/g);H.supportsColor=lg().supportsColor;typeof H.enabled>"u"&&(H.enabled=H.supportsColor()!==!1);H.enable=function(){H.enabled=!0};H.disable=function(){H.enabled=!1};H.stripColors=H.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var kZ=H.stylize=function(e,n){if(!H.enabled)return e+"";var i=Ar[n];return!i&&n in H?H[n](e):i.open+e+i.close},vY=/[|\\{}()[\]^$+*?.]/g,mY=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(vY,"\\$&")};function gg(t){var e=function n(){return AY.apply(n,arguments)};return e._styles=t,e.__proto__=yY,e}var Ng=function(){var t={};return Ar.grey=Ar.gray,Object.keys(Ar).forEach(function(e){Ar[e].closeRe=new RegExp(mY(Ar[e].close),"g"),t[e]={get:function(){return gg(this._styles.concat(e))}}}),t}(),yY=Og(function(){},Ng);function AY(){var t=Array.prototype.slice.call(arguments),e=t.map(function(o){return o!=null&&o.constructor===String?o:hY.inspect(o)}).join(" ");if(!H.enabled||!e)return e;for(var n=e.indexOf(`
|
13
|
+
`)!=-1,i=this._styles,a=i.length;a--;){var s=Ar[i[a]];e=s.open+e.replace(s.closeRe,s.open)+s.close,n&&(e=e.replace(TY,function(o){return s.close+o+s.open}))}return e}H.setTheme=function(t){if(typeof t=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var e in t)(function(n){H[n]=function(i){if(typeof t[n]=="object"){var a=i;for(var s in t[n])a=H[t[n][s]](a);return a}return H[t[n]](i)}})(e)};function OY(){var t={};return Object.keys(Ng).forEach(function(e){t[e]={get:function(){return gg([e])}}}),t}var gY=function(e,n){var i=n.split("");return i=i.map(e),i.join("")};H.trap=fg();H.zalgo=dg();H.maps={};H.maps.america=_g()(H);H.maps.zebra=hg()(H);H.maps.rainbow=vg()(H);H.maps.random=yg()(H);for(Ag in H.maps)(function(t){H[t]=function(e){return gY(H.maps[t],e)}})(Ag);var Ag;Og(H,OY())});var pc=h((FZ,bg)=>{"use strict";var NY=Pg();bg.exports=NY});var xg=h(dc=>{"use strict";dc.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};dc.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var Mg=h(Ec=>{"use strict";Ec.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Ec.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var Lg=h(_c=>{"use strict";_c.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};_c.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var Ig=h(aa=>{"use strict";Object.defineProperty(aa,"cli",{value:xg()});Object.defineProperty(aa,"npm",{value:Mg()});Object.defineProperty(aa,"syslog",{value:Lg()})});var pe=h(ho=>{"use strict";Object.defineProperty(ho,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(ho,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(ho,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(ho,"configs",{value:Ig()})});var la=h((WZ,ua)=>{"use strict";var Tc=pc(),{LEVEL:Sc,MESSAGE:hc}=pe();Tc.enabled=!0;var Cg=/\s+/,sa=class t{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let n=Object.keys(e).reduce((i,a)=>(i[a]=Cg.test(e[a])?e[a].split(Cg):e[a],i),{});return t.allColors=Object.assign({},t.allColors||{},n),t.allColors}addColors(e){return t.addColors(e)}colorize(e,n,i){if(typeof i>"u"&&(i=n),!Array.isArray(t.allColors[e]))return Tc[t.allColors[e]](i);for(let a=0,s=t.allColors[e].length;a<s;a++)i=Tc[t.allColors[e][a]](i);return i}transform(e,n){return n.all&&typeof e[hc]=="string"&&(e[hc]=this.colorize(e[Sc],e.level,e[hc])),(n.level||n.all||!n.message)&&(e.level=this.colorize(e[Sc],e.level)),(n.all||n.message)&&(e.message=this.colorize(e[Sc],e.level,e.message)),e}};ua.exports=t=>new sa(t);ua.exports.Colorizer=ua.exports.Format=sa});var Ug=h((zZ,wg)=>{"use strict";var{Colorizer:RY}=la();wg.exports=t=>(RY.addColors(t.colors||t),t)});var Vg=h((XZ,Dg)=>{"use strict";var PY=qe();Dg.exports=PY(t=>(t.message=` ${t.message}`,t))});var kg=h((JZ,Gg)=>{"use strict";var bY=qe(),{LEVEL:Bg,MESSAGE:vc}=pe();Gg.exports=bY((t,{stack:e,cause:n})=>{if(t instanceof Error){let a=Object.assign({},t,{level:t.level,[Bg]:t[Bg]||t.level,message:t.message,[vc]:t[vc]||t.message});return e&&(a.stack=t.stack),n&&(a.cause=t.cause),a}if(!(t.message instanceof Error))return t;let i=t.message;return Object.assign(t,i),t.message=i.message,t[vc]=i.message,e&&(t.stack=i.stack),n&&(t.cause=i.cause),t})});var yc=h((QZ,fa)=>{"use strict";var{configs:xY,LEVEL:Hg,MESSAGE:mc}=pe(),ca=class t{constructor(e={levels:xY.npm.levels}){this.paddings=t.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let n=Object.keys(e).map(i=>i.length);return Math.max(...n)}static paddingForLevel(e,n,i){let a=i+1-e.length,s=Math.floor(a/n.length);return`${n}${n.repeat(s)}`.slice(0,a)}static paddingForLevels(e,n=" "){let i=t.getLongestLevel(e);return Object.keys(e).reduce((a,s)=>(a[s]=t.paddingForLevel(s,n,i),a),{})}transform(e,n){return e.message=`${this.paddings[e[Hg]]}${e.message}`,e[mc]&&(e[mc]=`${this.paddings[e[Hg]]}${e[mc]}`),e}};fa.exports=t=>new ca(t);fa.exports.Padder=fa.exports.Format=ca});var Fg=h((ZZ,Ac)=>{"use strict";var{Colorizer:MY}=la(),{Padder:LY}=yc(),{configs:IY,MESSAGE:CY}=pe(),pa=class{constructor(e={}){e.levels||(e.levels=IY.cli.levels),this.colorizer=new MY(e),this.padder=new LY(e),this.options=e}transform(e,n){return this.colorizer.transform(this.padder.transform(e,n),n),e[CY]=`${e.level}:${e.message}`,e}};Ac.exports=t=>new pa(t);Ac.exports.Format=pa});var qg=h((eee,Oc)=>{"use strict";var wY=qe();function Yg(t){if(t.every(UY))return e=>{let n=e;for(let i=0;i<t.length;i++)if(n=t[i].transform(n,t[i].options),!n)return!1;return n}}function UY(t){if(typeof t.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
|
14
|
+
`));return!0}Oc.exports=(...t)=>{let e=wY(Yg(t)),n=e();return n.Format=e.Format,n};Oc.exports.cascade=Yg});var To=h((Pc,Wg)=>{"use strict";var{hasOwnProperty:da}=Object.prototype,gr=Rc();gr.configure=Rc;gr.stringify=gr;gr.default=gr;Pc.stringify=gr;Pc.configure=Rc;Wg.exports=gr;var DY=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function Wt(t){return t.length<5e3&&!DY.test(t)?`"${t}"`:JSON.stringify(t)}function gc(t){if(t.length>200)return t.sort();for(let e=1;e<t.length;e++){let n=t[e],i=e;for(;i!==0&&t[i-1]>n;)t[i]=t[i-1],i--;t[i]=n}return t}var VY=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Nc(t){return VY.call(t)!==void 0&&t.length!==0}function jg(t,e,n){t.length<n&&(n=t.length);let i=e===","?"":" ",a=`"0":${i}${t[0]}`;for(let s=1;s<n;s++)a+=`${e}"${s}":${i}${t[s]}`;return a}function BY(t){if(da.call(t,"circularValue")){let e=t.circularValue;if(typeof e=="string")return`"${e}"`;if(e==null)return e;if(e===Error||e===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function $g(t,e){let n;if(da.call(t,e)&&(n=t[e],typeof n!="boolean"))throw new TypeError(`The "${e}" argument must be of type boolean`);return n===void 0?!0:n}function Kg(t,e){let n;if(da.call(t,e)){if(n=t[e],typeof n!="number")throw new TypeError(`The "${e}" argument must be of type number`);if(!Number.isInteger(n))throw new TypeError(`The "${e}" argument must be an integer`);if(n<1)throw new RangeError(`The "${e}" argument must be >= 1`)}return n===void 0?1/0:n}function Or(t){return t===1?"1 item":`${t} items`}function GY(t){let e=new Set;for(let n of t)(typeof n=="string"||typeof n=="number")&&e.add(String(n));return e}function kY(t){if(da.call(t,"strict")){let e=t.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return n=>{let i=`Object can not safely be stringified. Received type ${typeof n}`;throw typeof n!="function"&&(i+=` (${n.toString()})`),new Error(i)}}}function Rc(t){t={...t};let e=kY(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let n=BY(t),i=$g(t,"bigint"),a=$g(t,"deterministic"),s=Kg(t,"maximumDepth"),o=Kg(t,"maximumBreadth");function r(_,f,S,v,T,A){let O=f[_];switch(typeof O=="object"&&O!==null&&typeof O.toJSON=="function"&&(O=O.toJSON(_)),O=v.call(f,_,O),typeof O){case"string":return Wt(O);case"object":{if(O===null)return"null";if(S.indexOf(O)!==-1)return n;let N="",D=",",G=A;if(Array.isArray(O)){if(O.length===0)return"[]";if(s<S.length+1)return'"[Array]"';S.push(O),T!==""&&(A+=T,N+=`
|
15
15
|
${A}`,D=`,
|
16
|
-
${A}`);let w=Math.min(O.length,o),W=0;for(;W<w-1;W++){let ne=r(String(W),O,S,v,T,A);N+=ne!==void 0?ne:"null",N+=D}let z=r(String(W),O,S,v,T,A);if(N+=z!==void 0?z:"null",O.length-1>o){let ne=O.length-o-1;N+=`${D}"... ${
|
17
|
-
${G}`),S.pop(),`[${N}]`}let F=Object.keys(O),ae=F.length;if(ae===0)return"{}";if(s<S.length+1)return'"[Object]"';let j="",
|
18
|
-
${A}`,j=" ");let B=Math.min(ae,o);a&&!
|
16
|
+
${A}`);let w=Math.min(O.length,o),W=0;for(;W<w-1;W++){let ne=r(String(W),O,S,v,T,A);N+=ne!==void 0?ne:"null",N+=D}let z=r(String(W),O,S,v,T,A);if(N+=z!==void 0?z:"null",O.length-1>o){let ne=O.length-o-1;N+=`${D}"... ${Or(ne)} not stringified"`}return T!==""&&(N+=`
|
17
|
+
${G}`),S.pop(),`[${N}]`}let F=Object.keys(O),ae=F.length;if(ae===0)return"{}";if(s<S.length+1)return'"[Object]"';let j="",M="";T!==""&&(A+=T,D=`,
|
18
|
+
${A}`,j=" ");let B=Math.min(ae,o);a&&!Nc(O)&&(F=gc(F)),S.push(O);for(let w=0;w<B;w++){let W=F[w],z=r(W,O,S,v,T,A);z!==void 0&&(N+=`${M}${Wt(W)}:${j}${z}`,M=D)}if(ae>o){let w=ae-o;N+=`${M}"...":${j}"${Or(w)} not stringified"`,M=D}return T!==""&&M.length>1&&(N=`
|
19
19
|
${A}${N}
|
20
|
-
${G}`),S.pop(),`{${N}}`}case"number":return isFinite(O)?String(O):e?e(O):"null";case"boolean":return O===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(O);default:return e?e(O):void 0}}function u(_,f,S,v,T,A){switch(typeof f=="object"&&f!==null&&typeof f.toJSON=="function"&&(f=f.toJSON(_)),typeof f){case"string":return
|
20
|
+
${G}`),S.pop(),`{${N}}`}case"number":return isFinite(O)?String(O):e?e(O):"null";case"boolean":return O===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(O);default:return e?e(O):void 0}}function u(_,f,S,v,T,A){switch(typeof f=="object"&&f!==null&&typeof f.toJSON=="function"&&(f=f.toJSON(_)),typeof f){case"string":return Wt(f);case"object":{if(f===null)return"null";if(S.indexOf(f)!==-1)return n;let O=A,N="",D=",";if(Array.isArray(f)){if(f.length===0)return"[]";if(s<S.length+1)return'"[Array]"';S.push(f),T!==""&&(A+=T,N+=`
|
21
21
|
${A}`,D=`,
|
22
|
-
${A}`);let ae=Math.min(f.length,o),j=0;for(;j<ae-1;j++){let B=u(String(j),f[j],S,v,T,A);N+=B!==void 0?B:"null",N+=D}let
|
22
|
+
${A}`);let ae=Math.min(f.length,o),j=0;for(;j<ae-1;j++){let B=u(String(j),f[j],S,v,T,A);N+=B!==void 0?B:"null",N+=D}let M=u(String(j),f[j],S,v,T,A);if(N+=M!==void 0?M:"null",f.length-1>o){let B=f.length-o-1;N+=`${D}"... ${Or(B)} not stringified"`}return T!==""&&(N+=`
|
23
23
|
${O}`),S.pop(),`[${N}]`}S.push(f);let G="";T!==""&&(A+=T,D=`,
|
24
|
-
${A}`,G=" ");let F="";for(let ae of v){let j=u(ae,f[ae],S,v,T,A);j!==void 0&&(N+=`${F}${
|
24
|
+
${A}`,G=" ");let F="";for(let ae of v){let j=u(ae,f[ae],S,v,T,A);j!==void 0&&(N+=`${F}${Wt(ae)}:${G}${j}`,F=D)}return T!==""&&F.length>1&&(N=`
|
25
25
|
${A}${N}
|
26
|
-
${O}`),S.pop(),`{${N}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function l(_,f,S,v,T){switch(typeof f){case"string":return
|
27
|
-
${T}`,
|
28
|
-
${T}`,B=Math.min(f.length,o),w=0;for(;w<B-1;w++){let z=l(String(w),f[w],S,v,T);j+=z!==void 0?z:"null",j+=
|
26
|
+
${O}`),S.pop(),`{${N}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function l(_,f,S,v,T){switch(typeof f){case"string":return Wt(f);case"object":{if(f===null)return"null";if(typeof f.toJSON=="function"){if(f=f.toJSON(_),typeof f!="object")return l(_,f,S,v,T);if(f===null)return"null"}if(S.indexOf(f)!==-1)return n;let A=T;if(Array.isArray(f)){if(f.length===0)return"[]";if(s<S.length+1)return'"[Array]"';S.push(f),T+=v;let j=`
|
27
|
+
${T}`,M=`,
|
28
|
+
${T}`,B=Math.min(f.length,o),w=0;for(;w<B-1;w++){let z=l(String(w),f[w],S,v,T);j+=z!==void 0?z:"null",j+=M}let W=l(String(w),f[w],S,v,T);if(j+=W!==void 0?W:"null",f.length-1>o){let z=f.length-o-1;j+=`${M}"... ${Or(z)} not stringified"`}return j+=`
|
29
29
|
${A}`,S.pop(),`[${j}]`}let O=Object.keys(f),N=O.length;if(N===0)return"{}";if(s<S.length+1)return'"[Object]"';T+=v;let D=`,
|
30
|
-
${T}`,G="",F="",ae=Math.min(N,o);
|
30
|
+
${T}`,G="",F="",ae=Math.min(N,o);Nc(f)&&(G+=jg(f,D,o),O=O.slice(f.length),ae-=f.length,F=D),a&&(O=gc(O)),S.push(f);for(let j=0;j<ae;j++){let M=O[j],B=l(M,f[M],S,v,T);B!==void 0&&(G+=`${F}${Wt(M)}: ${B}`,F=D)}if(N>o){let j=N-o;G+=`${F}"...": "${Or(j)} not stringified"`,F=D}return F!==""&&(G=`
|
31
31
|
${T}${G}
|
32
|
-
${A}`),S.pop(),`{${G}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function c(_,f,S){switch(typeof f){case"string":return Kt(f);case"object":{if(f===null)return"null";if(typeof f.toJSON=="function"){if(f=f.toJSON(_),typeof f!="object")return c(_,f,S);if(f===null)return"null"}if(S.indexOf(f)!==-1)return n;let v="";if(Array.isArray(f)){if(f.length===0)return"[]";if(s<S.length+1)return'"[Array]"';S.push(f);let D=Math.min(f.length,o),G=0;for(;G<D-1;G++){let ae=c(String(G),f[G],S);v+=ae!==void 0?ae:"null",v+=","}let F=c(String(G),f[G],S);if(v+=F!==void 0?F:"null",f.length-1>o){let ae=f.length-o-1;v+=`,"... ${Ar(ae)} not stringified"`}return S.pop(),`[${v}]`}let T=Object.keys(f),A=T.length;if(A===0)return"{}";if(s<S.length+1)return'"[Object]"';let O="",N=Math.min(A,o);vc(f)&&(v+=Vg(f,",",o),T=T.slice(f.length),N-=f.length,O=","),a&&(T=Tc(T)),S.push(f);for(let D=0;D<N;D++){let G=T[D],F=c(G,f[G],S);F!==void 0&&(v+=`${O}${Kt(G)}:${F}`,O=",")}if(A>o){let D=A-o;v+=`${O}"...":"${Ar(D)} not stringified"`}return S.pop(),`{${v}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function p(_,f,S){if(arguments.length>1){let v="";if(typeof S=="number"?v=" ".repeat(Math.min(S,10)):typeof S=="string"&&(v=S.slice(0,10)),f!=null){if(typeof f=="function")return r("",{"":_},[],f,v,"");if(Array.isArray(f))return u("",_,[],LY(f),v,"")}if(v.length!==0)return l("",_,[],v,"")}return c("",_,[])}return p}});var Ac=h((SZ,Hg)=>{"use strict";var CY=Fe(),{MESSAGE:wY}=fe(),UY=So();function DY(t,e){return typeof e=="bigint"?e.toString():e}Hg.exports=CY((t,e)=>{let n=UY.configure(e);return t[wY]=n(t,e.replacer||DY,e.space),t})});var Yg=h((hZ,Fg)=>{"use strict";var VY=Fe();Fg.exports=VY((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var jg=h((TZ,qg)=>{"use strict";var BY=Fe(),{MESSAGE:GY}=fe(),kY=So();qg.exports=BY(t=>{let e={};return t.message&&(e["@message"]=t.message,delete t.message),t.timestamp&&(e["@timestamp"]=t.timestamp,delete t.timestamp),e["@fields"]=t,t[GY]=kY(e),t})});var Kg=h((vZ,$g)=>{"use strict";var HY=Fe();function FY(t,e,n){let i=e.reduce((s,o)=>(s[o]=t[o],delete t[o],s),{}),a=Object.keys(t).reduce((s,o)=>(s[o]=t[o],delete t[o],s),{});return Object.assign(t,i,{[n]:a}),t}function YY(t,e,n){return t[n]=e.reduce((i,a)=>(i[a]=t[a],delete t[a],i),{}),t}$g.exports=HY((t,e={})=>{let n="metadata";e.key&&(n=e.key);let i=[];return!e.fillExcept&&!e.fillWith&&(i.push("level"),i.push("message")),e.fillExcept&&(i=e.fillExcept),i.length>0?FY(t,i,n):e.fillWith?YY(t,e.fillWith,n):t})});var zg=h((mZ,Wg)=>{"use strict";var nn=1e3,on=nn*60,an=on*60,gr=an*24,qY=gr*7,jY=gr*365.25;Wg.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return $Y(t);if(n==="number"&&isFinite(t))return e.long?WY(t):KY(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function $Y(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*jY;case"weeks":case"week":case"w":return n*qY;case"days":case"day":case"d":return n*gr;case"hours":case"hour":case"hrs":case"hr":case"h":return n*an;case"minutes":case"minute":case"mins":case"min":case"m":return n*on;case"seconds":case"second":case"secs":case"sec":case"s":return n*nn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function KY(t){var e=Math.abs(t);return e>=gr?Math.round(t/gr)+"d":e>=an?Math.round(t/an)+"h":e>=on?Math.round(t/on)+"m":e>=nn?Math.round(t/nn)+"s":t+"ms"}function WY(t){var e=Math.abs(t);return e>=gr?ua(t,e,gr,"day"):e>=an?ua(t,e,an,"hour"):e>=on?ua(t,e,on,"minute"):e>=nn?ua(t,e,nn,"second"):t+" ms"}function ua(t,e,n,i){var a=e>=n*1.5;return Math.round(t/n)+" "+i+(a?"s":"")}});var Jg=h((ho,Xg)=>{"use strict";var zY=Fe(),XY=zg();Xg.exports=zY(t=>{let e=+new Date;return ho.diff=e-(ho.prevTime||e),ho.prevTime=e,t.ms=`+${XY(ho.diff)}`,t})});var eN=h((yZ,Zg)=>{"use strict";var JY=L("util").inspect,QY=Fe(),{LEVEL:ZY,MESSAGE:Qg,SPLAT:eq}=fe();Zg.exports=QY((t,e={})=>{let n=Object.assign({},t);return delete n[ZY],delete n[Qg],delete n[eq],t[Qg]=JY(n,!1,e.depth||null,e.colorize),t})});var tN=h((AZ,ca)=>{"use strict";var{MESSAGE:tq}=fe(),la=class{constructor(e){this.template=e}transform(e){return e[tq]=this.template(e),e}};ca.exports=t=>new la(t);ca.exports.Printf=ca.exports.Format=la});var oN=h((OZ,nN)=>{"use strict";var rq=Fe(),{MESSAGE:rN}=fe(),nq=So();nN.exports=rq(t=>{let e=nq(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),n=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[rN]=`${t.level}:${n} ${t.message} ${e}`:t[rN]=`${t.level}:${n} ${t.message}`,t})});var sN=h((gZ,aN)=>{"use strict";var oq=L("util"),{SPLAT:iN}=fe(),iq=/%[scdjifoO%]/g,aq=/%%/g,Oc=class{constructor(e){this.options=e}_splat(e,n){let i=e.message,a=e[iN]||e.splat||[],s=i.match(aq),o=s&&s.length||0,u=n.length-o-a.length,l=u<0?a.splice(u,-1*u):[],c=l.length;if(c)for(let p=0;p<c;p++)Object.assign(e,l[p]);return e.message=oq.format(i,...a),e}transform(e){let n=e.message,i=e[iN]||e.splat;if(!i||!i.length)return e;let a=n&&n.match&&n.match(iq);if(!a&&(i||i.length)){let s=i.length>1?i.splice(0):i,o=s.length;if(o)for(let r=0;r<o;r++)Object.assign(e,s[r]);return e}return a?this._splat(e,a):e}};aN.exports=t=>new Oc(t)});var gN={};nt(gN,{assign:()=>Xt,default:()=>Eq,defaultI18n:()=>gc,format:()=>AN,parse:()=>ON,setGlobalDateI18n:()=>mN,setGlobalDateMasks:()=>yN});function hN(t,e){for(var n=[],i=0,a=t.length;i<a;i++)n.push(t[i].substr(0,e));return n}function Xt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0,a=e;i<a.length;i++){var s=a[i];for(var o in s)t[o]=s[o]}return t}function ON(t,e,n){if(n===void 0&&(n={}),typeof e!="string")throw new Error("Invalid format in fecha parse");if(e=pa[e]||e,t.length>1e3)return null;var i=new Date,a={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},s=[],o=[],r=e.replace(SN,function(D,G){return o.push(lN(G)),"@@@"}),u={},l={};r=lN(r).replace(_N,function(D){var G=pq[D],F=G[0],ae=G[1],j=G[3];if(u[F])throw new Error("Invalid format. "+F+" specified twice in format");return u[F]=!0,j&&(l[j]=!0),s.push(G),"("+ae+")"}),Object.keys(l).forEach(function(D){if(!u[D])throw new Error("Invalid format. "+D+" is required in specified format")}),r=r.replace(/@@@/g,function(){return o.shift()});var c=t.match(new RegExp(r,"i"));if(!c)return null;for(var p=Xt(Xt({},fa),n),_=1;_<c.length;_++){var f=s[_-1],S=f[0],v=f[2],T=v?v(c[_],p):+c[_];if(T==null)return null;a[S]=T}a.isPm===1&&a.hour!=null&&+a.hour!=12?a.hour=+a.hour+12:a.isPm===0&&+a.hour==12&&(a.hour=0);var A;if(a.timezoneOffset==null){A=new Date(a.year,a.month,a.day,a.hour,a.minute,a.second,a.millisecond);for(var O=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],_=0,N=O.length;_<N;_++)if(u[O[_][0]]&&a[O[_][0]]!==A[O[_][1]]())return null}else if(A=new Date(Date.UTC(a.year,a.month,a.day,a.hour,a.minute-a.timezoneOffset,a.second,a.millisecond)),a.month>11||a.month<0||a.day>31||a.day<1||a.hour>23||a.hour<0||a.minute>59||a.minute<0||a.second>59||a.second<0)return null;return A}var _N,zt,Wt,sq,uq,To,SN,uN,TN,vN,lq,cq,gc,fa,mN,lN,Ye,fq,cN,fN,pN,dN,EN,pq,pa,yN,AN,dq,Eq,NN=m(()=>{"use strict";_N=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,zt="\\d\\d?",Wt="\\d\\d",sq="\\d{3}",uq="\\d{4}",To="[^\\s]+",SN=/\[([^]*?)\]/gm;uN=function(t){return function(e,n){var i=n[t].map(function(s){return s.toLowerCase()}),a=i.indexOf(e.toLowerCase());return a>-1?a:null}};TN=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],vN=["January","February","March","April","May","June","July","August","September","October","November","December"],lq=hN(vN,3),cq=hN(TN,3),gc={dayNamesShort:cq,dayNames:TN,monthNamesShort:lq,monthNames:vN,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10?1:0)*t%10]}},fa=Xt({},gc),mN=function(t){return fa=Xt(fa,t)},lN=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Ye=function(t,e){for(e===void 0&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},fq={D:function(t){return String(t.getDate())},DD:function(t){return Ye(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return Ye(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return Ye(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return Ye(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return Ye(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return Ye(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return Ye(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return Ye(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return Ye(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return Ye(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return Ye(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Ye(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Ye(Math.floor(Math.abs(e)/60),2)+":"+Ye(Math.abs(e)%60,2)}},cN=function(t){return+t-1},fN=[null,zt],pN=[null,To],dN=["isPm",To,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],EN=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=+e[1]*60+parseInt(e[2],10);return e[0]==="+"?n:-n}return 0}],pq={D:["day",zt],DD:["day",Wt],Do:["day",zt+To,function(t){return parseInt(t,10)}],M:["month",zt,cN],MM:["month",Wt,cN],YY:["year",Wt,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",zt,void 0,"isPm"],hh:["hour",Wt,void 0,"isPm"],H:["hour",zt],HH:["hour",Wt],m:["minute",zt],mm:["minute",Wt],s:["second",zt],ss:["second",Wt],YYYY:["year",uq],S:["millisecond","\\d",function(t){return+t*100}],SS:["millisecond",Wt,function(t){return+t*10}],SSS:["millisecond",sq],d:fN,dd:fN,ddd:pN,dddd:pN,MMM:["month",To,uN("monthNamesShort")],MMMM:["month",To,uN("monthNames")],a:dN,A:dN,ZZ:EN,Z:EN},pa={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},yN=function(t){return Xt(pa,t)},AN=function(t,e,n){if(e===void 0&&(e=pa.default),n===void 0&&(n={}),typeof t=="number"&&(t=new Date(t)),Object.prototype.toString.call(t)!=="[object Date]"||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=pa[e]||e;var i=[];e=e.replace(SN,function(s,o){return i.push(o),"@@@"});var a=Xt(Xt({},fa),n);return e=e.replace(_N,function(s){return fq[s](t,a)}),e.replace(/@@@/g,function(){return i.shift()})};dq={format:AN,parse:ON,defaultI18n:gc,setGlobalDateI18n:mN,setGlobalDateMasks:yN},Eq=dq});var PN=h((NZ,RN)=>{"use strict";var _q=(NN(),Y(gN)),Sq=Fe();RN.exports=Sq((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():_q.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var MN=h((RZ,bN)=>{"use strict";var Nc=ac(),hq=Fe(),{MESSAGE:Rc}=fe();bN.exports=hq((t,e)=>(e.level!==!1&&(t.level=Nc.strip(t.level)),e.message!==!1&&(t.message=Nc.strip(String(t.message))),e.raw!==!1&&t[Rc]&&(t[Rc]=Nc.strip(String(t[Rc]))),t))});var bc=h(Pc=>{"use strict";var Tq=Pc.format=Fe();Pc.levels=Pg();function me(t,e){Object.defineProperty(Tq,t,{get(){return e()},configurable:!0})}me("align",function(){return Mg()});me("errors",function(){return Ig()});me("cli",function(){return wg()});me("combine",function(){return Dg()});me("colorize",function(){return na()});me("json",function(){return Ac()});me("label",function(){return Yg()});me("logstash",function(){return jg()});me("metadata",function(){return Kg()});me("ms",function(){return Jg()});me("padLevels",function(){return _c()});me("prettyPrint",function(){return eN()});me("printf",function(){return tN()});me("simple",function(){return oN()});me("splat",function(){return sN()});me("timestamp",function(){return PN()});me("uncolorize",function(){return MN()})});var Mc=h(da=>{"use strict";var{format:xN}=L("util");da.warn={deprecated(t){return()=>{throw new Error(xN("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([xN("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
|
33
|
-
`))}},forFunctions(t,e,n){n.forEach(i=>{t[i]=da.warn[e](i)})},forProperties(t,e,n){n.forEach(i=>{let a=da.warn[e](i);Object.defineProperty(t,i,{get:a,set:a})})}}});var LN=h((MZ,vq)=>{vq.exports={name:"winston",description:"A logger for just about everything.",version:"3.13.0",author:"Charlie Robbins <charlie.robbins@gmail.com>",maintainers:["David Hyde <dabh@alumni.stanford.edu>"],repository:{type:"git",url:"https://github.com/winstonjs/winston.git"},keywords:["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],dependencies:{"@dabh/diagnostics":"^2.0.2","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.4.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.7.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^5.0.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",mocha:"^10.3.0",nyc:"^15.1.0",rimraf:"^5.0.5",split2:"^4.1.0","std-mocks":"^2.0.0",through2:"^4.0.2","winston-compat":"^0.1.5"},main:"./lib/winston.js",browser:"./dist/winston",types:"./index.d.ts",scripts:{lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"rimraf test/fixtures/logs/* && mocha","test:coverage":"nyc npm run test:unit","test:unit":"mocha test/unit","test:integration":"mocha test/integration",build:"rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},engines:{node:">= 12.0.0"},license:"MIT"}});var CN=h((xZ,IN)=>{"use strict";IN.exports=L("util").deprecate});var xc=h((LZ,wN)=>{"use strict";wN.exports=L("stream")});var Ic=h((IZ,DN)=>{"use strict";function mq(t,e){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Lc,this,t)):process.nextTick(Lc,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?n._writableState?n._writableState.errorEmitted?process.nextTick(Ea,n):(n._writableState.errorEmitted=!0,process.nextTick(UN,n,s)):process.nextTick(UN,n,s):e?(process.nextTick(Ea,n),e(s)):process.nextTick(Ea,n)}),this)}function UN(t,e){Lc(t,e),Ea(t)}function Ea(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function yq(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Lc(t,e){t.emit("error",e)}function Aq(t,e){var n=t._readableState,i=t._writableState;n&&n.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}DN.exports={destroy:mq,undestroy:yq,errorOrDestroy:Aq}});var Jt=h((CZ,GN)=>{"use strict";var BN={};function Je(t,e,n){n||(n=Error);function i(s,o,r){return typeof e=="string"?e:e(s,o,r)}class a extends n{constructor(o,r,u){super(i(o,r,u))}}a.prototype.name=n.name,a.prototype.code=t,BN[t]=a}function VN(t,e){if(Array.isArray(t)){let n=t.length;return t=t.map(i=>String(i)),n>2?`one of ${e} ${t.slice(0,n-1).join(", ")}, or `+t[n-1]:n===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function Oq(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function gq(t,e,n){return(n===void 0||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function Nq(t,e,n){return typeof n!="number"&&(n=0),n+e.length>t.length?!1:t.indexOf(e,n)!==-1}Je("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Je("ERR_INVALID_ARG_TYPE",function(t,e,n){let i;typeof e=="string"&&Oq(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let a;if(gq(t," argument"))a=`The ${t} ${i} ${VN(e,"type")}`;else{let s=Nq(t,".")?"property":"argument";a=`The "${t}" ${s} ${i} ${VN(e,"type")}`}return a+=`. Received type ${typeof n}`,a},TypeError);Je("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Je("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});Je("ERR_STREAM_PREMATURE_CLOSE","Premature close");Je("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});Je("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Je("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Je("ERR_STREAM_WRITE_AFTER_END","write after end");Je("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Je("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);Je("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");GN.exports.codes=BN});var Cc=h((wZ,kN)=>{"use strict";var Rq=Jt().codes.ERR_INVALID_OPT_VALUE;function Pq(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function bq(t,e,n,i){var a=Pq(e,i,n);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var s=i?n:"highWaterMark";throw new Rq(s,a)}return Math.floor(a)}return t.objectMode?16:16*1024}kN.exports={getHighWaterMark:bq}});var HN=h((UZ,wc)=>{"use strict";typeof Object.create=="function"?wc.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:wc.exports=function(e,n){if(n){e.super_=n;var i=function(){};i.prototype=n.prototype,e.prototype=new i,e.prototype.constructor=e}}});var sn=h((DZ,Dc)=>{"use strict";try{if(Uc=L("util"),typeof Uc.inherits!="function")throw"";Dc.exports=Uc.inherits}catch{Dc.exports=HN()}var Uc});var KN=h((VZ,$N)=>{"use strict";function FN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function YN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?FN(Object(n),!0).forEach(function(i){Mq(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):FN(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Mq(t,e,n){return e=jN(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qN(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,jN(i.key),i)}}function Lq(t,e,n){return e&&qN(t.prototype,e),n&&qN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function jN(t){var e=Iq(t,"string");return typeof e=="symbol"?e:String(e)}function Iq(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Cq=L("buffer"),_a=Cq.Buffer,wq=L("util"),Vc=wq.inspect,Uq=Vc&&Vc.custom||"inspect";function Dq(t,e,n){_a.prototype.copy.call(t,e,n)}$N.exports=function(){function t(){xq(this,t),this.head=null,this.tail=null,this.length=0}return Lq(t,[{key:"push",value:function(n){var i={data:n,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(n){var i={data:n,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(n){if(this.length===0)return"";for(var i=this.head,a=""+i.data;i=i.next;)a+=n+i.data;return a}},{key:"concat",value:function(n){if(this.length===0)return _a.alloc(0);for(var i=_a.allocUnsafe(n>>>0),a=this.head,s=0;a;)Dq(a.data,i,s),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(n,i){var a;return n<this.head.data.length?(a=this.head.data.slice(0,n),this.head.data=this.head.data.slice(n)):n===this.head.data.length?a=this.shift():a=i?this._getString(n):this._getBuffer(n),a}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(n){var i=this.head,a=1,s=i.data;for(n-=s.length;i=i.next;){var o=i.data,r=n>o.length?o.length:n;if(r===o.length?s+=o:s+=o.slice(0,n),n-=r,n===0){r===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(r));break}++a}return this.length-=a,s}},{key:"_getBuffer",value:function(n){var i=_a.allocUnsafe(n),a=this.head,s=1;for(a.data.copy(i),n-=a.data.length;a=a.next;){var o=a.data,r=n>o.length?o.length:n;if(o.copy(i,i.length-n,0,r),n-=r,n===0){r===o.length?(++s,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=o.slice(r));break}++s}return this.length-=s,i}},{key:Uq,value:function(n,i){return Vc(this,YN(YN({},i),{},{depth:0,customInspect:!1}))}}]),t}()});var XN=h((Bc,zN)=>{"use strict";var Sa=L("buffer"),ht=Sa.Buffer;function WN(t,e){for(var n in t)e[n]=t[n]}ht.from&&ht.alloc&&ht.allocUnsafe&&ht.allocUnsafeSlow?zN.exports=Sa:(WN(Sa,Bc),Bc.Buffer=Nr);function Nr(t,e,n){return ht(t,e,n)}Nr.prototype=Object.create(ht.prototype);WN(ht,Nr);Nr.from=function(t,e,n){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ht(t,e,n)};Nr.alloc=function(t,e,n){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=ht(t);return e!==void 0?typeof n=="string"?i.fill(e,n):i.fill(e):i.fill(0),i};Nr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ht(t)};Nr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Sa.SlowBuffer(t)}});var Hc=h(QN=>{"use strict";var kc=XN().Buffer,JN=kc.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Vq(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function Bq(t){var e=Vq(t);if(typeof e!="string"&&(kc.isEncoding===JN||!JN(t)))throw new Error("Unknown encoding: "+t);return e||t}QN.StringDecoder=vo;function vo(t){this.encoding=Bq(t);var e;switch(this.encoding){case"utf16le":this.text=qq,this.end=jq,e=4;break;case"utf8":this.fillLast=Hq,e=4;break;case"base64":this.text=$q,this.end=Kq,e=3;break;default:this.write=Wq,this.end=zq;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=kc.allocUnsafe(e)}vo.prototype.write=function(t){if(t.length===0)return"";var e,n;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""};vo.prototype.end=Yq;vo.prototype.text=Fq;vo.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Gc(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Gq(t,e,n){var i=e.length-1;if(i<n)return 0;var a=Gc(e[i]);return a>=0?(a>0&&(t.lastNeed=a-1),a):--i<n||a===-2?0:(a=Gc(e[i]),a>=0?(a>0&&(t.lastNeed=a-2),a):--i<n||a===-2?0:(a=Gc(e[i]),a>=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function kq(t,e,n){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function Hq(t){var e=this.lastTotal-this.lastNeed,n=kq(this,t,e);if(n!==void 0)return n;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function Fq(t,e){var n=Gq(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var i=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function Yq(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function qq(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function jq(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function $q(t,e){var n=(t.length-e)%3;return n===0?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function Kq(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Wq(t){return t.toString(this.encoding)}function zq(t){return t&&t.length?this.write(t):""}});var ha=h((GZ,tR)=>{"use strict";var ZN=Jt().codes.ERR_STREAM_PREMATURE_CLOSE;function Xq(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];t.apply(this,i)}}}function Jq(){}function Qq(t){return t.setHeader&&typeof t.abort=="function"}function eR(t,e,n){if(typeof e=="function")return eR(t,null,e);e||(e={}),n=Xq(n||Jq);var i=e.readable||e.readable!==!1&&t.readable,a=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||r()},o=t._writableState&&t._writableState.finished,r=function(){a=!1,o=!0,i||n.call(t)},u=t._readableState&&t._readableState.endEmitted,l=function(){i=!1,u=!0,a||n.call(t)},c=function(S){n.call(t,S)},p=function(){var S;if(i&&!u)return(!t._readableState||!t._readableState.ended)&&(S=new ZN),n.call(t,S);if(a&&!o)return(!t._writableState||!t._writableState.ended)&&(S=new ZN),n.call(t,S)},_=function(){t.req.on("finish",r)};return Qq(t)?(t.on("complete",r),t.on("abort",p),t.req?_():t.on("request",_)):a&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",l),t.on("finish",r),e.error!==!1&&t.on("error",c),t.on("close",p),function(){t.removeListener("complete",r),t.removeListener("abort",p),t.removeListener("request",_),t.req&&t.req.removeListener("finish",r),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",r),t.removeListener("end",l),t.removeListener("error",c),t.removeListener("close",p)}}tR.exports=eR});var nR=h((kZ,rR)=>{"use strict";var Ta;function Qt(t,e,n){return e=Zq(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zq(t){var e=e5(t,"string");return typeof e=="symbol"?e:String(e)}function e5(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var t5=ha(),Zt=Symbol("lastResolve"),Rr=Symbol("lastReject"),mo=Symbol("error"),va=Symbol("ended"),Pr=Symbol("lastPromise"),Fc=Symbol("handlePromise"),br=Symbol("stream");function er(t,e){return{value:t,done:e}}function r5(t){var e=t[Zt];if(e!==null){var n=t[br].read();n!==null&&(t[Pr]=null,t[Zt]=null,t[Rr]=null,e(er(n,!1)))}}function n5(t){process.nextTick(r5,t)}function o5(t,e){return function(n,i){t.then(function(){if(e[va]){n(er(void 0,!0));return}e[Fc](n,i)},i)}}var i5=Object.getPrototypeOf(function(){}),a5=Object.setPrototypeOf((Ta={get stream(){return this[br]},next:function(){var e=this,n=this[mo];if(n!==null)return Promise.reject(n);if(this[va])return Promise.resolve(er(void 0,!0));if(this[br].destroyed)return new Promise(function(o,r){process.nextTick(function(){e[mo]?r(e[mo]):o(er(void 0,!0))})});var i=this[Pr],a;if(i)a=new Promise(o5(i,this));else{var s=this[br].read();if(s!==null)return Promise.resolve(er(s,!1));a=new Promise(this[Fc])}return this[Pr]=a,a}},Qt(Ta,Symbol.asyncIterator,function(){return this}),Qt(Ta,"return",function(){var e=this;return new Promise(function(n,i){e[br].destroy(null,function(a){if(a){i(a);return}n(er(void 0,!0))})})}),Ta),i5),s5=function(e){var n,i=Object.create(a5,(n={},Qt(n,br,{value:e,writable:!0}),Qt(n,Zt,{value:null,writable:!0}),Qt(n,Rr,{value:null,writable:!0}),Qt(n,mo,{value:null,writable:!0}),Qt(n,va,{value:e._readableState.endEmitted,writable:!0}),Qt(n,Fc,{value:function(s,o){var r=i[br].read();r?(i[Pr]=null,i[Zt]=null,i[Rr]=null,s(er(r,!1))):(i[Zt]=s,i[Rr]=o)},writable:!0}),n));return i[Pr]=null,t5(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=i[Rr];s!==null&&(i[Pr]=null,i[Zt]=null,i[Rr]=null,s(a)),i[mo]=a;return}var o=i[Zt];o!==null&&(i[Pr]=null,i[Zt]=null,i[Rr]=null,o(er(void 0,!0))),i[va]=!0}),e.on("readable",n5.bind(null,i)),i};rR.exports=s5});var sR=h((HZ,aR)=>{"use strict";function oR(t,e,n,i,a,s,o){try{var r=t[s](o),u=r.value}catch(l){n(l);return}r.done?e(u):Promise.resolve(u).then(i,a)}function u5(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var s=t.apply(e,n);function o(u){oR(s,i,a,o,r,"next",u)}function r(u){oR(s,i,a,o,r,"throw",u)}o(void 0)})}}function iR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function l5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?iR(Object(n),!0).forEach(function(i){c5(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):iR(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function c5(t,e,n){return e=f5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f5(t){var e=p5(t,"string");return typeof e=="symbol"?e:String(e)}function p5(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var d5=Jt().codes.ERR_INVALID_ARG_TYPE;function E5(t,e,n){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new d5("iterable",["Iterable"],e);var a=new t(l5({objectMode:!0},n)),s=!1;a._read=function(){s||(s=!0,o())};function o(){return r.apply(this,arguments)}function r(){return r=u5(function*(){try{var u=yield i.next(),l=u.value,c=u.done;c?a.push(null):a.push(yield l)?o():s=!1}catch(p){a.destroy(p)}}),r.apply(this,arguments)}return a}aR.exports=E5});var Qc=h((YZ,hR)=>{"use strict";hR.exports=$;var un;$.ReadableState=fR;var FZ=L("events").EventEmitter,cR=function(e,n){return e.listeners(n).length},Ao=xc(),ma=L("buffer").Buffer,_5=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function S5(t){return ma.from(t)}function h5(t){return ma.isBuffer(t)||t instanceof _5}var Yc=L("util"),k;Yc&&Yc.debuglog?k=Yc.debuglog("stream"):k=function(){};var T5=KN(),Xc=Ic(),v5=Cc(),m5=v5.getHighWaterMark,ya=Jt().codes,y5=ya.ERR_INVALID_ARG_TYPE,A5=ya.ERR_STREAM_PUSH_AFTER_EOF,O5=ya.ERR_METHOD_NOT_IMPLEMENTED,g5=ya.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ln,qc,jc;sn()($,Ao);var yo=Xc.errorOrDestroy,$c=["error","close","destroy","pause","resume"];function N5(t,e,n){if(typeof t.prependListener=="function")return t.prependListener(e,n);!t._events||!t._events[e]?t.on(e,n):Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]}function fR(t,e,n){un=un||Mr(),t=t||{},typeof n!="boolean"&&(n=e instanceof un),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m5(this,t,"readableHighWaterMark",n),this.buffer=new T5,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(ln||(ln=Hc().StringDecoder),this.decoder=new ln(t.encoding),this.encoding=t.encoding)}function $(t){if(un=un||Mr(),!(this instanceof $))return new $(t);var e=this instanceof un;this._readableState=new fR(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Ao.call(this)}Object.defineProperty($.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});$.prototype.destroy=Xc.destroy;$.prototype._undestroy=Xc.undestroy;$.prototype._destroy=function(t,e){e(t)};$.prototype.push=function(t,e){var n=this._readableState,i;return n.objectMode?i=!0:typeof t=="string"&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=ma.from(t,e),e=""),i=!0),pR(this,t,e,!1,i)};$.prototype.unshift=function(t){return pR(this,t,null,!0,!1)};function pR(t,e,n,i,a){k("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,b5(t,s);else{var o;if(a||(o=R5(s,e)),o)yo(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==ma.prototype&&(e=S5(e)),i)s.endEmitted?yo(t,new g5):Kc(t,s,e,!0);else if(s.ended)yo(t,new A5);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||e.length!==0?Kc(t,s,e,!1):zc(t,s)):Kc(t,s,e,!1)}else i||(s.reading=!1,zc(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Kc(t,e,n,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&Aa(t)),zc(t,e)}function R5(t,e){var n;return!h5(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(n=new y5("chunk",["string","Buffer","Uint8Array"],e)),n}$.prototype.isPaused=function(){return this._readableState.flowing===!1};$.prototype.setEncoding=function(t){ln||(ln=Hc().StringDecoder);var e=new ln(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";n!==null;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var uR=1073741824;function P5(t){return t>=uR?t=uR:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function lR(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=P5(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}$.prototype.read=function(t){k("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return k("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Wc(this):Aa(this),null;if(t=lR(t,e),t===0&&e.ended)return e.length===0&&Wc(this),null;var i=e.needReadable;k("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,k("length less than watermark",i)),e.ended||e.reading?(i=!1,k("reading or ended",i)):i&&(k("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=lR(n,e)));var a;return t>0?a=_R(t,e):a=null,a===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&Wc(this)),a!==null&&this.emit("data",a),a};function b5(t,e){if(k("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?Aa(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,dR(t)))}}function Aa(t){var e=t._readableState;k("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(k("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(dR,t))}function dR(t){var e=t._readableState;k("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Jc(t)}function zc(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(M5,t,e))}function M5(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var n=e.length;if(k("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}$.prototype._read=function(t){yo(this,new O5("_read()"))};$.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,k("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=a?r:v;i.endEmitted?process.nextTick(s):n.once("end",s),t.on("unpipe",o);function o(T,A){k("onunpipe"),T===n&&A&&A.hasUnpiped===!1&&(A.hasUnpiped=!0,c())}function r(){k("onend"),t.end()}var u=x5(n);t.on("drain",u);var l=!1;function c(){k("cleanup"),t.removeListener("close",f),t.removeListener("finish",S),t.removeListener("drain",u),t.removeListener("error",_),t.removeListener("unpipe",o),n.removeListener("end",r),n.removeListener("end",v),n.removeListener("data",p),l=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u()}n.on("data",p);function p(T){k("ondata");var A=t.write(T);k("dest.write",A),A===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&SR(i.pipes,t)!==-1)&&!l&&(k("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function _(T){k("onerror",T),v(),t.removeListener("error",_),cR(t,"error")===0&&yo(t,T)}N5(t,"error",_);function f(){t.removeListener("finish",S),v()}t.once("close",f);function S(){k("onfinish"),t.removeListener("close",f),v()}t.once("finish",S);function v(){k("unpipe"),n.unpipe(t)}return t.emit("pipe",n),i.flowing||(k("pipe resume"),n.resume()),t};function x5(t){return function(){var n=t._readableState;k("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,n.awaitDrain===0&&cR(t,"data")&&(n.flowing=!0,Jc(t))}}$.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var i=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<a;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=SR(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)};$.prototype.on=function(t,e){var n=Ao.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,k("on readable",i.length,i.reading),i.length?Aa(this):i.reading||process.nextTick(L5,this)),n};$.prototype.addListener=$.prototype.on;$.prototype.removeListener=function(t,e){var n=Ao.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(ER,this),n};$.prototype.removeAllListeners=function(t){var e=Ao.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(ER,this),e};function ER(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function L5(t){k("readable nexttick read 0"),t.read(0)}$.prototype.resume=function(){var t=this._readableState;return t.flowing||(k("resume"),t.flowing=!t.readableListening,I5(this,t)),t.paused=!1,this};function I5(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(C5,t,e))}function C5(t,e){k("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Jc(t),e.flowing&&!e.reading&&t.read(0)}$.prototype.pause=function(){return k("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(k("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Jc(t){var e=t._readableState;for(k("flow",e.flowing);e.flowing&&t.read()!==null;);}$.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;t.on("end",function(){if(k("wrapped end"),n.decoder&&!n.ended){var o=n.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(k("wrapped data"),n.decoder&&(o=n.decoder.write(o)),!(n.objectMode&&o==null)&&!(!n.objectMode&&(!o||!o.length))){var r=e.push(o);r||(i=!0,t.pause())}});for(var a in t)this[a]===void 0&&typeof t[a]=="function"&&(this[a]=function(r){return function(){return t[r].apply(t,arguments)}}(a));for(var s=0;s<$c.length;s++)t.on($c[s],this.emit.bind(this,$c[s]));return this._read=function(o){k("wrapped _read",o),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&($.prototype[Symbol.asyncIterator]=function(){return qc===void 0&&(qc=nR()),qc(this)});Object.defineProperty($.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty($.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty($.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});$._fromList=_R;Object.defineProperty($.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function _R(t,e){if(e.length===0)return null;var n;return e.objectMode?n=e.buffer.shift():!t||t>=e.length?(e.decoder?n=e.buffer.join(""):e.buffer.length===1?n=e.buffer.first():n=e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n}function Wc(t){var e=t._readableState;k("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(w5,e,t))}function w5(t,e){if(k("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}typeof Symbol=="function"&&($.from=function(t,e){return jc===void 0&&(jc=sR()),jc($,t,e)});function SR(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}});var Mr=h((qZ,vR)=>{"use strict";var U5=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};vR.exports=Tt;var TR=Qc(),ef=Na();sn()(Tt,TR);for(Zc=U5(ef.prototype),Oa=0;Oa<Zc.length;Oa++)ga=Zc[Oa],Tt.prototype[ga]||(Tt.prototype[ga]=ef.prototype[ga]);var Zc,ga,Oa;function Tt(t){if(!(this instanceof Tt))return new Tt(t);TR.call(this,t),ef.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",D5)))}Object.defineProperty(Tt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Tt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Tt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function D5(){this._writableState.ended||process.nextTick(V5,this)}function V5(t){t.end()}Object.defineProperty(Tt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var Na=h((jZ,NR)=>{"use strict";NR.exports=ue;function yR(t){var e=this;this.next=null,this.entry=null,this.finish=function(){cj(e,t)}}var cn;ue.WritableState=go;var B5={deprecate:CN()},AR=xc(),Pa=L("buffer").Buffer,G5=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function k5(t){return Pa.from(t)}function H5(t){return Pa.isBuffer(t)||t instanceof G5}var rf=Ic(),F5=Cc(),Y5=F5.getHighWaterMark,tr=Jt().codes,q5=tr.ERR_INVALID_ARG_TYPE,j5=tr.ERR_METHOD_NOT_IMPLEMENTED,$5=tr.ERR_MULTIPLE_CALLBACK,K5=tr.ERR_STREAM_CANNOT_PIPE,W5=tr.ERR_STREAM_DESTROYED,z5=tr.ERR_STREAM_NULL_VALUES,X5=tr.ERR_STREAM_WRITE_AFTER_END,J5=tr.ERR_UNKNOWN_ENCODING,fn=rf.errorOrDestroy;sn()(ue,AR);function Q5(){}function go(t,e,n){cn=cn||Mr(),t=t||{},typeof n!="boolean"&&(n=e instanceof cn),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Y5(this,t,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){ij(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new yR(this)}go.prototype.getBuffer=function(){for(var e=this.bufferedRequest,n=[];e;)n.push(e),e=e.next;return n};(function(){try{Object.defineProperty(go.prototype,"buffer",{get:B5.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Ra;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ra=Function.prototype[Symbol.hasInstance],Object.defineProperty(ue,Symbol.hasInstance,{value:function(e){return Ra.call(this,e)?!0:this!==ue?!1:e&&e._writableState instanceof go}})):Ra=function(e){return e instanceof this};function ue(t){cn=cn||Mr();var e=this instanceof cn;if(!e&&!Ra.call(ue,this))return new ue(t);this._writableState=new go(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),AR.call(this)}ue.prototype.pipe=function(){fn(this,new K5)};function Z5(t,e){var n=new X5;fn(t,n),process.nextTick(e,n)}function ej(t,e,n,i){var a;return n===null?a=new z5:typeof n!="string"&&!e.objectMode&&(a=new q5("chunk",["string","Buffer"],n)),a?(fn(t,a),process.nextTick(i,a),!1):!0}ue.prototype.write=function(t,e,n){var i=this._writableState,a=!1,s=!i.objectMode&&H5(t);return s&&!Pa.isBuffer(t)&&(t=k5(t)),typeof e=="function"&&(n=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof n!="function"&&(n=Q5),i.ending?Z5(this,n):(s||ej(this,i,t,n))&&(i.pendingcb++,a=rj(this,i,s,t,e,n)),a};ue.prototype.cork=function(){this._writableState.corked++};ue.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&OR(this,t))};ue.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new J5(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(ue.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function tj(t,e,n){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Pa.from(e,n)),e}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function rj(t,e,n,i,a,s){if(!n){var o=tj(e,i,a);i!==o&&(n=!0,a="buffer",i=o)}var r=e.objectMode?1:i.length;e.length+=r;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:a,isBuf:n,callback:s,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else tf(t,e,!1,r,i,a,s);return u}function tf(t,e,n,i,a,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new W5("write")):n?t._writev(a,e.onwrite):t._write(a,s,e.onwrite),e.sync=!1}function nj(t,e,n,i,a){--e.pendingcb,n?(process.nextTick(a,i),process.nextTick(Oo,t,e),t._writableState.errorEmitted=!0,fn(t,i)):(a(i),t._writableState.errorEmitted=!0,fn(t,i),Oo(t,e))}function oj(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function ij(t,e){var n=t._writableState,i=n.sync,a=n.writecb;if(typeof a!="function")throw new $5;if(oj(n),e)nj(t,n,i,e,a);else{var s=gR(n)||t.destroyed;!s&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&OR(t,n),i?process.nextTick(mR,t,n,s,a):mR(t,n,s,a)}}function mR(t,e,n,i){n||aj(t,e),e.pendingcb--,i(),Oo(t,e)}function aj(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function OR(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=e.bufferedRequestCount,a=new Array(i),s=e.corkedRequestsFree;s.entry=n;for(var o=0,r=!0;n;)a[o]=n,n.isBuf||(r=!1),n=n.next,o+=1;a.allBuffers=r,tf(t,e,!0,e.length,a,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new yR(e),e.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,c=n.callback,p=e.objectMode?1:u.length;if(tf(t,e,!1,p,u,l,c),n=n.next,e.bufferedRequestCount--,e.writing)break}n===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}ue.prototype._write=function(t,e,n){n(new j5("_write()"))};ue.prototype._writev=null;ue.prototype.end=function(t,e,n){var i=this._writableState;return typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||lj(this,i,n),this};Object.defineProperty(ue.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function gR(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function sj(t,e){t._final(function(n){e.pendingcb--,n&&fn(t,n),e.prefinished=!0,t.emit("prefinish"),Oo(t,e)})}function uj(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(sj,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Oo(t,e){var n=gR(e);if(n&&(uj(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return n}function lj(t,e,n){e.ending=!0,Oo(t,e),n&&(e.finished?process.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function cj(t,e,n){var i=t.entry;for(t.entry=null;i;){var a=i.callback;e.pendingcb--,a(n),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(ue.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});ue.prototype.destroy=rf.destroy;ue.prototype._undestroy=rf.undestroy;ue.prototype._destroy=function(t,e){e(t)}});var nf=h(($Z,bR)=>{"use strict";var fj=L("util"),RR=Na(),{LEVEL:PR}=fe(),No=bR.exports=function(e={}){RR.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",n=>{this.levels=n.levels,this.parent=n}),this.once("unpipe",n=>{n===this.parent&&(this.parent=null,this.close&&this.close())})};fj.inherits(No,RR);No.prototype._write=function(e,n,i){if(this.silent||e.exception===!0&&!this.handleExceptions)return i(null);let a=this.level||this.parent&&this.parent.level;if(!a||this.levels[a]>=this.levels[e[PR]]){if(e&&!this.format)return this.log(e,i);let s,o;try{o=this.format.transform(Object.assign({},e),this.format.options)}catch(r){s=r}if(s||!o){if(i(),s)throw s;return}return this.log(o,i)}return this._writableState.sync=!1,i(null)};No.prototype._writev=function(e,n){if(this.logv){let i=e.filter(this._accept,this);return i.length?this.logv(i,n):n(null)}for(let i=0;i<e.length;i++){if(!this._accept(e[i]))continue;if(e[i].chunk&&!this.format){this.log(e[i].chunk,e[i].callback);continue}let a,s;try{s=this.format.transform(Object.assign({},e[i].chunk),this.format.options)}catch(o){a=o}if(a||!s){if(e[i].callback(),a)throw n(null),a}else this.log(s,e[i].callback)}return n(null)};No.prototype._accept=function(e){let n=e.chunk;if(this.silent)return!1;let i=this.level||this.parent&&this.parent.level;return!!((n.exception===!0||!i||this.levels[i]>=this.levels[n[PR]])&&(this.handleExceptions||n.exception!==!0))};No.prototype._nop=function(){}});var af=h((KZ,xR)=>{"use strict";var pj=L("util"),{LEVEL:of}=fe(),MR=nf(),Ro=xR.exports=function(e={}){if(MR.call(this,e),!e.transport||typeof e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated();function n(i){this.emit("error",i,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=n.bind(this),this.transport.on("error",this.transport.__winstonError))};pj.inherits(Ro,MR);Ro.prototype._write=function(e,n,i){if(this.silent||e.exception===!0&&!this.handleExceptions)return i(null);(!this.level||this.levels[this.level]>=this.levels[e[of]])&&this.transport.log(e[of],e.message,e,this._nop),i(null)};Ro.prototype._writev=function(e,n){for(let i=0;i<e.length;i++)this._accept(e[i])&&(this.transport.log(e[i].chunk[of],e[i].chunk.message,e[i].chunk,this._nop),e[i].callback());return n(null)};Ro.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
34
|
-
`))};Ro.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var pn=h((WZ,sf)=>{"use strict";sf.exports=nf();sf.exports.LegacyTransportStream=af()});var CR=h((XZ,IR)=>{"use strict";var dj=L("os"),{LEVEL:LR,MESSAGE:dn}=fe(),Ej=pn();IR.exports=class extends Ej{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol=typeof e.eol=="string"?e.eol:dj.EOL,this.setMaxListeners(30)}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[LR]]){console._stderr?console._stderr.write(`${e[dn]}${this.eol}`):console.error(e[dn]),n&&n();return}else if(this.consoleWarnLevels[e[LR]]){console._stderr?console._stderr.write(`${e[dn]}${this.eol}`):console.warn(e[dn]),n&&n();return}console._stdout?console._stdout.write(`${e[dn]}${this.eol}`):console.log(e[dn]),n&&n()}_stringArrayToSet(e,n){if(!e)return{};if(n=n||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(n);return e.reduce((i,a)=>{if(typeof a!="string")throw new Error(n);return i[a]=!0,i},{})}}});var Ma=h((ba,wR)=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.default=_j;function _j(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}wR.exports=ba.default});var DR=h((xa,UR)=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.default=function(t){return function(...e){var n=e.pop();return t.call(this,e,n)}};UR.exports=xa.default});var GR=h(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.fallback=VR;rr.wrap=BR;var Sj=rr.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,hj=rr.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,Tj=rr.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function VR(t){setTimeout(t,0)}function BR(t){return(e,...n)=>t(()=>e(...n))}var Po;Sj?Po=queueMicrotask:hj?Po=setImmediate:Tj?Po=process.nextTick:Po=VR;rr.default=BR(Po)});var qR=h((La,YR)=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.default=gj;var vj=DR(),mj=FR(vj),yj=GR(),Aj=FR(yj),Oj=xr();function FR(t){return t&&t.__esModule?t:{default:t}}function gj(t){return(0,Oj.isAsync)(t)?function(...e){let n=e.pop(),i=t.apply(this,e);return kR(i,n)}:(0,mj.default)(function(e,n){var i;try{i=t.apply(this,e)}catch(a){return n(a)}if(i&&typeof i.then=="function")return kR(i,n);n(null,i)})}function kR(t,e){return t.then(n=>{HR(e,null,n)},n=>{HR(e,n&&(n instanceof Error||n.message)?n:new Error(n))})}function HR(t,e,n){try{t(e,n)}catch(i){(0,Aj.default)(a=>{throw a},i)}}YR.exports=La.default});var xr=h(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.isAsyncIterable=Ct.isAsyncGenerator=Ct.isAsync=void 0;var Nj=qR(),Rj=Pj(Nj);function Pj(t){return t&&t.__esModule?t:{default:t}}function jR(t){return t[Symbol.toStringTag]==="AsyncFunction"}function bj(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Mj(t){return typeof t[Symbol.asyncIterator]=="function"}function xj(t){if(typeof t!="function")throw new Error("expected a function");return jR(t)?(0,Rj.default)(t):t}Ct.default=xj;Ct.isAsync=jR;Ct.isAsyncGenerator=bj;Ct.isAsyncIterable=Mj});var En=h((Ia,$R)=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.default=Lj;function Lj(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function n(...i){return typeof i[e-1]=="function"?t.apply(this,i):new Promise((a,s)=>{i[e-1]=(o,...r)=>{if(o)return s(o);a(r.length>1?r:r[0])},t.apply(this,i)})}return n}$R.exports=Ia.default});var WR=h((Ca,KR)=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var Ij=Ma(),Cj=uf(Ij),wj=xr(),Uj=uf(wj),Dj=En(),Vj=uf(Dj);function uf(t){return t&&t.__esModule?t:{default:t}}Ca.default=(0,Vj.default)((t,e,n)=>{var i=(0,Cj.default)(e)?[]:{};t(e,(a,s,o)=>{(0,Uj.default)(a)((r,...u)=>{u.length<2&&([u]=u),i[s]=u,o(r)})},a=>n(a,i))},3);KR.exports=Ca.default});var lf=h((wa,zR)=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.default=Bj;function Bj(t){function e(...n){if(t!==null){var i=t;t=null,i.apply(this,n)}}return Object.assign(e,t),e}zR.exports=wa.default});var JR=h((Ua,XR)=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};XR.exports=Ua.default});var eP=h((Da,ZR)=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.default=$j;var Gj=Ma(),kj=QR(Gj),Hj=JR(),Fj=QR(Hj);function QR(t){return t&&t.__esModule?t:{default:t}}function Yj(t){var e=-1,n=t.length;return function(){return++e<n?{value:t[e],key:e}:null}}function qj(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function jj(t){var e=t?Object.keys(t):[],n=-1,i=e.length;return function a(){var s=e[++n];return s==="__proto__"?a():n<i?{value:t[s],key:s}:null}}function $j(t){if((0,kj.default)(t))return Yj(t);var e=(0,Fj.default)(t);return e?qj(e):jj(t)}ZR.exports=Da.default});var cf=h((Va,tP)=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.default=Kj;function Kj(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var n=t;t=null,n.apply(this,e)}}tP.exports=Va.default});var Ga=h((Ba,rP)=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var Wj={};Ba.default=Wj;rP.exports=Ba.default});var oP=h((ka,nP)=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.default=Qj;var zj=Ga(),Xj=Jj(zj);function Jj(t){return t&&t.__esModule?t:{default:t}}function Qj(t,e,n,i){let a=!1,s=!1,o=!1,r=0,u=0;function l(){r>=e||o||a||(o=!0,t.next().then(({value:_,done:f})=>{if(!(s||a)){if(o=!1,f){a=!0,r<=0&&i(null);return}r++,n(_,u,c),u++,l()}}).catch(p))}function c(_,f){if(r-=1,!s){if(_)return p(_);if(_===!1){a=!0,s=!0;return}if(f===Xj.default||a&&r<=0)return a=!0,i(null);l()}}function p(_){s||(o=!1,a=!0,i(_))}l()}nP.exports=ka.default});var uP=h((Ha,sP)=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var Zj=lf(),e4=bo(Zj),t4=eP(),r4=bo(t4),n4=cf(),o4=bo(n4),iP=xr(),i4=oP(),aP=bo(i4),a4=Ga(),s4=bo(a4);function bo(t){return t&&t.__esModule?t:{default:t}}Ha.default=t=>(e,n,i)=>{if(i=(0,e4.default)(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if((0,iP.isAsyncGenerator)(e))return(0,aP.default)(e,t,n,i);if((0,iP.isAsyncIterable)(e))return(0,aP.default)(e[Symbol.asyncIterator](),t,n,i);var a=(0,r4.default)(e),s=!1,o=!1,r=0,u=!1;function l(p,_){if(!o)if(r-=1,p)s=!0,i(p);else if(p===!1)s=!0,o=!0;else{if(_===s4.default||s&&r<=0)return s=!0,i(null);u||c()}}function c(){for(u=!0;r<t&&!s;){var p=a();if(p===null){s=!0,r<=0&&i(null);return}r+=1,n(p.value,p.key,(0,o4.default)(l))}u=!1}c()};sP.exports=Ha.default});var pf=h((Fa,lP)=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});var u4=uP(),l4=ff(u4),c4=xr(),f4=ff(c4),p4=En(),d4=ff(p4);function ff(t){return t&&t.__esModule?t:{default:t}}function E4(t,e,n,i){return(0,l4.default)(e)(t,(0,f4.default)(n),i)}Fa.default=(0,d4.default)(E4,4);lP.exports=Fa.default});var pP=h((Ya,fP)=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var _4=pf(),S4=cP(_4),h4=En(),T4=cP(h4);function cP(t){return t&&t.__esModule?t:{default:t}}function v4(t,e,n){return(0,S4.default)(t,1,e,n)}Ya.default=(0,T4.default)(v4,3);fP.exports=Ya.default});var _P=h((qa,EP)=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.default=g4;var m4=WR(),y4=dP(m4),A4=pP(),O4=dP(A4);function dP(t){return t&&t.__esModule?t:{default:t}}function g4(t,e){return(0,y4.default)(O4.default,t,e)}EP.exports=qa.default});var df=h((ZZ,hP)=>{"use strict";hP.exports=wt;var ja=Jt().codes,N4=ja.ERR_METHOD_NOT_IMPLEMENTED,R4=ja.ERR_MULTIPLE_CALLBACK,P4=ja.ERR_TRANSFORM_ALREADY_TRANSFORMING,b4=ja.ERR_TRANSFORM_WITH_LENGTH_0,$a=Mr();sn()(wt,$a);function M4(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(i===null)return this.emit("error",new R4);n.writechunk=null,n.writecb=null,e!=null&&this.push(e),i(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function wt(t){if(!(this instanceof wt))return new wt(t);$a.call(this,t),this._transformState={afterTransform:M4.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",x4)}function x4(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,n){SP(t,e,n)}):SP(this,null,null)}wt.prototype.push=function(t,e){return this._transformState.needTransform=!1,$a.prototype.push.call(this,t,e)};wt.prototype._transform=function(t,e,n){n(new N4("_transform()"))};wt.prototype._write=function(t,e,n){var i=this._transformState;if(i.writecb=n,i.writechunk=t,i.writeencoding=e,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};wt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};wt.prototype._destroy=function(t,e){$a.prototype._destroy.call(this,t,function(n){e(n)})};function SP(t,e,n){if(e)return t.emit("error",e);if(n!=null&&t.push(n),t._writableState.length)throw new b4;if(t._transformState.transforming)throw new P4;return t.push(null)}});var mP=h((eee,vP)=>{"use strict";vP.exports=Mo;var TP=df();sn()(Mo,TP);function Mo(t){if(!(this instanceof Mo))return new Mo(t);TP.call(this,t)}Mo.prototype._transform=function(t,e,n){n(null,t)}});var NP=h((tee,gP)=>{"use strict";var Ef;function L4(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var OP=Jt().codes,I4=OP.ERR_MISSING_ARGS,C4=OP.ERR_STREAM_DESTROYED;function yP(t){if(t)throw t}function w4(t){return t.setHeader&&typeof t.abort=="function"}function U4(t,e,n,i){i=L4(i);var a=!1;t.on("close",function(){a=!0}),Ef===void 0&&(Ef=ha()),Ef(t,{readable:e,writable:n},function(o){if(o)return i(o);a=!0,i()});var s=!1;return function(o){if(!a&&!s){if(s=!0,w4(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(o||new C4("pipe"))}}}function AP(t){t()}function D4(t,e){return t.pipe(e)}function V4(t){return!t.length||typeof t[t.length-1]!="function"?yP:t.pop()}function B4(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=V4(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new I4("streams");var a,s=e.map(function(o,r){var u=r<e.length-1,l=r>0;return U4(o,u,l,function(c){a||(a=c),c&&s.forEach(AP),!u&&(s.forEach(AP),i(a))})});return e.reduce(D4)}gP.exports=B4});var Lr=h((Qe,Lo)=>{"use strict";var xo=L("stream");process.env.READABLE_STREAM==="disable"&&xo?(Lo.exports=xo.Readable,Object.assign(Lo.exports,xo),Lo.exports.Stream=xo):(Qe=Lo.exports=Qc(),Qe.Stream=xo||Qe,Qe.Readable=Qe,Qe.Writable=Na(),Qe.Duplex=Mr(),Qe.Transform=df(),Qe.PassThrough=mP(),Qe.finished=ha(),Qe.pipeline=NP())});var yf=h((ree,PP)=>{"use strict";var _n=[],Io=[],_f=function(){};function hf(t){return~_n.indexOf(t)?!1:(_n.push(t),!0)}function Tf(t){_f=t}function G4(t){for(var e=[],n=0;n<_n.length;n++){if(_n[n].async){e.push(_n[n]);continue}if(_n[n](t))return!0}return e.length?new Promise(function(a){Promise.all(e.map(function(o){return o(t)})).then(function(o){a(o.some(Boolean))})}):!1}function vf(t){return~Io.indexOf(t)?!1:(Io.push(t),!0)}function Sf(){_f.apply(_f,arguments)}function RP(t){for(var e=0;e<Io.length;e++)t=Io[e].apply(Io[e],arguments);return t}function mf(t,e){var n=Object.prototype.hasOwnProperty;for(var i in e)n.call(e,i)&&(t[i]=e[i]);return t}function k4(t){return t.enabled=!1,t.modify=vf,t.set=Tf,t.use=hf,mf(function(){return!1},t)}function H4(t){function e(){var n=Array.prototype.slice.call(arguments,0);return Sf.call(Sf,t,RP(n,t)),!0}return t.enabled=!0,t.modify=vf,t.set=Tf,t.use=hf,mf(e,t)}PP.exports=function(e){return e.introduce=mf,e.enabled=G4,e.process=RP,e.modify=vf,e.write=Sf,e.nope=k4,e.yep=H4,e.set=Tf,e.use=hf,e}});var MP=h((nee,bP)=>{"use strict";var F4=yf(),Y4=F4(function t(e,n){return n=n||{},n.namespace=e,n.prod=!0,n.dev=!1,n.force||t.force?t.yep(n):t.nope(n)});bP.exports=Y4});var LP=h((oee,xP)=>{"use strict";xP.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var CP=h((iee,IP)=>{"use strict";IP.exports=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")}});var DP=h((aee,UP)=>{"use strict";var q4=CP(),j4=Array.prototype.concat,$4=Array.prototype.slice,wP=UP.exports=function(e){for(var n=[],i=0,a=e.length;i<a;i++){var s=e[i];q4(s)?n=j4.call(n,$4.call(s)):n.push(s)}return n};wP.wrap=function(t){return function(){return t(wP(arguments))}}});var kP=h((see,GP)=>{"use strict";var Co=LP(),wo=DP(),VP=Object.hasOwnProperty,BP=Object.create(null);for(Ka in Co)VP.call(Co,Ka)&&(BP[Co[Ka]]=Ka);var Ka,ze=GP.exports={to:{},get:{}};ze.get=function(t){var e=t.substring(0,3).toLowerCase(),n,i;switch(e){case"hsl":n=ze.get.hsl(t),i="hsl";break;case"hwb":n=ze.get.hwb(t),i="hwb";break;default:n=ze.get.rgb(t),i="rgb";break}return n?{model:i,value:n}:null};ze.get.rgb=function(t){if(!t)return null;var e=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,i=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,o=[0,0,0,1],r,u,l;if(r=t.match(n)){for(l=r[2],r=r[1],u=0;u<3;u++){var c=u*2;o[u]=parseInt(r.slice(c,c+2),16)}l&&(o[3]=parseInt(l,16)/255)}else if(r=t.match(e)){for(r=r[1],l=r[3],u=0;u<3;u++)o[u]=parseInt(r[u]+r[u],16);l&&(o[3]=parseInt(l+l,16)/255)}else if(r=t.match(i)){for(u=0;u<3;u++)o[u]=parseInt(r[u+1],0);r[4]&&(r[5]?o[3]=parseFloat(r[4])*.01:o[3]=parseFloat(r[4]))}else if(r=t.match(a)){for(u=0;u<3;u++)o[u]=Math.round(parseFloat(r[u+1])*2.55);r[4]&&(r[5]?o[3]=parseFloat(r[4])*.01:o[3]=parseFloat(r[4]))}else return(r=t.match(s))?r[1]==="transparent"?[0,0,0,0]:VP.call(Co,r[1])?(o=Co[r[1]],o[3]=1,o):null:null;for(u=0;u<3;u++)o[u]=nr(o[u],0,255);return o[3]=nr(o[3],0,1),o};ze.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){var i=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,s=nr(parseFloat(n[2]),0,100),o=nr(parseFloat(n[3]),0,100),r=nr(isNaN(i)?1:i,0,1);return[a,s,o,r]}return null};ze.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){var i=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,s=nr(parseFloat(n[2]),0,100),o=nr(parseFloat(n[3]),0,100),r=nr(isNaN(i)?1:i,0,1);return[a,s,o,r]}return null};ze.to.hex=function(){var t=wo(arguments);return"#"+Wa(t[0])+Wa(t[1])+Wa(t[2])+(t[3]<1?Wa(Math.round(t[3]*255)):"")};ze.to.rgb=function(){var t=wo(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};ze.to.rgb.percent=function(){var t=wo(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+n+"%, "+i+"%)":"rgba("+e+"%, "+n+"%, "+i+"%, "+t[3]+")"};ze.to.hsl=function(){var t=wo(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};ze.to.hwb=function(){var t=wo(arguments),e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};ze.to.keyword=function(t){return BP[t.slice(0,3)]};function nr(t,e,n){return Math.min(Math.max(e,t),n)}function Wa(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var FP=h((uee,HP)=>{"use strict";HP.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Af=h((lee,$P)=>{"use strict";var Ir=FP(),jP={};for(za in Ir)Ir.hasOwnProperty(za)&&(jP[Ir[za]]=za);var za,M=$P.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(Ue in M)if(M.hasOwnProperty(Ue)){if(!("channels"in M[Ue]))throw new Error("missing channels property: "+Ue);if(!("labels"in M[Ue]))throw new Error("missing channel labels property: "+Ue);if(M[Ue].labels.length!==M[Ue].channels)throw new Error("channel and label counts mismatch: "+Ue);YP=M[Ue].channels,qP=M[Ue].labels,delete M[Ue].channels,delete M[Ue].labels,Object.defineProperty(M[Ue],"channels",{value:YP}),Object.defineProperty(M[Ue],"labels",{value:qP})}var YP,qP,Ue;M.rgb.hsl=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a=Math.min(e,n,i),s=Math.max(e,n,i),o=s-a,r,u,l;return s===a?r=0:e===s?r=(n-i)/o:n===s?r=2+(i-e)/o:i===s&&(r=4+(e-n)/o),r=Math.min(r*60,360),r<0&&(r+=360),l=(a+s)/2,s===a?u=0:l<=.5?u=o/(s+a):u=o/(2-s-a),[r,u*100,l*100]};M.rgb.hsv=function(t){var e,n,i,a,s,o=t[0]/255,r=t[1]/255,u=t[2]/255,l=Math.max(o,r,u),c=l-Math.min(o,r,u),p=function(_){return(l-_)/6/c+1/2};return c===0?a=s=0:(s=c/l,e=p(o),n=p(r),i=p(u),o===l?a=i-n:r===l?a=1/3+e-i:u===l&&(a=2/3+n-e),a<0?a+=1:a>1&&(a-=1)),[a*360,s*100,l*100]};M.rgb.hwb=function(t){var e=t[0],n=t[1],i=t[2],a=M.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(n,i));return i=1-1/255*Math.max(e,Math.max(n,i)),[a,s*100,i*100]};M.rgb.cmyk=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a,s,o,r;return r=Math.min(1-e,1-n,1-i),a=(1-e-r)/(1-r)||0,s=(1-n-r)/(1-r)||0,o=(1-i-r)/(1-r)||0,[a*100,s*100,o*100,r*100]};function K4(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}M.rgb.keyword=function(t){var e=jP[t];if(e)return e;var n=1/0,i;for(var a in Ir)if(Ir.hasOwnProperty(a)){var s=Ir[a],o=K4(t,s);o<n&&(n=o,i=a)}return i};M.keyword.rgb=function(t){return Ir[t]};M.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var a=e*.4124+n*.3576+i*.1805,s=e*.2126+n*.7152+i*.0722,o=e*.0193+n*.1192+i*.9505;return[a*100,s*100,o*100]};M.rgb.lab=function(t){var e=M.rgb.xyz(t),n=e[0],i=e[1],a=e[2],s,o,r;return n/=95.047,i/=100,a/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,s=116*i-16,o=500*(n-i),r=200*(i-a),[s,o,r]};M.hsl.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100,a,s,o,r,u;if(n===0)return u=i*255,[u,u,u];i<.5?s=i*(1+n):s=i+n-i*n,a=2*i-s,r=[0,0,0];for(var l=0;l<3;l++)o=e+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?u=a+(s-a)*6*o:2*o<1?u=s:3*o<2?u=a+(s-a)*(2/3-o)*6:u=a,r[l]=u*255;return r};M.hsl.hsv=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,a=n,s=Math.max(i,.01),o,r;return i*=2,n*=i<=1?i:2-i,a*=s<=1?s:2-s,r=(i+n)/2,o=i===0?2*a/(s+a):2*n/(i+n),[e,o*100,r*100]};M.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,a=Math.floor(e)%6,s=e-Math.floor(e),o=255*i*(1-n),r=255*i*(1-n*s),u=255*i*(1-n*(1-s));switch(i*=255,a){case 0:return[i,u,o];case 1:return[r,i,o];case 2:return[o,i,u];case 3:return[o,r,i];case 4:return[u,o,i];case 5:return[i,o,r]}};M.hsv.hsl=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,a=Math.max(i,.01),s,o,r;return r=(2-n)*i,s=(2-n)*a,o=n*a,o/=s<=1?s:2-s,o=o||0,r/=2,[e,o*100,r*100]};M.hwb.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100,a=n+i,s,o,r,u;a>1&&(n/=a,i/=a),s=Math.floor(6*e),o=1-i,r=6*e-s,s&1&&(r=1-r),u=n+r*(o-n);var l,c,p;switch(s){default:case 6:case 0:l=o,c=u,p=n;break;case 1:l=u,c=o,p=n;break;case 2:l=n,c=o,p=u;break;case 3:l=n,c=u,p=o;break;case 4:l=u,c=n,p=o;break;case 5:l=o,c=n,p=u;break}return[l*255,c*255,p*255]};M.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a=t[3]/100,s,o,r;return s=1-Math.min(1,e*(1-a)+a),o=1-Math.min(1,n*(1-a)+a),r=1-Math.min(1,i*(1-a)+a),[s*255,o*255,r*255]};M.xyz.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a,s,o;return a=e*3.2406+n*-1.5372+i*-.4986,s=e*-.9689+n*1.8758+i*.0415,o=e*.0557+n*-.204+i*1.057,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[a*255,s*255,o*255]};M.xyz.lab=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;return e/=95.047,n/=100,i/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=116*n-16,s=500*(e-n),o=200*(n-i),[a,s,o]};M.lab.xyz=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;s=(e+16)/116,a=n/500+s,o=s-i/200;var r=Math.pow(s,3),u=Math.pow(a,3),l=Math.pow(o,3);return s=r>.008856?r:(s-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,a*=95.047,s*=100,o*=108.883,[a,s,o]};M.lab.lch=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;return a=Math.atan2(i,n),s=a*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(n*n+i*i),[e,o,s]};M.lch.lab=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;return o=i/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o),[e,a,s]};M.rgb.ansi16=function(t){var e=t[0],n=t[1],i=t[2],a=1 in arguments?arguments[1]:M.rgb.hsv(t)[2];if(a=Math.round(a/50),a===0)return 30;var s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return a===2&&(s+=60),s};M.hsv.ansi16=function(t){return M.rgb.ansi16(M.hsv.rgb(t),t[2])};M.rgb.ansi256=function(t){var e=t[0],n=t[1],i=t[2];if(e===n&&n===i)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var a=16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5);return a};M.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var n=(~~(t>50)+1)*.5,i=(e&1)*n*255,a=(e>>1&1)*n*255,s=(e>>2&1)*n*255;return[i,a,s]};M.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var n,i=Math.floor(t/36)/5*255,a=Math.floor((n=t%36)/6)/5*255,s=n%6/5*255;return[i,a,s]};M.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n};M.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];e[0].length===3&&(n=n.split("").map(function(r){return r+r}).join(""));var i=parseInt(n,16),a=i>>16&255,s=i>>8&255,o=i&255;return[a,s,o]};M.rgb.hcg=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a=Math.max(Math.max(e,n),i),s=Math.min(Math.min(e,n),i),o=a-s,r,u;return o<1?r=s/(1-o):r=0,o<=0?u=0:a===e?u=(n-i)/o%6:a===n?u=2+(i-e)/o:u=4+(e-n)/o+4,u/=6,u%=1,[u*360,o*100,r*100]};M.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1,a=0;return n<.5?i=2*e*n:i=2*e*(1-n),i<1&&(a=(n-.5*i)/(1-i)),[t[0],i*100,a*100]};M.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=e*n,a=0;return i<1&&(a=(n-i)/(1-i)),[t[0],i*100,a*100]};M.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100;if(n===0)return[i*255,i*255,i*255];var a=[0,0,0],s=e%1*6,o=s%1,r=1-o,u=0;switch(Math.floor(s)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=r,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=r,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=r}return u=(1-n)*i,[(n*a[0]+u)*255,(n*a[1]+u)*255,(n*a[2]+u)*255]};M.hcg.hsv=function(t){var e=t[1]/100,n=t[2]/100,i=e+n*(1-e),a=0;return i>0&&(a=e/i),[t[0],a*100,i*100]};M.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100,i=n*(1-e)+.5*e,a=0;return i>0&&i<.5?a=e/(2*i):i>=.5&&i<1&&(a=e/(2*(1-i))),[t[0],a*100,i*100]};M.hcg.hwb=function(t){var e=t[1]/100,n=t[2]/100,i=e+n*(1-e);return[t[0],(i-e)*100,(1-i)*100]};M.hwb.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1-n,a=i-e,s=0;return a<1&&(s=(i-a)/(1-a)),[t[0],a*100,s*100]};M.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};M.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};M.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};M.gray.hsl=M.gray.hsv=function(t){return[0,0,t[0]]};M.gray.hwb=function(t){return[0,100,t[0]]};M.gray.cmyk=function(t){return[0,0,0,t[0]]};M.gray.lab=function(t){return[t[0],0,0]};M.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,n=(e<<16)+(e<<8)+e,i=n.toString(16).toUpperCase();return"000000".substring(i.length)+i};M.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var WP=h((cee,KP)=>{"use strict";var Xa=Af();function W4(){for(var t={},e=Object.keys(Xa),n=e.length,i=0;i<n;i++)t[e[i]]={distance:-1,parent:null};return t}function z4(t){var e=W4(),n=[t];for(e[t].distance=0;n.length;)for(var i=n.pop(),a=Object.keys(Xa[i]),s=a.length,o=0;o<s;o++){var r=a[o],u=e[r];u.distance===-1&&(u.distance=e[i].distance+1,u.parent=i,n.unshift(r))}return e}function X4(t,e){return function(n){return e(t(n))}}function J4(t,e){for(var n=[e[t].parent,t],i=Xa[e[t].parent][t],a=e[t].parent;e[a].parent;)n.unshift(e[a].parent),i=X4(Xa[e[a].parent][a],i),a=e[a].parent;return i.conversion=n,i}KP.exports=function(t){for(var e=z4(t),n={},i=Object.keys(e),a=i.length,s=0;s<a;s++){var o=i[s],r=e[o];r.parent!==null&&(n[o]=J4(o,e))}return n}});var XP=h((fee,zP)=>{"use strict";var Of=Af(),Q4=WP(),Sn={},Z4=Object.keys(Of);function e6(t){var e=function(n){return n==null?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function t6(t){var e=function(n){if(n==null)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var i=t(n);if(typeof i=="object")for(var a=i.length,s=0;s<a;s++)i[s]=Math.round(i[s]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}Z4.forEach(function(t){Sn[t]={},Object.defineProperty(Sn[t],"channels",{value:Of[t].channels}),Object.defineProperty(Sn[t],"labels",{value:Of[t].labels});var e=Q4(t),n=Object.keys(e);n.forEach(function(i){var a=e[i];Sn[t][i]=t6(a),Sn[t][i].raw=e6(a)})});zP.exports=Sn});var ZP=h((pee,QP)=>{"use strict";var Uo=kP(),Xe=XP(),Rf=[].slice,JP=["keyword","gray","hex"],gf={};Object.keys(Xe).forEach(function(t){gf[Rf.call(Xe[t].labels).sort().join("")]=t});var Ja={};function ye(t,e){if(!(this instanceof ye))return new ye(t,e);if(e&&e in JP&&(e=null),e&&!(e in Xe))throw new Error("Unknown model: "+e);var n,i;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof ye)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if(typeof t=="string"){var a=Uo.get(t);if(a===null)throw new Error("Unable to parse color from string: "+t);this.model=a.model,i=Xe[this.model].channels,this.color=a.value.slice(0,i),this.valpha=typeof a.value[i]=="number"?a.value[i]:1}else if(t.length){this.model=e||"rgb",i=Xe[this.model].channels;var s=Rf.call(t,0,i);this.color=Nf(s,i),this.valpha=typeof t[i]=="number"?t[i]:1}else if(typeof t=="number")t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var r=o.sort().join("");if(!(r in gf))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=gf[r];var u=Xe[this.model].labels,l=[];for(n=0;n<u.length;n++)l.push(t[u[n]]);this.color=Nf(l)}if(Ja[this.model])for(i=Xe[this.model].channels,n=0;n<i;n++){var c=Ja[this.model][n];c&&(this.color[n]=c(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}ye.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in Uo.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);var n=e.valpha===1?e.color:e.color.concat(this.valpha);return Uo.to[e.model](n)},percentString:function(t){var e=this.rgb().round(typeof t=="number"?t:1),n=e.valpha===1?e.color:e.color.concat(this.valpha);return Uo.to.rgb.percent(n)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=Xe[this.model].channels,n=Xe[this.model].labels,i=0;i<e;i++)t[n[i]]=this.color[i];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new ye(this.color.map(n6(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new ye(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:le("rgb",0,de(255)),green:le("rgb",1,de(255)),blue:le("rgb",2,de(255)),hue:le(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:le("hsl",1,de(100)),lightness:le("hsl",2,de(100)),saturationv:le("hsv",1,de(100)),value:le("hsv",2,de(100)),chroma:le("hcg",1,de(100)),gray:le("hcg",2,de(100)),white:le("hwb",1,de(100)),wblack:le("hwb",2,de(100)),cyan:le("cmyk",0,de(100)),magenta:le("cmyk",1,de(100)),yellow:le("cmyk",2,de(100)),black:le("cmyk",3,de(100)),x:le("xyz",0,de(100)),y:le("xyz",1,de(100)),z:le("xyz",2,de(100)),l:le("lab",0,de(100)),a:le("lab",1),b:le("lab",2),keyword:function(t){return arguments.length?new ye(t):Xe[this.model].keyword(this.color)},hex:function(t){return arguments.length?new ye(t):Uo.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity:function(){for(var t=this.rgb().color,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return ye.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),n=e.color[0];return n=(n+t)%360,n=n<0?360+n:n,e.color[0]=n,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var n=t.rgb(),i=this.rgb(),a=e===void 0?.5:e,s=2*a-1,o=n.alpha()-i.alpha(),r=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,u=1-r;return ye.rgb(r*n.red()+u*i.red(),r*n.green()+u*i.green(),r*n.blue()+u*i.blue(),n.alpha()*a+i.alpha()*(1-a))}};Object.keys(Xe).forEach(function(t){if(JP.indexOf(t)===-1){var e=Xe[t].channels;ye.prototype[t]=function(){if(this.model===t)return new ye(this);if(arguments.length)return new ye(arguments,t);var n=typeof arguments[e]=="number"?e:this.valpha;return new ye(o6(Xe[this.model][t].raw(this.color)).concat(n),t)},ye[t]=function(n){return typeof n=="number"&&(n=Nf(Rf.call(arguments),e)),new ye(n,t)}}});function r6(t,e){return Number(t.toFixed(e))}function n6(t){return function(e){return r6(e,t)}}function le(t,e,n){return t=Array.isArray(t)?t:[t],t.forEach(function(i){(Ja[i]||(Ja[i]=[]))[e]=n}),t=t[0],function(i){var a;return arguments.length?(n&&(i=n(i)),a=this[t](),a.color[e]=i,a):(a=this[t]().color[e],n&&(a=n(a)),a)}}function de(t){return function(e){return Math.max(0,Math.min(t,e))}}function o6(t){return Array.isArray(t)?t:[t]}function Nf(t,e){for(var n=0;n<e;n++)typeof t[n]!="number"&&(t[n]=0);return t}QP.exports=ye});var tb=h((dee,eb)=>{"use strict";eb.exports=function(e){for(var n=0,i=0;n<e.length;i=e.charCodeAt(n++)+((i<<5)-i));var a=Math.floor(Math.abs(Math.sin(i)*1e4%1*16777216)).toString(16);return"#"+Array(6-a.length+1).join("0")+a}});var ib=h((Eee,ob)=>{"use strict";var rb=ZP(),nb=tb();ob.exports=function(e,n){var i=e.split(n||":"),a=nb(i[0]);if(!i.length)return a;for(var s=0,o=i.length-1;s<o;s++)a=rb(a).mix(rb(nb(i[s+1]))).saturate(1).hex();return a}});var sb=h((_ee,ab)=>{"use strict";function ut(t,e){if(e)return new ut(t).style(e);if(!(this instanceof ut))return new ut(t);this.text=t}ut.prototype.prefix="\x1B[";ut.prototype.suffix="m";ut.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var n=e.substring(0,2),i=e.substring(2,4),a=e.substring(4,6);return[parseInt(n,16),parseInt(i,16),parseInt(a,16)]};ut.prototype.rgb=function(e,n,i){var a=e/255*5,s=n/255*5,o=i/255*5;return this.ansi(a,s,o)};ut.prototype.ansi=function(e,n,i){var a=Math.round(e),s=Math.round(n),o=Math.round(i);return 16+a*36+s*6+o};ut.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};ut.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};ab.exports=ut});var lb=h((See,ub)=>{"use strict";var i6=ib(),a6=sb();ub.exports=function(e,n){var i=n.namespace,a=n.colors!==!1?a6(i+":",i6(i)):i+":";return e[0]=a+" "+e[0],e}});var fb=h((hee,cb)=>{"use strict";cb.exports=function(e,n){if(!n)return!1;for(var i=n.split(/[\s,]+/),a=0;a<i.length;a++){if(n=i[a].replace("*",".*?"),n.charAt(0)==="-"){if(new RegExp("^"+n.substr(1)+"$").test(e))return!1;continue}if(new RegExp("^"+n+"$").test(e))return!0}return!1}});var db=h((Tee,pb)=>{"use strict";var s6=fb();pb.exports=function(e){return function(i){try{return s6(i,e())}catch{}return!1}}});var _b=h((vee,Eb)=>{"use strict";var u6=db();Eb.exports=u6(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var hb=h((mee,Sb)=>{"use strict";Sb.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var vb=h((yee,Tb)=>{"use strict";var l6=yf(),c6=L("tty").isatty(1),Qa=l6(function t(e,n){return n=n||{},n.colors="colors"in n?n.colors:c6,n.namespace=e,n.prod=!1,n.dev=!0,!t.enabled(e)&&!(n.force||t.force)?t.nope(n):t.yep(n)});Qa.modify(lb());Qa.use(_b());Qa.set(hb());Tb.exports=Qa});var Do=h((Aee,Pf)=>{"use strict";process.env.NODE_ENV==="production"?Pf.exports=MP():Pf.exports=vb()});var yb=h((Oee,mb)=>{"use strict";var bf=L("fs"),{StringDecoder:f6}=L("string_decoder"),{Stream:p6}=Lr();function d6(){}mb.exports=(t,e)=>{let n=Buffer.alloc(65536),i=new f6("utf8"),a=new p6,s="",o=0,r=0;return t.start===-1&&delete t.start,a.readable=!0,a.destroy=()=>{a.destroyed=!0,a.emit("end"),a.emit("close")},bf.open(t.file,"a+","0644",(u,l)=>{if(u){e?e(u):a.emit("error",u),a.destroy();return}(function c(){if(a.destroyed){bf.close(l,d6);return}return bf.read(l,n,0,n.length,o,(p,_)=>{if(p){e?e(p):a.emit("error",p),a.destroy();return}if(!_)return s&&((t.start==null||r>t.start)&&(e?e(null,s):a.emit("line",s)),r++,s=""),setTimeout(c,1e3);let f=i.write(n.slice(0,_));e||a.emit("data",f),f=(s+f).split(/\n+/);let S=f.length-1,v=0;for(;v<S;v++)(t.start==null||r>t.start)&&(e?e(null,f[v]):a.emit("line",f[v])),r++;return s=f[S],o+=_,c()})})()}),e?a.destroy:a}});var Nb=h((Nee,gb)=>{"use strict";var qe=L("fs"),Se=L("path"),Ab=_P(),E6=L("zlib"),{MESSAGE:_6}=fe(),{Stream:S6,PassThrough:Ob}=Lr(),h6=pn(),lt=Do()("winston:file"),T6=L("os"),v6=yb();gb.exports=class extends h6{constructor(e={}){super(e),this.name=e.name||"file";function n(i,...a){a.slice(1).forEach(s=>{if(e[s])throw new Error(`Cannot set ${s} and ${i} together`)})}if(this._stream=new Ob,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)n("filename or dirname","stream"),this._basename=this.filename=e.filename?Se.basename(e.filename):"winston.log",this.dirname=e.dirname||Se.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),n("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=Se.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:T6.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}log(e,n=()=>{}){if(this.silent)return n(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,n)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,n)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,n)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,n)})});return}}let i=`${e[_6]}${this.eol}`,a=Buffer.byteLength(i);function s(){if(this._size+=a,this._pendingSize-=a,lt("logged %s %s",this._size,i),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=a,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let o=this._stream.write(i,s.bind(this));return o?n():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,n()})),lt("written",o,this._drain),this.finishIfEnding(),o}query(e,n){typeof e=="function"&&(n=e,e={}),e=p(e);let i=Se.join(this.dirname,this.filename),a="",s=[],o=0,r=qe.createReadStream(i,{encoding:"utf8"});r.on("error",_=>{if(r.readable&&r.destroy(),!!n)return _.code!=="ENOENT"?n(_):n(null,s)}),r.on("data",_=>{_=(a+_).split(/\n+/);let f=_.length-1,S=0;for(;S<f;S++)(!e.start||o>=e.start)&&u(_[S]),o++;a=_[f]}),r.on("close",()=>{a&&u(a,!0),e.order==="desc"&&(s=s.reverse()),n&&n(null,s)});function u(_,f){try{let S=JSON.parse(_);c(S)&&l(S)}catch(S){f||r.emit("error",S)}}function l(_){if(e.rows&&s.length>=e.rows&&e.order!=="desc"){r.readable&&r.destroy();return}e.fields&&(_=e.fields.reduce((f,S)=>(f[S]=_[S],f),{})),e.order==="desc"&&s.length>=e.rows&&s.shift(),s.push(_)}function c(_){if(!_||typeof _!="object")return;let f=new Date(_.timestamp);if(!(e.from&&f<e.from||e.until&&f>e.until||e.level&&e.level!==_.level))return!0}function p(_){return _=_||{},_.rows=_.rows||_.limit||10,_.start=_.start||0,_.until=_.until||new Date,typeof _.until!="object"&&(_.until=new Date(_.until)),_.from=_.from||_.until-24*60*60*1e3,typeof _.from!="object"&&(_.from=new Date(_.from)),_.order=_.order||"desc",_}}stream(e={}){let n=Se.join(this.dirname,this.filename),i=new S6,a={file:n,start:e.start};return i.destroy=v6(a,(s,o)=>{if(s)return i.emit("error",s);try{i.emit("data",o),o=JSON.parse(o),i.emit("log",o)}catch(r){i.emit("error",r)}}),i}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,n)=>{if(e)return this.emit("error",e);lt("stat done: %s { size: %s }",this.filename,n),this._size=n,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.eventNames().includes("rotate")?this._stream.emit("rotate"):this._rotate=!1})})))}stat(e){let n=this._getFile(),i=Se.join(this.dirname,n);qe.stat(i,(a,s)=>{if(a&&a.code==="ENOENT")return lt("ENOENT\xA0ok",i),this.filename=n,e(null,0);if(a)return lt(`err ${a.code} ${i}`),e(a);if(!s||this._needsNewFile(s.size))return this._incFile(()=>this.stat(e));this.filename=n,e(null,s.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let n=Se.join(this.dirname,this.filename);lt("create stream start",n,this.options);let i=qe.createWriteStream(n,this.options).on("error",a=>lt(a)).on("close",()=>lt("close",i.path,i.bytesWritten)).on("open",()=>{lt("file open ok",n),this.emit("open",n),e.pipe(i),this.rotatedWhileOpening&&(this._stream=new Ob,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(i),e.end())});return lt("create stream ok",n),i}_incFile(e){lt("_incFile",this.filename);let n=Se.extname(this._basename),i=Se.basename(this._basename,n),a=[];this.zippedArchive&&a.push(function(s){let o=this._created>0&&!this.tailable?this._created:"";this._compressFile(Se.join(this.dirname,`${i}${o}${n}`),Se.join(this.dirname,`${i}${o}${n}.gz`),s)}.bind(this)),a.push(function(s){this.tailable?this._checkMaxFilesTailable(n,i,s):(this._created+=1,this._checkMaxFilesIncrementing(n,i,s))}.bind(this)),Ab(a,e)}_getFile(){let e=Se.extname(this._basename),n=Se.basename(this._basename,e),i=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${n}${i}${e}`:`${n}${e}`}_checkMaxFilesIncrementing(e,n,i){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(i);let a=this._created-this.maxFiles,s=a!==0?a:"",o=this.zippedArchive?".gz":"",r=`${n}${s}${e}${o}`,u=Se.join(this.dirname,r);qe.unlink(u,i)}_checkMaxFilesTailable(e,n,i){let a=[];if(!this.maxFiles)return;let s=this.zippedArchive?".gz":"";for(let o=this.maxFiles-1;o>1;o--)a.push(function(r,u){let l=`${n}${r-1}${e}${s}`,c=Se.join(this.dirname,l);qe.exists(c,p=>{if(!p)return u(null);l=`${n}${r}${e}${s}`,qe.rename(c,Se.join(this.dirname,l),u)})}.bind(this,o));Ab(a,()=>{qe.rename(Se.join(this.dirname,`${n}${e}${s}`),Se.join(this.dirname,`${n}1${e}${s}`),i)})}_compressFile(e,n,i){qe.access(e,qe.F_OK,a=>{if(a)return i();var s=E6.createGzip(),o=qe.createReadStream(e),r=qe.createWriteStream(n);r.on("finish",()=>{qe.unlink(e,i)}),o.pipe(s).pipe(r)})}_createLogDirIfNotExist(e){qe.existsSync(e)||qe.mkdirSync(e,{recursive:!0})}}});var Pb=h((Pee,Rb)=>{"use strict";var m6=L("http"),y6=L("https"),{Stream:A6}=Lr(),O6=pn(),{configure:g6}=So();Rb.exports=class extends O6{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,n){this._request(e,null,null,(i,a)=>{a&&a.statusCode!==200&&(i=new Error(`Invalid HTTP Status Code: ${a.statusCode}`)),i?this.emit("warn",i):this.emit("logged",e)}),n&&setImmediate(n)}query(e,n){typeof e=="function"&&(n=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let i=e.params.auth||null;delete e.params.auth;let a=e.params.path||null;delete e.params.path,this._request(e,i,a,(s,o,r)=>{if(o&&o.statusCode!==200&&(s=new Error(`Invalid HTTP Status Code: ${o.statusCode}`)),s)return n(s);if(typeof r=="string")try{r=JSON.parse(r)}catch(u){return n(u)}n(null,r)})}stream(e={}){let n=new A6;e={method:"stream",params:e};let i=e.params.path||null;delete e.params.path;let a=e.params.auth||null;delete e.params.auth;let s="",o=this._request(e,a,i);return n.destroy=()=>o.destroy(),o.on("data",r=>{r=(s+r).split(/\n+/);let u=r.length-1,l=0;for(;l<u;l++)try{n.emit("log",JSON.parse(r[l]))}catch(c){n.emit("error",c)}s=r[u]}),o.on("error",r=>n.emit("error",r)),n}_request(e,n,i,a){e=e||{},n=n||this.auth,i=i||this.path||"",this.batch?this._doBatch(e,a,n,i):this._doRequest(e,a,n,i)}_doBatch(e,n,i,a){if(this.batchOptions.push(e),this.batchOptions.length===1){let s=this;this.batchCallback=n,this.batchTimeoutID=setTimeout(function(){s.batchTimeoutID=-1,s._doBatchRequest(s.batchCallback,i,a)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,i,a)}_doBatchRequest(e,n,i){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let a=this.batchOptions.slice();this.batchOptions=[],this._doRequest(a,e,n,i)}_doRequest(e,n,i,a){let s=Object.assign({},this.headers);i&&i.bearer&&(s.Authorization=`Bearer ${i.bearer}`);let o=(this.ssl?y6:m6).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${a.replace(/^\//,"")}`,headers:s,auth:i&&i.username&&i.password?`${i.username}:${i.password}`:"",agent:this.agent});o.on("error",n),o.on("response",u=>u.on("end",()=>n(null,u)).resume());let r=g6({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});o.end(Buffer.from(r(e,this.options.replacer),"utf8"))}}});var Mf=h((bee,bb)=>{"use strict";var vt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";vt.writable=t=>vt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";vt.readable=t=>vt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";vt.duplex=t=>vt.writable(t)&&vt.readable(t);vt.transform=t=>vt.duplex(t)&&typeof t._transform=="function";bb.exports=vt});var xb=h((xee,Mb)=>{"use strict";var N6=Mf(),{MESSAGE:R6}=fe(),P6=L("os"),b6=pn();Mb.exports=class extends b6{constructor(e={}){if(super(e),!e.stream||!N6(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol=typeof e.eol=="string"?e.eol:P6.EOL}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),n&&n();return}this._stream.write(`${e[R6]}${this.eol}`),n&&n()}}});var Lb=h(Vo=>{"use strict";Object.defineProperty(Vo,"Console",{configurable:!0,enumerable:!0,get(){return CR()}});Object.defineProperty(Vo,"File",{configurable:!0,enumerable:!0,get(){return Nb()}});Object.defineProperty(Vo,"Http",{configurable:!0,enumerable:!0,get(){return Pb()}});Object.defineProperty(Vo,"Stream",{configurable:!0,enumerable:!0,get(){return xb()}})});var es=h(Bo=>{"use strict";var Za=bc(),{configs:xf}=fe();Bo.cli=Za.levels(xf.cli);Bo.npm=Za.levels(xf.npm);Bo.syslog=Za.levels(xf.syslog);Bo.addColors=Za.levels});var Cb=h((ts,Ib)=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});var M6=Ma(),x6=Cr(M6),L6=Ga(),I6=Cr(L6),C6=pf(),w6=Cr(C6),U6=lf(),D6=Cr(U6),V6=cf(),B6=Cr(V6),G6=xr(),k6=Cr(G6),H6=En(),F6=Cr(H6);function Cr(t){return t&&t.__esModule?t:{default:t}}function Y6(t,e,n){n=(0,D6.default)(n);var i=0,a=0,{length:s}=t,o=!1;s===0&&n(null);function r(u,l){u===!1&&(o=!0),o!==!0&&(u?n(u):(++a===s||l===I6.default)&&n(null))}for(;i<s;i++)e(t[i],i,(0,B6.default)(r))}function q6(t,e,n){return(0,w6.default)(t,1/0,e,n)}function j6(t,e,n){var i=(0,x6.default)(t)?Y6:q6;return i(t,(0,k6.default)(e),n)}ts.default=(0,F6.default)(j6,3);Ib.exports=ts.default});var Ub=h((rs,wb)=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.default=$6;function $6(t){return(e,n,i)=>t(e,i)}wb.exports=rs.default});var is=h((os,Db)=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});var K6=Cb(),W6=ns(K6),z6=Ub(),X6=ns(z6),J6=xr(),Q6=ns(J6),Z6=En(),e$=ns(Z6);function ns(t){return t&&t.__esModule?t:{default:t}}function t$(t,e,n){return(0,W6.default)(t,(0,X6.default)((0,Q6.default)(e)),n)}os.default=(0,e$.default)(t$,3);Db.exports=os.default});var Bb=h((Cee,Vb)=>{"use strict";var r$=Object.prototype.toString;Vb.exports=function(e){if(typeof e.displayName=="string"&&e.constructor.name)return e.displayName;if(typeof e.name=="string"&&e.name)return e.name;if(typeof e=="object"&&e.constructor&&typeof e.constructor.name=="string")return e.constructor.name;var n=e.toString(),i=r$.call(e).slice(8,-1);return i==="Function"?n=n.substring(n.indexOf("(")+1,n.indexOf(")")):n=i,n||"anonymous"}});var Lf=h((wee,Gb)=>{"use strict";var n$=Bb();Gb.exports=function(e){var n=0,i;function a(){return n||(n=1,i=e.apply(this,arguments),e=null),i}return a.displayName=n$(e),a}});var If=h(ko=>{"use strict";ko.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var n={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(s,o){return o},Error.captureStackTrace(n,t||ko.get);var a=n.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=e,a};ko.parse=function(t){if(!t.stack)return[];var e=this,n=t.stack.split(`
|
35
|
-
`).slice(1);return n.map(function(i){if(i.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:i,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var a=i.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(a){var s=null,o=null,r=null,u=null,l=null,c=a[5]==="native";if(a[1]){r=a[1];var p=r.lastIndexOf(".");if(r[p-1]=="."&&p--,p>0){s=r.substr(0,p),o=r.substr(p+1);var _=s.indexOf(".Module");_>0&&(r=r.substr(_+1),s=s.substr(0,_))}u=null}o&&(u=s,l=o),o==="<anonymous>"&&(l=null,r=null);var f={fileName:a[2]||null,lineNumber:parseInt(a[3],10)||null,functionName:r,typeName:u,methodName:l,columnNumber:parseInt(a[4],10)||null,native:c};return e._createParsedCallSite(f)}}).filter(function(i){return!!i})};function
|
36
|
-
`),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:
|
37
|
-
`),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:
|
38
|
-
`));S&&this.exceptions.handle(S),v&&this.rejections.handle(v)}isLevelEnabled(e){let n=
|
39
|
-
`))}_onEvent(e,n){function i(a){e==="error"&&!this.transports.includes(n)&&this.add(n),this.emit(e,a,n)}n["__winston"+e]||(n["__winston"+e]=i.bind(this),n.on(e,n["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function Bf(t,e){let n=t[e];return!n&&n!==0?null:n}Object.defineProperty(ss.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});t0.exports=ss});var Gf=h(($ee,r0)=>{"use strict";var{LEVEL:O$}=fe(),g$=es(),N$=as(),R$=Do()("winston:create-logger");function P$(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}r0.exports=function(t={}){t.levels=t.levels||g$.npm.levels;class e extends N${constructor(a){super(a)}}let n=new e(t);return Object.keys(t.levels).forEach(function(i){if(R$('Define prototype method for "%s"',i),i==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[i]=function(...a){let s=this||n;if(a.length===1){let[o]=a,r=o&&o.message&&o||{message:o};return r.level=r[O$]=i,s._addDefaultMeta(r),s.write(r),this||n}return a.length===0?(s.log(i,""),s):s.log(i,...a)},e.prototype[P$(i)]=function(){return(this||n).isLevelEnabled(i)}}),n}});var o0=h((Wee,n0)=>{"use strict";var b$=Gf();n0.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,n){if(!this.loggers.has(e)){n=Object.assign({},n||this.options);let i=n.transports||this.options.transports;i?n.transports=Array.isArray(i)?i.slice():[i]:n.transports=[];let a=b$(n);a.on("close",()=>this._delete(e)),this.loggers.set(e,a)}return this.loggers.get(e)}get(e,n){return this.add(e,n)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((n,i)=>this._removeLogger(i))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var a0=h(Q=>{"use strict";var i0=bc(),{warn:Ho}=Mc();Q.version=LN().version;Q.transports=Lb();Q.config=es();Q.addColors=i0.levels;Q.format=i0.format;Q.createLogger=Gf();Q.Logger=as();Q.ExceptionHandler=wf();Q.RejectionHandler=Df();Q.Container=o0();Q.Transport=pn();Q.loggers=new Q.Container;var yt=Q.createLogger();Object.keys(Q.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>Q[t]=(...e)=>yt[t](...e));Object.defineProperty(Q,"level",{get(){return yt.level},set(t){yt.level=t}});Object.defineProperty(Q,"exceptions",{get(){return yt.exceptions}});Object.defineProperty(Q,"rejections",{get(){return yt.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(Q,t,{get(){return yt[t]},set(e){yt[t]=e}})});Object.defineProperty(Q,"default",{get(){return{exceptionHandlers:yt.exceptionHandlers,rejectionHandlers:yt.rejectionHandlers,transports:yt.transports}}});Ho.deprecated(Q,"setLevels");Ho.forFunctions(Q,"useFormat",["cli"]);Ho.forProperties(Q,"useFormat",["padLevels","stripColors"]);Ho.forFunctions(Q,"deprecated",["addRewriter","addFilter","clone","extend"]);Ho.forProperties(Q,"deprecated",["emitErrs","levelLength"])});var M$,x$,L$,us,ls,l0,c0=m(()=>{"use strict";M$="exception.type",x$="exception.message",L$="exception.stacktrace",us=M$,ls=x$,l0=L$});var f0=m(()=>{"use strict";c0()});var I$,C$,w$,U$,D$,p0,cs,Fo,Yo,qo,V$,d0,E0=m(()=>{"use strict";I$="process.runtime.name",C$="service.name",w$="telemetry.sdk.name",U$="telemetry.sdk.language",D$="telemetry.sdk.version",p0=I$,cs=C$,Fo=w$,Yo=U$,qo=D$,V$="nodejs",d0=V$});var _0=m(()=>{"use strict";E0()});var S0=m(()=>{"use strict"});var h0=m(()=>{"use strict"});var jo=m(()=>{"use strict";f0();_0();S0();h0()});function hn(t){return t.setValue(kf,!0)}function T0(t){return t.deleteValue(kf)}function be(t){return t.getValue(kf)===!0}var kf,$o=m(()=>{"use strict";b();kf=$r("OpenTelemetry SDK Context Key SUPPRESS_TRACING")});var v0,fs,Tn,ps,m0,y0,A0,Hf=m(()=>{"use strict";v0="=",fs=";",Tn=",",ps="baggage",m0=180,y0=4096,A0=8192});function ds(t){return t.reduce(function(e,n){var i=""+e+(e!==""?Tn:"")+n;return i.length>A0?e:i},"")}function Es(t){return t.getAllEntries().map(function(e){var n=B$(e,2),i=n[0],a=n[1],s=encodeURIComponent(i)+"="+encodeURIComponent(a.value);return a.metadata!==void 0&&(s+=fs+a.metadata.toString()),s})}function Ko(t){var e=t.split(fs);if(!(e.length<=0)){var n=e.shift();if(n){var i=n.indexOf(v0);if(!(i<=0)){var a=decodeURIComponent(n.substring(0,i).trim()),s=decodeURIComponent(n.substring(i+1).trim()),o;return e.length>0&&(o=aE(e.join(fs))),{key:a,value:s,metadata:o}}}}}function O0(t){return typeof t!="string"||t.length===0?{}:t.split(Tn).map(function(e){return Ko(e)}).filter(function(e){return e!==void 0&&e.value.length>0}).reduce(function(e,n){return e[n.key]=n.value,e},{})}var B$,Ff=m(()=>{"use strict";b();Hf();B$=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});var _s,g0=m(()=>{"use strict";b();$o();Hf();Ff();_s=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=it.getBaggage(e);if(!(!a||be(e))){var s=Es(a).filter(function(r){return r.length<=y0}).slice(0,m0),o=ds(s);o.length>0&&i.set(n,ps,o)}},t.prototype.extract=function(e,n,i){var a=i.get(n,ps),s=Array.isArray(a)?a.join(Tn):a;if(!s)return e;var o={};if(s.length===0)return e;var r=s.split(Tn);return r.forEach(function(u){var l=Ko(u);if(l){var c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0?e:it.setBaggage(e,it.createBaggage(o))},t.prototype.fields=function(){return[ps]},t}()});var N0,R0=m(()=>{"use strict";N0=function(){function t(e,n){this._monotonicClock=n,this._epochMillis=e.now(),this._performanceMillis=n.now()}return t.prototype.now=function(){var e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e},t}()});function or(t){var e,n,i={};if(typeof t!="object"||t==null)return i;try{for(var a=P0(Object.entries(t)),s=a.next();!s.done;s=a.next()){var o=G$(s.value,2),r=o[0],u=o[1];if(!Yf(r)){g.warn("Invalid attribute key: "+r);continue}if(!Wo(u)){g.warn("Invalid attribute value set for key: "+r);continue}Array.isArray(u)?i[r]=u.slice():i[r]=u}}catch(l){e={error:l}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function Yf(t){return typeof t=="string"&&t.length>0}function Wo(t){return t==null?!0:Array.isArray(t)?k$(t):b0(t)}function k$(t){var e,n,i;try{for(var a=P0(t),s=a.next();!s.done;s=a.next()){var o=s.value;if(o!=null){if(!i){if(b0(o)){i=typeof o;continue}return!1}if(typeof o!==i)return!1}}}catch(r){e={error:r}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return!0}function b0(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}var P0,G$,M0=m(()=>{"use strict";b();P0=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},G$=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function Ss(){return function(t){g.error(H$(t))}}function H$(t){return typeof t=="string"?t:JSON.stringify(F$(t))}function F$(t){for(var e={},n=t;n!==null;)Object.getOwnPropertyNames(n).forEach(function(i){if(!e[i]){var a=n[i];a&&(e[i]=String(a))}}),n=Object.getPrototypeOf(n);return e}var qf=m(()=>{"use strict";b()});function L0(t){x0=t}function he(t){try{x0(t)}catch{}}var x0,jf=m(()=>{"use strict";qf();x0=Ss()});var je,$f=m(()=>{"use strict";(function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})(je||(je={}))});function j$(t){return q$.indexOf(t)>-1}function K$(t){return $$.indexOf(t)>-1}function z$(t){return W$.indexOf(t)>-1}function X$(t,e,n){if(!(typeof n[t]>"u")){var i=String(n[t]);e[t]=i.toLowerCase()==="true"}}function J$(t,e,n,i,a){if(i===void 0&&(i=-1/0),a===void 0&&(a=1/0),typeof n[t]<"u"){var s=Number(n[t]);isNaN(s)||(s<i?e[t]=i:s>a?e[t]=a:e[t]=s)}}function Q$(t,e,n,i){i===void 0&&(i=Y$);var a=n[t];typeof a=="string"&&(e[t]=a.split(i).map(function(s){return s.trim()}))}function eK(t,e,n){var i=n[t];if(typeof i=="string"){var a=Z$[i.toUpperCase()];a!=null&&(e[t]=a)}}function Xo(t){var e={};for(var n in zo){var i=n;switch(i){case"OTEL_LOG_LEVEL":eK(i,e,t);break;default:if(j$(i))X$(i,e,t);else if(K$(i))J$(i,e,t);else if(z$(i))Q$(i,e,t);else{var a=t[i];typeof a<"u"&&a!==null&&(e[i]=String(a))}}}return e}var Y$,q$,$$,W$,wr,Ur,Kf,Wf,zo,Z$,zf=m(()=>{"use strict";b();$f();Y$=",",q$=["OTEL_SDK_DISABLED"];$$=["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"];W$=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];wr=1/0,Ur=128,Kf=128,Wf=128,zo={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:ot.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:wr,OTEL_ATTRIBUTE_COUNT_LIMIT:Ur,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:wr,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Ur,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:wr,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Ur,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Kf,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:Wf,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:je.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:[]};Z$={ALL:ot.ALL,VERBOSE:ot.VERBOSE,DEBUG:ot.DEBUG,INFO:ot.INFO,WARN:ot.WARN,ERROR:ot.ERROR,NONE:ot.NONE}});function Ae(){var t=Xo(process.env);return Object.assign({},zo,t)}function vn(){return Xo(process.env)}var I0=m(()=>{"use strict";zf()});var hs,C0=m(()=>{"use strict";hs=typeof globalThis=="object"?globalThis:global});function w0(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function ir(t){for(var e=new Uint8Array(t.length/2),n=0,i=0;i<t.length;i+=2){var a=w0(t.charCodeAt(i)),s=w0(t.charCodeAt(i+1));e[n++]=a<<4|s}return e}var Xf=m(()=>{"use strict"});function Ts(t){return Buffer.from(ir(t)).toString("base64")}var U0=m(()=>{"use strict";Xf()});function D0(t){return function(){for(var n=0;n<t/4;n++)vs.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(vs[n]>0);n++)n===t-1&&(vs[t-1]=1);return vs.toString("hex",0,t)}}var tK,V0,ms,vs,B0=m(()=>{"use strict";tK=8,V0=16,ms=function(){function t(){this.generateTraceId=D0(V0),this.generateSpanId=D0(tK)}return t}(),vs=Buffer.allocUnsafe(V0)});import{performance as rK}from"perf_hooks";var Ze,G0=m(()=>{"use strict";Ze=rK});var ys,Jf=m(()=>{"use strict";ys="1.27.0"});var mn,ar,k0=m(()=>{"use strict";Jf();jo();ar=(mn={},mn[Fo]="opentelemetry",mn[p0]="node",mn[Yo]=d0,mn[qo]=ys,mn)});function sr(t){t.unref()}var H0=m(()=>{"use strict"});var F0=m(()=>{"use strict";I0();C0();U0();B0();G0();k0();H0()});var Qf=m(()=>{"use strict";F0()});function Oe(t){var e=t/1e3,n=Math.trunc(e),i=Math.round(t%1e3*oK);return[n,i]}function yn(){var t=Ze.timeOrigin;if(typeof t!="number"){var e=Ze;t=e.timing&&e.timing.fetchStart}return t}function Jo(t){var e=Oe(yn()),n=Oe(typeof t=="number"?t:Ze.now());return Zo(e,n)}function q0(t){if(An(t))return t;if(typeof t=="number")return t<yn()?Jo(t):Oe(t);if(t instanceof Date)return Oe(t.getTime());throw TypeError("Invalid input type")}function Os(t,e){var n=e[0]-t[0],i=e[1]-t[1];return i<0&&(n-=1,i+=As),[n,i]}function j0(t){var e=Y0,n=""+"0".repeat(e)+t[1]+"Z",i=n.substr(n.length-e-1),a=new Date(t[0]*1e3).toISOString();return a.replace("000Z",i)}function gs(t){return t[0]*As+t[1]}function $0(t){return t[0]*1e3+t[1]/1e6}function Ot(t){return t[0]*1e6+t[1]/1e3}function An(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function Qo(t){return An(t)||typeof t=="number"||t instanceof Date}function Zo(t,e){var n=[t[0]+e[0],t[1]+e[1]];return n[1]>=As&&(n[1]-=As,n[0]+=1),n}var Y0,nK,oK,As,K0=m(()=>{"use strict";Qf();Y0=9,nK=6,oK=Math.pow(10,nK),As=Math.pow(10,Y0)});var ee,W0=m(()=>{"use strict";(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(ee||(ee={}))});var iK,Ns,z0=m(()=>{"use strict";b();iK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ns=function(){function t(e){e===void 0&&(e={});var n;this._propagators=(n=e.propagators)!==null&&n!==void 0?n:[],this._fields=Array.from(new Set(this._propagators.map(function(i){return typeof i.fields=="function"?i.fields():[]}).reduce(function(i,a){return i.concat(a)},[])))}return t.prototype.inject=function(e,n,i){var a,s;try{for(var o=iK(this._propagators),r=o.next();!r.done;r=o.next()){var u=r.value;try{u.inject(e,n,i)}catch(l){g.warn("Failed to inject with "+u.constructor.name+". Err: "+l.message)}}}catch(l){a={error:l}}finally{try{r&&!r.done&&(s=o.return)&&s.call(o)}finally{if(a)throw a.error}}},t.prototype.extract=function(e,n,i){return this._propagators.reduce(function(a,s){try{return s.extract(a,n,i)}catch(o){g.warn("Failed to extract with "+s.constructor.name+". Err: "+o.message)}return a},e)},t.prototype.fields=function(){return this._fields.slice()},t}()});function X0(t){return uK.test(t)}function J0(t){return lK.test(t)&&!cK.test(t)}var Zf,aK,sK,uK,lK,cK,Q0=m(()=>{"use strict";Zf="[_0-9a-z-*/]",aK="[a-z]"+Zf+"{0,255}",sK="[a-z0-9]"+Zf+"{0,240}@[a-z]"+Zf+"{0,13}",uK=new RegExp("^(?:"+aK+"|"+sK+")$"),lK=/^[ -~]{0,255}[!-~]$/,cK=/,|=/});var Z0,fK,eM,tM,Rs,ep=m(()=>{"use strict";Q0();Z0=32,fK=512,eM=",",tM="=",Rs=function(){function t(e){this._internalState=new Map,e&&this._parse(e)}return t.prototype.set=function(e,n){var i=this._clone();return i._internalState.has(e)&&i._internalState.delete(e),i._internalState.set(e,n),i},t.prototype.unset=function(e){var n=this._clone();return n._internalState.delete(e),n},t.prototype.get=function(e){return this._internalState.get(e)},t.prototype.serialize=function(){var e=this;return this._keys().reduce(function(n,i){return n.push(i+tM+e.get(i)),n},[]).join(eM)},t.prototype._parse=function(e){e.length>fK||(this._internalState=e.split(eM).reverse().reduce(function(n,i){var a=i.trim(),s=a.indexOf(tM);if(s!==-1){var o=a.slice(0,s),r=a.slice(s+1,i.length);X0(o)&&J0(r)&&n.set(o,r)}return n},new Map),this._internalState.size>Z0&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Z0))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}()});function tp(t){var e=hK.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}var ei,ti,pK,dK,EK,_K,SK,hK,Ps,rM=m(()=>{"use strict";b();$o();ep();ei="traceparent",ti="tracestate",pK="00",dK="(?!ff)[\\da-f]{2}",EK="(?![0]{32})[\\da-f]{32}",_K="(?![0]{16})[\\da-f]{16}",SK="[\\da-f]{2}",hK=new RegExp("^\\s?("+dK+")-("+EK+")-("+_K+")-("+SK+")(-.*)?\\s?$");Ps=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=X.getSpanContext(e);if(!(!a||be(e)||!dt(a))){var s=pK+"-"+a.traceId+"-"+a.spanId+"-0"+Number(a.traceFlags||J.NONE).toString(16);i.set(n,ei,s),a.traceState&&i.set(n,ti,a.traceState.serialize())}},t.prototype.extract=function(e,n,i){var a=i.get(n,ei);if(!a)return e;var s=Array.isArray(a)?a[0]:a;if(typeof s!="string")return e;var o=tp(s);if(!o)return e;o.isRemote=!0;var r=i.get(n,ti);if(r){var u=Array.isArray(r)?r.join(","):r;o.traceState=new Rs(typeof u=="string"?u:void 0)}return X.setSpanContext(e,o)},t.prototype.fields=function(){return[ei,ti]},t}()});function nM(t,e){return t.setValue(rp,e)}function oM(t){return t.deleteValue(rp)}function iM(t){return t.getValue(rp)}var rp,bs,aM=m(()=>{"use strict";b();rp=$r("OpenTelemetry SDK Context Key RPC_METADATA");(function(t){t.HTTP="http"})(bs||(bs={}))});var ri,np=m(()=>{"use strict";b();ri=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:Et.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var On,op=m(()=>{"use strict";b();On=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:Et.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var sM,uM=m(()=>{"use strict";b();jf();np();op();sM=function(){function t(e){var n,i,a,s;this._root=e.root,this._root||(he(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new On),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new On,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new ri,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new On,this._localParentNotSampled=(s=e.localParentNotSampled)!==null&&s!==void 0?s:new ri}return t.prototype.shouldSample=function(e,n,i,a,s,o){var r=X.getSpanContext(e);return!r||!dt(r)?this._root.shouldSample(e,n,i,a,s,o):r.isRemote?r.traceFlags&J.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,s,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,s,o):r.traceFlags&J.SAMPLED?this._localParentSampled.shouldSample(e,n,i,a,s,o):this._localParentNotSampled.shouldSample(e,n,i,a,s,o)},t.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},t}()});var lM,cM=m(()=>{"use strict";b();lM=function(){function t(e){e===void 0&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}return t.prototype.shouldSample=function(e,n){return{decision:Gt(n)&&this._accumulate(n)<this._upperBound?Et.RECORD_AND_SAMPLED:Et.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e},t.prototype._accumulate=function(e){for(var n=0,i=0;i<e.length/8;i++){var a=i*8,s=parseInt(e.slice(a,a+8),16);n=(n^s)>>>0}return n},t}()});function gK(t,e){return function(n){return t(e(n))}}function ip(t){if(!NK(t)||RK(t)!==TK)return!1;var e=OK(t);if(e===null)return!0;var n=dM.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&fM.call(n)===AK}function NK(t){return t!=null&&typeof t=="object"}function RK(t){return t==null?t===void 0?mK:vK:Dr&&Dr in Object(t)?PK(t):bK(t)}function PK(t){var e=dM.call(t,Dr),n=t[Dr],i=!1;try{t[Dr]=void 0,i=!0}catch{}var a=EM.call(t);return i&&(e?t[Dr]=n:delete t[Dr]),a}function bK(t){return EM.call(t)}var TK,vK,mK,yK,fM,AK,OK,pM,dM,Dr,EM,_M=m(()=>{"use strict";TK="[object Object]",vK="[object Null]",mK="[object Undefined]",yK=Function.prototype,fM=yK.toString,AK=fM.call(Object),OK=gK(Object.getPrototypeOf,Object),pM=Object.prototype,dM=pM.hasOwnProperty,Dr=Symbol?Symbol.toStringTag:void 0,EM=pM.toString});function Ls(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t.shift(),i=new WeakMap;t.length>0;)n=hM(n,t.shift(),0,i);return n}function ap(t){return xs(t)?t.slice():t}function hM(t,e,n,i){n===void 0&&(n=0);var a;if(!(n>MK)){if(n++,Ms(t)||Ms(e)||TM(e))a=ap(e);else if(xs(t)){if(a=t.slice(),xs(e))for(var s=0,o=e.length;s<o;s++)a.push(ap(e[s]));else if(ni(e))for(var r=Object.keys(e),s=0,o=r.length;s<o;s++){var u=r[s];a[u]=ap(e[u])}}else if(ni(t))if(ni(e)){if(!xK(t,e))return e;a=Object.assign({},t);for(var r=Object.keys(e),s=0,o=r.length;s<o;s++){var u=r[s],l=e[u];if(Ms(l))typeof l>"u"?delete a[u]:a[u]=l;else{var c=a[u],p=l;if(SM(t,u,i)||SM(e,u,i))delete a[u];else{if(ni(c)&&ni(p)){var _=i.get(c)||[],f=i.get(p)||[];_.push({obj:t,key:u}),f.push({obj:e,key:u}),i.set(c,_),i.set(p,f)}a[u]=hM(a[u],l,n,i)}}}}else a=e;return a}}function SM(t,e,n){for(var i=n.get(t[e])||[],a=0,s=i.length;a<s;a++){var o=i[a];if(o.key===e&&o.obj===t)return!0}return!1}function xs(t){return Array.isArray(t)}function TM(t){return typeof t=="function"}function ni(t){return!Ms(t)&&!xs(t)&&!TM(t)&&typeof t=="object"}function Ms(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function xK(t,e){return!(!ip(t)||!ip(e))}var MK,vM=m(()=>{"use strict";_M();MK=20});function mM(t,e){var n,i=new Promise(function(s,o){n=setTimeout(function(){o(new sp("Operation timed out."))},e)});return Promise.race([t,i]).then(function(a){return clearTimeout(n),a},function(a){throw clearTimeout(n),a})}var LK,sp,yM=m(()=>{"use strict";LK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),sp=function(t){LK(e,t);function e(n){var i=t.call(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return e}(Error)});function up(t,e){return typeof e=="string"?t===e:!!t.match(e)}function AM(t,e){var n,i;if(!e)return!1;try{for(var a=IK(e),s=a.next();!s.done;s=a.next()){var o=s.value;if(up(t,o))return!0}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!1}var IK,OM=m(()=>{"use strict";IK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}});function gM(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}var NM=m(()=>{"use strict"});var RM,PM=m(()=>{"use strict";RM=function(){function t(){var e=this;this._promise=new Promise(function(n,i){e._resolve=n,e._reject=i})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(e){this._resolve(e)},t.prototype.reject=function(e){this._reject(e)},t}()});var CK,wK,ur,bM=m(()=>{"use strict";PM();CK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},wK=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},ur=function(){function t(e,n){this._callback=e,this._that=n,this._isCalled=!1,this._deferred=new RM}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var e,n=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((e=this._callback).call.apply(e,wK([this._that],CK(i),!1))).then(function(s){return n._deferred.resolve(s)},function(s){return n._deferred.reject(s)})}catch(s){this._deferred.reject(s)}}return this._deferred.promise},t}()});function MM(t,e){return new Promise(function(n){He.with(hn(He.active()),function(){t.export(e,function(i){n(i)})})})}var xM=m(()=>{"use strict";b();$o()});var Is={};nt(Is,{AlwaysOffSampler:()=>ri,AlwaysOnSampler:()=>On,AnchoredClock:()=>N0,BindOnceFuture:()=>ur,CompositePropagator:()=>Ns,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Ur,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>wr,DEFAULT_ENVIRONMENT:()=>zo,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Kf,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>Wf,ExportResultCode:()=>ee,ParentBasedSampler:()=>sM,RPCType:()=>bs,RandomIdGenerator:()=>ms,SDK_INFO:()=>ar,TRACE_PARENT_HEADER:()=>ei,TRACE_STATE_HEADER:()=>ti,TimeoutError:()=>sp,TraceIdRatioBasedSampler:()=>lM,TraceState:()=>Rs,TracesSamplerValues:()=>je,VERSION:()=>ys,W3CBaggagePropagator:()=>_s,W3CTraceContextPropagator:()=>Ps,_globalThis:()=>hs,addHrTimes:()=>Zo,baggageUtils:()=>gn,callWithTimeout:()=>mM,deleteRPCMetadata:()=>oM,getEnv:()=>Ae,getEnvWithoutDefaults:()=>vn,getRPCMetadata:()=>iM,getTimeOrigin:()=>yn,globalErrorHandler:()=>he,hexToBase64:()=>Ts,hexToBinary:()=>ir,hrTime:()=>Jo,hrTimeDuration:()=>Os,hrTimeToMicroseconds:()=>Ot,hrTimeToMilliseconds:()=>$0,hrTimeToNanoseconds:()=>gs,hrTimeToTimeStamp:()=>j0,internal:()=>oi,isAttributeKey:()=>Yf,isAttributeValue:()=>Wo,isTimeInput:()=>Qo,isTimeInputHrTime:()=>An,isTracingSuppressed:()=>be,isUrlIgnored:()=>AM,isWrapped:()=>gM,loggingErrorHandler:()=>Ss,merge:()=>Ls,millisToHrTime:()=>Oe,otperformance:()=>Ze,parseEnvironment:()=>Xo,parseTraceParent:()=>tp,sanitizeAttributes:()=>or,setGlobalErrorHandler:()=>L0,setRPCMetadata:()=>nM,suppressTracing:()=>hn,timeInputToHrTime:()=>q0,unrefTimer:()=>sr,unsuppressTracing:()=>T0,urlMatches:()=>up});var gn,oi,K=m(()=>{"use strict";g0();R0();M0();jf();qf();K0();Xf();W0();Ff();Qf();z0();rM();aM();np();op();uM();cM();$o();ep();zf();vM();$f();yM();OM();NM();bM();Jf();xM();gn={getKeyPairs:Es,serializeKeyPairs:ds,parseKeyPairsIntoRecord:O0,parsePairKeyValue:Ko},oi={_export:MM}});function Cs(){return"unknown_service:"+process.argv0}var LM=m(()=>{"use strict"});var IM=m(()=>{"use strict";LM()});var CM=m(()=>{"use strict";IM()});var lr,UK,DK,VK,Ut,lp=m(()=>{"use strict";b();jo();K();CM();lr=function(){return lr=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},lr.apply(this,arguments)},UK=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},DK=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},VK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Ut=function(){function t(e,n){var i=this,a;this._attributes=e,this.asyncAttributesPending=n!=null,this._syncAttributes=(a=this._attributes)!==null&&a!==void 0?a:{},this._asyncAttributesPromise=n?.then(function(s){return i._attributes=Object.assign({},i._attributes,s),i.asyncAttributesPending=!1,s},function(s){return g.debug("a resource's async attributes promise rejected: %s",s),i.asyncAttributesPending=!1,{}})}return t.empty=function(){return t.EMPTY},t.default=function(){var e;return new t((e={},e[cs]=Cs(),e[Yo]=ar[Yo],e[Fo]=ar[Fo],e[qo]=ar[qo],e))},Object.defineProperty(t.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&g.error("Accessing resource attributes before async attributes settled"),(e=this._attributes)!==null&&e!==void 0?e:{}},enumerable:!1,configurable:!0}),t.prototype.waitForAsyncAttributes=function(){return UK(this,void 0,void 0,function(){return DK(this,function(e){switch(e.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},t.prototype.merge=function(e){var n=this,i;if(!e)return this;var a=lr(lr({},this._syncAttributes),(i=e._syncAttributes)!==null&&i!==void 0?i:e.attributes);if(!this._asyncAttributesPromise&&!e._asyncAttributesPromise)return new t(a);var s=Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(function(o){var r,u=VK(o,2),l=u[0],c=u[1];return lr(lr(lr(lr({},n._syncAttributes),l),(r=e._syncAttributes)!==null&&r!==void 0?r:e.attributes),c)});return new t(a,s)},t.EMPTY=new t({}),t}()});var BK,GK,kK,cp,wM=m(()=>{"use strict";b();K();jo();lp();BK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},GK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},kK=function(){function t(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return t.prototype.detect=function(e){var n={},i=Ae(),a=i.OTEL_RESOURCE_ATTRIBUTES,s=i.OTEL_SERVICE_NAME;if(a)try{var o=this._parseResourceAttributes(a);Object.assign(n,o)}catch(r){g.debug("EnvDetector failed: "+r.message)}return s&&(n[cs]=s),new Ut(n)},t.prototype._parseResourceAttributes=function(e){var n,i;if(!e)return{};var a={},s=e.split(this._COMMA_SEPARATOR,-1);try{for(var o=BK(s),r=o.next();!r.done;r=o.next()){var u=r.value,l=u.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(l.length===2){var c=GK(l,2),p=c[0],_=c[1];if(p=p.trim(),_=_.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(p))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(_))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);a[p]=decodeURIComponent(_)}}}catch(f){n={error:f}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a},t.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},t.prototype._isBaggageOctetString=function(e){for(var n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i<33||i===44||i===59||i===92||i>126)return!1}return!0},t.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},t}(),cp=new kK});var HK,ws,UM=m(()=>{"use strict";wM();HK=function(){function t(){}return t.prototype.detect=function(e){return Promise.resolve(cp.detect(e))},t}(),ws=new HK});var DM=m(()=>{"use strict";UM()});var Us=m(()=>{"use strict";lp();DM()});var ge,Ds=m(()=>{"use strict";(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(ge||(ge={}))});var Ne,Nn=m(()=>{"use strict";(function(t){t[t.HISTOGRAM=0]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",t[t.GAUGE=2]="GAUGE",t[t.SUM=3]="SUM"})(Ne||(Ne={}))});function GM(t){return t!=null}function kM(t){var e=Object.keys(t);return e.length===0?"":(e=e.sort(),JSON.stringify(e.map(function(n){return[n,t[n]]})))}function HM(t){var e,n;return t.name+":"+((e=t.version)!==null&&e!==void 0?e:"")+":"+((n=t.schemaUrl)!==null&&n!==void 0?n:"")}function cr(t,e){var n,i=new Promise(function(s,o){n=setTimeout(function(){o(new ii("Operation timed out."))},e)});return Promise.race([t,i]).then(function(a){return clearTimeout(n),a},function(a){throw clearTimeout(n),a})}function FM(t){return VM(this,void 0,void 0,function(){var e=this;return BM(this,function(n){return[2,Promise.all(t.map(function(i){return VM(e,void 0,void 0,function(){var a,s;return BM(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,i];case 1:return a=o.sent(),[2,{status:"fulfilled",value:a}];case 2:return s=o.sent(),[2,{status:"rejected",reason:s}];case 3:return[2]}})})}))]})})}function YM(t){return t.status==="rejected"}function fp(t,e){var n=[];return t.forEach(function(i){n.push.apply(n,qK([],YK(e(i)),!1))}),n}function qM(t,e){var n,i;if(t.size!==e.size)return!1;try{for(var a=jK(t),s=a.next();!s.done;s=a.next()){var o=s.value;if(!e.has(o))return!1}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!0}function jM(t,e){for(var n=0,i=t.length-1,a=t.length;i>=n;){var s=n+Math.trunc((i-n)/2);t[s]<e?n=s+1:(a=s,i=s-1)}return a}function $M(t,e){return t.toLowerCase()===e.toLowerCase()}var FK,VM,BM,YK,qK,jK,ii,gt=m(()=>{"use strict";FK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),VM=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},BM=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},YK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},qK=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},jK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};ii=function(t){FK(e,t);function e(n){var i=t.call(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return e}(Error)});var et,Rn=m(()=>{"use strict";(function(t){t[t.DROP=0]="DROP",t[t.SUM=1]="SUM",t[t.LAST_VALUE=2]="LAST_VALUE",t[t.HISTOGRAM=3]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(et||(et={}))});var pp,KM=m(()=>{"use strict";Rn();pp=function(){function t(){this.kind=et.DROP}return t.prototype.createAccumulation=function(){},t.prototype.merge=function(e,n){},t.prototype.diff=function(e,n){},t.prototype.toMetricData=function(e,n,i,a){},t}()});function Nt(t,e,n){var i,a,s,o;return KK(t)||g.warn('Invalid metric name: "'+t+'". The metric name should be a ASCII string with a length no greater than 255 characters.'),{name:t,type:e,description:(i=n?.description)!==null&&i!==void 0?i:"",unit:(a=n?.unit)!==null&&a!==void 0?a:"",valueType:(s=n?.valueType)!==null&&s!==void 0?s:pt.DOUBLE,advice:(o=n?.advice)!==null&&o!==void 0?o:{}}}function WM(t,e){var n,i;return{name:(n=t.name)!==null&&n!==void 0?n:e.name,description:(i=t.description)!==null&&i!==void 0?i:e.description,type:e.type,unit:e.unit,valueType:e.valueType,advice:e.advice}}function zM(t,e){return $M(t.name,e.name)&&t.unit===e.unit&&t.type===e.type&&t.valueType===e.valueType}function KK(t){return t.match($K)!=null}var C,$K,Dt=m(()=>{"use strict";b();gt();(function(t){t.COUNTER="COUNTER",t.GAUGE="GAUGE",t.HISTOGRAM="HISTOGRAM",t.UP_DOWN_COUNTER="UP_DOWN_COUNTER",t.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",t.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",t.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(C||(C={}));$K=/^[a-z][a-z0-9_.\-/]{0,254}$/i});function zK(t){var e=t.map(function(){return 0});return e.push(0),{buckets:{boundaries:t,counts:e},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var WK,Vs,Bs,XM=m(()=>{"use strict";Rn();Nn();Dt();gt();WK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};Vs=function(){function t(e,n,i,a){i===void 0&&(i=!0),a===void 0&&(a=zK(n)),this.startTime=e,this._boundaries=n,this._recordMinMax=i,this._current=a}return t.prototype.record=function(e){if(!Number.isNaN(e)){this._current.count+=1,this._current.sum+=e,this._recordMinMax&&(this._current.min=Math.min(e,this._current.min),this._current.max=Math.max(e,this._current.max),this._current.hasMinMax=!0);var n=jM(this._boundaries,e);this._current.buckets.counts[n]+=1}},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Bs=function(){function t(e,n){this._boundaries=e,this._recordMinMax=n,this.kind=et.HISTOGRAM}return t.prototype.createAccumulation=function(e){return new Vs(e,this._boundaries,this._recordMinMax)},t.prototype.merge=function(e,n){for(var i=e.toPointValue(),a=n.toPointValue(),s=i.buckets.counts,o=a.buckets.counts,r=new Array(s.length),u=0;u<s.length;u++)r[u]=s[u]+o[u];var l=1/0,c=-1/0;return this._recordMinMax&&(i.hasMinMax&&a.hasMinMax?(l=Math.min(i.min,a.min),c=Math.max(i.max,a.max)):i.hasMinMax?(l=i.min,c=i.max):a.hasMinMax&&(l=a.min,c=a.max)),new Vs(e.startTime,i.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:i.buckets.boundaries,counts:r},count:i.count+a.count,sum:i.sum+a.sum,hasMinMax:this._recordMinMax&&(i.hasMinMax||a.hasMinMax),min:l,max:c})},t.prototype.diff=function(e,n){for(var i=e.toPointValue(),a=n.toPointValue(),s=i.buckets.counts,o=a.buckets.counts,r=new Array(s.length),u=0;u<s.length;u++)r[u]=o[u]-s[u];return new Vs(n.startTime,i.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:i.buckets.boundaries,counts:r},count:a.count-i.count,sum:a.sum-i.sum,hasMinMax:!1,min:1/0,max:-1/0})},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Ne.HISTOGRAM,dataPoints:i.map(function(s){var o=WK(s,2),r=o[0],u=o[1],l=u.toPointValue(),c=e.type===C.GAUGE||e.type===C.UP_DOWN_COUNTER||e.type===C.OBSERVABLE_GAUGE||e.type===C.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:r,startTime:u.startTime,endTime:a,value:{min:l.hasMinMax?l.min:void 0,max:l.hasMinMax?l.max:void 0,sum:c?void 0:l.sum,buckets:l.buckets,count:l.count}}})}},t}()});var dp,Ep,_p,XK,JM=m(()=>{"use strict";dp=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Ep=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},_p=function(){function t(e,n,i,a){e===void 0&&(e=new XK),n===void 0&&(n=0),i===void 0&&(i=0),a===void 0&&(a=0),this.backing=e,this.indexBase=n,this.indexStart=i,this.indexEnd=a}return Object.defineProperty(t.prototype,"offset",{get:function(){return this.indexStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1},enumerable:!1,configurable:!0}),t.prototype.counts=function(){var e=this;return Array.from({length:this.length},function(n,i){return e.at(i)})},t.prototype.at=function(e){var n=this.indexBase-this.indexStart;return e<n&&(e+=this.backing.length),e-=n,this.backing.countAt(e)},t.prototype.incrementBucket=function(e,n){this.backing.increment(e,n)},t.prototype.decrementBucket=function(e,n){this.backing.decrement(e,n)},t.prototype.trim=function(){for(var e=0;e<this.length;e++)if(this.at(e)!==0){this.indexStart+=e;break}else if(e===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(var e=this.length-1;e>=0;e--)if(this.at(e)!==0){this.indexEnd-=this.length-e-1;break}this._rotate()},t.prototype.downscale=function(e){this._rotate();for(var n=1+this.indexEnd-this.indexStart,i=1<<e,a=0,s=0,o=this.indexStart;o<=this.indexEnd;){var r=o%i;r<0&&(r+=i);for(var u=r;u<i&&a<n;u++)this._relocateBucket(s,a),a++,o++;s++}this.indexStart>>=e,this.indexEnd>>=e,this.indexBase=this.indexStart},t.prototype.clone=function(){return new t(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)},t.prototype._rotate=function(){var e=this.indexBase-this.indexStart;e!==0&&(e>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,e),this.backing.reverse(e,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+e)),this.indexBase=this.indexStart)},t.prototype._relocateBucket=function(e,n){e!==n&&this.incrementBucket(e,this.backing.emptyBucket(n))},t}(),XK=function(){function t(e){e===void 0&&(e=[0]),this._counts=e}return Object.defineProperty(t.prototype,"length",{get:function(){return this._counts.length},enumerable:!1,configurable:!0}),t.prototype.countAt=function(e){return this._counts[e]},t.prototype.growTo=function(e,n,i){var a=new Array(e).fill(0);a.splice.apply(a,Ep([i,this._counts.length-n],dp(this._counts.slice(n)),!1)),a.splice.apply(a,Ep([0,n],dp(this._counts.slice(0,n)),!1)),this._counts=a},t.prototype.reverse=function(e,n){for(var i=Math.floor((e+n)/2)-e,a=0;a<i;a++){var s=this._counts[e+a];this._counts[e+a]=this._counts[n-a-1],this._counts[n-a-1]=s}},t.prototype.emptyBucket=function(e){var n=this._counts[e];return this._counts[e]=0,n},t.prototype.increment=function(e,n){this._counts[e]+=n},t.prototype.decrement=function(e,n){this._counts[e]>=n?this._counts[e]-=n:this._counts[e]=0},t.prototype.clone=function(){return new t(Ep([],dp(this._counts),!1))},t}()});function Hs(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),i=(n&JK)>>20;return i-Sp}function Fs(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),i=e.getUint32(4),a=(n&QK)*Math.pow(2,32);return a+i}var QM,JK,QK,Sp,Gs,ks,ai,hp=m(()=>{"use strict";QM=52,JK=2146435072,QK=1048575,Sp=1023,Gs=-Sp+1,ks=Sp,ai=Math.pow(2,-1022)});function si(t,e){return t===0||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||Number.isNaN(t)?t:t*Math.pow(2,e)}function ex(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t}var Ys=m(()=>{"use strict"});var ZK,fr,qs=m(()=>{"use strict";ZK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),fr=function(t){ZK(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Error)});var rx,nx=m(()=>{"use strict";hp();Ys();qs();rx=function(){function t(e){this._shift=-e}return t.prototype.mapToIndex=function(e){if(e<ai)return this._minNormalLowerBoundaryIndex();var n=Hs(e),i=this._rightShift(Fs(e)-1,QM);return n+i>>this._shift},t.prototype.lowerBoundary=function(e){var n=this._minNormalLowerBoundaryIndex();if(e<n)throw new fr("underflow: "+e+" is < minimum lower boundary: "+n);var i=this._maxNormalLowerBoundaryIndex();if(e>i)throw new fr("overflow: "+e+" is > maximum lower boundary: "+i);return si(1,e<<this._shift)},Object.defineProperty(t.prototype,"scale",{get:function(){return this._shift===0?0:-this._shift},enumerable:!1,configurable:!0}),t.prototype._minNormalLowerBoundaryIndex=function(){var e=Gs>>this._shift;return this._shift<2&&e--,e},t.prototype._maxNormalLowerBoundaryIndex=function(){return ks>>this._shift},t.prototype._rightShift=function(e,n){return Math.floor(e*Math.pow(2,-n))},t}()});var ox,ix=m(()=>{"use strict";hp();Ys();qs();ox=function(){function t(e){this._scale=e,this._scaleFactor=si(Math.LOG2E,e),this._inverseFactor=si(Math.LN2,-e)}return t.prototype.mapToIndex=function(e){if(e<=ai)return this._minNormalLowerBoundaryIndex()-1;if(Fs(e)===0){var n=Hs(e);return(n<<this._scale)-1}var i=Math.floor(Math.log(e)*this._scaleFactor),a=this._maxNormalLowerBoundaryIndex();return i>=a?a:i},t.prototype.lowerBoundary=function(e){var n=this._maxNormalLowerBoundaryIndex();if(e>=n){if(e===n)return 2*Math.exp((e-(1<<this._scale))/this._scaleFactor);throw new fr("overflow: "+e+" is > maximum lower boundary: "+n)}var i=this._minNormalLowerBoundaryIndex();if(e<=i){if(e===i)return ai;if(e===i-1)return Math.exp((e+(1<<this._scale))/this._scaleFactor)/2;throw new fr("overflow: "+e+" is < minimum lower boundary: "+i)}return Math.exp(e*this._inverseFactor)},Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},enumerable:!1,configurable:!0}),t.prototype._minNormalLowerBoundaryIndex=function(){return Gs<<this._scale},t.prototype._maxNormalLowerBoundaryIndex=function(){return(ks+1<<this._scale)-1},t}()});function Tp(t){if(t>sx||t<ax)throw new fr("expected scale >= "+ax+" && <= "+sx+", got: "+t);return e8[t+10]}var ax,sx,e8,ux=m(()=>{"use strict";nx();ix();qs();ax=-10,sx=20,e8=Array.from({length:31},function(t,e){return e>10?new ox(e-10):new rx(e-10)})});var t8,js,r8,n8,vp,lx,mp,cx=m(()=>{"use strict";Rn();Nn();b();Dt();JM();ux();Ys();t8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},js=function(){function t(e,n){this.low=e,this.high=n}return t.combine=function(e,n){return new t(Math.min(e.low,n.low),Math.max(e.high,n.high))},t}(),r8=20,n8=160,vp=2,lx=function(){function t(e,n,i,a,s,o,r,u,l,c,p){e===void 0&&(e=e),n===void 0&&(n=n8),i===void 0&&(i=!0),a===void 0&&(a=0),s===void 0&&(s=0),o===void 0&&(o=0),r===void 0&&(r=Number.POSITIVE_INFINITY),u===void 0&&(u=Number.NEGATIVE_INFINITY),l===void 0&&(l=new _p),c===void 0&&(c=new _p),p===void 0&&(p=Tp(r8)),this.startTime=e,this._maxSize=n,this._recordMinMax=i,this._sum=a,this._count=s,this._zeroCount=o,this._min=r,this._max=u,this._positive=l,this._negative=c,this._mapping=p,this._maxSize<vp&&(g.warn("Exponential Histogram Max Size set to "+this._maxSize+", changing to the minimum size of: "+vp),this._maxSize=vp)}return t.prototype.record=function(e){this.updateByIncrement(e,1)},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){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}},Object.defineProperty(t.prototype,"sum",{get:function(){return this._sum},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"zeroCount",{get:function(){return this._zeroCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this._count===this._zeroCount?0:this._mapping.scale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"positive",{get:function(){return this._positive},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"negative",{get:function(){return this._negative},enumerable:!1,configurable:!0}),t.prototype.updateByIncrement=function(e,n){if(!Number.isNaN(e)){if(e>this._max&&(this._max=e),e<this._min&&(this._min=e),this._count+=n,e===0){this._zeroCount+=n;return}this._sum+=e*n,e>0?this._updateBuckets(this._positive,e,n):this._updateBuckets(this._negative,-e,n)}},t.prototype.merge=function(e){this._count===0?(this._min=e.min,this._max=e.max):e.count!==0&&(e.min<this.min&&(this._min=e.min),e.max>this.max&&(this._max=e.max)),this.startTime=e.startTime,this._sum+=e.sum,this._count+=e.count,this._zeroCount+=e.zeroCount;var n=this._minScale(e);this._downscale(this.scale-n),this._mergeBuckets(this.positive,e,e.positive,n),this._mergeBuckets(this.negative,e,e.negative,n)},t.prototype.diff=function(e){this._min=1/0,this._max=-1/0,this._sum-=e.sum,this._count-=e.count,this._zeroCount-=e.zeroCount;var n=this._minScale(e);this._downscale(this.scale-n),this._diffBuckets(this.positive,e,e.positive,n),this._diffBuckets(this.negative,e,e.negative,n)},t.prototype.clone=function(){return new t(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)},t.prototype._updateBuckets=function(e,n,i){var a=this._mapping.mapToIndex(n),s=!1,o=0,r=0;if(e.length===0?(e.indexStart=a,e.indexEnd=e.indexStart,e.indexBase=e.indexStart):a<e.indexStart&&e.indexEnd-a>=this._maxSize?(s=!0,r=a,o=e.indexEnd):a>e.indexEnd&&a-e.indexStart>=this._maxSize&&(s=!0,r=e.indexStart,o=a),s){var u=this._changeScale(o,r);this._downscale(u),a=this._mapping.mapToIndex(n)}this._incrementIndexBy(e,a,i)},t.prototype._incrementIndexBy=function(e,n,i){if(i!==0){if(e.length===0&&(e.indexStart=e.indexEnd=e.indexBase=n),n<e.indexStart){var a=e.indexEnd-n;a>=e.backing.length&&this._grow(e,a+1),e.indexStart=n}else if(n>e.indexEnd){var a=n-e.indexStart;a>=e.backing.length&&this._grow(e,a+1),e.indexEnd=n}var s=n-e.indexBase;s<0&&(s+=e.backing.length),e.incrementBucket(s,i)}},t.prototype._grow=function(e,n){var i=e.backing.length,a=e.indexBase-e.indexStart,s=i-a,o=ex(n);o>this._maxSize&&(o=this._maxSize);var r=o-a;e.backing.growTo(o,s,r)},t.prototype._changeScale=function(e,n){for(var i=0;e-n>=this._maxSize;)e>>=1,n>>=1,i++;return i},t.prototype._downscale=function(e){if(e!==0){if(e<0)throw new Error("impossible change of scale: "+this.scale);var n=this._mapping.scale-e;this._positive.downscale(e),this._negative.downscale(e),this._mapping=Tp(n)}},t.prototype._minScale=function(e){var n=Math.min(this.scale,e.scale),i=js.combine(this._highLowAtScale(this.positive,this.scale,n),this._highLowAtScale(e.positive,e.scale,n)),a=js.combine(this._highLowAtScale(this.negative,this.scale,n),this._highLowAtScale(e.negative,e.scale,n));return Math.min(n-this._changeScale(i.high,i.low),n-this._changeScale(a.high,a.low))},t.prototype._highLowAtScale=function(e,n,i){if(e.length===0)return new js(0,-1);var a=n-i;return new js(e.indexStart>>a,e.indexEnd>>a)},t.prototype._mergeBuckets=function(e,n,i,a){for(var s=i.offset,o=n.scale-a,r=0;r<i.length;r++)this._incrementIndexBy(e,s+r>>o,i.at(r))},t.prototype._diffBuckets=function(e,n,i,a){for(var s=i.offset,o=n.scale-a,r=0;r<i.length;r++){var u=s+r>>o,l=u-e.indexBase;l<0&&(l+=e.backing.length),e.decrementBucket(l,i.at(r))}e.trim()},t}(),mp=function(){function t(e,n){this._maxSize=e,this._recordMinMax=n,this.kind=et.EXPONENTIAL_HISTOGRAM}return t.prototype.createAccumulation=function(e){return new lx(e,this._maxSize,this._recordMinMax)},t.prototype.merge=function(e,n){var i=n.clone();return i.merge(e),i},t.prototype.diff=function(e,n){var i=n.clone();return i.diff(e),i},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Ne.EXPONENTIAL_HISTOGRAM,dataPoints:i.map(function(s){var o=t8(s,2),r=o[0],u=o[1],l=u.toPointValue(),c=e.type===C.GAUGE||e.type===C.UP_DOWN_COUNTER||e.type===C.OBSERVABLE_GAUGE||e.type===C.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:r,startTime:u.startTime,endTime:a,value:{min:l.hasMinMax?l.min:void 0,max:l.hasMinMax?l.max:void 0,sum:c?void 0:l.sum,positive:{offset:l.positive.offset,bucketCounts:l.positive.bucketCounts},negative:{offset:l.negative.offset,bucketCounts:l.negative.bucketCounts},count:l.count,scale:l.scale,zeroCount:l.zeroCount}}})}},t}()});var o8,$s,yp,fx=m(()=>{"use strict";Rn();K();Nn();o8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},$s=function(){function t(e,n,i){n===void 0&&(n=0),i===void 0&&(i=[0,0]),this.startTime=e,this._current=n,this.sampleTime=i}return t.prototype.record=function(e){this._current=e,this.sampleTime=Oe(Date.now())},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),yp=function(){function t(){this.kind=et.LAST_VALUE}return t.prototype.createAccumulation=function(e){return new $s(e)},t.prototype.merge=function(e,n){var i=Ot(n.sampleTime)>=Ot(e.sampleTime)?n:e;return new $s(e.startTime,i.toPointValue(),i.sampleTime)},t.prototype.diff=function(e,n){var i=Ot(n.sampleTime)>=Ot(e.sampleTime)?n:e;return new $s(n.startTime,i.toPointValue(),i.sampleTime)},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Ne.GAUGE,dataPoints:i.map(function(s){var o=o8(s,2),r=o[0],u=o[1];return{attributes:r,startTime:u.startTime,endTime:a,value:u.toPointValue()}})}},t}()});var i8,Pn,Ks,px=m(()=>{"use strict";Rn();Nn();i8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Pn=function(){function t(e,n,i,a){i===void 0&&(i=0),a===void 0&&(a=!1),this.startTime=e,this.monotonic=n,this._current=i,this.reset=a}return t.prototype.record=function(e){this.monotonic&&e<0||(this._current+=e)},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Ks=function(){function t(e){this.monotonic=e,this.kind=et.SUM}return t.prototype.createAccumulation=function(e){return new Pn(e,this.monotonic)},t.prototype.merge=function(e,n){var i=e.toPointValue(),a=n.toPointValue();return n.reset?new Pn(n.startTime,this.monotonic,a,n.reset):new Pn(e.startTime,this.monotonic,i+a)},t.prototype.diff=function(e,n){var i=e.toPointValue(),a=n.toPointValue();return this.monotonic&&i>a?new Pn(n.startTime,this.monotonic,a,!0):new Pn(n.startTime,this.monotonic,a-i)},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Ne.SUM,dataPoints:i.map(function(s){var o=i8(s,2),r=o[0],u=o[1];return{attributes:r,startTime:u.startTime,endTime:a,value:u.toPointValue()}}),isMonotonic:this.monotonic}},t}()});var dx=m(()=>{"use strict";KM();XM();cx();fx();px()});var Vr,De,Ap,Op,gp,Np,Rp,Pp,bp,Ex,_x,Sx,hx,a8,s8,Ws=m(()=>{"use strict";b();dx();Dt();Vr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),De=function(){function t(){}return t.Drop=function(){return Ex},t.Sum=function(){return _x},t.LastValue=function(){return Sx},t.Histogram=function(){return hx},t.ExponentialHistogram=function(){return a8},t.Default=function(){return s8},t}(),Ap=function(t){Vr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new pp,e}(De),Op=function(t){Vr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){switch(n.type){case C.COUNTER:case C.OBSERVABLE_COUNTER:case C.HISTOGRAM:return e.MONOTONIC_INSTANCE;default:return e.NON_MONOTONIC_INSTANCE}},e.MONOTONIC_INSTANCE=new Ks(!0),e.NON_MONOTONIC_INSTANCE=new Ks(!1),e}(De),gp=function(t){Vr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new yp,e}(De),Np=function(t){Vr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new Bs([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0),e}(De),Rp=function(t){Vr(e,t);function e(n,i){i===void 0&&(i=!0);var a=t.call(this)||this;if(a._recordMinMax=i,n==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");n=n.concat(),n=n.sort(function(r,u){return r-u});var s=n.lastIndexOf(-1/0),o=n.indexOf(1/0);return o===-1&&(o=void 0),a._boundaries=n.slice(s+1,o),a}return e.prototype.createAggregator=function(n){return new Bs(this._boundaries,this._recordMinMax)},e}(De),Pp=function(t){Vr(e,t);function e(n,i){n===void 0&&(n=160),i===void 0&&(i=!0);var a=t.call(this)||this;return a._maxSize=n,a._recordMinMax=i,a}return e.prototype.createAggregator=function(n){return new mp(this._maxSize,this._recordMinMax)},e}(De),bp=function(t){Vr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype._resolve=function(n){switch(n.type){case C.COUNTER:case C.UP_DOWN_COUNTER:case C.OBSERVABLE_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:return _x;case C.GAUGE:case C.OBSERVABLE_GAUGE:return Sx;case C.HISTOGRAM:return n.advice.explicitBucketBoundaries?new Rp(n.advice.explicitBucketBoundaries):hx}return g.warn("Unable to recognize instrument type: "+n.type),Ex},e.prototype.createAggregator=function(n){return this._resolve(n).createAggregator(n)},e}(De),Ex=new Ap,_x=new Op,Sx=new gp,hx=new Np,a8=new Pp,s8=new bp});var Tx,zs,Mp=m(()=>{"use strict";Ws();Ds();Tx=function(t){return De.Default()},zs=function(t){return ge.CUMULATIVE}});var xp,Lp,vx,u8,Xs,Ip=m(()=>{"use strict";b();gt();Mp();xp=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Lp=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},vx=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},u8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},Xs=function(){function t(e){var n,i,a;this._shutdown=!1,this._aggregationSelector=(n=e?.aggregationSelector)!==null&&n!==void 0?n:Tx,this._aggregationTemporalitySelector=(i=e?.aggregationTemporalitySelector)!==null&&i!==void 0?i:zs,this._metricProducers=(a=e?.metricProducers)!==null&&a!==void 0?a:[]}return t.prototype.setMetricProducer=function(e){if(this._sdkMetricProducer)throw new Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=e,this.onInitialized()},t.prototype.selectAggregation=function(e){return this._aggregationSelector(e)},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporalitySelector(e)},t.prototype.onInitialized=function(){},t.prototype.collect=function(e){return xp(this,void 0,void 0,function(){var n,i,a,s,o,r;return Lp(this,function(u){switch(u.label){case 0:if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");return[4,Promise.all(u8([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis})],vx(this._metricProducers.map(function(l){return l.collect({timeoutMillis:e?.timeoutMillis})})),!1))];case 1:return n=vx.apply(void 0,[u.sent()]),i=n[0],a=n.slice(1),s=i.errors.concat(fp(a,function(l){return l.errors})),o=i.resourceMetrics.resource,r=i.resourceMetrics.scopeMetrics.concat(fp(a,function(l){return l.resourceMetrics.scopeMetrics})),[2,{resourceMetrics:{resource:o,scopeMetrics:r},errors:s}]}})})},t.prototype.shutdown=function(e){return xp(this,void 0,void 0,function(){return Lp(this,function(n){switch(n.label){case 0:return this._shutdown?(g.error("Cannot call shutdown twice."),[2]):e?.timeoutMillis!=null?[3,2]:[4,this.onShutdown()];case 1:return n.sent(),[3,4];case 2:return[4,cr(this.onShutdown(),e.timeoutMillis)];case 3:n.sent(),n.label=4;case 4:return this._shutdown=!0,[2]}})})},t.prototype.forceFlush=function(e){return xp(this,void 0,void 0,function(){return Lp(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("Cannot forceFlush on already shutdown MetricReader."),[2]):e?.timeoutMillis!=null?[3,2]:[4,this.onForceFlush()];case 1:return n.sent(),[2];case 2:return[4,cr(this.onForceFlush(),e.timeoutMillis)];case 3:return n.sent(),[2]}})})},t}()});var l8,ui,li,c8,f8,Js,mx=m(()=>{"use strict";b();K();Ip();gt();b();l8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),ui=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},li=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},c8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},f8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},Js=function(t){l8(e,t);function e(n){var i,a,s,o,r=t.call(this,{aggregationSelector:(i=n.exporter.selectAggregation)===null||i===void 0?void 0:i.bind(n.exporter),aggregationTemporalitySelector:(a=n.exporter.selectAggregationTemporality)===null||a===void 0?void 0:a.bind(n.exporter),metricProducers:n.metricProducers})||this;if(n.exportIntervalMillis!==void 0&&n.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(n.exportTimeoutMillis!==void 0&&n.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(n.exportTimeoutMillis!==void 0&&n.exportIntervalMillis!==void 0&&n.exportIntervalMillis<n.exportTimeoutMillis)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");return r._exportInterval=(s=n.exportIntervalMillis)!==null&&s!==void 0?s:6e4,r._exportTimeout=(o=n.exportTimeoutMillis)!==null&&o!==void 0?o:3e4,r._exporter=n.exporter,r}return e.prototype._runOnce=function(){return ui(this,void 0,void 0,function(){var n;return li(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,cr(this._doRun(),this._exportTimeout)];case 1:return i.sent(),[3,3];case 2:return n=i.sent(),n instanceof ii?(g.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout),[2]):(he(n),[3,3]);case 3:return[2]}})})},e.prototype._doRun=function(){var n,i;return ui(this,void 0,void 0,function(){var a,s,o,r,u,l=this;return li(this,function(c){switch(c.label){case 0:return[4,this.collect({timeoutMillis:this._exportTimeout})];case 1:return a=c.sent(),s=a.resourceMetrics,o=a.errors,o.length>0&&(u=g).error.apply(u,f8(["PeriodicExportingMetricReader: metrics collection errors"],c8(o),!1)),r=function(){return ui(l,void 0,void 0,function(){var p;return li(this,function(_){switch(_.label){case 0:return[4,oi._export(this._exporter,s)];case 1:if(p=_.sent(),p.code!==ee.SUCCESS)throw new Error("PeriodicExportingMetricReader: metrics export failed (error "+p.error+")");return[2]}})})},s.resource.asyncAttributesPending?((i=(n=s.resource).waitForAsyncAttributes)===null||i===void 0||i.call(n).then(r,function(p){return g.debug("Error while resolving async portion of resource: ",p)}).catch(he),[3,4]):[3,2];case 2:return[4,r()];case 3:c.sent(),c.label=4;case 4:return[2]}})})},e.prototype.onInitialized=function(){var n=this;this._interval=setInterval(function(){n._runOnce()},this._exportInterval),sr(this._interval)},e.prototype.onForceFlush=function(){return ui(this,void 0,void 0,function(){return li(this,function(n){switch(n.label){case 0:return[4,this._runOnce()];case 1:return n.sent(),[4,this._exporter.forceFlush()];case 2:return n.sent(),[2]}})})},e.prototype.onShutdown=function(){return ui(this,void 0,void 0,function(){return li(this,function(n){switch(n.label){case 0:return this._interval&&clearInterval(this._interval),[4,this._exporter.shutdown()];case 1:return n.sent(),[2]}})})},e}(Xs)});var yx,Ax=m(()=>{"use strict";K();yx=function(){function t(e){this._shutdown=!1,this._metrics=[],this._aggregationTemporality=e}return t.prototype.export=function(e,n){if(this._shutdown){setTimeout(function(){return n({code:ee.FAILED})},0);return}this._metrics.push(e),setTimeout(function(){return n({code:ee.SUCCESS})},0)},t.prototype.getMetrics=function(){return this._metrics},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.reset=function(){this._metrics=[]},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporality},t.prototype.shutdown=function(){return this._shutdown=!0,Promise.resolve()},t}()});var Ox,gx,Nx=m(()=>{"use strict";K();Mp();Ox=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},gx=function(){function t(e){var n;this._shutdown=!1,this._temporalitySelector=(n=e?.temporalitySelector)!==null&&n!==void 0?n:zs}return t.prototype.export=function(e,n){if(this._shutdown){setImmediate(n,{code:ee.FAILED});return}return t._sendMetrics(e,n)},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.selectAggregationTemporality=function(e){return this._temporalitySelector(e)},t.prototype.shutdown=function(){return this._shutdown=!0,Promise.resolve()},t._sendMetrics=function(e,n){var i,a,s,o;try{for(var r=Ox(e.scopeMetrics),u=r.next();!u.done;u=r.next()){var l=u.value;try{for(var c=(s=void 0,Ox(l.metrics)),p=c.next();!p.done;p=c.next()){var _=p.value;console.dir({descriptor:_.descriptor,dataPointType:_.dataPointType,dataPoints:_.dataPoints},{depth:null})}}catch(f){s={error:f}}finally{try{p&&!p.done&&(o=c.return)&&o.call(c)}finally{if(s)throw s.error}}}}catch(f){i={error:f}}finally{try{u&&!u.done&&(a=r.return)&&a.call(r)}finally{if(i)throw i.error}}n({code:ee.SUCCESS})},t}()});var Rx,Px=m(()=>{"use strict";Rx=function(){function t(){this._registeredViews=[]}return t.prototype.addView=function(e){this._registeredViews.push(e)},t.prototype.findViews=function(e,n){var i=this,a=this._registeredViews.filter(function(s){return i._matchInstrument(s.instrumentSelector,e)&&i._matchMeter(s.meterSelector,n)});return a},t.prototype._matchInstrument=function(e,n){return(e.getType()===void 0||n.type===e.getType())&&e.getNameFilter().match(n.name)&&e.getUnitFilter().match(n.unit)},t.prototype._matchMeter=function(e,n){return e.getNameFilter().match(n.name)&&(n.version===void 0||e.getVersionFilter().match(n.version))&&(n.schemaUrl===void 0||e.getSchemaUrlFilter().match(n.schemaUrl))},t}()});function ci(t){return t instanceof Zs}var Br,Qs,bx,Mx,xx,Lx,Zs,Ix,Cx,wx,eu=m(()=>{"use strict";b();K();Br=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Qs=function(){function t(e,n){this._writableMetricStorage=e,this._descriptor=n}return t.prototype._record=function(e,n,i){if(n===void 0&&(n={}),i===void 0&&(i=He.active()),typeof e!="number"){g.warn("non-number value provided to metric "+this._descriptor.name+": "+e);return}this._descriptor.valueType===pt.INT&&!Number.isInteger(e)&&(g.warn("INT value type cannot accept a floating-point value for "+this._descriptor.name+", ignoring the fractional digits."),e=Math.trunc(e),!Number.isInteger(e))||this._writableMetricStorage.record(e,n,i,Oe(Date.now()))},t}(),bx=function(t){Br(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,i,a){this._record(n,i,a)},e}(Qs),Mx=function(t){Br(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,i,a){if(n<0){g.warn("negative value provided to counter "+this._descriptor.name+": "+n);return}this._record(n,i,a)},e}(Qs),xx=function(t){Br(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,i,a){this._record(n,i,a)},e}(Qs),Lx=function(t){Br(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,i,a){if(n<0){g.warn("negative value provided to histogram "+this._descriptor.name+": "+n);return}this._record(n,i,a)},e}(Qs),Zs=function(){function t(e,n,i){this._observableRegistry=i,this._descriptor=e,this._metricStorages=n}return t.prototype.addCallback=function(e){this._observableRegistry.addCallback(e,this)},t.prototype.removeCallback=function(e){this._observableRegistry.removeCallback(e,this)},t}(),Ix=function(t){Br(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Zs),Cx=function(t){Br(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Zs),wx=function(t){Br(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Zs)});var Ux,Dx=m(()=>{"use strict";Dt();eu();Ux=function(){function t(e){this._meterSharedState=e}return t.prototype.createGauge=function(e,n){var i=Nt(e,C.GAUGE,n),a=this._meterSharedState.registerMetricStorage(i);return new xx(a,i)},t.prototype.createHistogram=function(e,n){var i=Nt(e,C.HISTOGRAM,n),a=this._meterSharedState.registerMetricStorage(i);return new Lx(a,i)},t.prototype.createCounter=function(e,n){var i=Nt(e,C.COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new Mx(a,i)},t.prototype.createUpDownCounter=function(e,n){var i=Nt(e,C.UP_DOWN_COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new bx(a,i)},t.prototype.createObservableGauge=function(e,n){var i=Nt(e,C.OBSERVABLE_GAUGE,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new Cx(i,a,this._meterSharedState.observableRegistry)},t.prototype.createObservableCounter=function(e,n){var i=Nt(e,C.OBSERVABLE_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new Ix(i,a,this._meterSharedState.observableRegistry)},t.prototype.createObservableUpDownCounter=function(e,n){var i=Nt(e,C.OBSERVABLE_UP_DOWN_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new wx(i,a,this._meterSharedState.observableRegistry)},t.prototype.addBatchObservableCallback=function(e,n){this._meterSharedState.observableRegistry.addBatchCallback(e,n)},t.prototype.removeBatchObservableCallback=function(e,n){this._meterSharedState.observableRegistry.removeBatchCallback(e,n)},t}()});var tu,Cp=m(()=>{"use strict";Dt();tu=function(){function t(e){this._instrumentDescriptor=e}return t.prototype.getInstrumentDescriptor=function(){return this._instrumentDescriptor},t.prototype.updateDescription=function(e){this._instrumentDescriptor=Nt(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:e,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})},t}()});var p8,Vx,d8,ct,fi=m(()=>{"use strict";gt();p8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Vx=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},d8=function(){function t(e){this._hash=e,this._valueMap=new Map,this._keyMap=new Map}return t.prototype.get=function(e,n){return n??(n=this._hash(e)),this._valueMap.get(n)},t.prototype.getOrDefault=function(e,n){var i=this._hash(e);if(this._valueMap.has(i))return this._valueMap.get(i);var a=n();return this._keyMap.has(i)||this._keyMap.set(i,e),this._valueMap.set(i,a),a},t.prototype.set=function(e,n,i){i??(i=this._hash(e)),this._keyMap.has(i)||this._keyMap.set(i,e),this._valueMap.set(i,n)},t.prototype.has=function(e,n){return n??(n=this._hash(e)),this._valueMap.has(n)},t.prototype.keys=function(){var e,n;return Vx(this,function(i){switch(i.label){case 0:e=this._keyMap.entries(),n=e.next(),i.label=1;case 1:return n.done===!0?[3,3]:[4,[n.value[1],n.value[0]]];case 2:return i.sent(),n=e.next(),[3,1];case 3:return[2]}})},t.prototype.entries=function(){var e,n;return Vx(this,function(i){switch(i.label){case 0:e=this._valueMap.entries(),n=e.next(),i.label=1;case 1:return n.done===!0?[3,3]:[4,[this._keyMap.get(n.value[0]),n.value[1],n.value[0]]];case 2:return i.sent(),n=e.next(),[3,1];case 3:return[2]}})},Object.defineProperty(t.prototype,"size",{get:function(){return this._valueMap.size},enumerable:!1,configurable:!0}),t}(),ct=function(t){p8(e,t);function e(){return t.call(this,kM)||this}return e}(d8)});var E8,ru,wp=m(()=>{"use strict";fi();E8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},ru=function(){function t(e){this._aggregator=e,this._activeCollectionStorage=new ct,this._cumulativeMemoStorage=new ct}return t.prototype.record=function(e,n,i,a){var s=this,o=this._activeCollectionStorage.getOrDefault(n,function(){return s._aggregator.createAccumulation(a)});o?.record(e)},t.prototype.batchCumulate=function(e,n){var i=this;Array.from(e.entries()).forEach(function(a){var s=E8(a,3),o=s[0],r=s[1],u=s[2],l=i._aggregator.createAccumulation(n);l?.record(r);var c=l;if(i._cumulativeMemoStorage.has(o,u)){var p=i._cumulativeMemoStorage.get(o,u);c=i._aggregator.diff(p,l)}if(i._activeCollectionStorage.has(o,u)){var _=i._activeCollectionStorage.get(o,u);c=i._aggregator.merge(_,c)}i._cumulativeMemoStorage.set(o,l,u),i._activeCollectionStorage.set(o,c,u)})},t.prototype.collect=function(){var e=this._activeCollectionStorage;return this._activeCollectionStorage=new ct,e},t}()});function _8(t){return Array.from(t.entries())}var Up,Bx,nu,Dp=m(()=>{"use strict";Ds();fi();Up=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Bx=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},nu=function(){function t(e,n){var i=this;this._aggregator=e,this._unreportedAccumulations=new Map,this._reportHistory=new Map,n.forEach(function(a){i._unreportedAccumulations.set(a,[])})}return t.prototype.buildMetrics=function(e,n,i,a){this._stashAccumulations(i);var s=this._getMergedUnreportedAccumulations(e),o=s,r;if(this._reportHistory.has(e)){var u=this._reportHistory.get(e),l=u.collectionTime;r=u.aggregationTemporality,r===ge.CUMULATIVE?o=t.merge(u.accumulations,s,this._aggregator):o=t.calibrateStartTime(u.accumulations,s,l)}else r=e.selectAggregationTemporality(n.type);this._reportHistory.set(e,{accumulations:o,collectionTime:a,aggregationTemporality:r});var c=_8(o);if(c.length!==0)return this._aggregator.toMetricData(n,r,c,a)},t.prototype._stashAccumulations=function(e){var n,i,a=this._unreportedAccumulations.keys();try{for(var s=Up(a),o=s.next();!o.done;o=s.next()){var r=o.value,u=this._unreportedAccumulations.get(r);u===void 0&&(u=[],this._unreportedAccumulations.set(r,u)),u.push(e)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},t.prototype._getMergedUnreportedAccumulations=function(e){var n,i,a=new ct,s=this._unreportedAccumulations.get(e);if(this._unreportedAccumulations.set(e,[]),s===void 0)return a;try{for(var o=Up(s),r=o.next();!r.done;r=o.next()){var u=r.value;a=t.merge(a,u,this._aggregator)}}catch(l){n={error:l}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a},t.merge=function(e,n,i){for(var a=e,s=n.entries(),o=s.next();o.done!==!0;){var r=Bx(o.value,3),u=r[0],l=r[1],c=r[2];if(e.has(u,c)){var p=e.get(u,c),_=i.merge(p,l);a.set(u,_,c)}else a.set(u,l,c);o=s.next()}return a},t.calibrateStartTime=function(e,n,i){var a,s;try{for(var o=Up(e.keys()),r=o.next();!r.done;r=o.next()){var u=Bx(r.value,2),l=u[0],c=u[1],p=n.get(l,c);p?.setStartTime(i)}}catch(_){a={error:_}}finally{try{r&&!r.done&&(s=o.return)&&s.call(o)}finally{if(a)throw a.error}}return n},t}()});var S8,h8,Gx,kx=m(()=>{"use strict";Cp();wp();Dp();fi();S8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),h8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Gx=function(t){S8(e,t);function e(n,i,a,s){var o=t.call(this,n)||this;return o._attributesProcessor=a,o._deltaMetricStorage=new ru(i),o._temporalMetricStorage=new nu(i,s),o}return e.prototype.record=function(n,i){var a=this,s=new ct;Array.from(n.entries()).forEach(function(o){var r=h8(o,2),u=r[0],l=r[1];s.set(a._attributesProcessor.process(u),l)}),this._deltaMetricStorage.batchCumulate(s,i)},e.prototype.collect=function(n,i){var a=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(n,this._instrumentDescriptor,a,i)},e}(tu)});function Vp(t,e){var n="";return t.unit!==e.unit&&(n+=" - Unit '"+t.unit+"' does not match '"+e.unit+`'
|
32
|
+
${A}`),S.pop(),`{${G}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function c(_,f,S){switch(typeof f){case"string":return Wt(f);case"object":{if(f===null)return"null";if(typeof f.toJSON=="function"){if(f=f.toJSON(_),typeof f!="object")return c(_,f,S);if(f===null)return"null"}if(S.indexOf(f)!==-1)return n;let v="";if(Array.isArray(f)){if(f.length===0)return"[]";if(s<S.length+1)return'"[Array]"';S.push(f);let D=Math.min(f.length,o),G=0;for(;G<D-1;G++){let ae=c(String(G),f[G],S);v+=ae!==void 0?ae:"null",v+=","}let F=c(String(G),f[G],S);if(v+=F!==void 0?F:"null",f.length-1>o){let ae=f.length-o-1;v+=`,"... ${Or(ae)} not stringified"`}return S.pop(),`[${v}]`}let T=Object.keys(f),A=T.length;if(A===0)return"{}";if(s<S.length+1)return'"[Object]"';let O="",N=Math.min(A,o);Nc(f)&&(v+=jg(f,",",o),T=T.slice(f.length),N-=f.length,O=","),a&&(T=gc(T)),S.push(f);for(let D=0;D<N;D++){let G=T[D],F=c(G,f[G],S);F!==void 0&&(v+=`${O}${Wt(G)}:${F}`,O=",")}if(A>o){let D=A-o;v+=`${O}"...":"${Or(D)} not stringified"`}return S.pop(),`{${v}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function p(_,f,S){if(arguments.length>1){let v="";if(typeof S=="number"?v=" ".repeat(Math.min(S,10)):typeof S=="string"&&(v=S.slice(0,10)),f!=null){if(typeof f=="function")return r("",{"":_},[],f,v,"");if(Array.isArray(f))return u("",_,[],GY(f),v,"")}if(v.length!==0)return l("",_,[],v,"")}return c("",_,[])}return p}});var bc=h((tee,zg)=>{"use strict";var HY=qe(),{MESSAGE:FY}=pe(),YY=To();function qY(t,e){return typeof e=="bigint"?e.toString():e}zg.exports=HY((t,e)=>{let n=YY.configure(e);return t[FY]=n(t,e.replacer||qY,e.space),t})});var Jg=h((ree,Xg)=>{"use strict";var jY=qe();Xg.exports=jY((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var Zg=h((nee,Qg)=>{"use strict";var $Y=qe(),{MESSAGE:KY}=pe(),WY=To();Qg.exports=$Y(t=>{let e={};return t.message&&(e["@message"]=t.message,delete t.message),t.timestamp&&(e["@timestamp"]=t.timestamp,delete t.timestamp),e["@fields"]=t,t[KY]=WY(e),t})});var tN=h((oee,eN)=>{"use strict";var zY=qe();function XY(t,e,n){let i=e.reduce((s,o)=>(s[o]=t[o],delete t[o],s),{}),a=Object.keys(t).reduce((s,o)=>(s[o]=t[o],delete t[o],s),{});return Object.assign(t,i,{[n]:a}),t}function JY(t,e,n){return t[n]=e.reduce((i,a)=>(i[a]=t[a],delete t[a],i),{}),t}eN.exports=zY((t,e={})=>{let n="metadata";e.key&&(n=e.key);let i=[];return!e.fillExcept&&!e.fillWith&&(i.push("level"),i.push("message")),e.fillExcept&&(i=e.fillExcept),i.length>0?XY(t,i,n):e.fillWith?JY(t,e.fillWith,n):t})});var nN=h((iee,rN)=>{"use strict";var on=1e3,an=on*60,sn=an*60,Nr=sn*24,QY=Nr*7,ZY=Nr*365.25;rN.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return eq(t);if(n==="number"&&isFinite(t))return e.long?rq(t):tq(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function eq(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*ZY;case"weeks":case"week":case"w":return n*QY;case"days":case"day":case"d":return n*Nr;case"hours":case"hour":case"hrs":case"hr":case"h":return n*sn;case"minutes":case"minute":case"mins":case"min":case"m":return n*an;case"seconds":case"second":case"secs":case"sec":case"s":return n*on;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function tq(t){var e=Math.abs(t);return e>=Nr?Math.round(t/Nr)+"d":e>=sn?Math.round(t/sn)+"h":e>=an?Math.round(t/an)+"m":e>=on?Math.round(t/on)+"s":t+"ms"}function rq(t){var e=Math.abs(t);return e>=Nr?Ea(t,e,Nr,"day"):e>=sn?Ea(t,e,sn,"hour"):e>=an?Ea(t,e,an,"minute"):e>=on?Ea(t,e,on,"second"):t+" ms"}function Ea(t,e,n,i){var a=e>=n*1.5;return Math.round(t/n)+" "+i+(a?"s":"")}});var iN=h((vo,oN)=>{"use strict";var nq=qe(),oq=nN();oN.exports=nq(t=>{let e=+new Date;return vo.diff=e-(vo.prevTime||e),vo.prevTime=e,t.ms=`+${oq(vo.diff)}`,t})});var uN=h((aee,sN)=>{"use strict";var iq=L("util").inspect,aq=qe(),{LEVEL:sq,MESSAGE:aN,SPLAT:uq}=pe();sN.exports=aq((t,e={})=>{let n=Object.assign({},t);return delete n[sq],delete n[aN],delete n[uq],t[aN]=iq(n,!1,e.depth||null,e.colorize),t})});var lN=h((see,Sa)=>{"use strict";var{MESSAGE:lq}=pe(),_a=class{constructor(e){this.template=e}transform(e){return e[lq]=this.template(e),e}};Sa.exports=t=>new _a(t);Sa.exports.Printf=Sa.exports.Format=_a});var pN=h((uee,fN)=>{"use strict";var cq=qe(),{MESSAGE:cN}=pe(),fq=To();fN.exports=cq(t=>{let e=fq(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),n=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[cN]=`${t.level}:${n} ${t.message} ${e}`:t[cN]=`${t.level}:${n} ${t.message}`,t})});var _N=h((lee,EN)=>{"use strict";var pq=L("util"),{SPLAT:dN}=pe(),dq=/%[scdjifoO%]/g,Eq=/%%/g,xc=class{constructor(e){this.options=e}_splat(e,n){let i=e.message,a=e[dN]||e.splat||[],s=i.match(Eq),o=s&&s.length||0,u=n.length-o-a.length,l=u<0?a.splice(u,-1*u):[],c=l.length;if(c)for(let p=0;p<c;p++)Object.assign(e,l[p]);return e.message=pq.format(i,...a),e}transform(e){let n=e.message,i=e[dN]||e.splat;if(!i||!i.length)return e;let a=n&&n.match&&n.match(dq);if(!a&&(i||i.length)){let s=i.length>1?i.splice(0):i,o=s.length;if(o)for(let r=0;r<o;r++)Object.assign(e,s[r]);return e}return a?this._splat(e,a):e}};EN.exports=t=>new xc(t)});var IN={};nt(IN,{assign:()=>Jt,default:()=>Aq,defaultI18n:()=>Mc,format:()=>MN,parse:()=>LN,setGlobalDateI18n:()=>bN,setGlobalDateMasks:()=>xN});function NN(t,e){for(var n=[],i=0,a=t.length;i<a;i++)n.push(t[i].substr(0,e));return n}function Jt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0,a=e;i<a.length;i++){var s=a[i];for(var o in s)t[o]=s[o]}return t}function LN(t,e,n){if(n===void 0&&(n={}),typeof e!="string")throw new Error("Invalid format in fecha parse");if(e=Ta[e]||e,t.length>1e3)return null;var i=new Date,a={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},s=[],o=[],r=e.replace(gN,function(D,G){return o.push(hN(G)),"@@@"}),u={},l={};r=hN(r).replace(ON,function(D){var G=mq[D],F=G[0],ae=G[1],j=G[3];if(u[F])throw new Error("Invalid format. "+F+" specified twice in format");return u[F]=!0,j&&(l[j]=!0),s.push(G),"("+ae+")"}),Object.keys(l).forEach(function(D){if(!u[D])throw new Error("Invalid format. "+D+" is required in specified format")}),r=r.replace(/@@@/g,function(){return o.shift()});var c=t.match(new RegExp(r,"i"));if(!c)return null;for(var p=Jt(Jt({},ha),n),_=1;_<c.length;_++){var f=s[_-1],S=f[0],v=f[2],T=v?v(c[_],p):+c[_];if(T==null)return null;a[S]=T}a.isPm===1&&a.hour!=null&&+a.hour!=12?a.hour=+a.hour+12:a.isPm===0&&+a.hour==12&&(a.hour=0);var A;if(a.timezoneOffset==null){A=new Date(a.year,a.month,a.day,a.hour,a.minute,a.second,a.millisecond);for(var O=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],_=0,N=O.length;_<N;_++)if(u[O[_][0]]&&a[O[_][0]]!==A[O[_][1]]())return null}else if(A=new Date(Date.UTC(a.year,a.month,a.day,a.hour,a.minute-a.timezoneOffset,a.second,a.millisecond)),a.month>11||a.month<0||a.day>31||a.day<1||a.hour>23||a.hour<0||a.minute>59||a.minute<0||a.second>59||a.second<0)return null;return A}var ON,Xt,zt,_q,Sq,mo,gN,SN,RN,PN,hq,Tq,Mc,ha,bN,hN,je,vq,TN,vN,mN,yN,AN,mq,Ta,xN,MN,yq,Aq,CN=m(()=>{"use strict";ON=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Xt="\\d\\d?",zt="\\d\\d",_q="\\d{3}",Sq="\\d{4}",mo="[^\\s]+",gN=/\[([^]*?)\]/gm;SN=function(t){return function(e,n){var i=n[t].map(function(s){return s.toLowerCase()}),a=i.indexOf(e.toLowerCase());return a>-1?a:null}};RN=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],PN=["January","February","March","April","May","June","July","August","September","October","November","December"],hq=NN(PN,3),Tq=NN(RN,3),Mc={dayNamesShort:Tq,dayNames:RN,monthNamesShort:hq,monthNames:PN,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10?1:0)*t%10]}},ha=Jt({},Mc),bN=function(t){return ha=Jt(ha,t)},hN=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},je=function(t,e){for(e===void 0&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},vq={D:function(t){return String(t.getDate())},DD:function(t){return je(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return je(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return je(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return je(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return je(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return je(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return je(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return je(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return je(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return je(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return je(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+je(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+je(Math.floor(Math.abs(e)/60),2)+":"+je(Math.abs(e)%60,2)}},TN=function(t){return+t-1},vN=[null,Xt],mN=[null,mo],yN=["isPm",mo,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],AN=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=+e[1]*60+parseInt(e[2],10);return e[0]==="+"?n:-n}return 0}],mq={D:["day",Xt],DD:["day",zt],Do:["day",Xt+mo,function(t){return parseInt(t,10)}],M:["month",Xt,TN],MM:["month",zt,TN],YY:["year",zt,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",Xt,void 0,"isPm"],hh:["hour",zt,void 0,"isPm"],H:["hour",Xt],HH:["hour",zt],m:["minute",Xt],mm:["minute",zt],s:["second",Xt],ss:["second",zt],YYYY:["year",Sq],S:["millisecond","\\d",function(t){return+t*100}],SS:["millisecond",zt,function(t){return+t*10}],SSS:["millisecond",_q],d:vN,dd:vN,ddd:mN,dddd:mN,MMM:["month",mo,SN("monthNamesShort")],MMMM:["month",mo,SN("monthNames")],a:yN,A:yN,ZZ:AN,Z:AN},Ta={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},xN=function(t){return Jt(Ta,t)},MN=function(t,e,n){if(e===void 0&&(e=Ta.default),n===void 0&&(n={}),typeof t=="number"&&(t=new Date(t)),Object.prototype.toString.call(t)!=="[object Date]"||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=Ta[e]||e;var i=[];e=e.replace(gN,function(s,o){return i.push(o),"@@@"});var a=Jt(Jt({},ha),n);return e=e.replace(ON,function(s){return vq[s](t,a)}),e.replace(/@@@/g,function(){return i.shift()})};yq={format:MN,parse:LN,defaultI18n:Mc,setGlobalDateI18n:bN,setGlobalDateMasks:xN},Aq=yq});var UN=h((cee,wN)=>{"use strict";var Oq=(CN(),Y(IN)),gq=qe();wN.exports=gq((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():Oq.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var VN=h((fee,DN)=>{"use strict";var Lc=pc(),Nq=qe(),{MESSAGE:Ic}=pe();DN.exports=Nq((t,e)=>(e.level!==!1&&(t.level=Lc.strip(t.level)),e.message!==!1&&(t.message=Lc.strip(String(t.message))),e.raw!==!1&&t[Ic]&&(t[Ic]=Lc.strip(String(t[Ic]))),t))});var wc=h(Cc=>{"use strict";var Rq=Cc.format=qe();Cc.levels=Ug();function ye(t,e){Object.defineProperty(Rq,t,{get(){return e()},configurable:!0})}ye("align",function(){return Vg()});ye("errors",function(){return kg()});ye("cli",function(){return Fg()});ye("combine",function(){return qg()});ye("colorize",function(){return la()});ye("json",function(){return bc()});ye("label",function(){return Jg()});ye("logstash",function(){return Zg()});ye("metadata",function(){return tN()});ye("ms",function(){return iN()});ye("padLevels",function(){return yc()});ye("prettyPrint",function(){return uN()});ye("printf",function(){return lN()});ye("simple",function(){return pN()});ye("splat",function(){return _N()});ye("timestamp",function(){return UN()});ye("uncolorize",function(){return VN()})});var Uc=h(va=>{"use strict";var{format:BN}=L("util");va.warn={deprecated(t){return()=>{throw new Error(BN("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([BN("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
|
33
|
+
`))}},forFunctions(t,e,n){n.forEach(i=>{t[i]=va.warn[e](i)})},forProperties(t,e,n){n.forEach(i=>{let a=va.warn[e](i);Object.defineProperty(t,i,{get:a,set:a})})}}});var GN=h((Eee,Pq)=>{Pq.exports={name:"winston",description:"A logger for just about everything.",version:"3.13.0",author:"Charlie Robbins <charlie.robbins@gmail.com>",maintainers:["David Hyde <dabh@alumni.stanford.edu>"],repository:{type:"git",url:"https://github.com/winstonjs/winston.git"},keywords:["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],dependencies:{"@dabh/diagnostics":"^2.0.2","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.4.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.7.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^5.0.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",mocha:"^10.3.0",nyc:"^15.1.0",rimraf:"^5.0.5",split2:"^4.1.0","std-mocks":"^2.0.0",through2:"^4.0.2","winston-compat":"^0.1.5"},main:"./lib/winston.js",browser:"./dist/winston",types:"./index.d.ts",scripts:{lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"rimraf test/fixtures/logs/* && mocha","test:coverage":"nyc npm run test:unit","test:unit":"mocha test/unit","test:integration":"mocha test/integration",build:"rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},engines:{node:">= 12.0.0"},license:"MIT"}});var HN=h((_ee,kN)=>{"use strict";kN.exports=L("util").deprecate});var Dc=h((See,FN)=>{"use strict";FN.exports=L("stream")});var Bc=h((hee,qN)=>{"use strict";function bq(t,e){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Vc,this,t)):process.nextTick(Vc,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?n._writableState?n._writableState.errorEmitted?process.nextTick(ma,n):(n._writableState.errorEmitted=!0,process.nextTick(YN,n,s)):process.nextTick(YN,n,s):e?(process.nextTick(ma,n),e(s)):process.nextTick(ma,n)}),this)}function YN(t,e){Vc(t,e),ma(t)}function ma(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function xq(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Vc(t,e){t.emit("error",e)}function Mq(t,e){var n=t._readableState,i=t._writableState;n&&n.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}qN.exports={destroy:bq,undestroy:xq,errorOrDestroy:Mq}});var Qt=h((Tee,KN)=>{"use strict";var $N={};function Je(t,e,n){n||(n=Error);function i(s,o,r){return typeof e=="string"?e:e(s,o,r)}class a extends n{constructor(o,r,u){super(i(o,r,u))}}a.prototype.name=n.name,a.prototype.code=t,$N[t]=a}function jN(t,e){if(Array.isArray(t)){let n=t.length;return t=t.map(i=>String(i)),n>2?`one of ${e} ${t.slice(0,n-1).join(", ")}, or `+t[n-1]:n===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function Lq(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function Iq(t,e,n){return(n===void 0||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function Cq(t,e,n){return typeof n!="number"&&(n=0),n+e.length>t.length?!1:t.indexOf(e,n)!==-1}Je("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Je("ERR_INVALID_ARG_TYPE",function(t,e,n){let i;typeof e=="string"&&Lq(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let a;if(Iq(t," argument"))a=`The ${t} ${i} ${jN(e,"type")}`;else{let s=Cq(t,".")?"property":"argument";a=`The "${t}" ${s} ${i} ${jN(e,"type")}`}return a+=`. Received type ${typeof n}`,a},TypeError);Je("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Je("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});Je("ERR_STREAM_PREMATURE_CLOSE","Premature close");Je("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});Je("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Je("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Je("ERR_STREAM_WRITE_AFTER_END","write after end");Je("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Je("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);Je("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");KN.exports.codes=$N});var Gc=h((vee,WN)=>{"use strict";var wq=Qt().codes.ERR_INVALID_OPT_VALUE;function Uq(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function Dq(t,e,n,i){var a=Uq(e,i,n);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var s=i?n:"highWaterMark";throw new wq(s,a)}return Math.floor(a)}return t.objectMode?16:16*1024}WN.exports={getHighWaterMark:Dq}});var zN=h((mee,kc)=>{"use strict";typeof Object.create=="function"?kc.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:kc.exports=function(e,n){if(n){e.super_=n;var i=function(){};i.prototype=n.prototype,e.prototype=new i,e.prototype.constructor=e}}});var un=h((yee,Fc)=>{"use strict";try{if(Hc=L("util"),typeof Hc.inherits!="function")throw"";Fc.exports=Hc.inherits}catch{Fc.exports=zN()}var Hc});var tR=h((Aee,eR)=>{"use strict";function XN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function JN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?XN(Object(n),!0).forEach(function(i){Vq(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):XN(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Vq(t,e,n){return e=ZN(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QN(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,ZN(i.key),i)}}function Gq(t,e,n){return e&&QN(t.prototype,e),n&&QN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ZN(t){var e=kq(t,"string");return typeof e=="symbol"?e:String(e)}function kq(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Hq=L("buffer"),ya=Hq.Buffer,Fq=L("util"),Yc=Fq.inspect,Yq=Yc&&Yc.custom||"inspect";function qq(t,e,n){ya.prototype.copy.call(t,e,n)}eR.exports=function(){function t(){Bq(this,t),this.head=null,this.tail=null,this.length=0}return Gq(t,[{key:"push",value:function(n){var i={data:n,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(n){var i={data:n,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(n){if(this.length===0)return"";for(var i=this.head,a=""+i.data;i=i.next;)a+=n+i.data;return a}},{key:"concat",value:function(n){if(this.length===0)return ya.alloc(0);for(var i=ya.allocUnsafe(n>>>0),a=this.head,s=0;a;)qq(a.data,i,s),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(n,i){var a;return n<this.head.data.length?(a=this.head.data.slice(0,n),this.head.data=this.head.data.slice(n)):n===this.head.data.length?a=this.shift():a=i?this._getString(n):this._getBuffer(n),a}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(n){var i=this.head,a=1,s=i.data;for(n-=s.length;i=i.next;){var o=i.data,r=n>o.length?o.length:n;if(r===o.length?s+=o:s+=o.slice(0,n),n-=r,n===0){r===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(r));break}++a}return this.length-=a,s}},{key:"_getBuffer",value:function(n){var i=ya.allocUnsafe(n),a=this.head,s=1;for(a.data.copy(i),n-=a.data.length;a=a.next;){var o=a.data,r=n>o.length?o.length:n;if(o.copy(i,i.length-n,0,r),n-=r,n===0){r===o.length?(++s,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=o.slice(r));break}++s}return this.length-=s,i}},{key:Yq,value:function(n,i){return Yc(this,JN(JN({},i),{},{depth:0,customInspect:!1}))}}]),t}()});var oR=h((qc,nR)=>{"use strict";var Aa=L("buffer"),ht=Aa.Buffer;function rR(t,e){for(var n in t)e[n]=t[n]}ht.from&&ht.alloc&&ht.allocUnsafe&&ht.allocUnsafeSlow?nR.exports=Aa:(rR(Aa,qc),qc.Buffer=Rr);function Rr(t,e,n){return ht(t,e,n)}Rr.prototype=Object.create(ht.prototype);rR(ht,Rr);Rr.from=function(t,e,n){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ht(t,e,n)};Rr.alloc=function(t,e,n){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=ht(t);return e!==void 0?typeof n=="string"?i.fill(e,n):i.fill(e):i.fill(0),i};Rr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ht(t)};Rr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Aa.SlowBuffer(t)}});var Kc=h(aR=>{"use strict";var $c=oR().Buffer,iR=$c.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function jq(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function $q(t){var e=jq(t);if(typeof e!="string"&&($c.isEncoding===iR||!iR(t)))throw new Error("Unknown encoding: "+t);return e||t}aR.StringDecoder=yo;function yo(t){this.encoding=$q(t);var e;switch(this.encoding){case"utf16le":this.text=Qq,this.end=Zq,e=4;break;case"utf8":this.fillLast=zq,e=4;break;case"base64":this.text=e5,this.end=t5,e=3;break;default:this.write=r5,this.end=n5;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=$c.allocUnsafe(e)}yo.prototype.write=function(t){if(t.length===0)return"";var e,n;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""};yo.prototype.end=Jq;yo.prototype.text=Xq;yo.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function jc(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Kq(t,e,n){var i=e.length-1;if(i<n)return 0;var a=jc(e[i]);return a>=0?(a>0&&(t.lastNeed=a-1),a):--i<n||a===-2?0:(a=jc(e[i]),a>=0?(a>0&&(t.lastNeed=a-2),a):--i<n||a===-2?0:(a=jc(e[i]),a>=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function Wq(t,e,n){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function zq(t){var e=this.lastTotal-this.lastNeed,n=Wq(this,t,e);if(n!==void 0)return n;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function Xq(t,e){var n=Kq(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var i=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function Jq(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Qq(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Zq(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function e5(t,e){var n=(t.length-e)%3;return n===0?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function t5(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function r5(t){return t.toString(this.encoding)}function n5(t){return t&&t.length?this.write(t):""}});var Oa=h((gee,lR)=>{"use strict";var sR=Qt().codes.ERR_STREAM_PREMATURE_CLOSE;function o5(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];t.apply(this,i)}}}function i5(){}function a5(t){return t.setHeader&&typeof t.abort=="function"}function uR(t,e,n){if(typeof e=="function")return uR(t,null,e);e||(e={}),n=o5(n||i5);var i=e.readable||e.readable!==!1&&t.readable,a=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||r()},o=t._writableState&&t._writableState.finished,r=function(){a=!1,o=!0,i||n.call(t)},u=t._readableState&&t._readableState.endEmitted,l=function(){i=!1,u=!0,a||n.call(t)},c=function(S){n.call(t,S)},p=function(){var S;if(i&&!u)return(!t._readableState||!t._readableState.ended)&&(S=new sR),n.call(t,S);if(a&&!o)return(!t._writableState||!t._writableState.ended)&&(S=new sR),n.call(t,S)},_=function(){t.req.on("finish",r)};return a5(t)?(t.on("complete",r),t.on("abort",p),t.req?_():t.on("request",_)):a&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",l),t.on("finish",r),e.error!==!1&&t.on("error",c),t.on("close",p),function(){t.removeListener("complete",r),t.removeListener("abort",p),t.removeListener("request",_),t.req&&t.req.removeListener("finish",r),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",r),t.removeListener("end",l),t.removeListener("error",c),t.removeListener("close",p)}}lR.exports=uR});var fR=h((Nee,cR)=>{"use strict";var ga;function Zt(t,e,n){return e=s5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s5(t){var e=u5(t,"string");return typeof e=="symbol"?e:String(e)}function u5(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var l5=Oa(),er=Symbol("lastResolve"),Pr=Symbol("lastReject"),Ao=Symbol("error"),Na=Symbol("ended"),br=Symbol("lastPromise"),Wc=Symbol("handlePromise"),xr=Symbol("stream");function tr(t,e){return{value:t,done:e}}function c5(t){var e=t[er];if(e!==null){var n=t[xr].read();n!==null&&(t[br]=null,t[er]=null,t[Pr]=null,e(tr(n,!1)))}}function f5(t){process.nextTick(c5,t)}function p5(t,e){return function(n,i){t.then(function(){if(e[Na]){n(tr(void 0,!0));return}e[Wc](n,i)},i)}}var d5=Object.getPrototypeOf(function(){}),E5=Object.setPrototypeOf((ga={get stream(){return this[xr]},next:function(){var e=this,n=this[Ao];if(n!==null)return Promise.reject(n);if(this[Na])return Promise.resolve(tr(void 0,!0));if(this[xr].destroyed)return new Promise(function(o,r){process.nextTick(function(){e[Ao]?r(e[Ao]):o(tr(void 0,!0))})});var i=this[br],a;if(i)a=new Promise(p5(i,this));else{var s=this[xr].read();if(s!==null)return Promise.resolve(tr(s,!1));a=new Promise(this[Wc])}return this[br]=a,a}},Zt(ga,Symbol.asyncIterator,function(){return this}),Zt(ga,"return",function(){var e=this;return new Promise(function(n,i){e[xr].destroy(null,function(a){if(a){i(a);return}n(tr(void 0,!0))})})}),ga),d5),_5=function(e){var n,i=Object.create(E5,(n={},Zt(n,xr,{value:e,writable:!0}),Zt(n,er,{value:null,writable:!0}),Zt(n,Pr,{value:null,writable:!0}),Zt(n,Ao,{value:null,writable:!0}),Zt(n,Na,{value:e._readableState.endEmitted,writable:!0}),Zt(n,Wc,{value:function(s,o){var r=i[xr].read();r?(i[br]=null,i[er]=null,i[Pr]=null,s(tr(r,!1))):(i[er]=s,i[Pr]=o)},writable:!0}),n));return i[br]=null,l5(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=i[Pr];s!==null&&(i[br]=null,i[er]=null,i[Pr]=null,s(a)),i[Ao]=a;return}var o=i[er];o!==null&&(i[br]=null,i[er]=null,i[Pr]=null,o(tr(void 0,!0))),i[Na]=!0}),e.on("readable",f5.bind(null,i)),i};cR.exports=_5});var _R=h((Ree,ER)=>{"use strict";function pR(t,e,n,i,a,s,o){try{var r=t[s](o),u=r.value}catch(l){n(l);return}r.done?e(u):Promise.resolve(u).then(i,a)}function S5(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var s=t.apply(e,n);function o(u){pR(s,i,a,o,r,"next",u)}function r(u){pR(s,i,a,o,r,"throw",u)}o(void 0)})}}function dR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function h5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dR(Object(n),!0).forEach(function(i){T5(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dR(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function T5(t,e,n){return e=v5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v5(t){var e=m5(t,"string");return typeof e=="symbol"?e:String(e)}function m5(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var y5=Qt().codes.ERR_INVALID_ARG_TYPE;function A5(t,e,n){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new y5("iterable",["Iterable"],e);var a=new t(h5({objectMode:!0},n)),s=!1;a._read=function(){s||(s=!0,o())};function o(){return r.apply(this,arguments)}function r(){return r=S5(function*(){try{var u=yield i.next(),l=u.value,c=u.done;c?a.push(null):a.push(yield l)?o():s=!1}catch(p){a.destroy(p)}}),r.apply(this,arguments)}return a}ER.exports=A5});var of=h((bee,NR)=>{"use strict";NR.exports=$;var ln;$.ReadableState=vR;var Pee=L("events").EventEmitter,TR=function(e,n){return e.listeners(n).length},go=Dc(),Ra=L("buffer").Buffer,O5=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function g5(t){return Ra.from(t)}function N5(t){return Ra.isBuffer(t)||t instanceof O5}var zc=L("util"),k;zc&&zc.debuglog?k=zc.debuglog("stream"):k=function(){};var R5=tR(),rf=Bc(),P5=Gc(),b5=P5.getHighWaterMark,Pa=Qt().codes,x5=Pa.ERR_INVALID_ARG_TYPE,M5=Pa.ERR_STREAM_PUSH_AFTER_EOF,L5=Pa.ERR_METHOD_NOT_IMPLEMENTED,I5=Pa.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,cn,Xc,Jc;un()($,go);var Oo=rf.errorOrDestroy,Qc=["error","close","destroy","pause","resume"];function C5(t,e,n){if(typeof t.prependListener=="function")return t.prependListener(e,n);!t._events||!t._events[e]?t.on(e,n):Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]}function vR(t,e,n){ln=ln||Mr(),t=t||{},typeof n!="boolean"&&(n=e instanceof ln),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=b5(this,t,"readableHighWaterMark",n),this.buffer=new R5,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(cn||(cn=Kc().StringDecoder),this.decoder=new cn(t.encoding),this.encoding=t.encoding)}function $(t){if(ln=ln||Mr(),!(this instanceof $))return new $(t);var e=this instanceof ln;this._readableState=new vR(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),go.call(this)}Object.defineProperty($.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});$.prototype.destroy=rf.destroy;$.prototype._undestroy=rf.undestroy;$.prototype._destroy=function(t,e){e(t)};$.prototype.push=function(t,e){var n=this._readableState,i;return n.objectMode?i=!0:typeof t=="string"&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=Ra.from(t,e),e=""),i=!0),mR(this,t,e,!1,i)};$.prototype.unshift=function(t){return mR(this,t,null,!0,!1)};function mR(t,e,n,i,a){k("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,D5(t,s);else{var o;if(a||(o=w5(s,e)),o)Oo(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Ra.prototype&&(e=g5(e)),i)s.endEmitted?Oo(t,new I5):Zc(t,s,e,!0);else if(s.ended)Oo(t,new M5);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||e.length!==0?Zc(t,s,e,!1):tf(t,s)):Zc(t,s,e,!1)}else i||(s.reading=!1,tf(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Zc(t,e,n,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&ba(t)),tf(t,e)}function w5(t,e){var n;return!N5(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(n=new x5("chunk",["string","Buffer","Uint8Array"],e)),n}$.prototype.isPaused=function(){return this._readableState.flowing===!1};$.prototype.setEncoding=function(t){cn||(cn=Kc().StringDecoder);var e=new cn(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";n!==null;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var SR=1073741824;function U5(t){return t>=SR?t=SR:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function hR(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=U5(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}$.prototype.read=function(t){k("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return k("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?ef(this):ba(this),null;if(t=hR(t,e),t===0&&e.ended)return e.length===0&&ef(this),null;var i=e.needReadable;k("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,k("length less than watermark",i)),e.ended||e.reading?(i=!1,k("reading or ended",i)):i&&(k("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=hR(n,e)));var a;return t>0?a=OR(t,e):a=null,a===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&ef(this)),a!==null&&this.emit("data",a),a};function D5(t,e){if(k("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?ba(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,yR(t)))}}function ba(t){var e=t._readableState;k("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(k("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(yR,t))}function yR(t){var e=t._readableState;k("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,nf(t)}function tf(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(V5,t,e))}function V5(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var n=e.length;if(k("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}$.prototype._read=function(t){Oo(this,new L5("_read()"))};$.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,k("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=a?r:v;i.endEmitted?process.nextTick(s):n.once("end",s),t.on("unpipe",o);function o(T,A){k("onunpipe"),T===n&&A&&A.hasUnpiped===!1&&(A.hasUnpiped=!0,c())}function r(){k("onend"),t.end()}var u=B5(n);t.on("drain",u);var l=!1;function c(){k("cleanup"),t.removeListener("close",f),t.removeListener("finish",S),t.removeListener("drain",u),t.removeListener("error",_),t.removeListener("unpipe",o),n.removeListener("end",r),n.removeListener("end",v),n.removeListener("data",p),l=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u()}n.on("data",p);function p(T){k("ondata");var A=t.write(T);k("dest.write",A),A===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&gR(i.pipes,t)!==-1)&&!l&&(k("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function _(T){k("onerror",T),v(),t.removeListener("error",_),TR(t,"error")===0&&Oo(t,T)}C5(t,"error",_);function f(){t.removeListener("finish",S),v()}t.once("close",f);function S(){k("onfinish"),t.removeListener("close",f),v()}t.once("finish",S);function v(){k("unpipe"),n.unpipe(t)}return t.emit("pipe",n),i.flowing||(k("pipe resume"),n.resume()),t};function B5(t){return function(){var n=t._readableState;k("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,n.awaitDrain===0&&TR(t,"data")&&(n.flowing=!0,nf(t))}}$.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var i=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<a;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=gR(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)};$.prototype.on=function(t,e){var n=go.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,k("on readable",i.length,i.reading),i.length?ba(this):i.reading||process.nextTick(G5,this)),n};$.prototype.addListener=$.prototype.on;$.prototype.removeListener=function(t,e){var n=go.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(AR,this),n};$.prototype.removeAllListeners=function(t){var e=go.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(AR,this),e};function AR(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function G5(t){k("readable nexttick read 0"),t.read(0)}$.prototype.resume=function(){var t=this._readableState;return t.flowing||(k("resume"),t.flowing=!t.readableListening,k5(this,t)),t.paused=!1,this};function k5(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(H5,t,e))}function H5(t,e){k("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),nf(t),e.flowing&&!e.reading&&t.read(0)}$.prototype.pause=function(){return k("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(k("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function nf(t){var e=t._readableState;for(k("flow",e.flowing);e.flowing&&t.read()!==null;);}$.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;t.on("end",function(){if(k("wrapped end"),n.decoder&&!n.ended){var o=n.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(k("wrapped data"),n.decoder&&(o=n.decoder.write(o)),!(n.objectMode&&o==null)&&!(!n.objectMode&&(!o||!o.length))){var r=e.push(o);r||(i=!0,t.pause())}});for(var a in t)this[a]===void 0&&typeof t[a]=="function"&&(this[a]=function(r){return function(){return t[r].apply(t,arguments)}}(a));for(var s=0;s<Qc.length;s++)t.on(Qc[s],this.emit.bind(this,Qc[s]));return this._read=function(o){k("wrapped _read",o),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&($.prototype[Symbol.asyncIterator]=function(){return Xc===void 0&&(Xc=fR()),Xc(this)});Object.defineProperty($.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty($.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty($.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});$._fromList=OR;Object.defineProperty($.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function OR(t,e){if(e.length===0)return null;var n;return e.objectMode?n=e.buffer.shift():!t||t>=e.length?(e.decoder?n=e.buffer.join(""):e.buffer.length===1?n=e.buffer.first():n=e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n}function ef(t){var e=t._readableState;k("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(F5,e,t))}function F5(t,e){if(k("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}typeof Symbol=="function"&&($.from=function(t,e){return Jc===void 0&&(Jc=_R()),Jc($,t,e)});function gR(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}});var Mr=h((xee,PR)=>{"use strict";var Y5=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};PR.exports=Tt;var RR=of(),sf=La();un()(Tt,RR);for(af=Y5(sf.prototype),xa=0;xa<af.length;xa++)Ma=af[xa],Tt.prototype[Ma]||(Tt.prototype[Ma]=sf.prototype[Ma]);var af,Ma,xa;function Tt(t){if(!(this instanceof Tt))return new Tt(t);RR.call(this,t),sf.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",q5)))}Object.defineProperty(Tt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Tt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Tt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function q5(){this._writableState.ended||process.nextTick(j5,this)}function j5(t){t.end()}Object.defineProperty(Tt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var La=h((Mee,CR)=>{"use strict";CR.exports=ue;function xR(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Tj(e,t)}}var fn;ue.WritableState=Ro;var $5={deprecate:HN()},MR=Dc(),Ca=L("buffer").Buffer,K5=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function W5(t){return Ca.from(t)}function z5(t){return Ca.isBuffer(t)||t instanceof K5}var lf=Bc(),X5=Gc(),J5=X5.getHighWaterMark,rr=Qt().codes,Q5=rr.ERR_INVALID_ARG_TYPE,Z5=rr.ERR_METHOD_NOT_IMPLEMENTED,ej=rr.ERR_MULTIPLE_CALLBACK,tj=rr.ERR_STREAM_CANNOT_PIPE,rj=rr.ERR_STREAM_DESTROYED,nj=rr.ERR_STREAM_NULL_VALUES,oj=rr.ERR_STREAM_WRITE_AFTER_END,ij=rr.ERR_UNKNOWN_ENCODING,pn=lf.errorOrDestroy;un()(ue,MR);function aj(){}function Ro(t,e,n){fn=fn||Mr(),t=t||{},typeof n!="boolean"&&(n=e instanceof fn),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=J5(this,t,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){dj(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new xR(this)}Ro.prototype.getBuffer=function(){for(var e=this.bufferedRequest,n=[];e;)n.push(e),e=e.next;return n};(function(){try{Object.defineProperty(Ro.prototype,"buffer",{get:$5.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Ia;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ia=Function.prototype[Symbol.hasInstance],Object.defineProperty(ue,Symbol.hasInstance,{value:function(e){return Ia.call(this,e)?!0:this!==ue?!1:e&&e._writableState instanceof Ro}})):Ia=function(e){return e instanceof this};function ue(t){fn=fn||Mr();var e=this instanceof fn;if(!e&&!Ia.call(ue,this))return new ue(t);this._writableState=new Ro(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),MR.call(this)}ue.prototype.pipe=function(){pn(this,new tj)};function sj(t,e){var n=new oj;pn(t,n),process.nextTick(e,n)}function uj(t,e,n,i){var a;return n===null?a=new nj:typeof n!="string"&&!e.objectMode&&(a=new Q5("chunk",["string","Buffer"],n)),a?(pn(t,a),process.nextTick(i,a),!1):!0}ue.prototype.write=function(t,e,n){var i=this._writableState,a=!1,s=!i.objectMode&&z5(t);return s&&!Ca.isBuffer(t)&&(t=W5(t)),typeof e=="function"&&(n=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof n!="function"&&(n=aj),i.ending?sj(this,n):(s||uj(this,i,t,n))&&(i.pendingcb++,a=cj(this,i,s,t,e,n)),a};ue.prototype.cork=function(){this._writableState.corked++};ue.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&LR(this,t))};ue.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new ij(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(ue.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function lj(t,e,n){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Ca.from(e,n)),e}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function cj(t,e,n,i,a,s){if(!n){var o=lj(e,i,a);i!==o&&(n=!0,a="buffer",i=o)}var r=e.objectMode?1:i.length;e.length+=r;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:a,isBuf:n,callback:s,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else uf(t,e,!1,r,i,a,s);return u}function uf(t,e,n,i,a,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new rj("write")):n?t._writev(a,e.onwrite):t._write(a,s,e.onwrite),e.sync=!1}function fj(t,e,n,i,a){--e.pendingcb,n?(process.nextTick(a,i),process.nextTick(No,t,e),t._writableState.errorEmitted=!0,pn(t,i)):(a(i),t._writableState.errorEmitted=!0,pn(t,i),No(t,e))}function pj(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function dj(t,e){var n=t._writableState,i=n.sync,a=n.writecb;if(typeof a!="function")throw new ej;if(pj(n),e)fj(t,n,i,e,a);else{var s=IR(n)||t.destroyed;!s&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&LR(t,n),i?process.nextTick(bR,t,n,s,a):bR(t,n,s,a)}}function bR(t,e,n,i){n||Ej(t,e),e.pendingcb--,i(),No(t,e)}function Ej(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function LR(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=e.bufferedRequestCount,a=new Array(i),s=e.corkedRequestsFree;s.entry=n;for(var o=0,r=!0;n;)a[o]=n,n.isBuf||(r=!1),n=n.next,o+=1;a.allBuffers=r,uf(t,e,!0,e.length,a,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new xR(e),e.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,c=n.callback,p=e.objectMode?1:u.length;if(uf(t,e,!1,p,u,l,c),n=n.next,e.bufferedRequestCount--,e.writing)break}n===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}ue.prototype._write=function(t,e,n){n(new Z5("_write()"))};ue.prototype._writev=null;ue.prototype.end=function(t,e,n){var i=this._writableState;return typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||hj(this,i,n),this};Object.defineProperty(ue.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function IR(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function _j(t,e){t._final(function(n){e.pendingcb--,n&&pn(t,n),e.prefinished=!0,t.emit("prefinish"),No(t,e)})}function Sj(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(_j,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function No(t,e){var n=IR(e);if(n&&(Sj(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return n}function hj(t,e,n){e.ending=!0,No(t,e),n&&(e.finished?process.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function Tj(t,e,n){var i=t.entry;for(t.entry=null;i;){var a=i.callback;e.pendingcb--,a(n),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(ue.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});ue.prototype.destroy=lf.destroy;ue.prototype._undestroy=lf.undestroy;ue.prototype._destroy=function(t,e){e(t)}});var cf=h((Lee,DR)=>{"use strict";var vj=L("util"),wR=La(),{LEVEL:UR}=pe(),Po=DR.exports=function(e={}){wR.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",n=>{this.levels=n.levels,this.parent=n}),this.once("unpipe",n=>{n===this.parent&&(this.parent=null,this.close&&this.close())})};vj.inherits(Po,wR);Po.prototype._write=function(e,n,i){if(this.silent||e.exception===!0&&!this.handleExceptions)return i(null);let a=this.level||this.parent&&this.parent.level;if(!a||this.levels[a]>=this.levels[e[UR]]){if(e&&!this.format)return this.log(e,i);let s,o;try{o=this.format.transform(Object.assign({},e),this.format.options)}catch(r){s=r}if(s||!o){if(i(),s)throw s;return}return this.log(o,i)}return this._writableState.sync=!1,i(null)};Po.prototype._writev=function(e,n){if(this.logv){let i=e.filter(this._accept,this);return i.length?this.logv(i,n):n(null)}for(let i=0;i<e.length;i++){if(!this._accept(e[i]))continue;if(e[i].chunk&&!this.format){this.log(e[i].chunk,e[i].callback);continue}let a,s;try{s=this.format.transform(Object.assign({},e[i].chunk),this.format.options)}catch(o){a=o}if(a||!s){if(e[i].callback(),a)throw n(null),a}else this.log(s,e[i].callback)}return n(null)};Po.prototype._accept=function(e){let n=e.chunk;if(this.silent)return!1;let i=this.level||this.parent&&this.parent.level;return!!((n.exception===!0||!i||this.levels[i]>=this.levels[n[UR]])&&(this.handleExceptions||n.exception!==!0))};Po.prototype._nop=function(){}});var pf=h((Iee,BR)=>{"use strict";var mj=L("util"),{LEVEL:ff}=pe(),VR=cf(),bo=BR.exports=function(e={}){if(VR.call(this,e),!e.transport||typeof e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated();function n(i){this.emit("error",i,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=n.bind(this),this.transport.on("error",this.transport.__winstonError))};mj.inherits(bo,VR);bo.prototype._write=function(e,n,i){if(this.silent||e.exception===!0&&!this.handleExceptions)return i(null);(!this.level||this.levels[this.level]>=this.levels[e[ff]])&&this.transport.log(e[ff],e.message,e,this._nop),i(null)};bo.prototype._writev=function(e,n){for(let i=0;i<e.length;i++)this._accept(e[i])&&(this.transport.log(e[i].chunk[ff],e[i].chunk.message,e[i].chunk,this._nop),e[i].callback());return n(null)};bo.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
34
|
+
`))};bo.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var dn=h((Cee,df)=>{"use strict";df.exports=cf();df.exports.LegacyTransportStream=pf()});var HR=h((Uee,kR)=>{"use strict";var yj=L("os"),{LEVEL:GR,MESSAGE:En}=pe(),Aj=dn();kR.exports=class extends Aj{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol=typeof e.eol=="string"?e.eol:yj.EOL,this.setMaxListeners(30)}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[GR]]){console._stderr?console._stderr.write(`${e[En]}${this.eol}`):console.error(e[En]),n&&n();return}else if(this.consoleWarnLevels[e[GR]]){console._stderr?console._stderr.write(`${e[En]}${this.eol}`):console.warn(e[En]),n&&n();return}console._stdout?console._stdout.write(`${e[En]}${this.eol}`):console.log(e[En]),n&&n()}_stringArrayToSet(e,n){if(!e)return{};if(n=n||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(n);return e.reduce((i,a)=>{if(typeof a!="string")throw new Error(n);return i[a]=!0,i},{})}}});var Ua=h((wa,FR)=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.default=Oj;function Oj(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}FR.exports=wa.default});var qR=h((Da,YR)=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.default=function(t){return function(...e){var n=e.pop();return t.call(this,e,n)}};YR.exports=Da.default});var KR=h(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.fallback=jR;nr.wrap=$R;var gj=nr.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,Nj=nr.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,Rj=nr.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function jR(t){setTimeout(t,0)}function $R(t){return(e,...n)=>t(()=>e(...n))}var xo;gj?xo=queueMicrotask:Nj?xo=setImmediate:Rj?xo=process.nextTick:xo=jR;nr.default=$R(xo)});var QR=h((Va,JR)=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.default=Ij;var Pj=qR(),bj=XR(Pj),xj=KR(),Mj=XR(xj),Lj=Lr();function XR(t){return t&&t.__esModule?t:{default:t}}function Ij(t){return(0,Lj.isAsync)(t)?function(...e){let n=e.pop(),i=t.apply(this,e);return WR(i,n)}:(0,bj.default)(function(e,n){var i;try{i=t.apply(this,e)}catch(a){return n(a)}if(i&&typeof i.then=="function")return WR(i,n);n(null,i)})}function WR(t,e){return t.then(n=>{zR(e,null,n)},n=>{zR(e,n&&(n instanceof Error||n.message)?n:new Error(n))})}function zR(t,e,n){try{t(e,n)}catch(i){(0,Mj.default)(a=>{throw a},i)}}JR.exports=Va.default});var Lr=h(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.isAsyncIterable=wt.isAsyncGenerator=wt.isAsync=void 0;var Cj=QR(),wj=Uj(Cj);function Uj(t){return t&&t.__esModule?t:{default:t}}function ZR(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Dj(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Vj(t){return typeof t[Symbol.asyncIterator]=="function"}function Bj(t){if(typeof t!="function")throw new Error("expected a function");return ZR(t)?(0,wj.default)(t):t}wt.default=Bj;wt.isAsync=ZR;wt.isAsyncGenerator=Dj;wt.isAsyncIterable=Vj});var _n=h((Ba,eP)=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.default=Gj;function Gj(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function n(...i){return typeof i[e-1]=="function"?t.apply(this,i):new Promise((a,s)=>{i[e-1]=(o,...r)=>{if(o)return s(o);a(r.length>1?r:r[0])},t.apply(this,i)})}return n}eP.exports=Ba.default});var rP=h((Ga,tP)=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var kj=Ua(),Hj=Ef(kj),Fj=Lr(),Yj=Ef(Fj),qj=_n(),jj=Ef(qj);function Ef(t){return t&&t.__esModule?t:{default:t}}Ga.default=(0,jj.default)((t,e,n)=>{var i=(0,Hj.default)(e)?[]:{};t(e,(a,s,o)=>{(0,Yj.default)(a)((r,...u)=>{u.length<2&&([u]=u),i[s]=u,o(r)})},a=>n(a,i))},3);tP.exports=Ga.default});var _f=h((ka,nP)=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.default=$j;function $j(t){function e(...n){if(t!==null){var i=t;t=null,i.apply(this,n)}}return Object.assign(e,t),e}nP.exports=ka.default});var iP=h((Ha,oP)=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};oP.exports=Ha.default});var uP=h((Fa,sP)=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.default=e4;var Kj=Ua(),Wj=aP(Kj),zj=iP(),Xj=aP(zj);function aP(t){return t&&t.__esModule?t:{default:t}}function Jj(t){var e=-1,n=t.length;return function(){return++e<n?{value:t[e],key:e}:null}}function Qj(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function Zj(t){var e=t?Object.keys(t):[],n=-1,i=e.length;return function a(){var s=e[++n];return s==="__proto__"?a():n<i?{value:t[s],key:s}:null}}function e4(t){if((0,Wj.default)(t))return Jj(t);var e=(0,Xj.default)(t);return e?Qj(e):Zj(t)}sP.exports=Fa.default});var Sf=h((Ya,lP)=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.default=t4;function t4(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var n=t;t=null,n.apply(this,e)}}lP.exports=Ya.default});var ja=h((qa,cP)=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var r4={};qa.default=r4;cP.exports=qa.default});var pP=h(($a,fP)=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.default=a4;var n4=ja(),o4=i4(n4);function i4(t){return t&&t.__esModule?t:{default:t}}function a4(t,e,n,i){let a=!1,s=!1,o=!1,r=0,u=0;function l(){r>=e||o||a||(o=!0,t.next().then(({value:_,done:f})=>{if(!(s||a)){if(o=!1,f){a=!0,r<=0&&i(null);return}r++,n(_,u,c),u++,l()}}).catch(p))}function c(_,f){if(r-=1,!s){if(_)return p(_);if(_===!1){a=!0,s=!0;return}if(f===o4.default||a&&r<=0)return a=!0,i(null);l()}}function p(_){s||(o=!1,a=!0,i(_))}l()}fP.exports=$a.default});var SP=h((Ka,_P)=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var s4=_f(),u4=Mo(s4),l4=uP(),c4=Mo(l4),f4=Sf(),p4=Mo(f4),dP=Lr(),d4=pP(),EP=Mo(d4),E4=ja(),_4=Mo(E4);function Mo(t){return t&&t.__esModule?t:{default:t}}Ka.default=t=>(e,n,i)=>{if(i=(0,u4.default)(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if((0,dP.isAsyncGenerator)(e))return(0,EP.default)(e,t,n,i);if((0,dP.isAsyncIterable)(e))return(0,EP.default)(e[Symbol.asyncIterator](),t,n,i);var a=(0,c4.default)(e),s=!1,o=!1,r=0,u=!1;function l(p,_){if(!o)if(r-=1,p)s=!0,i(p);else if(p===!1)s=!0,o=!0;else{if(_===_4.default||s&&r<=0)return s=!0,i(null);u||c()}}function c(){for(u=!0;r<t&&!s;){var p=a();if(p===null){s=!0,r<=0&&i(null);return}r+=1,n(p.value,p.key,(0,p4.default)(l))}u=!1}c()};_P.exports=Ka.default});var Tf=h((Wa,hP)=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});var S4=SP(),h4=hf(S4),T4=Lr(),v4=hf(T4),m4=_n(),y4=hf(m4);function hf(t){return t&&t.__esModule?t:{default:t}}function A4(t,e,n,i){return(0,h4.default)(e)(t,(0,v4.default)(n),i)}Wa.default=(0,y4.default)(A4,4);hP.exports=Wa.default});var mP=h((za,vP)=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});var O4=Tf(),g4=TP(O4),N4=_n(),R4=TP(N4);function TP(t){return t&&t.__esModule?t:{default:t}}function P4(t,e,n){return(0,g4.default)(t,1,e,n)}za.default=(0,R4.default)(P4,3);vP.exports=za.default});var OP=h((Xa,AP)=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.default=I4;var b4=rP(),x4=yP(b4),M4=mP(),L4=yP(M4);function yP(t){return t&&t.__esModule?t:{default:t}}function I4(t,e){return(0,x4.default)(L4.default,t,e)}AP.exports=Xa.default});var vf=h((Bee,NP)=>{"use strict";NP.exports=Ut;var Ja=Qt().codes,C4=Ja.ERR_METHOD_NOT_IMPLEMENTED,w4=Ja.ERR_MULTIPLE_CALLBACK,U4=Ja.ERR_TRANSFORM_ALREADY_TRANSFORMING,D4=Ja.ERR_TRANSFORM_WITH_LENGTH_0,Qa=Mr();un()(Ut,Qa);function V4(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(i===null)return this.emit("error",new w4);n.writechunk=null,n.writecb=null,e!=null&&this.push(e),i(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function Ut(t){if(!(this instanceof Ut))return new Ut(t);Qa.call(this,t),this._transformState={afterTransform:V4.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",B4)}function B4(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,n){gP(t,e,n)}):gP(this,null,null)}Ut.prototype.push=function(t,e){return this._transformState.needTransform=!1,Qa.prototype.push.call(this,t,e)};Ut.prototype._transform=function(t,e,n){n(new C4("_transform()"))};Ut.prototype._write=function(t,e,n){var i=this._transformState;if(i.writecb=n,i.writechunk=t,i.writeencoding=e,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};Ut.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Ut.prototype._destroy=function(t,e){Qa.prototype._destroy.call(this,t,function(n){e(n)})};function gP(t,e,n){if(e)return t.emit("error",e);if(n!=null&&t.push(n),t._writableState.length)throw new D4;if(t._transformState.transforming)throw new U4;return t.push(null)}});var bP=h((Gee,PP)=>{"use strict";PP.exports=Lo;var RP=vf();un()(Lo,RP);function Lo(t){if(!(this instanceof Lo))return new Lo(t);RP.call(this,t)}Lo.prototype._transform=function(t,e,n){n(null,t)}});var CP=h((kee,IP)=>{"use strict";var mf;function G4(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var LP=Qt().codes,k4=LP.ERR_MISSING_ARGS,H4=LP.ERR_STREAM_DESTROYED;function xP(t){if(t)throw t}function F4(t){return t.setHeader&&typeof t.abort=="function"}function Y4(t,e,n,i){i=G4(i);var a=!1;t.on("close",function(){a=!0}),mf===void 0&&(mf=Oa()),mf(t,{readable:e,writable:n},function(o){if(o)return i(o);a=!0,i()});var s=!1;return function(o){if(!a&&!s){if(s=!0,F4(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(o||new H4("pipe"))}}}function MP(t){t()}function q4(t,e){return t.pipe(e)}function j4(t){return!t.length||typeof t[t.length-1]!="function"?xP:t.pop()}function $4(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=j4(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new k4("streams");var a,s=e.map(function(o,r){var u=r<e.length-1,l=r>0;return Y4(o,u,l,function(c){a||(a=c),c&&s.forEach(MP),!u&&(s.forEach(MP),i(a))})});return e.reduce(q4)}IP.exports=$4});var Ir=h((Qe,Co)=>{"use strict";var Io=L("stream");process.env.READABLE_STREAM==="disable"&&Io?(Co.exports=Io.Readable,Object.assign(Co.exports,Io),Co.exports.Stream=Io):(Qe=Co.exports=of(),Qe.Stream=Io||Qe,Qe.Readable=Qe,Qe.Writable=La(),Qe.Duplex=Mr(),Qe.Transform=vf(),Qe.PassThrough=bP(),Qe.finished=Oa(),Qe.pipeline=CP())});var Pf=h((Hee,UP)=>{"use strict";var Sn=[],wo=[],yf=function(){};function Of(t){return~Sn.indexOf(t)?!1:(Sn.push(t),!0)}function gf(t){yf=t}function K4(t){for(var e=[],n=0;n<Sn.length;n++){if(Sn[n].async){e.push(Sn[n]);continue}if(Sn[n](t))return!0}return e.length?new Promise(function(a){Promise.all(e.map(function(o){return o(t)})).then(function(o){a(o.some(Boolean))})}):!1}function Nf(t){return~wo.indexOf(t)?!1:(wo.push(t),!0)}function Af(){yf.apply(yf,arguments)}function wP(t){for(var e=0;e<wo.length;e++)t=wo[e].apply(wo[e],arguments);return t}function Rf(t,e){var n=Object.prototype.hasOwnProperty;for(var i in e)n.call(e,i)&&(t[i]=e[i]);return t}function W4(t){return t.enabled=!1,t.modify=Nf,t.set=gf,t.use=Of,Rf(function(){return!1},t)}function z4(t){function e(){var n=Array.prototype.slice.call(arguments,0);return Af.call(Af,t,wP(n,t)),!0}return t.enabled=!0,t.modify=Nf,t.set=gf,t.use=Of,Rf(e,t)}UP.exports=function(e){return e.introduce=Rf,e.enabled=K4,e.process=wP,e.modify=Nf,e.write=Af,e.nope=W4,e.yep=z4,e.set=gf,e.use=Of,e}});var VP=h((Fee,DP)=>{"use strict";var X4=Pf(),J4=X4(function t(e,n){return n=n||{},n.namespace=e,n.prod=!0,n.dev=!1,n.force||t.force?t.yep(n):t.nope(n)});DP.exports=J4});var GP=h((Yee,BP)=>{"use strict";BP.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var HP=h((qee,kP)=>{"use strict";kP.exports=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")}});var qP=h((jee,YP)=>{"use strict";var Q4=HP(),Z4=Array.prototype.concat,e6=Array.prototype.slice,FP=YP.exports=function(e){for(var n=[],i=0,a=e.length;i<a;i++){var s=e[i];Q4(s)?n=Z4.call(n,e6.call(s)):n.push(s)}return n};FP.wrap=function(t){return function(){return t(FP(arguments))}}});var WP=h(($ee,KP)=>{"use strict";var Uo=GP(),Do=qP(),jP=Object.hasOwnProperty,$P=Object.create(null);for(Za in Uo)jP.call(Uo,Za)&&($P[Uo[Za]]=Za);var Za,ze=KP.exports={to:{},get:{}};ze.get=function(t){var e=t.substring(0,3).toLowerCase(),n,i;switch(e){case"hsl":n=ze.get.hsl(t),i="hsl";break;case"hwb":n=ze.get.hwb(t),i="hwb";break;default:n=ze.get.rgb(t),i="rgb";break}return n?{model:i,value:n}:null};ze.get.rgb=function(t){if(!t)return null;var e=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,i=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,o=[0,0,0,1],r,u,l;if(r=t.match(n)){for(l=r[2],r=r[1],u=0;u<3;u++){var c=u*2;o[u]=parseInt(r.slice(c,c+2),16)}l&&(o[3]=parseInt(l,16)/255)}else if(r=t.match(e)){for(r=r[1],l=r[3],u=0;u<3;u++)o[u]=parseInt(r[u]+r[u],16);l&&(o[3]=parseInt(l+l,16)/255)}else if(r=t.match(i)){for(u=0;u<3;u++)o[u]=parseInt(r[u+1],0);r[4]&&(r[5]?o[3]=parseFloat(r[4])*.01:o[3]=parseFloat(r[4]))}else if(r=t.match(a)){for(u=0;u<3;u++)o[u]=Math.round(parseFloat(r[u+1])*2.55);r[4]&&(r[5]?o[3]=parseFloat(r[4])*.01:o[3]=parseFloat(r[4]))}else return(r=t.match(s))?r[1]==="transparent"?[0,0,0,0]:jP.call(Uo,r[1])?(o=Uo[r[1]],o[3]=1,o):null:null;for(u=0;u<3;u++)o[u]=or(o[u],0,255);return o[3]=or(o[3],0,1),o};ze.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){var i=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,s=or(parseFloat(n[2]),0,100),o=or(parseFloat(n[3]),0,100),r=or(isNaN(i)?1:i,0,1);return[a,s,o,r]}return null};ze.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){var i=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,s=or(parseFloat(n[2]),0,100),o=or(parseFloat(n[3]),0,100),r=or(isNaN(i)?1:i,0,1);return[a,s,o,r]}return null};ze.to.hex=function(){var t=Do(arguments);return"#"+es(t[0])+es(t[1])+es(t[2])+(t[3]<1?es(Math.round(t[3]*255)):"")};ze.to.rgb=function(){var t=Do(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};ze.to.rgb.percent=function(){var t=Do(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+n+"%, "+i+"%)":"rgba("+e+"%, "+n+"%, "+i+"%, "+t[3]+")"};ze.to.hsl=function(){var t=Do(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};ze.to.hwb=function(){var t=Do(arguments),e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};ze.to.keyword=function(t){return $P[t.slice(0,3)]};function or(t,e,n){return Math.min(Math.max(e,t),n)}function es(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var XP=h((Kee,zP)=>{"use strict";zP.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var bf=h((Wee,eb)=>{"use strict";var Cr=XP(),ZP={};for(ts in Cr)Cr.hasOwnProperty(ts)&&(ZP[Cr[ts]]=ts);var ts,x=eb.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(De in x)if(x.hasOwnProperty(De)){if(!("channels"in x[De]))throw new Error("missing channels property: "+De);if(!("labels"in x[De]))throw new Error("missing channel labels property: "+De);if(x[De].labels.length!==x[De].channels)throw new Error("channel and label counts mismatch: "+De);JP=x[De].channels,QP=x[De].labels,delete x[De].channels,delete x[De].labels,Object.defineProperty(x[De],"channels",{value:JP}),Object.defineProperty(x[De],"labels",{value:QP})}var JP,QP,De;x.rgb.hsl=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a=Math.min(e,n,i),s=Math.max(e,n,i),o=s-a,r,u,l;return s===a?r=0:e===s?r=(n-i)/o:n===s?r=2+(i-e)/o:i===s&&(r=4+(e-n)/o),r=Math.min(r*60,360),r<0&&(r+=360),l=(a+s)/2,s===a?u=0:l<=.5?u=o/(s+a):u=o/(2-s-a),[r,u*100,l*100]};x.rgb.hsv=function(t){var e,n,i,a,s,o=t[0]/255,r=t[1]/255,u=t[2]/255,l=Math.max(o,r,u),c=l-Math.min(o,r,u),p=function(_){return(l-_)/6/c+1/2};return c===0?a=s=0:(s=c/l,e=p(o),n=p(r),i=p(u),o===l?a=i-n:r===l?a=1/3+e-i:u===l&&(a=2/3+n-e),a<0?a+=1:a>1&&(a-=1)),[a*360,s*100,l*100]};x.rgb.hwb=function(t){var e=t[0],n=t[1],i=t[2],a=x.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(n,i));return i=1-1/255*Math.max(e,Math.max(n,i)),[a,s*100,i*100]};x.rgb.cmyk=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a,s,o,r;return r=Math.min(1-e,1-n,1-i),a=(1-e-r)/(1-r)||0,s=(1-n-r)/(1-r)||0,o=(1-i-r)/(1-r)||0,[a*100,s*100,o*100,r*100]};function t6(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}x.rgb.keyword=function(t){var e=ZP[t];if(e)return e;var n=1/0,i;for(var a in Cr)if(Cr.hasOwnProperty(a)){var s=Cr[a],o=t6(t,s);o<n&&(n=o,i=a)}return i};x.keyword.rgb=function(t){return Cr[t]};x.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var a=e*.4124+n*.3576+i*.1805,s=e*.2126+n*.7152+i*.0722,o=e*.0193+n*.1192+i*.9505;return[a*100,s*100,o*100]};x.rgb.lab=function(t){var e=x.rgb.xyz(t),n=e[0],i=e[1],a=e[2],s,o,r;return n/=95.047,i/=100,a/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,s=116*i-16,o=500*(n-i),r=200*(i-a),[s,o,r]};x.hsl.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100,a,s,o,r,u;if(n===0)return u=i*255,[u,u,u];i<.5?s=i*(1+n):s=i+n-i*n,a=2*i-s,r=[0,0,0];for(var l=0;l<3;l++)o=e+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?u=a+(s-a)*6*o:2*o<1?u=s:3*o<2?u=a+(s-a)*(2/3-o)*6:u=a,r[l]=u*255;return r};x.hsl.hsv=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,a=n,s=Math.max(i,.01),o,r;return i*=2,n*=i<=1?i:2-i,a*=s<=1?s:2-s,r=(i+n)/2,o=i===0?2*a/(s+a):2*n/(i+n),[e,o*100,r*100]};x.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,a=Math.floor(e)%6,s=e-Math.floor(e),o=255*i*(1-n),r=255*i*(1-n*s),u=255*i*(1-n*(1-s));switch(i*=255,a){case 0:return[i,u,o];case 1:return[r,i,o];case 2:return[o,i,u];case 3:return[o,r,i];case 4:return[u,o,i];case 5:return[i,o,r]}};x.hsv.hsl=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,a=Math.max(i,.01),s,o,r;return r=(2-n)*i,s=(2-n)*a,o=n*a,o/=s<=1?s:2-s,o=o||0,r/=2,[e,o*100,r*100]};x.hwb.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100,a=n+i,s,o,r,u;a>1&&(n/=a,i/=a),s=Math.floor(6*e),o=1-i,r=6*e-s,s&1&&(r=1-r),u=n+r*(o-n);var l,c,p;switch(s){default:case 6:case 0:l=o,c=u,p=n;break;case 1:l=u,c=o,p=n;break;case 2:l=n,c=o,p=u;break;case 3:l=n,c=u,p=o;break;case 4:l=u,c=n,p=o;break;case 5:l=o,c=n,p=u;break}return[l*255,c*255,p*255]};x.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a=t[3]/100,s,o,r;return s=1-Math.min(1,e*(1-a)+a),o=1-Math.min(1,n*(1-a)+a),r=1-Math.min(1,i*(1-a)+a),[s*255,o*255,r*255]};x.xyz.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a,s,o;return a=e*3.2406+n*-1.5372+i*-.4986,s=e*-.9689+n*1.8758+i*.0415,o=e*.0557+n*-.204+i*1.057,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[a*255,s*255,o*255]};x.xyz.lab=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;return e/=95.047,n/=100,i/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=116*n-16,s=500*(e-n),o=200*(n-i),[a,s,o]};x.lab.xyz=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;s=(e+16)/116,a=n/500+s,o=s-i/200;var r=Math.pow(s,3),u=Math.pow(a,3),l=Math.pow(o,3);return s=r>.008856?r:(s-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,a*=95.047,s*=100,o*=108.883,[a,s,o]};x.lab.lch=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;return a=Math.atan2(i,n),s=a*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(n*n+i*i),[e,o,s]};x.lch.lab=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;return o=i/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o),[e,a,s]};x.rgb.ansi16=function(t){var e=t[0],n=t[1],i=t[2],a=1 in arguments?arguments[1]:x.rgb.hsv(t)[2];if(a=Math.round(a/50),a===0)return 30;var s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return a===2&&(s+=60),s};x.hsv.ansi16=function(t){return x.rgb.ansi16(x.hsv.rgb(t),t[2])};x.rgb.ansi256=function(t){var e=t[0],n=t[1],i=t[2];if(e===n&&n===i)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var a=16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5);return a};x.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var n=(~~(t>50)+1)*.5,i=(e&1)*n*255,a=(e>>1&1)*n*255,s=(e>>2&1)*n*255;return[i,a,s]};x.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var n,i=Math.floor(t/36)/5*255,a=Math.floor((n=t%36)/6)/5*255,s=n%6/5*255;return[i,a,s]};x.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n};x.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];e[0].length===3&&(n=n.split("").map(function(r){return r+r}).join(""));var i=parseInt(n,16),a=i>>16&255,s=i>>8&255,o=i&255;return[a,s,o]};x.rgb.hcg=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a=Math.max(Math.max(e,n),i),s=Math.min(Math.min(e,n),i),o=a-s,r,u;return o<1?r=s/(1-o):r=0,o<=0?u=0:a===e?u=(n-i)/o%6:a===n?u=2+(i-e)/o:u=4+(e-n)/o+4,u/=6,u%=1,[u*360,o*100,r*100]};x.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1,a=0;return n<.5?i=2*e*n:i=2*e*(1-n),i<1&&(a=(n-.5*i)/(1-i)),[t[0],i*100,a*100]};x.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=e*n,a=0;return i<1&&(a=(n-i)/(1-i)),[t[0],i*100,a*100]};x.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100;if(n===0)return[i*255,i*255,i*255];var a=[0,0,0],s=e%1*6,o=s%1,r=1-o,u=0;switch(Math.floor(s)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=r,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=r,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=r}return u=(1-n)*i,[(n*a[0]+u)*255,(n*a[1]+u)*255,(n*a[2]+u)*255]};x.hcg.hsv=function(t){var e=t[1]/100,n=t[2]/100,i=e+n*(1-e),a=0;return i>0&&(a=e/i),[t[0],a*100,i*100]};x.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100,i=n*(1-e)+.5*e,a=0;return i>0&&i<.5?a=e/(2*i):i>=.5&&i<1&&(a=e/(2*(1-i))),[t[0],a*100,i*100]};x.hcg.hwb=function(t){var e=t[1]/100,n=t[2]/100,i=e+n*(1-e);return[t[0],(i-e)*100,(1-i)*100]};x.hwb.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1-n,a=i-e,s=0;return a<1&&(s=(i-a)/(1-a)),[t[0],a*100,s*100]};x.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};x.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};x.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};x.gray.hsl=x.gray.hsv=function(t){return[0,0,t[0]]};x.gray.hwb=function(t){return[0,100,t[0]]};x.gray.cmyk=function(t){return[0,0,0,t[0]]};x.gray.lab=function(t){return[t[0],0,0]};x.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,n=(e<<16)+(e<<8)+e,i=n.toString(16).toUpperCase();return"000000".substring(i.length)+i};x.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var rb=h((zee,tb)=>{"use strict";var rs=bf();function r6(){for(var t={},e=Object.keys(rs),n=e.length,i=0;i<n;i++)t[e[i]]={distance:-1,parent:null};return t}function n6(t){var e=r6(),n=[t];for(e[t].distance=0;n.length;)for(var i=n.pop(),a=Object.keys(rs[i]),s=a.length,o=0;o<s;o++){var r=a[o],u=e[r];u.distance===-1&&(u.distance=e[i].distance+1,u.parent=i,n.unshift(r))}return e}function o6(t,e){return function(n){return e(t(n))}}function i6(t,e){for(var n=[e[t].parent,t],i=rs[e[t].parent][t],a=e[t].parent;e[a].parent;)n.unshift(e[a].parent),i=o6(rs[e[a].parent][a],i),a=e[a].parent;return i.conversion=n,i}tb.exports=function(t){for(var e=n6(t),n={},i=Object.keys(e),a=i.length,s=0;s<a;s++){var o=i[s],r=e[o];r.parent!==null&&(n[o]=i6(o,e))}return n}});var ob=h((Xee,nb)=>{"use strict";var xf=bf(),a6=rb(),hn={},s6=Object.keys(xf);function u6(t){var e=function(n){return n==null?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function l6(t){var e=function(n){if(n==null)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var i=t(n);if(typeof i=="object")for(var a=i.length,s=0;s<a;s++)i[s]=Math.round(i[s]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}s6.forEach(function(t){hn[t]={},Object.defineProperty(hn[t],"channels",{value:xf[t].channels}),Object.defineProperty(hn[t],"labels",{value:xf[t].labels});var e=a6(t),n=Object.keys(e);n.forEach(function(i){var a=e[i];hn[t][i]=l6(a),hn[t][i].raw=u6(a)})});nb.exports=hn});var sb=h((Jee,ab)=>{"use strict";var Vo=WP(),Xe=ob(),If=[].slice,ib=["keyword","gray","hex"],Mf={};Object.keys(Xe).forEach(function(t){Mf[If.call(Xe[t].labels).sort().join("")]=t});var ns={};function Ae(t,e){if(!(this instanceof Ae))return new Ae(t,e);if(e&&e in ib&&(e=null),e&&!(e in Xe))throw new Error("Unknown model: "+e);var n,i;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof Ae)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if(typeof t=="string"){var a=Vo.get(t);if(a===null)throw new Error("Unable to parse color from string: "+t);this.model=a.model,i=Xe[this.model].channels,this.color=a.value.slice(0,i),this.valpha=typeof a.value[i]=="number"?a.value[i]:1}else if(t.length){this.model=e||"rgb",i=Xe[this.model].channels;var s=If.call(t,0,i);this.color=Lf(s,i),this.valpha=typeof t[i]=="number"?t[i]:1}else if(typeof t=="number")t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var r=o.sort().join("");if(!(r in Mf))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=Mf[r];var u=Xe[this.model].labels,l=[];for(n=0;n<u.length;n++)l.push(t[u[n]]);this.color=Lf(l)}if(ns[this.model])for(i=Xe[this.model].channels,n=0;n<i;n++){var c=ns[this.model][n];c&&(this.color[n]=c(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Ae.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in Vo.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);var n=e.valpha===1?e.color:e.color.concat(this.valpha);return Vo.to[e.model](n)},percentString:function(t){var e=this.rgb().round(typeof t=="number"?t:1),n=e.valpha===1?e.color:e.color.concat(this.valpha);return Vo.to.rgb.percent(n)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=Xe[this.model].channels,n=Xe[this.model].labels,i=0;i<e;i++)t[n[i]]=this.color[i];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new Ae(this.color.map(f6(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new Ae(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:le("rgb",0,de(255)),green:le("rgb",1,de(255)),blue:le("rgb",2,de(255)),hue:le(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:le("hsl",1,de(100)),lightness:le("hsl",2,de(100)),saturationv:le("hsv",1,de(100)),value:le("hsv",2,de(100)),chroma:le("hcg",1,de(100)),gray:le("hcg",2,de(100)),white:le("hwb",1,de(100)),wblack:le("hwb",2,de(100)),cyan:le("cmyk",0,de(100)),magenta:le("cmyk",1,de(100)),yellow:le("cmyk",2,de(100)),black:le("cmyk",3,de(100)),x:le("xyz",0,de(100)),y:le("xyz",1,de(100)),z:le("xyz",2,de(100)),l:le("lab",0,de(100)),a:le("lab",1),b:le("lab",2),keyword:function(t){return arguments.length?new Ae(t):Xe[this.model].keyword(this.color)},hex:function(t){return arguments.length?new Ae(t):Vo.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity:function(){for(var t=this.rgb().color,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return Ae.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),n=e.color[0];return n=(n+t)%360,n=n<0?360+n:n,e.color[0]=n,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var n=t.rgb(),i=this.rgb(),a=e===void 0?.5:e,s=2*a-1,o=n.alpha()-i.alpha(),r=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,u=1-r;return Ae.rgb(r*n.red()+u*i.red(),r*n.green()+u*i.green(),r*n.blue()+u*i.blue(),n.alpha()*a+i.alpha()*(1-a))}};Object.keys(Xe).forEach(function(t){if(ib.indexOf(t)===-1){var e=Xe[t].channels;Ae.prototype[t]=function(){if(this.model===t)return new Ae(this);if(arguments.length)return new Ae(arguments,t);var n=typeof arguments[e]=="number"?e:this.valpha;return new Ae(p6(Xe[this.model][t].raw(this.color)).concat(n),t)},Ae[t]=function(n){return typeof n=="number"&&(n=Lf(If.call(arguments),e)),new Ae(n,t)}}});function c6(t,e){return Number(t.toFixed(e))}function f6(t){return function(e){return c6(e,t)}}function le(t,e,n){return t=Array.isArray(t)?t:[t],t.forEach(function(i){(ns[i]||(ns[i]=[]))[e]=n}),t=t[0],function(i){var a;return arguments.length?(n&&(i=n(i)),a=this[t](),a.color[e]=i,a):(a=this[t]().color[e],n&&(a=n(a)),a)}}function de(t){return function(e){return Math.max(0,Math.min(t,e))}}function p6(t){return Array.isArray(t)?t:[t]}function Lf(t,e){for(var n=0;n<e;n++)typeof t[n]!="number"&&(t[n]=0);return t}ab.exports=Ae});var lb=h((Qee,ub)=>{"use strict";ub.exports=function(e){for(var n=0,i=0;n<e.length;i=e.charCodeAt(n++)+((i<<5)-i));var a=Math.floor(Math.abs(Math.sin(i)*1e4%1*16777216)).toString(16);return"#"+Array(6-a.length+1).join("0")+a}});var db=h((Zee,pb)=>{"use strict";var cb=sb(),fb=lb();pb.exports=function(e,n){var i=e.split(n||":"),a=fb(i[0]);if(!i.length)return a;for(var s=0,o=i.length-1;s<o;s++)a=cb(a).mix(cb(fb(i[s+1]))).saturate(1).hex();return a}});var _b=h((ete,Eb)=>{"use strict";function ut(t,e){if(e)return new ut(t).style(e);if(!(this instanceof ut))return new ut(t);this.text=t}ut.prototype.prefix="\x1B[";ut.prototype.suffix="m";ut.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var n=e.substring(0,2),i=e.substring(2,4),a=e.substring(4,6);return[parseInt(n,16),parseInt(i,16),parseInt(a,16)]};ut.prototype.rgb=function(e,n,i){var a=e/255*5,s=n/255*5,o=i/255*5;return this.ansi(a,s,o)};ut.prototype.ansi=function(e,n,i){var a=Math.round(e),s=Math.round(n),o=Math.round(i);return 16+a*36+s*6+o};ut.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};ut.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};Eb.exports=ut});var hb=h((tte,Sb)=>{"use strict";var d6=db(),E6=_b();Sb.exports=function(e,n){var i=n.namespace,a=n.colors!==!1?E6(i+":",d6(i)):i+":";return e[0]=a+" "+e[0],e}});var vb=h((rte,Tb)=>{"use strict";Tb.exports=function(e,n){if(!n)return!1;for(var i=n.split(/[\s,]+/),a=0;a<i.length;a++){if(n=i[a].replace("*",".*?"),n.charAt(0)==="-"){if(new RegExp("^"+n.substr(1)+"$").test(e))return!1;continue}if(new RegExp("^"+n+"$").test(e))return!0}return!1}});var yb=h((nte,mb)=>{"use strict";var _6=vb();mb.exports=function(e){return function(i){try{return _6(i,e())}catch{}return!1}}});var Ob=h((ote,Ab)=>{"use strict";var S6=yb();Ab.exports=S6(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var Nb=h((ite,gb)=>{"use strict";gb.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var Pb=h((ate,Rb)=>{"use strict";var h6=Pf(),T6=L("tty").isatty(1),os=h6(function t(e,n){return n=n||{},n.colors="colors"in n?n.colors:T6,n.namespace=e,n.prod=!1,n.dev=!0,!t.enabled(e)&&!(n.force||t.force)?t.nope(n):t.yep(n)});os.modify(hb());os.use(Ob());os.set(Nb());Rb.exports=os});var Bo=h((ste,Cf)=>{"use strict";process.env.NODE_ENV==="production"?Cf.exports=VP():Cf.exports=Pb()});var xb=h((ute,bb)=>{"use strict";var wf=L("fs"),{StringDecoder:v6}=L("string_decoder"),{Stream:m6}=Ir();function y6(){}bb.exports=(t,e)=>{let n=Buffer.alloc(65536),i=new v6("utf8"),a=new m6,s="",o=0,r=0;return t.start===-1&&delete t.start,a.readable=!0,a.destroy=()=>{a.destroyed=!0,a.emit("end"),a.emit("close")},wf.open(t.file,"a+","0644",(u,l)=>{if(u){e?e(u):a.emit("error",u),a.destroy();return}(function c(){if(a.destroyed){wf.close(l,y6);return}return wf.read(l,n,0,n.length,o,(p,_)=>{if(p){e?e(p):a.emit("error",p),a.destroy();return}if(!_)return s&&((t.start==null||r>t.start)&&(e?e(null,s):a.emit("line",s)),r++,s=""),setTimeout(c,1e3);let f=i.write(n.slice(0,_));e||a.emit("data",f),f=(s+f).split(/\n+/);let S=f.length-1,v=0;for(;v<S;v++)(t.start==null||r>t.start)&&(e?e(null,f[v]):a.emit("line",f[v])),r++;return s=f[S],o+=_,c()})})()}),e?a.destroy:a}});var Cb=h((cte,Ib)=>{"use strict";var $e=L("fs"),he=L("path"),Mb=OP(),A6=L("zlib"),{MESSAGE:O6}=pe(),{Stream:g6,PassThrough:Lb}=Ir(),N6=dn(),lt=Bo()("winston:file"),R6=L("os"),P6=xb();Ib.exports=class extends N6{constructor(e={}){super(e),this.name=e.name||"file";function n(i,...a){a.slice(1).forEach(s=>{if(e[s])throw new Error(`Cannot set ${s} and ${i} together`)})}if(this._stream=new Lb,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)n("filename or dirname","stream"),this._basename=this.filename=e.filename?he.basename(e.filename):"winston.log",this.dirname=e.dirname||he.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),n("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=he.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:R6.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}log(e,n=()=>{}){if(this.silent)return n(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,n)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,n)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,n)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,n)})});return}}let i=`${e[O6]}${this.eol}`,a=Buffer.byteLength(i);function s(){if(this._size+=a,this._pendingSize-=a,lt("logged %s %s",this._size,i),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=a,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let o=this._stream.write(i,s.bind(this));return o?n():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,n()})),lt("written",o,this._drain),this.finishIfEnding(),o}query(e,n){typeof e=="function"&&(n=e,e={}),e=p(e);let i=he.join(this.dirname,this.filename),a="",s=[],o=0,r=$e.createReadStream(i,{encoding:"utf8"});r.on("error",_=>{if(r.readable&&r.destroy(),!!n)return _.code!=="ENOENT"?n(_):n(null,s)}),r.on("data",_=>{_=(a+_).split(/\n+/);let f=_.length-1,S=0;for(;S<f;S++)(!e.start||o>=e.start)&&u(_[S]),o++;a=_[f]}),r.on("close",()=>{a&&u(a,!0),e.order==="desc"&&(s=s.reverse()),n&&n(null,s)});function u(_,f){try{let S=JSON.parse(_);c(S)&&l(S)}catch(S){f||r.emit("error",S)}}function l(_){if(e.rows&&s.length>=e.rows&&e.order!=="desc"){r.readable&&r.destroy();return}e.fields&&(_=e.fields.reduce((f,S)=>(f[S]=_[S],f),{})),e.order==="desc"&&s.length>=e.rows&&s.shift(),s.push(_)}function c(_){if(!_||typeof _!="object")return;let f=new Date(_.timestamp);if(!(e.from&&f<e.from||e.until&&f>e.until||e.level&&e.level!==_.level))return!0}function p(_){return _=_||{},_.rows=_.rows||_.limit||10,_.start=_.start||0,_.until=_.until||new Date,typeof _.until!="object"&&(_.until=new Date(_.until)),_.from=_.from||_.until-24*60*60*1e3,typeof _.from!="object"&&(_.from=new Date(_.from)),_.order=_.order||"desc",_}}stream(e={}){let n=he.join(this.dirname,this.filename),i=new g6,a={file:n,start:e.start};return i.destroy=P6(a,(s,o)=>{if(s)return i.emit("error",s);try{i.emit("data",o),o=JSON.parse(o),i.emit("log",o)}catch(r){i.emit("error",r)}}),i}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,n)=>{if(e)return this.emit("error",e);lt("stat done: %s { size: %s }",this.filename,n),this._size=n,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.eventNames().includes("rotate")?this._stream.emit("rotate"):this._rotate=!1})})))}stat(e){let n=this._getFile(),i=he.join(this.dirname,n);$e.stat(i,(a,s)=>{if(a&&a.code==="ENOENT")return lt("ENOENT\xA0ok",i),this.filename=n,e(null,0);if(a)return lt(`err ${a.code} ${i}`),e(a);if(!s||this._needsNewFile(s.size))return this._incFile(()=>this.stat(e));this.filename=n,e(null,s.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let n=he.join(this.dirname,this.filename);lt("create stream start",n,this.options);let i=$e.createWriteStream(n,this.options).on("error",a=>lt(a)).on("close",()=>lt("close",i.path,i.bytesWritten)).on("open",()=>{lt("file open ok",n),this.emit("open",n),e.pipe(i),this.rotatedWhileOpening&&(this._stream=new Lb,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(i),e.end())});return lt("create stream ok",n),i}_incFile(e){lt("_incFile",this.filename);let n=he.extname(this._basename),i=he.basename(this._basename,n),a=[];this.zippedArchive&&a.push(function(s){let o=this._created>0&&!this.tailable?this._created:"";this._compressFile(he.join(this.dirname,`${i}${o}${n}`),he.join(this.dirname,`${i}${o}${n}.gz`),s)}.bind(this)),a.push(function(s){this.tailable?this._checkMaxFilesTailable(n,i,s):(this._created+=1,this._checkMaxFilesIncrementing(n,i,s))}.bind(this)),Mb(a,e)}_getFile(){let e=he.extname(this._basename),n=he.basename(this._basename,e),i=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${n}${i}${e}`:`${n}${e}`}_checkMaxFilesIncrementing(e,n,i){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(i);let a=this._created-this.maxFiles,s=a!==0?a:"",o=this.zippedArchive?".gz":"",r=`${n}${s}${e}${o}`,u=he.join(this.dirname,r);$e.unlink(u,i)}_checkMaxFilesTailable(e,n,i){let a=[];if(!this.maxFiles)return;let s=this.zippedArchive?".gz":"";for(let o=this.maxFiles-1;o>1;o--)a.push(function(r,u){let l=`${n}${r-1}${e}${s}`,c=he.join(this.dirname,l);$e.exists(c,p=>{if(!p)return u(null);l=`${n}${r}${e}${s}`,$e.rename(c,he.join(this.dirname,l),u)})}.bind(this,o));Mb(a,()=>{$e.rename(he.join(this.dirname,`${n}${e}${s}`),he.join(this.dirname,`${n}1${e}${s}`),i)})}_compressFile(e,n,i){$e.access(e,$e.F_OK,a=>{if(a)return i();var s=A6.createGzip(),o=$e.createReadStream(e),r=$e.createWriteStream(n);r.on("finish",()=>{$e.unlink(e,i)}),o.pipe(s).pipe(r)})}_createLogDirIfNotExist(e){$e.existsSync(e)||$e.mkdirSync(e,{recursive:!0})}}});var Ub=h((pte,wb)=>{"use strict";var b6=L("http"),x6=L("https"),{Stream:M6}=Ir(),L6=dn(),{configure:I6}=To();wb.exports=class extends L6{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,n){this._request(e,null,null,(i,a)=>{a&&a.statusCode!==200&&(i=new Error(`Invalid HTTP Status Code: ${a.statusCode}`)),i?this.emit("warn",i):this.emit("logged",e)}),n&&setImmediate(n)}query(e,n){typeof e=="function"&&(n=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let i=e.params.auth||null;delete e.params.auth;let a=e.params.path||null;delete e.params.path,this._request(e,i,a,(s,o,r)=>{if(o&&o.statusCode!==200&&(s=new Error(`Invalid HTTP Status Code: ${o.statusCode}`)),s)return n(s);if(typeof r=="string")try{r=JSON.parse(r)}catch(u){return n(u)}n(null,r)})}stream(e={}){let n=new M6;e={method:"stream",params:e};let i=e.params.path||null;delete e.params.path;let a=e.params.auth||null;delete e.params.auth;let s="",o=this._request(e,a,i);return n.destroy=()=>o.destroy(),o.on("data",r=>{r=(s+r).split(/\n+/);let u=r.length-1,l=0;for(;l<u;l++)try{n.emit("log",JSON.parse(r[l]))}catch(c){n.emit("error",c)}s=r[u]}),o.on("error",r=>n.emit("error",r)),n}_request(e,n,i,a){e=e||{},n=n||this.auth,i=i||this.path||"",this.batch?this._doBatch(e,a,n,i):this._doRequest(e,a,n,i)}_doBatch(e,n,i,a){if(this.batchOptions.push(e),this.batchOptions.length===1){let s=this;this.batchCallback=n,this.batchTimeoutID=setTimeout(function(){s.batchTimeoutID=-1,s._doBatchRequest(s.batchCallback,i,a)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,i,a)}_doBatchRequest(e,n,i){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let a=this.batchOptions.slice();this.batchOptions=[],this._doRequest(a,e,n,i)}_doRequest(e,n,i,a){let s=Object.assign({},this.headers);i&&i.bearer&&(s.Authorization=`Bearer ${i.bearer}`);let o=(this.ssl?x6:b6).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${a.replace(/^\//,"")}`,headers:s,auth:i&&i.username&&i.password?`${i.username}:${i.password}`:"",agent:this.agent});o.on("error",n),o.on("response",u=>u.on("end",()=>n(null,u)).resume());let r=I6({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});o.end(Buffer.from(r(e,this.options.replacer),"utf8"))}}});var Uf=h((dte,Db)=>{"use strict";var vt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";vt.writable=t=>vt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";vt.readable=t=>vt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";vt.duplex=t=>vt.writable(t)&&vt.readable(t);vt.transform=t=>vt.duplex(t)&&typeof t._transform=="function";Db.exports=vt});var Bb=h((_te,Vb)=>{"use strict";var C6=Uf(),{MESSAGE:w6}=pe(),U6=L("os"),D6=dn();Vb.exports=class extends D6{constructor(e={}){if(super(e),!e.stream||!C6(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol=typeof e.eol=="string"?e.eol:U6.EOL}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),n&&n();return}this._stream.write(`${e[w6]}${this.eol}`),n&&n()}}});var Gb=h(Go=>{"use strict";Object.defineProperty(Go,"Console",{configurable:!0,enumerable:!0,get(){return HR()}});Object.defineProperty(Go,"File",{configurable:!0,enumerable:!0,get(){return Cb()}});Object.defineProperty(Go,"Http",{configurable:!0,enumerable:!0,get(){return Ub()}});Object.defineProperty(Go,"Stream",{configurable:!0,enumerable:!0,get(){return Bb()}})});var as=h(ko=>{"use strict";var is=wc(),{configs:Df}=pe();ko.cli=is.levels(Df.cli);ko.npm=is.levels(Df.npm);ko.syslog=is.levels(Df.syslog);ko.addColors=is.levels});var Hb=h((ss,kb)=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});var V6=Ua(),B6=wr(V6),G6=ja(),k6=wr(G6),H6=Tf(),F6=wr(H6),Y6=_f(),q6=wr(Y6),j6=Sf(),$6=wr(j6),K6=Lr(),W6=wr(K6),z6=_n(),X6=wr(z6);function wr(t){return t&&t.__esModule?t:{default:t}}function J6(t,e,n){n=(0,q6.default)(n);var i=0,a=0,{length:s}=t,o=!1;s===0&&n(null);function r(u,l){u===!1&&(o=!0),o!==!0&&(u?n(u):(++a===s||l===k6.default)&&n(null))}for(;i<s;i++)e(t[i],i,(0,$6.default)(r))}function Q6(t,e,n){return(0,F6.default)(t,1/0,e,n)}function Z6(t,e,n){var i=(0,B6.default)(t)?J6:Q6;return i(t,(0,W6.default)(e),n)}ss.default=(0,X6.default)(Z6,3);kb.exports=ss.default});var Yb=h((us,Fb)=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.default=e$;function e$(t){return(e,n,i)=>t(e,i)}Fb.exports=us.default});var fs=h((cs,qb)=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});var t$=Hb(),r$=ls(t$),n$=Yb(),o$=ls(n$),i$=Lr(),a$=ls(i$),s$=_n(),u$=ls(s$);function ls(t){return t&&t.__esModule?t:{default:t}}function l$(t,e,n){return(0,r$.default)(t,(0,o$.default)((0,a$.default)(e)),n)}cs.default=(0,u$.default)(l$,3);qb.exports=cs.default});var $b=h((Tte,jb)=>{"use strict";var c$=Object.prototype.toString;jb.exports=function(e){if(typeof e.displayName=="string"&&e.constructor.name)return e.displayName;if(typeof e.name=="string"&&e.name)return e.name;if(typeof e=="object"&&e.constructor&&typeof e.constructor.name=="string")return e.constructor.name;var n=e.toString(),i=c$.call(e).slice(8,-1);return i==="Function"?n=n.substring(n.indexOf("(")+1,n.indexOf(")")):n=i,n||"anonymous"}});var Vf=h((vte,Kb)=>{"use strict";var f$=$b();Kb.exports=function(e){var n=0,i;function a(){return n||(n=1,i=e.apply(this,arguments),e=null),i}return a.displayName=f$(e),a}});var Bf=h(Fo=>{"use strict";Fo.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var n={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(s,o){return o},Error.captureStackTrace(n,t||Fo.get);var a=n.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=e,a};Fo.parse=function(t){if(!t.stack)return[];var e=this,n=t.stack.split(`
|
35
|
+
`).slice(1);return n.map(function(i){if(i.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:i,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var a=i.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(a){var s=null,o=null,r=null,u=null,l=null,c=a[5]==="native";if(a[1]){r=a[1];var p=r.lastIndexOf(".");if(r[p-1]=="."&&p--,p>0){s=r.substr(0,p),o=r.substr(p+1);var _=s.indexOf(".Module");_>0&&(r=r.substr(_+1),s=s.substr(0,_))}u=null}o&&(u=s,l=o),o==="<anonymous>"&&(l=null,r=null);var f={fileName:a[2]||null,lineNumber:parseInt(a[3],10)||null,functionName:r,typeName:u,methodName:l,columnNumber:parseInt(a[4],10)||null,native:c};return e._createParsedCallSite(f)}}).filter(function(i){return!!i})};function Ho(t){for(var e in t)this[e]=t[e]}var p$=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],d$=["topLevel","eval","native","constructor"];p$.forEach(function(t){Ho.prototype[t]=null,Ho.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});d$.forEach(function(t){Ho.prototype[t]=!1,Ho.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Fo._createParsedCallSite=function(t){return new Ho(t)}});var zb=h((Ate,Wb)=>{"use strict";var{Writable:E$}=Ir();Wb.exports=class extends E${constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,n,i){return e.exception?this.transport.log(e,i):(i(),!0)}}});var kf=h((gte,Qb)=>{"use strict";var Xb=L("os"),_$=fs(),Gf=Bo()("winston:exception"),S$=Vf(),Jb=Bf(),h$=zb();Qb.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(n=>{if(Array.isArray(n))return n.forEach(i=>this._addHandler(i));this._addHandler(n)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}unhandle(){this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let n=null;return e&&(n=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${n||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
|
36
|
+
`),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:Xb.loadavg(),uptime:Xb.uptime()}}getTrace(e){return(e?Jb.parse(e):Jb.get()).map(i=>({column:i.getColumnNumber(),file:i.getFileName(),function:i.getFunctionName(),line:i.getLineNumber(),method:i.getMethodName(),native:i.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let n=new h$(e);this.handlers.set(e,n),this.logger.pipe(n)}}_uncaughtException(e){let n=this.getAllInfo(e),i=this._getExceptionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,s;!i.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1);function o(){Gf("doExit",a),Gf("process._exiting",process._exiting),a&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!i||i.length===0)return process.nextTick(o);_$(i,(r,u)=>{let l=S$(u),c=r.transport||r;function p(_){return()=>{Gf(_),l()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&o()),this.logger.log(n),a&&(s=setTimeout(o,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var e0=h((Rte,Zb)=>{"use strict";var{Writable:T$}=Ir();Zb.exports=class extends T${constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,n,i){return e.rejection?this.transport.log(e,i):(i(),!0)}}});var Ff=h((bte,n0)=>{"use strict";var t0=L("os"),v$=fs(),Hf=Bo()("winston:rejection"),m$=Vf(),r0=Bf(),y$=e0();n0.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(n=>{if(Array.isArray(n))return n.forEach(i=>this._addHandler(i));this._addHandler(n)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let n=null;return e&&(n=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${n||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
|
37
|
+
`),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:t0.loadavg(),uptime:t0.uptime()}}getTrace(e){return(e?r0.parse(e):r0.get()).map(i=>({column:i.getColumnNumber(),file:i.getFileName(),function:i.getFunctionName(),line:i.getLineNumber(),method:i.getMethodName(),native:i.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let n=new y$(e);this.handlers.set(e,n),this.logger.pipe(n)}}_unhandledRejection(e){let n=this.getAllInfo(e),i=this._getRejectionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,s;!i.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1);function o(){Hf("doExit",a),Hf("process._exiting",process._exiting),a&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!i||i.length===0)return process.nextTick(o);v$(i,(r,u)=>{let l=m$(u),c=r.transport||r;function p(_){return()=>{Hf(_),l()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&o()),this.logger.log(n),a&&(s=setTimeout(o,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var i0=h((xte,o0)=>{"use strict";var Yf=class{constructor(e){let n=ps();if(typeof e!="object"||Array.isArray(e)||!(e instanceof n))throw new Error("Logger is required for profiling");this.logger=e,this.start=Date.now()}done(...e){typeof e[e.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),e.pop());let n=typeof e[e.length-1]=="object"?e.pop():{};return n.level=n.level||"info",n.durationMs=Date.now()-this.start,this.logger.write(n)}};o0.exports=Yf});var ps=h((Mte,l0)=>{"use strict";var{Stream:A$,Transform:O$}=Ir(),a0=fs(),{LEVEL:mt,SPLAT:s0}=pe(),u0=Uf(),g$=kf(),N$=Ff(),R$=pf(),P$=i0(),{warn:b$}=Uc(),x$=as(),M$=/%[scdjifoO%]/g,ds=class extends O${constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let n=this;return Object.create(n,{write:{value:function(i){let a=Object.assign({},e,i);i instanceof Error&&(a.stack=i.stack,a.message=i.message),n.write(a)}}})}configure({silent:e,format:n,defaultMeta:i,levels:a,level:s="info",exitOnError:o=!0,transports:r,colors:u,emitErrs:l,formatters:c,padLevels:p,rewriters:_,stripColors:f,exceptionHandlers:S,rejectionHandlers:v}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=n||this.format||bc()(),this.defaultMeta=i||null,this.levels=a||this.levels||x$.npm.levels,this.level=s,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new g$(this),this.rejections=new N$(this),this.profilers={},this.exitOnError=o,r&&(r=Array.isArray(r)?r:[r],r.forEach(T=>this.add(T))),u||l||c||p||_||f)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
38
|
+
`));S&&this.exceptions.handle(S),v&&this.rejections.handle(v)}isLevelEnabled(e){let n=qf(this.levels,e);if(n===null)return!1;let i=qf(this.levels,this.level);return i===null?!1:!this.transports||this.transports.length===0?i>=n:this.transports.findIndex(s=>{let o=qf(this.levels,s.level);return o===null&&(o=i),o>=n})!==-1}log(e,n,...i){if(arguments.length===1)return e[mt]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return n&&typeof n=="object"?(n[mt]=n.level=e,this._addDefaultMeta(n),this.write(n),this):(n={[mt]:e,level:e,message:n},this._addDefaultMeta(n),this.write(n),this);let[a]=i;if(typeof a=="object"&&a!==null&&!(n&&n.match&&n.match(M$))){let o=Object.assign({},this.defaultMeta,a,{[mt]:e,[s0]:i,level:e,message:n});return a.message&&(o.message=`${o.message} ${a.message}`),a.stack&&(o.stack=a.stack),this.write(o),this}return this.write(Object.assign({},this.defaultMeta,{[mt]:e,[s0]:i,level:e,message:n})),this}_transform(e,n,i){if(this.silent)return i();e[mt]||(e[mt]=e.level),!this.levels[e[mt]]&&this.levels[e[mt]]!==0&&console.error("[winston] Unknown logger level: %s",e[mt]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,i()}}_final(e){let n=this.transports.slice();a0(n,(i,a)=>{if(!i||i.finished)return setImmediate(a);i.once("finish",a),i.end()},e)}add(e){let n=!u0(e)||e.log.length>2?new R$({transport:e}):e;if(!n._writableState||!n._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",n),this._onEvent("warn",n),this.pipe(n),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let n=e;return(!u0(e)||e.log.length>2)&&(n=this.transports.filter(i=>i.transport===e)[0]),n&&this.unpipe(n),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){b$.deprecated("setLevels")}query(e,n){typeof e=="function"&&(n=e,e={}),e=e||{};let i={},a=Object.assign({},e.query||{});function s(r,u){e.query&&typeof r.formatQuery=="function"&&(e.query=r.formatQuery(a)),r.query(e,(l,c)=>{if(l)return u(l);typeof r.formatResults=="function"&&(c=r.formatResults(c,e.format)),u(null,c)})}function o(r,u){s(r,(l,c)=>{u&&(c=l||c,c&&(i[r.name]=c),u()),u=null})}a0(this.transports.filter(r=>!!r.query),o,()=>n(null,i))}stream(e={}){let n=new A$,i=[];return n._streams=i,n.destroy=()=>{let a=i.length;for(;a--;)i[a].destroy()},this.transports.filter(a=>!!a.stream).forEach(a=>{let s=a.stream(e);s&&(i.push(s),s.on("log",o=>{o.transport=o.transport||[],o.transport.push(a.name),n.emit("log",o)}),s.on("error",o=>{o.transport=o.transport||[],o.transport.push(a.name),n.emit("error",o)}))}),n}startTimer(){return new P$(this)}profile(e,...n){let i=Date.now();if(this.profilers[e]){let a=this.profilers[e];delete this.profilers[e],typeof n[n.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),n.pop());let s=typeof n[n.length-1]=="object"?n.pop():{};return s.level=s.level||"info",s.durationMs=i-a,s.message=s.message||e,this.write(s)}return this.profilers[e]=i,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
39
|
+
`))}_onEvent(e,n){function i(a){e==="error"&&!this.transports.includes(n)&&this.add(n),this.emit(e,a,n)}n["__winston"+e]||(n["__winston"+e]=i.bind(this),n.on(e,n["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function qf(t,e){let n=t[e];return!n&&n!==0?null:n}Object.defineProperty(ds.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});l0.exports=ds});var jf=h((Lte,c0)=>{"use strict";var{LEVEL:L$}=pe(),I$=as(),C$=ps(),w$=Bo()("winston:create-logger");function U$(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}c0.exports=function(t={}){t.levels=t.levels||I$.npm.levels;class e extends C${constructor(a){super(a)}}let n=new e(t);return Object.keys(t.levels).forEach(function(i){if(w$('Define prototype method for "%s"',i),i==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[i]=function(...a){let s=this||n;if(a.length===1){let[o]=a,r=o&&o.message&&o||{message:o};return r.level=r[L$]=i,s._addDefaultMeta(r),s.write(r),this||n}return a.length===0?(s.log(i,""),s):s.log(i,...a)},e.prototype[U$(i)]=function(){return(this||n).isLevelEnabled(i)}}),n}});var p0=h((Cte,f0)=>{"use strict";var D$=jf();f0.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,n){if(!this.loggers.has(e)){n=Object.assign({},n||this.options);let i=n.transports||this.options.transports;i?n.transports=Array.isArray(i)?i.slice():[i]:n.transports=[];let a=D$(n);a.on("close",()=>this._delete(e)),this.loggers.set(e,a)}return this.loggers.get(e)}get(e,n){return this.add(e,n)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((n,i)=>this._removeLogger(i))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var E0=h(Q=>{"use strict";var d0=wc(),{warn:Yo}=Uc();Q.version=GN().version;Q.transports=Gb();Q.config=as();Q.addColors=d0.levels;Q.format=d0.format;Q.createLogger=jf();Q.Logger=ps();Q.ExceptionHandler=kf();Q.RejectionHandler=Ff();Q.Container=p0();Q.Transport=dn();Q.loggers=new Q.Container;var yt=Q.createLogger();Object.keys(Q.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>Q[t]=(...e)=>yt[t](...e));Object.defineProperty(Q,"level",{get(){return yt.level},set(t){yt.level=t}});Object.defineProperty(Q,"exceptions",{get(){return yt.exceptions}});Object.defineProperty(Q,"rejections",{get(){return yt.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(Q,t,{get(){return yt[t]},set(e){yt[t]=e}})});Object.defineProperty(Q,"default",{get(){return{exceptionHandlers:yt.exceptionHandlers,rejectionHandlers:yt.rejectionHandlers,transports:yt.transports}}});Yo.deprecated(Q,"setLevels");Yo.forFunctions(Q,"useFormat",["cli"]);Yo.forProperties(Q,"useFormat",["padLevels","stripColors"]);Yo.forFunctions(Q,"deprecated",["addRewriter","addFilter","clone","extend"]);Yo.forProperties(Q,"deprecated",["emitErrs","levelLength"])});var V$,B$,G$,Es,_s,h0,T0=m(()=>{"use strict";V$="exception.type",B$="exception.message",G$="exception.stacktrace",Es=V$,_s=B$,h0=G$});var v0=m(()=>{"use strict";T0()});var k$,H$,F$,Y$,q$,m0,Ss,qo,jo,$o,j$,y0,A0=m(()=>{"use strict";k$="process.runtime.name",H$="service.name",F$="telemetry.sdk.name",Y$="telemetry.sdk.language",q$="telemetry.sdk.version",m0=k$,Ss=H$,qo=F$,jo=Y$,$o=q$,j$="nodejs",y0=j$});var O0=m(()=>{"use strict";A0()});var g0=m(()=>{"use strict"});var N0=m(()=>{"use strict"});var Ko=m(()=>{"use strict";v0();O0();g0();N0()});function Tn(t){return t.setValue($f,!0)}function R0(t){return t.deleteValue($f)}function xe(t){return t.getValue($f)===!0}var $f,Wo=m(()=>{"use strict";b();$f=Kr("OpenTelemetry SDK Context Key SUPPRESS_TRACING")});var P0,hs,vn,Ts,b0,x0,M0,Kf=m(()=>{"use strict";P0="=",hs=";",vn=",",Ts="baggage",b0=180,x0=4096,M0=8192});function vs(t){return t.reduce(function(e,n){var i=""+e+(e!==""?vn:"")+n;return i.length>M0?e:i},"")}function ms(t){return t.getAllEntries().map(function(e){var n=$$(e,2),i=n[0],a=n[1],s=encodeURIComponent(i)+"="+encodeURIComponent(a.value);return a.metadata!==void 0&&(s+=hs+a.metadata.toString()),s})}function zo(t){var e=t.split(hs);if(!(e.length<=0)){var n=e.shift();if(n){var i=n.indexOf(P0);if(!(i<=0)){var a=decodeURIComponent(n.substring(0,i).trim()),s=decodeURIComponent(n.substring(i+1).trim()),o;return e.length>0&&(o=dE(e.join(hs))),{key:a,value:s,metadata:o}}}}}function L0(t){return typeof t!="string"||t.length===0?{}:t.split(vn).map(function(e){return zo(e)}).filter(function(e){return e!==void 0&&e.value.length>0}).reduce(function(e,n){return e[n.key]=n.value,e},{})}var $$,Wf=m(()=>{"use strict";b();Kf();$$=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});var ys,I0=m(()=>{"use strict";b();Wo();Kf();Wf();ys=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=it.getBaggage(e);if(!(!a||xe(e))){var s=ms(a).filter(function(r){return r.length<=x0}).slice(0,b0),o=vs(s);o.length>0&&i.set(n,Ts,o)}},t.prototype.extract=function(e,n,i){var a=i.get(n,Ts),s=Array.isArray(a)?a.join(vn):a;if(!s)return e;var o={};if(s.length===0)return e;var r=s.split(vn);return r.forEach(function(u){var l=zo(u);if(l){var c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0?e:it.setBaggage(e,it.createBaggage(o))},t.prototype.fields=function(){return[Ts]},t}()});var C0,w0=m(()=>{"use strict";C0=function(){function t(e,n){this._monotonicClock=n,this._epochMillis=e.now(),this._performanceMillis=n.now()}return t.prototype.now=function(){var e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e},t}()});function ir(t){var e,n,i={};if(typeof t!="object"||t==null)return i;try{for(var a=U0(Object.entries(t)),s=a.next();!s.done;s=a.next()){var o=K$(s.value,2),r=o[0],u=o[1];if(!zf(r)){g.warn("Invalid attribute key: "+r);continue}if(!Xo(u)){g.warn("Invalid attribute value set for key: "+r);continue}Array.isArray(u)?i[r]=u.slice():i[r]=u}}catch(l){e={error:l}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function zf(t){return typeof t=="string"&&t.length>0}function Xo(t){return t==null?!0:Array.isArray(t)?W$(t):D0(t)}function W$(t){var e,n,i;try{for(var a=U0(t),s=a.next();!s.done;s=a.next()){var o=s.value;if(o!=null){if(!i){if(D0(o)){i=typeof o;continue}return!1}if(typeof o!==i)return!1}}}catch(r){e={error:r}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return!0}function D0(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}var U0,K$,V0=m(()=>{"use strict";b();U0=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},K$=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function As(){return function(t){g.error(z$(t))}}function z$(t){return typeof t=="string"?t:JSON.stringify(X$(t))}function X$(t){for(var e={},n=t;n!==null;)Object.getOwnPropertyNames(n).forEach(function(i){if(!e[i]){var a=n[i];a&&(e[i]=String(a))}}),n=Object.getPrototypeOf(n);return e}var Xf=m(()=>{"use strict";b()});function G0(t){B0=t}function Te(t){try{B0(t)}catch{}}var B0,Jf=m(()=>{"use strict";Xf();B0=As()});var Ke,Qf=m(()=>{"use strict";(function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})(Ke||(Ke={}))});function Z$(t){return Q$.indexOf(t)>-1}function tK(t){return eK.indexOf(t)>-1}function nK(t){return rK.indexOf(t)>-1}function oK(t,e,n){if(!(typeof n[t]>"u")){var i=String(n[t]);e[t]=i.toLowerCase()==="true"}}function iK(t,e,n,i,a){if(i===void 0&&(i=-1/0),a===void 0&&(a=1/0),typeof n[t]<"u"){var s=Number(n[t]);isNaN(s)||(s<i?e[t]=i:s>a?e[t]=a:e[t]=s)}}function aK(t,e,n,i){i===void 0&&(i=J$);var a=n[t];typeof a=="string"&&(e[t]=a.split(i).map(function(s){return s.trim()}))}function uK(t,e,n){var i=n[t];if(typeof i=="string"){var a=sK[i.toUpperCase()];a!=null&&(e[t]=a)}}function Qo(t){var e={};for(var n in Jo){var i=n;switch(i){case"OTEL_LOG_LEVEL":uK(i,e,t);break;default:if(Z$(i))oK(i,e,t);else if(tK(i))iK(i,e,t);else if(nK(i))aK(i,e,t);else{var a=t[i];typeof a<"u"&&a!==null&&(e[i]=String(a))}}}return e}var J$,Q$,eK,rK,Ur,Dr,Zf,ep,Jo,sK,tp=m(()=>{"use strict";b();Qf();J$=",",Q$=["OTEL_SDK_DISABLED"];eK=["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"];rK=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];Ur=1/0,Dr=128,Zf=128,ep=128,Jo={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:ot.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ur,OTEL_ATTRIBUTE_COUNT_LIMIT:Dr,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ur,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Dr,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ur,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Dr,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Zf,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:ep,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Ke.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:[]};sK={ALL:ot.ALL,VERBOSE:ot.VERBOSE,DEBUG:ot.DEBUG,INFO:ot.INFO,WARN:ot.WARN,ERROR:ot.ERROR,NONE:ot.NONE}});function Oe(){var t=Qo(process.env);return Object.assign({},Jo,t)}function mn(){return Qo(process.env)}var k0=m(()=>{"use strict";tp()});var Os,H0=m(()=>{"use strict";Os=typeof globalThis=="object"?globalThis:global});function F0(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function ar(t){for(var e=new Uint8Array(t.length/2),n=0,i=0;i<t.length;i+=2){var a=F0(t.charCodeAt(i)),s=F0(t.charCodeAt(i+1));e[n++]=a<<4|s}return e}var rp=m(()=>{"use strict"});function gs(t){return Buffer.from(ar(t)).toString("base64")}var Y0=m(()=>{"use strict";rp()});function q0(t){return function(){for(var n=0;n<t/4;n++)Ns.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(Ns[n]>0);n++)n===t-1&&(Ns[t-1]=1);return Ns.toString("hex",0,t)}}var lK,j0,Rs,Ns,$0=m(()=>{"use strict";lK=8,j0=16,Rs=function(){function t(){this.generateTraceId=q0(j0),this.generateSpanId=q0(lK)}return t}(),Ns=Buffer.allocUnsafe(j0)});import{performance as cK}from"perf_hooks";var Ze,K0=m(()=>{"use strict";Ze=cK});var Ps,np=m(()=>{"use strict";Ps="1.27.0"});var yn,sr,W0=m(()=>{"use strict";np();Ko();sr=(yn={},yn[qo]="opentelemetry",yn[m0]="node",yn[jo]=y0,yn[$o]=Ps,yn)});function ur(t){t.unref()}var z0=m(()=>{"use strict"});var X0=m(()=>{"use strict";k0();H0();Y0();$0();K0();W0();z0()});var op=m(()=>{"use strict";X0()});function ge(t){var e=t/1e3,n=Math.trunc(e),i=Math.round(t%1e3*pK);return[n,i]}function An(){var t=Ze.timeOrigin;if(typeof t!="number"){var e=Ze;t=e.timing&&e.timing.fetchStart}return t}function Zo(t){var e=ge(An()),n=ge(typeof t=="number"?t:Ze.now());return ti(e,n)}function Q0(t){if(On(t))return t;if(typeof t=="number")return t<An()?Zo(t):ge(t);if(t instanceof Date)return ge(t.getTime());throw TypeError("Invalid input type")}function xs(t,e){var n=e[0]-t[0],i=e[1]-t[1];return i<0&&(n-=1,i+=bs),[n,i]}function Z0(t){var e=J0,n=""+"0".repeat(e)+t[1]+"Z",i=n.substr(n.length-e-1),a=new Date(t[0]*1e3).toISOString();return a.replace("000Z",i)}function Ms(t){return t[0]*bs+t[1]}function ex(t){return t[0]*1e3+t[1]/1e6}function Ot(t){return t[0]*1e6+t[1]/1e3}function On(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function ei(t){return On(t)||typeof t=="number"||t instanceof Date}function ti(t,e){var n=[t[0]+e[0],t[1]+e[1]];return n[1]>=bs&&(n[1]-=bs,n[0]+=1),n}var J0,fK,pK,bs,tx=m(()=>{"use strict";op();J0=9,fK=6,pK=Math.pow(10,fK),bs=Math.pow(10,J0)});var ee,rx=m(()=>{"use strict";(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(ee||(ee={}))});var dK,Ls,nx=m(()=>{"use strict";b();dK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ls=function(){function t(e){e===void 0&&(e={});var n;this._propagators=(n=e.propagators)!==null&&n!==void 0?n:[],this._fields=Array.from(new Set(this._propagators.map(function(i){return typeof i.fields=="function"?i.fields():[]}).reduce(function(i,a){return i.concat(a)},[])))}return t.prototype.inject=function(e,n,i){var a,s;try{for(var o=dK(this._propagators),r=o.next();!r.done;r=o.next()){var u=r.value;try{u.inject(e,n,i)}catch(l){g.warn("Failed to inject with "+u.constructor.name+". Err: "+l.message)}}}catch(l){a={error:l}}finally{try{r&&!r.done&&(s=o.return)&&s.call(o)}finally{if(a)throw a.error}}},t.prototype.extract=function(e,n,i){return this._propagators.reduce(function(a,s){try{return s.extract(a,n,i)}catch(o){g.warn("Failed to extract with "+s.constructor.name+". Err: "+o.message)}return a},e)},t.prototype.fields=function(){return this._fields.slice()},t}()});function ox(t){return SK.test(t)}function ix(t){return hK.test(t)&&!TK.test(t)}var ip,EK,_K,SK,hK,TK,ax=m(()=>{"use strict";ip="[_0-9a-z-*/]",EK="[a-z]"+ip+"{0,255}",_K="[a-z0-9]"+ip+"{0,240}@[a-z]"+ip+"{0,13}",SK=new RegExp("^(?:"+EK+"|"+_K+")$"),hK=/^[ -~]{0,255}[!-~]$/,TK=/,|=/});var sx,vK,ux,lx,Is,ap=m(()=>{"use strict";ax();sx=32,vK=512,ux=",",lx="=",Is=function(){function t(e){this._internalState=new Map,e&&this._parse(e)}return t.prototype.set=function(e,n){var i=this._clone();return i._internalState.has(e)&&i._internalState.delete(e),i._internalState.set(e,n),i},t.prototype.unset=function(e){var n=this._clone();return n._internalState.delete(e),n},t.prototype.get=function(e){return this._internalState.get(e)},t.prototype.serialize=function(){var e=this;return this._keys().reduce(function(n,i){return n.push(i+lx+e.get(i)),n},[]).join(ux)},t.prototype._parse=function(e){e.length>vK||(this._internalState=e.split(ux).reverse().reduce(function(n,i){var a=i.trim(),s=a.indexOf(lx);if(s!==-1){var o=a.slice(0,s),r=a.slice(s+1,i.length);ox(o)&&ix(r)&&n.set(o,r)}return n},new Map),this._internalState.size>sx&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,sx))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}()});function sp(t){var e=NK.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}var ri,ni,mK,yK,AK,OK,gK,NK,Cs,cx=m(()=>{"use strict";b();Wo();ap();ri="traceparent",ni="tracestate",mK="00",yK="(?!ff)[\\da-f]{2}",AK="(?![0]{32})[\\da-f]{32}",OK="(?![0]{16})[\\da-f]{16}",gK="[\\da-f]{2}",NK=new RegExp("^\\s?("+yK+")-("+AK+")-("+OK+")-("+gK+")(-.*)?\\s?$");Cs=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=X.getSpanContext(e);if(!(!a||xe(e)||!dt(a))){var s=mK+"-"+a.traceId+"-"+a.spanId+"-0"+Number(a.traceFlags||J.NONE).toString(16);i.set(n,ri,s),a.traceState&&i.set(n,ni,a.traceState.serialize())}},t.prototype.extract=function(e,n,i){var a=i.get(n,ri);if(!a)return e;var s=Array.isArray(a)?a[0]:a;if(typeof s!="string")return e;var o=sp(s);if(!o)return e;o.isRemote=!0;var r=i.get(n,ni);if(r){var u=Array.isArray(r)?r.join(","):r;o.traceState=new Is(typeof u=="string"?u:void 0)}return X.setSpanContext(e,o)},t.prototype.fields=function(){return[ri,ni]},t}()});function fx(t,e){return t.setValue(up,e)}function px(t){return t.deleteValue(up)}function dx(t){return t.getValue(up)}var up,ws,Ex=m(()=>{"use strict";b();up=Kr("OpenTelemetry SDK Context Key RPC_METADATA");(function(t){t.HTTP="http"})(ws||(ws={}))});var oi,lp=m(()=>{"use strict";b();oi=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:Et.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var gn,cp=m(()=>{"use strict";b();gn=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:Et.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var _x,Sx=m(()=>{"use strict";b();Jf();lp();cp();_x=function(){function t(e){var n,i,a,s;this._root=e.root,this._root||(Te(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new gn),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new gn,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new oi,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new gn,this._localParentNotSampled=(s=e.localParentNotSampled)!==null&&s!==void 0?s:new oi}return t.prototype.shouldSample=function(e,n,i,a,s,o){var r=X.getSpanContext(e);return!r||!dt(r)?this._root.shouldSample(e,n,i,a,s,o):r.isRemote?r.traceFlags&J.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,s,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,s,o):r.traceFlags&J.SAMPLED?this._localParentSampled.shouldSample(e,n,i,a,s,o):this._localParentNotSampled.shouldSample(e,n,i,a,s,o)},t.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},t}()});var hx,Tx=m(()=>{"use strict";b();hx=function(){function t(e){e===void 0&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}return t.prototype.shouldSample=function(e,n){return{decision:kt(n)&&this._accumulate(n)<this._upperBound?Et.RECORD_AND_SAMPLED:Et.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e},t.prototype._accumulate=function(e){for(var n=0,i=0;i<e.length/8;i++){var a=i*8,s=parseInt(e.slice(a,a+8),16);n=(n^s)>>>0}return n},t}()});function IK(t,e){return function(n){return t(e(n))}}function fp(t){if(!CK(t)||wK(t)!==RK)return!1;var e=LK(t);if(e===null)return!0;var n=yx.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&vx.call(n)===MK}function CK(t){return t!=null&&typeof t=="object"}function wK(t){return t==null?t===void 0?bK:PK:Vr&&Vr in Object(t)?UK(t):DK(t)}function UK(t){var e=yx.call(t,Vr),n=t[Vr],i=!1;try{t[Vr]=void 0,i=!0}catch{}var a=Ax.call(t);return i&&(e?t[Vr]=n:delete t[Vr]),a}function DK(t){return Ax.call(t)}var RK,PK,bK,xK,vx,MK,LK,mx,yx,Vr,Ax,Ox=m(()=>{"use strict";RK="[object Object]",PK="[object Null]",bK="[object Undefined]",xK=Function.prototype,vx=xK.toString,MK=vx.call(Object),LK=IK(Object.getPrototypeOf,Object),mx=Object.prototype,yx=mx.hasOwnProperty,Vr=Symbol?Symbol.toStringTag:void 0,Ax=mx.toString});function Vs(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t.shift(),i=new WeakMap;t.length>0;)n=Nx(n,t.shift(),0,i);return n}function pp(t){return Ds(t)?t.slice():t}function Nx(t,e,n,i){n===void 0&&(n=0);var a;if(!(n>VK)){if(n++,Us(t)||Us(e)||Rx(e))a=pp(e);else if(Ds(t)){if(a=t.slice(),Ds(e))for(var s=0,o=e.length;s<o;s++)a.push(pp(e[s]));else if(ii(e))for(var r=Object.keys(e),s=0,o=r.length;s<o;s++){var u=r[s];a[u]=pp(e[u])}}else if(ii(t))if(ii(e)){if(!BK(t,e))return e;a=Object.assign({},t);for(var r=Object.keys(e),s=0,o=r.length;s<o;s++){var u=r[s],l=e[u];if(Us(l))typeof l>"u"?delete a[u]:a[u]=l;else{var c=a[u],p=l;if(gx(t,u,i)||gx(e,u,i))delete a[u];else{if(ii(c)&&ii(p)){var _=i.get(c)||[],f=i.get(p)||[];_.push({obj:t,key:u}),f.push({obj:e,key:u}),i.set(c,_),i.set(p,f)}a[u]=Nx(a[u],l,n,i)}}}}else a=e;return a}}function gx(t,e,n){for(var i=n.get(t[e])||[],a=0,s=i.length;a<s;a++){var o=i[a];if(o.key===e&&o.obj===t)return!0}return!1}function Ds(t){return Array.isArray(t)}function Rx(t){return typeof t=="function"}function ii(t){return!Us(t)&&!Ds(t)&&!Rx(t)&&typeof t=="object"}function Us(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function BK(t,e){return!(!fp(t)||!fp(e))}var VK,Px=m(()=>{"use strict";Ox();VK=20});function bx(t,e){var n,i=new Promise(function(s,o){n=setTimeout(function(){o(new dp("Operation timed out."))},e)});return Promise.race([t,i]).then(function(a){return clearTimeout(n),a},function(a){throw clearTimeout(n),a})}var GK,dp,xx=m(()=>{"use strict";GK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),dp=function(t){GK(e,t);function e(n){var i=t.call(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return e}(Error)});function Ep(t,e){return typeof e=="string"?t===e:!!t.match(e)}function Mx(t,e){var n,i;if(!e)return!1;try{for(var a=kK(e),s=a.next();!s.done;s=a.next()){var o=s.value;if(Ep(t,o))return!0}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!1}var kK,Lx=m(()=>{"use strict";kK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}});function Ix(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}var Cx=m(()=>{"use strict"});var wx,Ux=m(()=>{"use strict";wx=function(){function t(){var e=this;this._promise=new Promise(function(n,i){e._resolve=n,e._reject=i})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(e){this._resolve(e)},t.prototype.reject=function(e){this._reject(e)},t}()});var HK,FK,lr,Dx=m(()=>{"use strict";Ux();HK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},FK=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},lr=function(){function t(e,n){this._callback=e,this._that=n,this._isCalled=!1,this._deferred=new wx}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var e,n=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((e=this._callback).call.apply(e,FK([this._that],HK(i),!1))).then(function(s){return n._deferred.resolve(s)},function(s){return n._deferred.reject(s)})}catch(s){this._deferred.reject(s)}}return this._deferred.promise},t}()});function Vx(t,e){return new Promise(function(n){Ye.with(Tn(Ye.active()),function(){t.export(e,function(i){n(i)})})})}var Bx=m(()=>{"use strict";b();Wo()});var Bs={};nt(Bs,{AlwaysOffSampler:()=>oi,AlwaysOnSampler:()=>gn,AnchoredClock:()=>C0,BindOnceFuture:()=>lr,CompositePropagator:()=>Ls,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Dr,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Ur,DEFAULT_ENVIRONMENT:()=>Jo,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Zf,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>ep,ExportResultCode:()=>ee,ParentBasedSampler:()=>_x,RPCType:()=>ws,RandomIdGenerator:()=>Rs,SDK_INFO:()=>sr,TRACE_PARENT_HEADER:()=>ri,TRACE_STATE_HEADER:()=>ni,TimeoutError:()=>dp,TraceIdRatioBasedSampler:()=>hx,TraceState:()=>Is,TracesSamplerValues:()=>Ke,VERSION:()=>Ps,W3CBaggagePropagator:()=>ys,W3CTraceContextPropagator:()=>Cs,_globalThis:()=>Os,addHrTimes:()=>ti,baggageUtils:()=>Nn,callWithTimeout:()=>bx,deleteRPCMetadata:()=>px,getEnv:()=>Oe,getEnvWithoutDefaults:()=>mn,getRPCMetadata:()=>dx,getTimeOrigin:()=>An,globalErrorHandler:()=>Te,hexToBase64:()=>gs,hexToBinary:()=>ar,hrTime:()=>Zo,hrTimeDuration:()=>xs,hrTimeToMicroseconds:()=>Ot,hrTimeToMilliseconds:()=>ex,hrTimeToNanoseconds:()=>Ms,hrTimeToTimeStamp:()=>Z0,internal:()=>ai,isAttributeKey:()=>zf,isAttributeValue:()=>Xo,isTimeInput:()=>ei,isTimeInputHrTime:()=>On,isTracingSuppressed:()=>xe,isUrlIgnored:()=>Mx,isWrapped:()=>Ix,loggingErrorHandler:()=>As,merge:()=>Vs,millisToHrTime:()=>ge,otperformance:()=>Ze,parseEnvironment:()=>Qo,parseTraceParent:()=>sp,sanitizeAttributes:()=>ir,setGlobalErrorHandler:()=>G0,setRPCMetadata:()=>fx,suppressTracing:()=>Tn,timeInputToHrTime:()=>Q0,unrefTimer:()=>ur,unsuppressTracing:()=>R0,urlMatches:()=>Ep});var Nn,ai,K=m(()=>{"use strict";I0();w0();V0();Jf();Xf();tx();rp();rx();Wf();op();nx();cx();Ex();lp();cp();Sx();Tx();Wo();ap();tp();Px();Qf();xx();Lx();Cx();Dx();np();Bx();Nn={getKeyPairs:ms,serializeKeyPairs:vs,parseKeyPairsIntoRecord:L0,parsePairKeyValue:zo},ai={_export:Vx}});function Gs(){return"unknown_service:"+process.argv0}var Gx=m(()=>{"use strict"});var kx=m(()=>{"use strict";Gx()});var Hx=m(()=>{"use strict";kx()});var cr,YK,qK,jK,Dt,_p=m(()=>{"use strict";b();Ko();K();Hx();cr=function(){return cr=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},cr.apply(this,arguments)},YK=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},qK=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},jK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Dt=function(){function t(e,n){var i=this,a;this._attributes=e,this.asyncAttributesPending=n!=null,this._syncAttributes=(a=this._attributes)!==null&&a!==void 0?a:{},this._asyncAttributesPromise=n?.then(function(s){return i._attributes=Object.assign({},i._attributes,s),i.asyncAttributesPending=!1,s},function(s){return g.debug("a resource's async attributes promise rejected: %s",s),i.asyncAttributesPending=!1,{}})}return t.empty=function(){return t.EMPTY},t.default=function(){var e;return new t((e={},e[Ss]=Gs(),e[jo]=sr[jo],e[qo]=sr[qo],e[$o]=sr[$o],e))},Object.defineProperty(t.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&g.error("Accessing resource attributes before async attributes settled"),(e=this._attributes)!==null&&e!==void 0?e:{}},enumerable:!1,configurable:!0}),t.prototype.waitForAsyncAttributes=function(){return YK(this,void 0,void 0,function(){return qK(this,function(e){switch(e.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},t.prototype.merge=function(e){var n=this,i;if(!e)return this;var a=cr(cr({},this._syncAttributes),(i=e._syncAttributes)!==null&&i!==void 0?i:e.attributes);if(!this._asyncAttributesPromise&&!e._asyncAttributesPromise)return new t(a);var s=Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(function(o){var r,u=jK(o,2),l=u[0],c=u[1];return cr(cr(cr(cr({},n._syncAttributes),l),(r=e._syncAttributes)!==null&&r!==void 0?r:e.attributes),c)});return new t(a,s)},t.EMPTY=new t({}),t}()});var $K,KK,WK,Sp,Fx=m(()=>{"use strict";b();K();Ko();_p();$K=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},KK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},WK=function(){function t(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return t.prototype.detect=function(e){var n={},i=Oe(),a=i.OTEL_RESOURCE_ATTRIBUTES,s=i.OTEL_SERVICE_NAME;if(a)try{var o=this._parseResourceAttributes(a);Object.assign(n,o)}catch(r){g.debug("EnvDetector failed: "+r.message)}return s&&(n[Ss]=s),new Dt(n)},t.prototype._parseResourceAttributes=function(e){var n,i;if(!e)return{};var a={},s=e.split(this._COMMA_SEPARATOR,-1);try{for(var o=$K(s),r=o.next();!r.done;r=o.next()){var u=r.value,l=u.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(l.length===2){var c=KK(l,2),p=c[0],_=c[1];if(p=p.trim(),_=_.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(p))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(_))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);a[p]=decodeURIComponent(_)}}}catch(f){n={error:f}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a},t.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},t.prototype._isBaggageOctetString=function(e){for(var n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i<33||i===44||i===59||i===92||i>126)return!1}return!0},t.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},t}(),Sp=new WK});var zK,ks,Yx=m(()=>{"use strict";Fx();zK=function(){function t(){}return t.prototype.detect=function(e){return Promise.resolve(Sp.detect(e))},t}(),ks=new zK});var qx=m(()=>{"use strict";Yx()});var Hs=m(()=>{"use strict";_p();qx()});var Ne,Fs=m(()=>{"use strict";(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(Ne||(Ne={}))});var Re,Rn=m(()=>{"use strict";(function(t){t[t.HISTOGRAM=0]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",t[t.GAUGE=2]="GAUGE",t[t.SUM=3]="SUM"})(Re||(Re={}))});function Kx(t){return t!=null}function Wx(t){var e=Object.keys(t);return e.length===0?"":(e=e.sort(),JSON.stringify(e.map(function(n){return[n,t[n]]})))}function zx(t){var e,n;return t.name+":"+((e=t.version)!==null&&e!==void 0?e:"")+":"+((n=t.schemaUrl)!==null&&n!==void 0?n:"")}function fr(t,e){var n,i=new Promise(function(s,o){n=setTimeout(function(){o(new si("Operation timed out."))},e)});return Promise.race([t,i]).then(function(a){return clearTimeout(n),a},function(a){throw clearTimeout(n),a})}function Xx(t){return jx(this,void 0,void 0,function(){var e=this;return $x(this,function(n){return[2,Promise.all(t.map(function(i){return jx(e,void 0,void 0,function(){var a,s;return $x(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,i];case 1:return a=o.sent(),[2,{status:"fulfilled",value:a}];case 2:return s=o.sent(),[2,{status:"rejected",reason:s}];case 3:return[2]}})})}))]})})}function Jx(t){return t.status==="rejected"}function hp(t,e){var n=[];return t.forEach(function(i){n.push.apply(n,QK([],JK(e(i)),!1))}),n}function Qx(t,e){var n,i;if(t.size!==e.size)return!1;try{for(var a=ZK(t),s=a.next();!s.done;s=a.next()){var o=s.value;if(!e.has(o))return!1}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!0}function Zx(t,e){for(var n=0,i=t.length-1,a=t.length;i>=n;){var s=n+Math.trunc((i-n)/2);t[s]<e?n=s+1:(a=s,i=s-1)}return a}function eM(t,e){return t.toLowerCase()===e.toLowerCase()}var XK,jx,$x,JK,QK,ZK,si,gt=m(()=>{"use strict";XK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),jx=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},$x=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},JK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},QK=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},ZK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};si=function(t){XK(e,t);function e(n){var i=t.call(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return e}(Error)});var et,Pn=m(()=>{"use strict";(function(t){t[t.DROP=0]="DROP",t[t.SUM=1]="SUM",t[t.LAST_VALUE=2]="LAST_VALUE",t[t.HISTOGRAM=3]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(et||(et={}))});var Tp,tM=m(()=>{"use strict";Pn();Tp=function(){function t(){this.kind=et.DROP}return t.prototype.createAccumulation=function(){},t.prototype.merge=function(e,n){},t.prototype.diff=function(e,n){},t.prototype.toMetricData=function(e,n,i,a){},t}()});function Nt(t,e,n){var i,a,s,o;return t8(t)||g.warn('Invalid metric name: "'+t+'". The metric name should be a ASCII string with a length no greater than 255 characters.'),{name:t,type:e,description:(i=n?.description)!==null&&i!==void 0?i:"",unit:(a=n?.unit)!==null&&a!==void 0?a:"",valueType:(s=n?.valueType)!==null&&s!==void 0?s:pt.DOUBLE,advice:(o=n?.advice)!==null&&o!==void 0?o:{}}}function rM(t,e){var n,i;return{name:(n=t.name)!==null&&n!==void 0?n:e.name,description:(i=t.description)!==null&&i!==void 0?i:e.description,type:e.type,unit:e.unit,valueType:e.valueType,advice:e.advice}}function nM(t,e){return eM(t.name,e.name)&&t.unit===e.unit&&t.type===e.type&&t.valueType===e.valueType}function t8(t){return t.match(e8)!=null}var C,e8,Vt=m(()=>{"use strict";b();gt();(function(t){t.COUNTER="COUNTER",t.GAUGE="GAUGE",t.HISTOGRAM="HISTOGRAM",t.UP_DOWN_COUNTER="UP_DOWN_COUNTER",t.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",t.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",t.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(C||(C={}));e8=/^[a-z][a-z0-9_.\-/]{0,254}$/i});function n8(t){var e=t.map(function(){return 0});return e.push(0),{buckets:{boundaries:t,counts:e},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var r8,Ys,qs,oM=m(()=>{"use strict";Pn();Rn();Vt();gt();r8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};Ys=function(){function t(e,n,i,a){i===void 0&&(i=!0),a===void 0&&(a=n8(n)),this.startTime=e,this._boundaries=n,this._recordMinMax=i,this._current=a}return t.prototype.record=function(e){if(!Number.isNaN(e)){this._current.count+=1,this._current.sum+=e,this._recordMinMax&&(this._current.min=Math.min(e,this._current.min),this._current.max=Math.max(e,this._current.max),this._current.hasMinMax=!0);var n=Zx(this._boundaries,e);this._current.buckets.counts[n]+=1}},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),qs=function(){function t(e,n){this._boundaries=e,this._recordMinMax=n,this.kind=et.HISTOGRAM}return t.prototype.createAccumulation=function(e){return new Ys(e,this._boundaries,this._recordMinMax)},t.prototype.merge=function(e,n){for(var i=e.toPointValue(),a=n.toPointValue(),s=i.buckets.counts,o=a.buckets.counts,r=new Array(s.length),u=0;u<s.length;u++)r[u]=s[u]+o[u];var l=1/0,c=-1/0;return this._recordMinMax&&(i.hasMinMax&&a.hasMinMax?(l=Math.min(i.min,a.min),c=Math.max(i.max,a.max)):i.hasMinMax?(l=i.min,c=i.max):a.hasMinMax&&(l=a.min,c=a.max)),new Ys(e.startTime,i.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:i.buckets.boundaries,counts:r},count:i.count+a.count,sum:i.sum+a.sum,hasMinMax:this._recordMinMax&&(i.hasMinMax||a.hasMinMax),min:l,max:c})},t.prototype.diff=function(e,n){for(var i=e.toPointValue(),a=n.toPointValue(),s=i.buckets.counts,o=a.buckets.counts,r=new Array(s.length),u=0;u<s.length;u++)r[u]=o[u]-s[u];return new Ys(n.startTime,i.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:i.buckets.boundaries,counts:r},count:a.count-i.count,sum:a.sum-i.sum,hasMinMax:!1,min:1/0,max:-1/0})},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Re.HISTOGRAM,dataPoints:i.map(function(s){var o=r8(s,2),r=o[0],u=o[1],l=u.toPointValue(),c=e.type===C.GAUGE||e.type===C.UP_DOWN_COUNTER||e.type===C.OBSERVABLE_GAUGE||e.type===C.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:r,startTime:u.startTime,endTime:a,value:{min:l.hasMinMax?l.min:void 0,max:l.hasMinMax?l.max:void 0,sum:c?void 0:l.sum,buckets:l.buckets,count:l.count}}})}},t}()});var vp,mp,yp,o8,iM=m(()=>{"use strict";vp=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},mp=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},yp=function(){function t(e,n,i,a){e===void 0&&(e=new o8),n===void 0&&(n=0),i===void 0&&(i=0),a===void 0&&(a=0),this.backing=e,this.indexBase=n,this.indexStart=i,this.indexEnd=a}return Object.defineProperty(t.prototype,"offset",{get:function(){return this.indexStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1},enumerable:!1,configurable:!0}),t.prototype.counts=function(){var e=this;return Array.from({length:this.length},function(n,i){return e.at(i)})},t.prototype.at=function(e){var n=this.indexBase-this.indexStart;return e<n&&(e+=this.backing.length),e-=n,this.backing.countAt(e)},t.prototype.incrementBucket=function(e,n){this.backing.increment(e,n)},t.prototype.decrementBucket=function(e,n){this.backing.decrement(e,n)},t.prototype.trim=function(){for(var e=0;e<this.length;e++)if(this.at(e)!==0){this.indexStart+=e;break}else if(e===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(var e=this.length-1;e>=0;e--)if(this.at(e)!==0){this.indexEnd-=this.length-e-1;break}this._rotate()},t.prototype.downscale=function(e){this._rotate();for(var n=1+this.indexEnd-this.indexStart,i=1<<e,a=0,s=0,o=this.indexStart;o<=this.indexEnd;){var r=o%i;r<0&&(r+=i);for(var u=r;u<i&&a<n;u++)this._relocateBucket(s,a),a++,o++;s++}this.indexStart>>=e,this.indexEnd>>=e,this.indexBase=this.indexStart},t.prototype.clone=function(){return new t(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)},t.prototype._rotate=function(){var e=this.indexBase-this.indexStart;e!==0&&(e>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,e),this.backing.reverse(e,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+e)),this.indexBase=this.indexStart)},t.prototype._relocateBucket=function(e,n){e!==n&&this.incrementBucket(e,this.backing.emptyBucket(n))},t}(),o8=function(){function t(e){e===void 0&&(e=[0]),this._counts=e}return Object.defineProperty(t.prototype,"length",{get:function(){return this._counts.length},enumerable:!1,configurable:!0}),t.prototype.countAt=function(e){return this._counts[e]},t.prototype.growTo=function(e,n,i){var a=new Array(e).fill(0);a.splice.apply(a,mp([i,this._counts.length-n],vp(this._counts.slice(n)),!1)),a.splice.apply(a,mp([0,n],vp(this._counts.slice(0,n)),!1)),this._counts=a},t.prototype.reverse=function(e,n){for(var i=Math.floor((e+n)/2)-e,a=0;a<i;a++){var s=this._counts[e+a];this._counts[e+a]=this._counts[n-a-1],this._counts[n-a-1]=s}},t.prototype.emptyBucket=function(e){var n=this._counts[e];return this._counts[e]=0,n},t.prototype.increment=function(e,n){this._counts[e]+=n},t.prototype.decrement=function(e,n){this._counts[e]>=n?this._counts[e]-=n:this._counts[e]=0},t.prototype.clone=function(){return new t(mp([],vp(this._counts),!1))},t}()});function Ks(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),i=(n&i8)>>20;return i-Ap}function Ws(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),i=e.getUint32(4),a=(n&a8)*Math.pow(2,32);return a+i}var aM,i8,a8,Ap,js,$s,ui,Op=m(()=>{"use strict";aM=52,i8=2146435072,a8=1048575,Ap=1023,js=-Ap+1,$s=Ap,ui=Math.pow(2,-1022)});function li(t,e){return t===0||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||Number.isNaN(t)?t:t*Math.pow(2,e)}function uM(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t}var zs=m(()=>{"use strict"});var s8,pr,Xs=m(()=>{"use strict";s8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),pr=function(t){s8(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Error)});var cM,fM=m(()=>{"use strict";Op();zs();Xs();cM=function(){function t(e){this._shift=-e}return t.prototype.mapToIndex=function(e){if(e<ui)return this._minNormalLowerBoundaryIndex();var n=Ks(e),i=this._rightShift(Ws(e)-1,aM);return n+i>>this._shift},t.prototype.lowerBoundary=function(e){var n=this._minNormalLowerBoundaryIndex();if(e<n)throw new pr("underflow: "+e+" is < minimum lower boundary: "+n);var i=this._maxNormalLowerBoundaryIndex();if(e>i)throw new pr("overflow: "+e+" is > maximum lower boundary: "+i);return li(1,e<<this._shift)},Object.defineProperty(t.prototype,"scale",{get:function(){return this._shift===0?0:-this._shift},enumerable:!1,configurable:!0}),t.prototype._minNormalLowerBoundaryIndex=function(){var e=js>>this._shift;return this._shift<2&&e--,e},t.prototype._maxNormalLowerBoundaryIndex=function(){return $s>>this._shift},t.prototype._rightShift=function(e,n){return Math.floor(e*Math.pow(2,-n))},t}()});var pM,dM=m(()=>{"use strict";Op();zs();Xs();pM=function(){function t(e){this._scale=e,this._scaleFactor=li(Math.LOG2E,e),this._inverseFactor=li(Math.LN2,-e)}return t.prototype.mapToIndex=function(e){if(e<=ui)return this._minNormalLowerBoundaryIndex()-1;if(Ws(e)===0){var n=Ks(e);return(n<<this._scale)-1}var i=Math.floor(Math.log(e)*this._scaleFactor),a=this._maxNormalLowerBoundaryIndex();return i>=a?a:i},t.prototype.lowerBoundary=function(e){var n=this._maxNormalLowerBoundaryIndex();if(e>=n){if(e===n)return 2*Math.exp((e-(1<<this._scale))/this._scaleFactor);throw new pr("overflow: "+e+" is > maximum lower boundary: "+n)}var i=this._minNormalLowerBoundaryIndex();if(e<=i){if(e===i)return ui;if(e===i-1)return Math.exp((e+(1<<this._scale))/this._scaleFactor)/2;throw new pr("overflow: "+e+" is < minimum lower boundary: "+i)}return Math.exp(e*this._inverseFactor)},Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},enumerable:!1,configurable:!0}),t.prototype._minNormalLowerBoundaryIndex=function(){return js<<this._scale},t.prototype._maxNormalLowerBoundaryIndex=function(){return($s+1<<this._scale)-1},t}()});function gp(t){if(t>_M||t<EM)throw new pr("expected scale >= "+EM+" && <= "+_M+", got: "+t);return u8[t+10]}var EM,_M,u8,SM=m(()=>{"use strict";fM();dM();Xs();EM=-10,_M=20,u8=Array.from({length:31},function(t,e){return e>10?new pM(e-10):new cM(e-10)})});var l8,Js,c8,f8,Np,hM,Rp,TM=m(()=>{"use strict";Pn();Rn();b();Vt();iM();SM();zs();l8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Js=function(){function t(e,n){this.low=e,this.high=n}return t.combine=function(e,n){return new t(Math.min(e.low,n.low),Math.max(e.high,n.high))},t}(),c8=20,f8=160,Np=2,hM=function(){function t(e,n,i,a,s,o,r,u,l,c,p){e===void 0&&(e=e),n===void 0&&(n=f8),i===void 0&&(i=!0),a===void 0&&(a=0),s===void 0&&(s=0),o===void 0&&(o=0),r===void 0&&(r=Number.POSITIVE_INFINITY),u===void 0&&(u=Number.NEGATIVE_INFINITY),l===void 0&&(l=new yp),c===void 0&&(c=new yp),p===void 0&&(p=gp(c8)),this.startTime=e,this._maxSize=n,this._recordMinMax=i,this._sum=a,this._count=s,this._zeroCount=o,this._min=r,this._max=u,this._positive=l,this._negative=c,this._mapping=p,this._maxSize<Np&&(g.warn("Exponential Histogram Max Size set to "+this._maxSize+", changing to the minimum size of: "+Np),this._maxSize=Np)}return t.prototype.record=function(e){this.updateByIncrement(e,1)},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){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}},Object.defineProperty(t.prototype,"sum",{get:function(){return this._sum},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"zeroCount",{get:function(){return this._zeroCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this._count===this._zeroCount?0:this._mapping.scale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"positive",{get:function(){return this._positive},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"negative",{get:function(){return this._negative},enumerable:!1,configurable:!0}),t.prototype.updateByIncrement=function(e,n){if(!Number.isNaN(e)){if(e>this._max&&(this._max=e),e<this._min&&(this._min=e),this._count+=n,e===0){this._zeroCount+=n;return}this._sum+=e*n,e>0?this._updateBuckets(this._positive,e,n):this._updateBuckets(this._negative,-e,n)}},t.prototype.merge=function(e){this._count===0?(this._min=e.min,this._max=e.max):e.count!==0&&(e.min<this.min&&(this._min=e.min),e.max>this.max&&(this._max=e.max)),this.startTime=e.startTime,this._sum+=e.sum,this._count+=e.count,this._zeroCount+=e.zeroCount;var n=this._minScale(e);this._downscale(this.scale-n),this._mergeBuckets(this.positive,e,e.positive,n),this._mergeBuckets(this.negative,e,e.negative,n)},t.prototype.diff=function(e){this._min=1/0,this._max=-1/0,this._sum-=e.sum,this._count-=e.count,this._zeroCount-=e.zeroCount;var n=this._minScale(e);this._downscale(this.scale-n),this._diffBuckets(this.positive,e,e.positive,n),this._diffBuckets(this.negative,e,e.negative,n)},t.prototype.clone=function(){return new t(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)},t.prototype._updateBuckets=function(e,n,i){var a=this._mapping.mapToIndex(n),s=!1,o=0,r=0;if(e.length===0?(e.indexStart=a,e.indexEnd=e.indexStart,e.indexBase=e.indexStart):a<e.indexStart&&e.indexEnd-a>=this._maxSize?(s=!0,r=a,o=e.indexEnd):a>e.indexEnd&&a-e.indexStart>=this._maxSize&&(s=!0,r=e.indexStart,o=a),s){var u=this._changeScale(o,r);this._downscale(u),a=this._mapping.mapToIndex(n)}this._incrementIndexBy(e,a,i)},t.prototype._incrementIndexBy=function(e,n,i){if(i!==0){if(e.length===0&&(e.indexStart=e.indexEnd=e.indexBase=n),n<e.indexStart){var a=e.indexEnd-n;a>=e.backing.length&&this._grow(e,a+1),e.indexStart=n}else if(n>e.indexEnd){var a=n-e.indexStart;a>=e.backing.length&&this._grow(e,a+1),e.indexEnd=n}var s=n-e.indexBase;s<0&&(s+=e.backing.length),e.incrementBucket(s,i)}},t.prototype._grow=function(e,n){var i=e.backing.length,a=e.indexBase-e.indexStart,s=i-a,o=uM(n);o>this._maxSize&&(o=this._maxSize);var r=o-a;e.backing.growTo(o,s,r)},t.prototype._changeScale=function(e,n){for(var i=0;e-n>=this._maxSize;)e>>=1,n>>=1,i++;return i},t.prototype._downscale=function(e){if(e!==0){if(e<0)throw new Error("impossible change of scale: "+this.scale);var n=this._mapping.scale-e;this._positive.downscale(e),this._negative.downscale(e),this._mapping=gp(n)}},t.prototype._minScale=function(e){var n=Math.min(this.scale,e.scale),i=Js.combine(this._highLowAtScale(this.positive,this.scale,n),this._highLowAtScale(e.positive,e.scale,n)),a=Js.combine(this._highLowAtScale(this.negative,this.scale,n),this._highLowAtScale(e.negative,e.scale,n));return Math.min(n-this._changeScale(i.high,i.low),n-this._changeScale(a.high,a.low))},t.prototype._highLowAtScale=function(e,n,i){if(e.length===0)return new Js(0,-1);var a=n-i;return new Js(e.indexStart>>a,e.indexEnd>>a)},t.prototype._mergeBuckets=function(e,n,i,a){for(var s=i.offset,o=n.scale-a,r=0;r<i.length;r++)this._incrementIndexBy(e,s+r>>o,i.at(r))},t.prototype._diffBuckets=function(e,n,i,a){for(var s=i.offset,o=n.scale-a,r=0;r<i.length;r++){var u=s+r>>o,l=u-e.indexBase;l<0&&(l+=e.backing.length),e.decrementBucket(l,i.at(r))}e.trim()},t}(),Rp=function(){function t(e,n){this._maxSize=e,this._recordMinMax=n,this.kind=et.EXPONENTIAL_HISTOGRAM}return t.prototype.createAccumulation=function(e){return new hM(e,this._maxSize,this._recordMinMax)},t.prototype.merge=function(e,n){var i=n.clone();return i.merge(e),i},t.prototype.diff=function(e,n){var i=n.clone();return i.diff(e),i},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Re.EXPONENTIAL_HISTOGRAM,dataPoints:i.map(function(s){var o=l8(s,2),r=o[0],u=o[1],l=u.toPointValue(),c=e.type===C.GAUGE||e.type===C.UP_DOWN_COUNTER||e.type===C.OBSERVABLE_GAUGE||e.type===C.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:r,startTime:u.startTime,endTime:a,value:{min:l.hasMinMax?l.min:void 0,max:l.hasMinMax?l.max:void 0,sum:c?void 0:l.sum,positive:{offset:l.positive.offset,bucketCounts:l.positive.bucketCounts},negative:{offset:l.negative.offset,bucketCounts:l.negative.bucketCounts},count:l.count,scale:l.scale,zeroCount:l.zeroCount}}})}},t}()});var p8,Qs,Pp,vM=m(()=>{"use strict";Pn();K();Rn();p8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Qs=function(){function t(e,n,i){n===void 0&&(n=0),i===void 0&&(i=[0,0]),this.startTime=e,this._current=n,this.sampleTime=i}return t.prototype.record=function(e){this._current=e,this.sampleTime=ge(Date.now())},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Pp=function(){function t(){this.kind=et.LAST_VALUE}return t.prototype.createAccumulation=function(e){return new Qs(e)},t.prototype.merge=function(e,n){var i=Ot(n.sampleTime)>=Ot(e.sampleTime)?n:e;return new Qs(e.startTime,i.toPointValue(),i.sampleTime)},t.prototype.diff=function(e,n){var i=Ot(n.sampleTime)>=Ot(e.sampleTime)?n:e;return new Qs(n.startTime,i.toPointValue(),i.sampleTime)},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Re.GAUGE,dataPoints:i.map(function(s){var o=p8(s,2),r=o[0],u=o[1];return{attributes:r,startTime:u.startTime,endTime:a,value:u.toPointValue()}})}},t}()});var d8,bn,Zs,mM=m(()=>{"use strict";Pn();Rn();d8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},bn=function(){function t(e,n,i,a){i===void 0&&(i=0),a===void 0&&(a=!1),this.startTime=e,this.monotonic=n,this._current=i,this.reset=a}return t.prototype.record=function(e){this.monotonic&&e<0||(this._current+=e)},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Zs=function(){function t(e){this.monotonic=e,this.kind=et.SUM}return t.prototype.createAccumulation=function(e){return new bn(e,this.monotonic)},t.prototype.merge=function(e,n){var i=e.toPointValue(),a=n.toPointValue();return n.reset?new bn(n.startTime,this.monotonic,a,n.reset):new bn(e.startTime,this.monotonic,i+a)},t.prototype.diff=function(e,n){var i=e.toPointValue(),a=n.toPointValue();return this.monotonic&&i>a?new bn(n.startTime,this.monotonic,a,!0):new bn(n.startTime,this.monotonic,a-i)},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Re.SUM,dataPoints:i.map(function(s){var o=d8(s,2),r=o[0],u=o[1];return{attributes:r,startTime:u.startTime,endTime:a,value:u.toPointValue()}}),isMonotonic:this.monotonic}},t}()});var yM=m(()=>{"use strict";tM();oM();TM();vM();mM()});var Br,Ve,bp,xp,Mp,Lp,Ip,Cp,wp,AM,OM,gM,NM,E8,_8,eu=m(()=>{"use strict";b();yM();Vt();Br=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ve=function(){function t(){}return t.Drop=function(){return AM},t.Sum=function(){return OM},t.LastValue=function(){return gM},t.Histogram=function(){return NM},t.ExponentialHistogram=function(){return E8},t.Default=function(){return _8},t}(),bp=function(t){Br(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new Tp,e}(Ve),xp=function(t){Br(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){switch(n.type){case C.COUNTER:case C.OBSERVABLE_COUNTER:case C.HISTOGRAM:return e.MONOTONIC_INSTANCE;default:return e.NON_MONOTONIC_INSTANCE}},e.MONOTONIC_INSTANCE=new Zs(!0),e.NON_MONOTONIC_INSTANCE=new Zs(!1),e}(Ve),Mp=function(t){Br(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new Pp,e}(Ve),Lp=function(t){Br(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new qs([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0),e}(Ve),Ip=function(t){Br(e,t);function e(n,i){i===void 0&&(i=!0);var a=t.call(this)||this;if(a._recordMinMax=i,n==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");n=n.concat(),n=n.sort(function(r,u){return r-u});var s=n.lastIndexOf(-1/0),o=n.indexOf(1/0);return o===-1&&(o=void 0),a._boundaries=n.slice(s+1,o),a}return e.prototype.createAggregator=function(n){return new qs(this._boundaries,this._recordMinMax)},e}(Ve),Cp=function(t){Br(e,t);function e(n,i){n===void 0&&(n=160),i===void 0&&(i=!0);var a=t.call(this)||this;return a._maxSize=n,a._recordMinMax=i,a}return e.prototype.createAggregator=function(n){return new Rp(this._maxSize,this._recordMinMax)},e}(Ve),wp=function(t){Br(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype._resolve=function(n){switch(n.type){case C.COUNTER:case C.UP_DOWN_COUNTER:case C.OBSERVABLE_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:return OM;case C.GAUGE:case C.OBSERVABLE_GAUGE:return gM;case C.HISTOGRAM:return n.advice.explicitBucketBoundaries?new Ip(n.advice.explicitBucketBoundaries):NM}return g.warn("Unable to recognize instrument type: "+n.type),AM},e.prototype.createAggregator=function(n){return this._resolve(n).createAggregator(n)},e}(Ve),AM=new bp,OM=new xp,gM=new Mp,NM=new Lp,E8=new Cp,_8=new wp});var RM,tu,Up=m(()=>{"use strict";eu();Fs();RM=function(t){return Ve.Default()},tu=function(t){return Ne.CUMULATIVE}});var Dp,Vp,PM,S8,ru,Bp=m(()=>{"use strict";b();gt();Up();Dp=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Vp=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},PM=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},S8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},ru=function(){function t(e){var n,i,a;this._shutdown=!1,this._aggregationSelector=(n=e?.aggregationSelector)!==null&&n!==void 0?n:RM,this._aggregationTemporalitySelector=(i=e?.aggregationTemporalitySelector)!==null&&i!==void 0?i:tu,this._metricProducers=(a=e?.metricProducers)!==null&&a!==void 0?a:[]}return t.prototype.setMetricProducer=function(e){if(this._sdkMetricProducer)throw new Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=e,this.onInitialized()},t.prototype.selectAggregation=function(e){return this._aggregationSelector(e)},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporalitySelector(e)},t.prototype.onInitialized=function(){},t.prototype.collect=function(e){return Dp(this,void 0,void 0,function(){var n,i,a,s,o,r;return Vp(this,function(u){switch(u.label){case 0:if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");return[4,Promise.all(S8([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis})],PM(this._metricProducers.map(function(l){return l.collect({timeoutMillis:e?.timeoutMillis})})),!1))];case 1:return n=PM.apply(void 0,[u.sent()]),i=n[0],a=n.slice(1),s=i.errors.concat(hp(a,function(l){return l.errors})),o=i.resourceMetrics.resource,r=i.resourceMetrics.scopeMetrics.concat(hp(a,function(l){return l.resourceMetrics.scopeMetrics})),[2,{resourceMetrics:{resource:o,scopeMetrics:r},errors:s}]}})})},t.prototype.shutdown=function(e){return Dp(this,void 0,void 0,function(){return Vp(this,function(n){switch(n.label){case 0:return this._shutdown?(g.error("Cannot call shutdown twice."),[2]):e?.timeoutMillis!=null?[3,2]:[4,this.onShutdown()];case 1:return n.sent(),[3,4];case 2:return[4,fr(this.onShutdown(),e.timeoutMillis)];case 3:n.sent(),n.label=4;case 4:return this._shutdown=!0,[2]}})})},t.prototype.forceFlush=function(e){return Dp(this,void 0,void 0,function(){return Vp(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("Cannot forceFlush on already shutdown MetricReader."),[2]):e?.timeoutMillis!=null?[3,2]:[4,this.onForceFlush()];case 1:return n.sent(),[2];case 2:return[4,fr(this.onForceFlush(),e.timeoutMillis)];case 3:return n.sent(),[2]}})})},t}()});var h8,ci,fi,T8,v8,nu,bM=m(()=>{"use strict";b();K();Bp();gt();b();h8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),ci=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},fi=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},T8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},v8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},nu=function(t){h8(e,t);function e(n){var i,a,s,o,r=t.call(this,{aggregationSelector:(i=n.exporter.selectAggregation)===null||i===void 0?void 0:i.bind(n.exporter),aggregationTemporalitySelector:(a=n.exporter.selectAggregationTemporality)===null||a===void 0?void 0:a.bind(n.exporter),metricProducers:n.metricProducers})||this;if(n.exportIntervalMillis!==void 0&&n.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(n.exportTimeoutMillis!==void 0&&n.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(n.exportTimeoutMillis!==void 0&&n.exportIntervalMillis!==void 0&&n.exportIntervalMillis<n.exportTimeoutMillis)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");return r._exportInterval=(s=n.exportIntervalMillis)!==null&&s!==void 0?s:6e4,r._exportTimeout=(o=n.exportTimeoutMillis)!==null&&o!==void 0?o:3e4,r._exporter=n.exporter,r}return e.prototype._runOnce=function(){return ci(this,void 0,void 0,function(){var n;return fi(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,fr(this._doRun(),this._exportTimeout)];case 1:return i.sent(),[3,3];case 2:return n=i.sent(),n instanceof si?(g.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout),[2]):(Te(n),[3,3]);case 3:return[2]}})})},e.prototype._doRun=function(){var n,i;return ci(this,void 0,void 0,function(){var a,s,o,r,u,l=this;return fi(this,function(c){switch(c.label){case 0:return[4,this.collect({timeoutMillis:this._exportTimeout})];case 1:return a=c.sent(),s=a.resourceMetrics,o=a.errors,o.length>0&&(u=g).error.apply(u,v8(["PeriodicExportingMetricReader: metrics collection errors"],T8(o),!1)),r=function(){return ci(l,void 0,void 0,function(){var p;return fi(this,function(_){switch(_.label){case 0:return[4,ai._export(this._exporter,s)];case 1:if(p=_.sent(),p.code!==ee.SUCCESS)throw new Error("PeriodicExportingMetricReader: metrics export failed (error "+p.error+")");return[2]}})})},s.resource.asyncAttributesPending?((i=(n=s.resource).waitForAsyncAttributes)===null||i===void 0||i.call(n).then(r,function(p){return g.debug("Error while resolving async portion of resource: ",p)}).catch(Te),[3,4]):[3,2];case 2:return[4,r()];case 3:c.sent(),c.label=4;case 4:return[2]}})})},e.prototype.onInitialized=function(){var n=this;this._interval=setInterval(function(){n._runOnce()},this._exportInterval),ur(this._interval)},e.prototype.onForceFlush=function(){return ci(this,void 0,void 0,function(){return fi(this,function(n){switch(n.label){case 0:return[4,this._runOnce()];case 1:return n.sent(),[4,this._exporter.forceFlush()];case 2:return n.sent(),[2]}})})},e.prototype.onShutdown=function(){return ci(this,void 0,void 0,function(){return fi(this,function(n){switch(n.label){case 0:return this._interval&&clearInterval(this._interval),[4,this._exporter.shutdown()];case 1:return n.sent(),[2]}})})},e}(ru)});var xM,MM=m(()=>{"use strict";K();xM=function(){function t(e){this._shutdown=!1,this._metrics=[],this._aggregationTemporality=e}return t.prototype.export=function(e,n){if(this._shutdown){setTimeout(function(){return n({code:ee.FAILED})},0);return}this._metrics.push(e),setTimeout(function(){return n({code:ee.SUCCESS})},0)},t.prototype.getMetrics=function(){return this._metrics},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.reset=function(){this._metrics=[]},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporality},t.prototype.shutdown=function(){return this._shutdown=!0,Promise.resolve()},t}()});var LM,IM,CM=m(()=>{"use strict";K();Up();LM=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},IM=function(){function t(e){var n;this._shutdown=!1,this._temporalitySelector=(n=e?.temporalitySelector)!==null&&n!==void 0?n:tu}return t.prototype.export=function(e,n){if(this._shutdown){setImmediate(n,{code:ee.FAILED});return}return t._sendMetrics(e,n)},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.selectAggregationTemporality=function(e){return this._temporalitySelector(e)},t.prototype.shutdown=function(){return this._shutdown=!0,Promise.resolve()},t._sendMetrics=function(e,n){var i,a,s,o;try{for(var r=LM(e.scopeMetrics),u=r.next();!u.done;u=r.next()){var l=u.value;try{for(var c=(s=void 0,LM(l.metrics)),p=c.next();!p.done;p=c.next()){var _=p.value;console.dir({descriptor:_.descriptor,dataPointType:_.dataPointType,dataPoints:_.dataPoints},{depth:null})}}catch(f){s={error:f}}finally{try{p&&!p.done&&(o=c.return)&&o.call(c)}finally{if(s)throw s.error}}}}catch(f){i={error:f}}finally{try{u&&!u.done&&(a=r.return)&&a.call(r)}finally{if(i)throw i.error}}n({code:ee.SUCCESS})},t}()});var wM,UM=m(()=>{"use strict";wM=function(){function t(){this._registeredViews=[]}return t.prototype.addView=function(e){this._registeredViews.push(e)},t.prototype.findViews=function(e,n){var i=this,a=this._registeredViews.filter(function(s){return i._matchInstrument(s.instrumentSelector,e)&&i._matchMeter(s.meterSelector,n)});return a},t.prototype._matchInstrument=function(e,n){return(e.getType()===void 0||n.type===e.getType())&&e.getNameFilter().match(n.name)&&e.getUnitFilter().match(n.unit)},t.prototype._matchMeter=function(e,n){return e.getNameFilter().match(n.name)&&(n.version===void 0||e.getVersionFilter().match(n.version))&&(n.schemaUrl===void 0||e.getSchemaUrlFilter().match(n.schemaUrl))},t}()});function pi(t){return t instanceof iu}var Gr,ou,DM,VM,BM,GM,iu,kM,HM,FM,au=m(()=>{"use strict";b();K();Gr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),ou=function(){function t(e,n){this._writableMetricStorage=e,this._descriptor=n}return t.prototype._record=function(e,n,i){if(n===void 0&&(n={}),i===void 0&&(i=Ye.active()),typeof e!="number"){g.warn("non-number value provided to metric "+this._descriptor.name+": "+e);return}this._descriptor.valueType===pt.INT&&!Number.isInteger(e)&&(g.warn("INT value type cannot accept a floating-point value for "+this._descriptor.name+", ignoring the fractional digits."),e=Math.trunc(e),!Number.isInteger(e))||this._writableMetricStorage.record(e,n,i,ge(Date.now()))},t}(),DM=function(t){Gr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,i,a){this._record(n,i,a)},e}(ou),VM=function(t){Gr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,i,a){if(n<0){g.warn("negative value provided to counter "+this._descriptor.name+": "+n);return}this._record(n,i,a)},e}(ou),BM=function(t){Gr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,i,a){this._record(n,i,a)},e}(ou),GM=function(t){Gr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,i,a){if(n<0){g.warn("negative value provided to histogram "+this._descriptor.name+": "+n);return}this._record(n,i,a)},e}(ou),iu=function(){function t(e,n,i){this._observableRegistry=i,this._descriptor=e,this._metricStorages=n}return t.prototype.addCallback=function(e){this._observableRegistry.addCallback(e,this)},t.prototype.removeCallback=function(e){this._observableRegistry.removeCallback(e,this)},t}(),kM=function(t){Gr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(iu),HM=function(t){Gr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(iu),FM=function(t){Gr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(iu)});var YM,qM=m(()=>{"use strict";Vt();au();YM=function(){function t(e){this._meterSharedState=e}return t.prototype.createGauge=function(e,n){var i=Nt(e,C.GAUGE,n),a=this._meterSharedState.registerMetricStorage(i);return new BM(a,i)},t.prototype.createHistogram=function(e,n){var i=Nt(e,C.HISTOGRAM,n),a=this._meterSharedState.registerMetricStorage(i);return new GM(a,i)},t.prototype.createCounter=function(e,n){var i=Nt(e,C.COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new VM(a,i)},t.prototype.createUpDownCounter=function(e,n){var i=Nt(e,C.UP_DOWN_COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new DM(a,i)},t.prototype.createObservableGauge=function(e,n){var i=Nt(e,C.OBSERVABLE_GAUGE,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new HM(i,a,this._meterSharedState.observableRegistry)},t.prototype.createObservableCounter=function(e,n){var i=Nt(e,C.OBSERVABLE_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new kM(i,a,this._meterSharedState.observableRegistry)},t.prototype.createObservableUpDownCounter=function(e,n){var i=Nt(e,C.OBSERVABLE_UP_DOWN_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new FM(i,a,this._meterSharedState.observableRegistry)},t.prototype.addBatchObservableCallback=function(e,n){this._meterSharedState.observableRegistry.addBatchCallback(e,n)},t.prototype.removeBatchObservableCallback=function(e,n){this._meterSharedState.observableRegistry.removeBatchCallback(e,n)},t}()});var su,Gp=m(()=>{"use strict";Vt();su=function(){function t(e){this._instrumentDescriptor=e}return t.prototype.getInstrumentDescriptor=function(){return this._instrumentDescriptor},t.prototype.updateDescription=function(e){this._instrumentDescriptor=Nt(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:e,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})},t}()});var m8,jM,y8,ct,di=m(()=>{"use strict";gt();m8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),jM=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},y8=function(){function t(e){this._hash=e,this._valueMap=new Map,this._keyMap=new Map}return t.prototype.get=function(e,n){return n??(n=this._hash(e)),this._valueMap.get(n)},t.prototype.getOrDefault=function(e,n){var i=this._hash(e);if(this._valueMap.has(i))return this._valueMap.get(i);var a=n();return this._keyMap.has(i)||this._keyMap.set(i,e),this._valueMap.set(i,a),a},t.prototype.set=function(e,n,i){i??(i=this._hash(e)),this._keyMap.has(i)||this._keyMap.set(i,e),this._valueMap.set(i,n)},t.prototype.has=function(e,n){return n??(n=this._hash(e)),this._valueMap.has(n)},t.prototype.keys=function(){var e,n;return jM(this,function(i){switch(i.label){case 0:e=this._keyMap.entries(),n=e.next(),i.label=1;case 1:return n.done===!0?[3,3]:[4,[n.value[1],n.value[0]]];case 2:return i.sent(),n=e.next(),[3,1];case 3:return[2]}})},t.prototype.entries=function(){var e,n;return jM(this,function(i){switch(i.label){case 0:e=this._valueMap.entries(),n=e.next(),i.label=1;case 1:return n.done===!0?[3,3]:[4,[this._keyMap.get(n.value[0]),n.value[1],n.value[0]]];case 2:return i.sent(),n=e.next(),[3,1];case 3:return[2]}})},Object.defineProperty(t.prototype,"size",{get:function(){return this._valueMap.size},enumerable:!1,configurable:!0}),t}(),ct=function(t){m8(e,t);function e(){return t.call(this,Wx)||this}return e}(y8)});var A8,uu,kp=m(()=>{"use strict";di();A8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},uu=function(){function t(e){this._aggregator=e,this._activeCollectionStorage=new ct,this._cumulativeMemoStorage=new ct}return t.prototype.record=function(e,n,i,a){var s=this,o=this._activeCollectionStorage.getOrDefault(n,function(){return s._aggregator.createAccumulation(a)});o?.record(e)},t.prototype.batchCumulate=function(e,n){var i=this;Array.from(e.entries()).forEach(function(a){var s=A8(a,3),o=s[0],r=s[1],u=s[2],l=i._aggregator.createAccumulation(n);l?.record(r);var c=l;if(i._cumulativeMemoStorage.has(o,u)){var p=i._cumulativeMemoStorage.get(o,u);c=i._aggregator.diff(p,l)}if(i._activeCollectionStorage.has(o,u)){var _=i._activeCollectionStorage.get(o,u);c=i._aggregator.merge(_,c)}i._cumulativeMemoStorage.set(o,l,u),i._activeCollectionStorage.set(o,c,u)})},t.prototype.collect=function(){var e=this._activeCollectionStorage;return this._activeCollectionStorage=new ct,e},t}()});function O8(t){return Array.from(t.entries())}var Hp,$M,lu,Fp=m(()=>{"use strict";Fs();di();Hp=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},$M=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},lu=function(){function t(e,n){var i=this;this._aggregator=e,this._unreportedAccumulations=new Map,this._reportHistory=new Map,n.forEach(function(a){i._unreportedAccumulations.set(a,[])})}return t.prototype.buildMetrics=function(e,n,i,a){this._stashAccumulations(i);var s=this._getMergedUnreportedAccumulations(e),o=s,r;if(this._reportHistory.has(e)){var u=this._reportHistory.get(e),l=u.collectionTime;r=u.aggregationTemporality,r===Ne.CUMULATIVE?o=t.merge(u.accumulations,s,this._aggregator):o=t.calibrateStartTime(u.accumulations,s,l)}else r=e.selectAggregationTemporality(n.type);this._reportHistory.set(e,{accumulations:o,collectionTime:a,aggregationTemporality:r});var c=O8(o);if(c.length!==0)return this._aggregator.toMetricData(n,r,c,a)},t.prototype._stashAccumulations=function(e){var n,i,a=this._unreportedAccumulations.keys();try{for(var s=Hp(a),o=s.next();!o.done;o=s.next()){var r=o.value,u=this._unreportedAccumulations.get(r);u===void 0&&(u=[],this._unreportedAccumulations.set(r,u)),u.push(e)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},t.prototype._getMergedUnreportedAccumulations=function(e){var n,i,a=new ct,s=this._unreportedAccumulations.get(e);if(this._unreportedAccumulations.set(e,[]),s===void 0)return a;try{for(var o=Hp(s),r=o.next();!r.done;r=o.next()){var u=r.value;a=t.merge(a,u,this._aggregator)}}catch(l){n={error:l}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a},t.merge=function(e,n,i){for(var a=e,s=n.entries(),o=s.next();o.done!==!0;){var r=$M(o.value,3),u=r[0],l=r[1],c=r[2];if(e.has(u,c)){var p=e.get(u,c),_=i.merge(p,l);a.set(u,_,c)}else a.set(u,l,c);o=s.next()}return a},t.calibrateStartTime=function(e,n,i){var a,s;try{for(var o=Hp(e.keys()),r=o.next();!r.done;r=o.next()){var u=$M(r.value,2),l=u[0],c=u[1],p=n.get(l,c);p?.setStartTime(i)}}catch(_){a={error:_}}finally{try{r&&!r.done&&(s=o.return)&&s.call(o)}finally{if(a)throw a.error}}return n},t}()});var g8,N8,KM,WM=m(()=>{"use strict";Gp();kp();Fp();di();g8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),N8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},KM=function(t){g8(e,t);function e(n,i,a,s){var o=t.call(this,n)||this;return o._attributesProcessor=a,o._deltaMetricStorage=new uu(i),o._temporalMetricStorage=new lu(i,s),o}return e.prototype.record=function(n,i){var a=this,s=new ct;Array.from(n.entries()).forEach(function(o){var r=N8(o,2),u=r[0],l=r[1];s.set(a._attributesProcessor.process(u),l)}),this._deltaMetricStorage.batchCumulate(s,i)},e.prototype.collect=function(n,i){var a=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(n,this._instrumentDescriptor,a,i)},e}(su)});function Yp(t,e){var n="";return t.unit!==e.unit&&(n+=" - Unit '"+t.unit+"' does not match '"+e.unit+`'
|
40
40
|
`),t.type!==e.type&&(n+=" - Type '"+t.type+"' does not match '"+e.type+`'
|
41
41
|
`),t.valueType!==e.valueType&&(n+=" - Value Type '"+t.valueType+"' does not match '"+e.valueType+`'
|
42
42
|
`),t.description!==e.description&&(n+=" - Description '"+t.description+"' does not match '"+e.description+`'
|
43
|
-
`),n}function
|
43
|
+
`),n}function R8(t,e){return" - use valueType '"+t.valueType+"' on instrument creation or use an instrument name other than '"+e.name+"'"}function P8(t,e){return" - use unit '"+t.unit+"' on instrument creation or use an instrument name other than '"+e.name+"'"}function b8(t,e){var n={name:e.name,type:e.type,unit:e.unit},i=JSON.stringify(n);return" - create a new view with a name other than '"+t.name+"' and InstrumentSelector '"+i+"'"}function x8(t,e){var n={name:e.name,type:e.type,unit:e.unit},i=JSON.stringify(n);return" - create a new view with a name other than '"+t.name+"' and InstrumentSelector '"+i+`'
|
44
44
|
- OR - create a new view with the name `+t.name+" and description '"+t.description+"' and InstrumentSelector "+i+`
|
45
|
-
- OR - create a new view with the name `+e.name+" and description '"+t.description+"' and InstrumentSelector "+i}function
|
45
|
+
- OR - create a new view with the name `+e.name+" and description '"+t.description+"' and InstrumentSelector "+i}function qp(t,e){return t.valueType!==e.valueType?R8(t,e):t.unit!==e.unit?P8(t,e):t.type!==e.type?b8(t,e):t.description!==e.description?x8(t,e):""}var zM=m(()=>{"use strict"});var jp,XM,JM=m(()=>{"use strict";Vt();b();zM();jp=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},XM=function(){function t(){this._sharedRegistry=new Map,this._perCollectorRegistry=new Map}return t.create=function(){return new t},t.prototype.getStorages=function(e){var n,i,a,s,o=[];try{for(var r=jp(this._sharedRegistry.values()),u=r.next();!u.done;u=r.next()){var l=u.value;o=o.concat(l)}}catch(f){n={error:f}}finally{try{u&&!u.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}var c=this._perCollectorRegistry.get(e);if(c!=null)try{for(var p=jp(c.values()),_=p.next();!_.done;_=p.next()){var l=_.value;o=o.concat(l)}}catch(f){a={error:f}}finally{try{_&&!_.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}return o},t.prototype.register=function(e){this._registerStorage(e,this._sharedRegistry)},t.prototype.registerForCollector=function(e,n){var i=this._perCollectorRegistry.get(e);i==null&&(i=new Map,this._perCollectorRegistry.set(e,i)),this._registerStorage(n,i)},t.prototype.findOrUpdateCompatibleStorage=function(e){var n=this._sharedRegistry.get(e.name);return n===void 0?null:this._findOrUpdateCompatibleStorage(e,n)},t.prototype.findOrUpdateCompatibleCollectorStorage=function(e,n){var i=this._perCollectorRegistry.get(e);if(i===void 0)return null;var a=i.get(n.name);return a===void 0?null:this._findOrUpdateCompatibleStorage(n,a)},t.prototype._registerStorage=function(e,n){var i=e.getInstrumentDescriptor(),a=n.get(i.name);if(a===void 0){n.set(i.name,[e]);return}a.push(e)},t.prototype._findOrUpdateCompatibleStorage=function(e,n){var i,a,s=null;try{for(var o=jp(n),r=o.next();!r.done;r=o.next()){var u=r.value,l=u.getInstrumentDescriptor();nM(l,e)?(l.description!==e.description&&(e.description.length>l.description.length&&u.updateDescription(e.description),g.warn("A view or instrument with the name ",e.name,` has already been registered, but has a different description and is incompatible with another registered view.
|
46
46
|
`,`Details:
|
47
|
-
`,
|
48
|
-
To resolve the conflict:`,
|
47
|
+
`,Yp(l,e),`The longer description will be used.
|
48
|
+
To resolve the conflict:`,qp(l,e))),s=u):g.warn("A view or instrument with the name ",e.name,` has already been registered and is incompatible with another registered view.
|
49
49
|
`,`Details:
|
50
|
-
`,
|
51
|
-
`,Bp(l,e))}}catch(c){i={error:c}}finally{try{r&&!r.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}return s},t}()});var qx,jx=m(()=>{"use strict";qx=function(){function t(e){this._backingStorages=e}return t.prototype.record=function(e,n,i,a){this._backingStorages.forEach(function(s){s.record(e,n,i,a)})},t}()});var $x,Kx,Wx=m(()=>{"use strict";b();fi();eu();$x=function(){function t(e,n){this._instrumentName=e,this._valueType=n,this._buffer=new ct}return t.prototype.observe=function(e,n){if(n===void 0&&(n={}),typeof e!="number"){g.warn("non-number value provided to metric "+this._instrumentName+": "+e);return}this._valueType===pt.INT&&!Number.isInteger(e)&&(g.warn("INT value type cannot accept a floating-point value for "+this._instrumentName+", ignoring the fractional digits."),e=Math.trunc(e),!Number.isInteger(e))||this._buffer.set(n,e)},t}(),Kx=function(){function t(){this._buffer=new Map}return t.prototype.observe=function(e,n,i){if(i===void 0&&(i={}),!!ci(e)){var a=this._buffer.get(e);if(a==null&&(a=new ct,this._buffer.set(e,a)),typeof n!="number"){g.warn("non-number value provided to metric "+e._descriptor.name+": "+n);return}e._descriptor.valueType===pt.INT&&!Number.isInteger(n)&&(g.warn("INT value type cannot accept a floating-point value for "+e._descriptor.name+", ignoring the fractional digits."),n=Math.trunc(n),!Number.isInteger(n))||a.set(i,n)}},t}()});var kp,Hp,zx,Xx,Jx,Qx=m(()=>{"use strict";b();eu();Wx();gt();kp=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Hp=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},zx=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Xx=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},Jx=function(){function t(){this._callbacks=[],this._batchCallbacks=[]}return t.prototype.addCallback=function(e,n){var i=this._findCallback(e,n);i>=0||this._callbacks.push({callback:e,instrument:n})},t.prototype.removeCallback=function(e,n){var i=this._findCallback(e,n);i<0||this._callbacks.splice(i,1)},t.prototype.addBatchCallback=function(e,n){var i=new Set(n.filter(ci));if(i.size===0){g.error("BatchObservableCallback is not associated with valid instruments",n);return}var a=this._findBatchCallback(e,i);a>=0||this._batchCallbacks.push({callback:e,instruments:i})},t.prototype.removeBatchCallback=function(e,n){var i=new Set(n.filter(ci)),a=this._findBatchCallback(e,i);a<0||this._batchCallbacks.splice(a,1)},t.prototype.observe=function(e,n){return kp(this,void 0,void 0,function(){var i,a,s,o;return Hp(this,function(r){switch(r.label){case 0:return i=this._observeCallbacks(e,n),a=this._observeBatchCallbacks(e,n),[4,FM(Xx(Xx([],zx(i),!1),zx(a),!1))];case 1:return s=r.sent(),o=s.filter(YM).map(function(u){return u.reason}),[2,o]}})})},t.prototype._observeCallbacks=function(e,n){var i=this;return this._callbacks.map(function(a){var s=a.callback,o=a.instrument;return kp(i,void 0,void 0,function(){var r,u;return Hp(this,function(l){switch(l.label){case 0:return r=new $x(o._descriptor.name,o._descriptor.valueType),u=Promise.resolve(s(r)),n!=null&&(u=cr(u,n)),[4,u];case 1:return l.sent(),o._metricStorages.forEach(function(c){c.record(r._buffer,e)}),[2]}})})})},t.prototype._observeBatchCallbacks=function(e,n){var i=this;return this._batchCallbacks.map(function(a){var s=a.callback,o=a.instruments;return kp(i,void 0,void 0,function(){var r,u;return Hp(this,function(l){switch(l.label){case 0:return r=new Kx,u=Promise.resolve(s(r)),n!=null&&(u=cr(u,n)),[4,u];case 1:return l.sent(),o.forEach(function(c){var p=r._buffer.get(c);p!=null&&c._metricStorages.forEach(function(_){_.record(p,e)})}),[2]}})})})},t.prototype._findCallback=function(e,n){return this._callbacks.findIndex(function(i){return i.callback===e&&i.instrument===n})},t.prototype._findBatchCallback=function(e,n){return this._batchCallbacks.findIndex(function(i){return i.callback===e&&qM(i.instruments,n)})},t}()});var A8,Zx,eL=m(()=>{"use strict";Cp();wp();Dp();A8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Zx=function(t){A8(e,t);function e(n,i,a,s){var o=t.call(this,n)||this;return o._attributesProcessor=a,o._deltaMetricStorage=new ru(i),o._temporalMetricStorage=new nu(i,s),o}return e.prototype.record=function(n,i,a,s){i=this._attributesProcessor.process(i,a),this._deltaMetricStorage.record(n,i,a,s)},e.prototype.collect=function(n,i){var a=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(n,this._instrumentDescriptor,a,i)},e}(tu)});var tL,bn,O8,rL,g8,Fp=m(()=>{"use strict";tL=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),bn=function(){function t(){}return t.Noop=function(){return g8},t}(),O8=function(t){tL(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.process=function(n,i){return n},e}(bn),rL=function(t){tL(e,t);function e(n){var i=t.call(this)||this;return i._allowedAttributeNames=n,i}return e.prototype.process=function(n,i){var a=this,s={};return Object.keys(n).filter(function(o){return a._allowedAttributeNames.includes(o)}).forEach(function(o){return s[o]=n[o]}),s},e}(bn),g8=new O8});var N8,R8,P8,nL,oL=m(()=>{"use strict";Dt();Dx();gt();kx();Yx();jx();Qx();eL();Fp();N8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},R8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},P8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},nL=function(){function t(e,n){this._meterProviderSharedState=e,this._instrumentationScope=n,this.metricStorageRegistry=new Fx,this.observableRegistry=new Jx,this.meter=new Ux(this)}return t.prototype.registerMetricStorage=function(e){var n=this._registerMetricStorage(e,Zx);return n.length===1?n[0]:new qx(n)},t.prototype.registerAsyncMetricStorage=function(e){var n=this._registerMetricStorage(e,Gx);return n},t.prototype.collect=function(e,n,i){return N8(this,void 0,void 0,function(){var a,s,o;return R8(this,function(r){switch(r.label){case 0:return[4,this.observableRegistry.observe(n,i?.timeoutMillis)];case 1:return a=r.sent(),s=this.metricStorageRegistry.getStorages(e),s.length===0?[2,null]:(o=s.map(function(u){return u.collect(e,n)}).filter(GM),o.length===0?[2,{errors:a}]:[2,{scopeMetrics:{scope:this._instrumentationScope,metrics:o},errors:a}])}})})},t.prototype._registerMetricStorage=function(e,n){var i=this,a=this._meterProviderSharedState.viewRegistry.findViews(e,this._instrumentationScope),s=a.map(function(u){var l=WM(u,e),c=i.metricStorageRegistry.findOrUpdateCompatibleStorage(l);if(c!=null)return c;var p=u.aggregation.createAggregator(l),_=new n(l,p,u.attributesProcessor,i._meterProviderSharedState.metricCollectors);return i.metricStorageRegistry.register(_),_});if(s.length===0){var o=this._meterProviderSharedState.selectAggregations(e.type),r=o.map(function(u){var l=P8(u,2),c=l[0],p=l[1],_=i.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(c,e);if(_!=null)return _;var f=p.createAggregator(e),S=new n(e,f,bn.Noop(),[c]);return i.metricStorageRegistry.registerForCollector(c,S),S});s=s.concat(r)}return s},t}()});var b8,iL,aL=m(()=>{"use strict";gt();Px();oL();b8=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},iL=function(){function t(e){this.resource=e,this.viewRegistry=new Rx,this.metricCollectors=[],this.meterSharedStates=new Map}return t.prototype.getMeterSharedState=function(e){var n=HM(e),i=this.meterSharedStates.get(n);return i==null&&(i=new nL(this,e),this.meterSharedStates.set(n,i)),i},t.prototype.selectAggregations=function(e){var n,i,a=[];try{for(var s=b8(this.metricCollectors),o=s.next();!o.done;o=s.next()){var r=o.value;a.push([r,r.selectAggregation(e)])}}catch(u){n={error:u}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return a},t}()});var ou,iu,M8,x8,sL,uL=m(()=>{"use strict";K();ou=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},iu=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},M8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},x8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},sL=function(){function t(e,n){this._sharedState=e,this._metricReader=n}return t.prototype.collect=function(e){return ou(this,void 0,void 0,function(){var n,i,a,s,o=this;return iu(this,function(r){switch(r.label){case 0:return n=Oe(Date.now()),i=[],a=[],s=Array.from(this._sharedState.meterSharedStates.values()).map(function(u){return ou(o,void 0,void 0,function(){var l;return iu(this,function(c){switch(c.label){case 0:return[4,u.collect(this,n,e)];case 1:return l=c.sent(),l?.scopeMetrics!=null&&i.push(l.scopeMetrics),l?.errors!=null&&a.push.apply(a,x8([],M8(l.errors),!1)),[2]}})})}),[4,Promise.all(s)];case 1:return r.sent(),[2,{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:i},errors:a}]}})})},t.prototype.forceFlush=function(e){return ou(this,void 0,void 0,function(){return iu(this,function(n){switch(n.label){case 0:return[4,this._metricReader.forceFlush(e)];case 1:return n.sent(),[2]}})})},t.prototype.shutdown=function(e){return ou(this,void 0,void 0,function(){return iu(this,function(n){switch(n.label){case 0:return[4,this._metricReader.shutdown(e)];case 1:return n.sent(),[2]}})})},t.prototype.selectAggregationTemporality=function(e){return this._metricReader.selectAggregationTemporality(e)},t.prototype.selectAggregation=function(e){return this._metricReader.selectAggregation(e)},t}()});var lL,cL,fL,pi,pL=m(()=>{"use strict";b();Us();aL();uL();lL=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},cL=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},fL=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},pi=function(){function t(e){var n,i,a,s,o;this._shutdown=!1;var r=Ut.default().merge((o=e?.resource)!==null&&o!==void 0?o:Ut.empty());if(this._sharedState=new iL(r),e?.views!=null&&e.views.length>0)try{for(var u=fL(e.views),l=u.next();!l.done;l=u.next()){var c=l.value;this._sharedState.viewRegistry.addView(c)}}catch(S){n={error:S}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}if(e?.readers!=null&&e.readers.length>0)try{for(var p=fL(e.readers),_=p.next();!_.done;_=p.next()){var f=_.value;this.addMetricReader(f)}}catch(S){a={error:S}}finally{try{_&&!_.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}}return t.prototype.getMeter=function(e,n,i){return n===void 0&&(n=""),i===void 0&&(i={}),this._shutdown?(g.warn("A shutdown MeterProvider cannot provide a Meter"),uE()):this._sharedState.getMeterSharedState({name:e,version:n,schemaUrl:i.schemaUrl}).meter},t.prototype.addMetricReader=function(e){var n=new sL(this._sharedState,e);e.setMetricProducer(n),this._sharedState.metricCollectors.push(n)},t.prototype.shutdown=function(e){return lL(this,void 0,void 0,function(){return cL(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("shutdown may only be called once per MeterProvider"),[2]):(this._shutdown=!0,[4,Promise.all(this._sharedState.metricCollectors.map(function(i){return i.shutdown(e)}))]);case 1:return n.sent(),[2]}})})},t.prototype.forceFlush=function(e){return lL(this,void 0,void 0,function(){return cL(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("invalid attempt to force flush after MeterProvider shutdown"),[2]):[4,Promise.all(this._sharedState.metricCollectors.map(function(i){return i.forceFlush(e)}))];case 1:return n.sent(),[2]}})})},t}()});var L8,au,Mn,su=m(()=>{"use strict";L8=/[\^$\\.+?()[\]{}|]/g,au=function(){function t(e){e==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(t.escapePattern(e)))}return t.prototype.match=function(e){return this._matchAll?!0:this._regexp.test(e)},t.escapePattern=function(e){return"^"+e.replace(L8,"\\$&").replace("*",".*")+"$"},t.hasWildcard=function(e){return e.includes("*")},t}(),Mn=function(){function t(e){this._matchAll=e===void 0,this._pattern=e}return t.prototype.match=function(e){return!!(this._matchAll||e===this._pattern)},t}()});var dL,EL=m(()=>{"use strict";su();dL=function(){function t(e){var n;this._nameFilter=new au((n=e?.name)!==null&&n!==void 0?n:"*"),this._type=e?.type,this._unitFilter=new Mn(e?.unit)}return t.prototype.getType=function(){return this._type},t.prototype.getNameFilter=function(){return this._nameFilter},t.prototype.getUnitFilter=function(){return this._unitFilter},t}()});var _L,SL=m(()=>{"use strict";su();_L=function(){function t(e){this._nameFilter=new Mn(e?.name),this._versionFilter=new Mn(e?.version),this._schemaUrlFilter=new Mn(e?.schemaUrl)}return t.prototype.getNameFilter=function(){return this._nameFilter},t.prototype.getVersionFilter=function(){return this._versionFilter},t.prototype.getSchemaUrlFilter=function(){return this._schemaUrlFilter},t}()});function I8(t){return t.instrumentName==null&&t.instrumentType==null&&t.instrumentUnit==null&&t.meterName==null&&t.meterVersion==null&&t.meterSchemaUrl==null}var hL,TL=m(()=>{"use strict";su();Fp();EL();SL();Ws();hL=function(){function t(e){var n;if(I8(e))throw new Error("Cannot create view with no selector arguments supplied");if(e.name!=null&&(e?.instrumentName==null||au.hasWildcard(e.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.");e.attributeKeys!=null?this.attributesProcessor=new rL(e.attributeKeys):this.attributesProcessor=bn.Noop(),this.name=e.name,this.description=e.description,this.aggregation=(n=e.aggregation)!==null&&n!==void 0?n:De.Default(),this.instrumentSelector=new dL({name:e.instrumentName,type:e.instrumentType,unit:e.instrumentUnit}),this.meterSelector=new _L({name:e.meterName,version:e.meterVersion,schemaUrl:e.meterSchemaUrl})}return t}()});var Yp={};nt(Yp,{Aggregation:()=>De,AggregationTemporality:()=>ge,ConsoleMetricExporter:()=>gx,DataPointType:()=>Ne,DefaultAggregation:()=>bp,DropAggregation:()=>Ap,ExplicitBucketHistogramAggregation:()=>Rp,ExponentialHistogramAggregation:()=>Pp,HistogramAggregation:()=>Np,InMemoryMetricExporter:()=>yx,InstrumentType:()=>C,LastValueAggregation:()=>gp,MeterProvider:()=>pi,MetricReader:()=>Xs,PeriodicExportingMetricReader:()=>Js,SumAggregation:()=>Op,TimeoutError:()=>ii,View:()=>hL});var xn=m(()=>{"use strict";Ds();Nn();Ip();mx();Ax();Nx();Dt();pL();Ws();TL();gt()});var Ln,qp=m(()=>{"use strict";(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE",t[t.LOWMEMORY=2]="LOWMEMORY"})(Ln||(Ln={}))});function U8(){var t=Ae(),e=t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();return e==="cumulative"?uu:e==="delta"?jp:e==="lowmemory"?$p:(g.warn("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '"+t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE+"', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead."),uu)}function D8(t){return t!=null?t===Ln.DELTA?jp:t===Ln.LOWMEMORY?$p:uu:U8()}function V8(t){return t?.aggregationPreference?t.aggregationPreference:function(e){return De.Default()}}var C8,w8,uu,jp,$p,Kp,Wp=m(()=>{"use strict";K();xn();qp();b();C8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},w8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},uu=function(){return ge.CUMULATIVE},jp=function(t){switch(t){case C.COUNTER:case C.OBSERVABLE_COUNTER:case C.GAUGE:case C.HISTOGRAM:case C.OBSERVABLE_GAUGE:return ge.DELTA;case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:return ge.CUMULATIVE}},$p=function(t){switch(t){case C.COUNTER:case C.HISTOGRAM:return ge.DELTA;case C.GAUGE:case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:case C.OBSERVABLE_COUNTER:case C.OBSERVABLE_GAUGE:return ge.CUMULATIVE}};Kp=function(){function t(e,n){this._otlpExporter=e,this._aggregationSelector=V8(n),this._aggregationTemporalitySelector=D8(n?.temporalityPreference)}return t.prototype.export=function(e,n){this._otlpExporter.export([e],n)},t.prototype.shutdown=function(){return C8(this,void 0,void 0,function(){return w8(this,function(e){switch(e.label){case 0:return[4,this._otlpExporter.shutdown()];case 1:return e.sent(),[2]}})})},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.selectAggregation=function(e){return this._aggregationSelector(e)},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporalitySelector(e)},t}()});var In,lu=m(()=>{"use strict";b();K();In=function(){function t(e){e===void 0&&(e={}),this._sendingPromises=[],this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new ur(this._shutdown,this),this._concurrencyLimit=typeof e.concurrencyLimit=="number"?e.concurrencyLimit:30}return t.prototype.export=function(e,n){if(this._shutdownOnce.isCalled){n({code:ee.FAILED,error:new Error("Exporter has been shutdown")});return}if(this._sendingPromises.length>=this._concurrencyLimit){n({code:ee.FAILED,error:new Error("Concurrent export limit reached")});return}this._export(e).then(function(){n({code:ee.SUCCESS})}).catch(function(i){n({code:ee.FAILED,error:i})})},t.prototype._export=function(e){var n=this;return new Promise(function(i,a){try{g.debug("items to be sent",e),n.send(e,i,a)}catch(s){a(s)}})},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},t.prototype._shutdown=function(){return g.debug("shutdown started"),this.onShutdown(),this.forceFlush()},t}()});function cu(t){var e=[429,502,503,504];return e.includes(t)}function fu(t){if(t!=null){var e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;var n=new Date(t).getTime()-Date.now();return n>=0?n:0}}var zp=m(()=>{"use strict"});var B8,Rt,di=m(()=>{"use strict";B8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Rt=function(t){B8(e,t);function e(n,i,a){var s=t.call(this,n)||this;return s.name="OTLPExporterError",s.data=a,s.code=i,s}return e}(Error)});var mL={};nt(mL,{createHttpAgent:()=>Y8,sendWithHttp:()=>k8});import*as pu from"http";import*as du from"https";import*as vL from"zlib";import{Readable as G8}from"stream";function k8(t,e,n,i,a){var s=new URL(t.url),o=Number(process.versions.node.split(".")[0]),r={hostname:s.hostname,port:s.port,path:s.pathname,method:"POST",headers:Xp({},t.headers),agent:e},u=s.protocol==="http:"?pu.request:du.request,l=u(r,function(p){var _=[];p.on("data",function(f){return _.push(f)}),p.on("end",function(){if(p.statusCode&&p.statusCode<299)i({status:"success",data:Buffer.concat(_)});else if(p.statusCode&&cu(p.statusCode))i({status:"retryable",retryInMillis:fu(p.headers["retry-after"])});else{var f=new Rt(p.statusMessage,p.statusCode);i({status:"failure",error:f})}})});l.setTimeout(a,function(){l.destroy(),i({status:"failure",error:new Error("Request Timeout")})}),l.on("error",function(p){i({status:"failure",error:p})});var c=o>=14?"close":"abort";l.on(c,function(){i({status:"failure",error:new Error("Request timed out")})}),H8(l,t.compression,n,function(p){i({status:"failure",error:p})})}function H8(t,e,n,i){var a=F8(n);e==="gzip"&&(t.setHeader("Content-Encoding","gzip"),a=a.on("error",i).pipe(vL.createGzip()).on("error",i)),a.pipe(t)}function F8(t){var e=new G8;return e.push(t),e.push(null),e}function Y8(t,e){var n=new URL(t),i=n.protocol==="http:"?pu.Agent:du.Agent;return new i(e)}var Xp,yL=m(()=>{"use strict";zp();di();Xp=function(){return Xp=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Xp.apply(this,arguments)}});function AL(t){return new $8(t)}var q8,j8,$8,OL=m(()=>{"use strict";q8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},j8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},$8=function(){function t(e){this._parameters=e,this._send=null,this._agent=null}return t.prototype.send=function(e,n){return q8(this,void 0,void 0,function(){var i,a,s,o=this;return j8(this,function(r){return this._send==null&&(i=(yL(),Y(mL)),a=i.sendWithHttp,s=i.createHttpAgent,this._agent=s(this._parameters.url,this._parameters.agentOptions),this._send=a),[2,new Promise(function(u){var l;(l=o._send)===null||l===void 0||l.call(o,o._parameters,o._agent,e,function(c){u(c)},n)})]})})},t.prototype.shutdown=function(){},t}()});function Z8(){return Math.random()*(2*gL)-gL}function Eu(t){return new eW(t.transport)}var K8,W8,z8,X8,J8,Q8,gL,eW,Jp=m(()=>{"use strict";K8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},W8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},z8=5,X8=1e3,J8=5e3,Q8=1.5,gL=.2;eW=function(){function t(e){this._transport=e}return t.prototype.retry=function(e,n,i){var a=this;return new Promise(function(s,o){setTimeout(function(){a._transport.send(e,n).then(s,o)},i)})},t.prototype.send=function(e,n){var i;return K8(this,void 0,void 0,function(){var a,s,o,r,u,l,c;return W8(this,function(p){switch(p.label){case 0:return a=Date.now()+n,[4,this._transport.send(e,n)];case 1:s=p.sent(),o=z8,r=X8,p.label=2;case 2:return s.status==="retryable"&&o>0?(o--,u=Math.max(Math.min(r,J8)+Z8(),0),r=r*Q8,l=(i=s.retryInMillis)!==null&&i!==void 0?i:u,c=a-Date.now(),l>c?[2,s]:[4,this.retry(e,c,l)]):[3,4];case 3:return s=p.sent(),[3,2];case 4:return[2,s]}})})},t.prototype.shutdown=function(){return this._transport.shutdown()},t}()});function NL(t){var e;return t?.keepAlive!=null&&(t.httpAgentOptions!=null?t.httpAgentOptions.keepAlive==null&&(t.httpAgentOptions.keepAlive=t.keepAlive):t.httpAgentOptions={keepAlive:t.keepAlive}),(e=t.httpAgentOptions)!==null&&e!==void 0?e:{keepAlive:!0}}var RL=m(()=>{"use strict"});function tW(t){if(!Number.isNaN(t)&&Number.isFinite(t)&&t>0)return t;throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+t+"')")}function _u(t,e,n){var i,a,s,o,r,u;return{timeoutMillis:tW((a=(i=t.timeoutMillis)!==null&&i!==void 0?i:e.timeoutMillis)!==null&&a!==void 0?a:n.timeoutMillis),concurrencyLimit:(o=(s=t.concurrencyLimit)!==null&&s!==void 0?s:e.concurrencyLimit)!==null&&o!==void 0?o:n.concurrencyLimit,compression:(u=(r=t.compression)!==null&&r!==void 0?r:e.compression)!==null&&u!==void 0?u:n.compression}}function Su(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var Qp=m(()=>{"use strict"});function hu(t){t===void 0&&(t={});var e={};return Object.entries(t).forEach(function(n){var i=rW(n,2),a=i[0],s=i[1];typeof s<"u"?e[a]=String(s):g.warn('Header "'+a+'" has invalid value ('+s+") and will be ignored")}),e}var rW,Zp=m(()=>{"use strict";b();rW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function nW(t,e,n){var i=Gr({},n),a={};return e!=null&&Object.assign(a,e),t!=null&&Object.assign(a,t),Object.assign(a,i)}function oW(t){if(t!=null)try{return new URL(t),t}catch{throw new Error("Configuration: Could not parse user-provided export URL: '"+t+"'")}}function Tu(t,e,n){var i,a;return Gr(Gr({},_u(t,e,n)),{headers:nW(hu(t.headers),e.headers,n.headers),url:(a=(i=oW(t.url))!==null&&i!==void 0?i:e.url)!==null&&a!==void 0?a:n.url})}function vu(t,e){return Gr(Gr({},Su()),{headers:t,url:"http://localhost:4318/"+e})}var Gr,ed=m(()=>{"use strict";Qp();Zp();Gr=function(){return Gr=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Gr.apply(this,arguments)}});function PL(t){var e,n=(e=process.env[t])===null||e===void 0?void 0:e.trim();if(n!=null&&n!==""){var i=Number(n);if(!Number.isNaN(i)&&Number.isFinite(i)&&i>0)return i;g.warn("Configuration: "+t+" is invalid, expected number greater than 0 (actual: "+n+")")}}function iW(t){var e=PL("OTEL_EXPORTER_OTLP_"+t+"_TIMEOUT"),n=PL("OTEL_EXPORTER_OTLP_TIMEOUT");return e??n}function bL(t){var e,n=(e=process.env[t])===null||e===void 0?void 0:e.trim();if(n!==""){if(n==null||n==="none"||n==="gzip")return n;g.warn("Configuration: "+t+" is invalid, expected 'none' or 'gzip' (actual: '"+n+"')")}}function aW(t){var e=bL("OTEL_EXPORTER_OTLP_"+t+"_COMPRESSION"),n=bL("OTEL_EXPORTER_OTLP_COMPRESSION");return e??n}function mu(t){return{timeoutMillis:iW(t),compression:aW(t)}}var td=m(()=>{"use strict";b()});function sW(t){var e,n,i=(e=process.env["OTEL_EXPORTER_OTLP_"+t+"_HEADERS"])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_HEADERS)===null||n===void 0?void 0:n.trim(),s=gn.parseKeyPairsIntoRecord(i),o=gn.parseKeyPairsIntoRecord(a);if(!(Object.keys(s).length===0&&Object.keys(o).length===0))return Object.assign({},gn.parseKeyPairsIntoRecord(a),gn.parseKeyPairsIntoRecord(i))}function uW(t){try{var e=new URL(t);return e.toString()}catch{g.warn("Configuration: Could not parse environment-provided export URL: '"+t+"', falling back to undefined");return}}function lW(t,e){try{new URL(t)}catch{g.warn("Configuration: Could not parse environment-provided export URL: '"+t+"', falling back to undefined");return}t.endsWith("/")||(t=t+"/"),t+=e;try{new URL(t)}catch{g.warn("Configuration: Provided URL appended with '"+e+"' is not a valid URL, using 'undefined' instead of '"+t+"'");return}return t}function cW(t){var e,n=(e=process.env.OTEL_EXPORTER_OTLP_ENDPOINT)===null||e===void 0?void 0:e.trim();if(!(n==null||n===""))return lW(n,t)}function fW(t){var e,n=(e=process.env["OTEL_EXPORTER_OTLP_"+t+"_ENDPOINT"])===null||e===void 0?void 0:e.trim();if(!(n==null||n===""))return uW(n)}function ML(t,e){var n;return yu(yu({},mu(t)),{url:(n=fW(t))!==null&&n!==void 0?n:cW(e),headers:sW(t)})}var yu,xL=m(()=>{"use strict";K();b();td();yu=function(){return yu=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},yu.apply(this,arguments)}});var pW,Ei,LL=m(()=>{"use strict";lu();b();OL();di();Jp();RL();ed();xL();pW=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ei=function(t){pW(e,t);function e(n,i,a,s,o){n===void 0&&(n={});var r=t.call(this,n)||this,u=Tu({url:n.url,headers:n.headers,concurrencyLimit:n.concurrencyLimit,timeoutMillis:n.timeoutMillis,compression:n.compression},ML(s,o),vu(a,o));return r._timeoutMillis=u.timeoutMillis,r._concurrencyLimit=u.concurrencyLimit,n.metadata&&g.warn("Metadata cannot be set when using http"),r._serializer=i,r._transport=Eu({transport:AL({agentOptions:NL(n),compression:u.compression,headers:u.headers,url:u.url})}),r}return e.prototype.send=function(n,i,a){var s=this;if(this._shutdownOnce.isCalled){g.debug("Shutdown already started. Cannot send objects");return}var o=this._serializer.serializeRequest(n);if(o==null){a(new Error("Could not serialize message"));return}var r=this._transport.send(o,this._timeoutMillis).then(function(l){l.status==="success"?i():l.status==="failure"&&l.error?a(l.error):l.status==="retryable"?a(new Rt("Export failed with retryable status")):a(new Rt("Export failed with unknown error"))},a);this._sendingPromises.push(r);var u=function(){var l=s._sendingPromises.indexOf(r);s._sendingPromises.splice(l,1)};r.then(u,u)},e.prototype.onShutdown=function(){},e}(In)});var _i,IL=m(()=>{"use strict";(function(t){t.NONE="none",t.GZIP="gzip"})(_i||(_i={}))});var CL=m(()=>{"use strict";LL();IL()});function wL(t){return new EW(t)}var dW,EW,UL=m(()=>{"use strict";b();zp();dW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},EW=function(){function t(e){this._parameters=e}return t.prototype.send=function(e,n){var i=this;return new Promise(function(a){var s=new XMLHttpRequest;s.timeout=n,s.open("POST",i._parameters.url),Object.entries(i._parameters.headers).forEach(function(o){var r=dW(o,2),u=r[0],l=r[1];s.setRequestHeader(u,l)}),s.ontimeout=function(o){a({status:"failure",error:new Error("XHR request timed out")})},s.onreadystatechange=function(){s.status>=200&&s.status<=299?(g.debug("XHR success"),a({status:"success"})):s.status&&cu(s.status)?a({status:"retryable",retryInMillis:fu(s.getResponseHeader("Retry-After"))}):s.status!==0&&a({status:"failure",error:new Error("XHR request failed with non-retryable status")})},s.onabort=function(){a({status:"failure",error:new Error("XHR request aborted")})},s.onerror=function(){a({status:"failure",error:new Error("XHR request errored")})},s.send(new Blob([e],{type:i._parameters.headers["Content-Type"]}))})},t.prototype.shutdown=function(){},t}()});function DL(t){return new _W(t)}var _W,VL=m(()=>{"use strict";b();_W=function(){function t(e){this._params=e}return t.prototype.send=function(e){var n=this;return new Promise(function(i){navigator.sendBeacon(n._params.url,new Blob([e],{type:n._params.blobType}))?(g.debug("SendBeacon success"),i({status:"success"})):i({status:"failure",error:new Error("SendBeacon failed")})})},t.prototype.shutdown=function(){},t}()});var SW,rd,BL=m(()=>{"use strict";lu();di();b();UL();VL();Jp();ed();SW=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),rd=function(t){SW(e,t);function e(n,i,a,s){n===void 0&&(n={});var o=t.call(this,n)||this;o._serializer=i;var r=!!n.headers||typeof navigator.sendBeacon!="function",u=Tu({url:n.url,timeoutMillis:n.timeoutMillis,headers:n.headers,concurrencyLimit:n.concurrencyLimit},{},vu(a,s));return o._timeoutMillis=u.timeoutMillis,o._concurrencyLimit=u.concurrencyLimit,r?o._transport=Eu({transport:wL({headers:u.headers,url:u.url})}):o._transport=DL({url:u.url,blobType:u.headers["Content-Type"]}),o}return e.prototype.onShutdown=function(){},e.prototype.send=function(n,i,a){var s=this;if(this._shutdownOnce.isCalled){g.debug("Shutdown already started. Cannot send objects");return}var o=this._serializer.serializeRequest(n);if(o==null){a(new Error("Could not serialize message"));return}var r=this._transport.send(o,this._timeoutMillis).then(function(l){l.status==="success"?i():l.status==="failure"&&l.error?a(l.error):l.status==="retryable"?a(new Rt("Export failed with retryable status")):a(new Rt("Export failed with unknown error"))},a);this._sendingPromises.push(r);var u=function(){var l=s._sendingPromises.indexOf(r);s._sendingPromises.splice(l,1)};r.then(u,u)},e}(In)});var GL=m(()=>{"use strict";BL()});var kL=m(()=>{"use strict";CL();GL()});var Au={};nt(Au,{CompressionAlgorithm:()=>_i,OTLPExporterBase:()=>In,OTLPExporterBrowserBase:()=>rd,OTLPExporterError:()=>Rt,OTLPExporterNodeBase:()=>Ei,getSharedConfigurationDefaults:()=>Su,getSharedConfigurationFromEnvironment:()=>mu,mergeOtlpSharedConfigurationWithDefaults:()=>_u,validateAndNormalizeHeaders:()=>hu});var Si=m(()=>{"use strict";kL();lu();di();Zp();Qp();td()});function Ou(t){var e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function nd(t){var e=Number(BigInt.asUintN(32,t)),n=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:n}}function gu(t){var e=Ou(t);return nd(e)}function od(t){var e=Ou(t);return e.toString()}function HL(t){return t}function FL(t){if(t!==void 0)return ir(t)}function pr(t){var e,n;if(t===void 0)return TW;var i=(e=t.useLongBits)!==null&&e!==void 0?e:!0,a=(n=t.useHex)!==null&&n!==void 0?n:!1;return{encodeHrTime:i?gu:hW,encodeSpanContext:a?HL:ir,encodeOptionalSpanContext:a?HL:FL}}var hW,TW,hi=m(()=>{"use strict";K();hW=typeof BigInt<"u"?od:gs;TW={encodeHrTime:gu,encodeSpanContext:ir,encodeOptionalSpanContext:FL}});var Nu,YL=m(()=>{"use strict";(function(t){t[t.SPAN_KIND_UNSPECIFIED=0]="SPAN_KIND_UNSPECIFIED",t[t.SPAN_KIND_INTERNAL=1]="SPAN_KIND_INTERNAL",t[t.SPAN_KIND_SERVER=2]="SPAN_KIND_SERVER",t[t.SPAN_KIND_CLIENT=3]="SPAN_KIND_CLIENT",t[t.SPAN_KIND_PRODUCER=4]="SPAN_KIND_PRODUCER",t[t.SPAN_KIND_CONSUMER=5]="SPAN_KIND_CONSUMER"})(Nu||(Nu={}))});function Cn(t){return{name:t.name,version:t.version}}function Pt(t){return Object.keys(t).map(function(e){return Ru(e,t[e])})}function Ru(t,e){return{key:t,value:Pu(e)}}function Pu(t){var e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(Pu)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(function(n){var i=vW(n,2),a=i[0],s=i[1];return Ru(a,s)})}}:{}}var vW,wn=m(()=>{"use strict";vW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function qL(t,e){var n,i=t.spanContext(),a=t.status;return{traceId:e.encodeSpanContext(i.traceId),spanId:e.encodeSpanContext(i.spanId),parentSpanId:e.encodeOptionalSpanContext(t.parentSpanId),traceState:(n=i.traceState)===null||n===void 0?void 0:n.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:Pt(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(function(s){return yW(s,e)}),droppedEventsCount:t.droppedEventsCount,status:{code:a.code,message:a.message},links:t.links.map(function(s){return mW(s,e)}),droppedLinksCount:t.droppedLinksCount}}function mW(t,e){var n;return{attributes:t.attributes?Pt(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:(n=t.context.traceState)===null||n===void 0?void 0:n.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function yW(t,e){return{attributes:t.attributes?Pt(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}var jL=m(()=>{"use strict";wn()});function Un(t){return{attributes:Pt(t.attributes),droppedAttributesCount:0}}var bu=m(()=>{"use strict";wn()});function Dn(t,e){var n=pr(e);return{resourceSpans:NW(t,n)}}function gW(t){var e,n,i=new Map;try{for(var a=AW(t),s=a.next();!s.done;s=a.next()){var o=s.value,r=i.get(o.resource);r||(r=new Map,i.set(o.resource,r));var u=o.instrumentationLibrary.name+"@"+(o.instrumentationLibrary.version||"")+":"+(o.instrumentationLibrary.schemaUrl||""),l=r.get(u);l||(l=[],r.set(u,l)),l.push(o)}}catch(c){e={error:c}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function NW(t,e){for(var n=gW(t),i=[],a=n.entries(),s=a.next();!s.done;){for(var o=OW(s.value,2),r=o[0],u=o[1],l=[],c=u.values(),p=c.next();!p.done;){var _=p.value;if(_.length>0){var f=_.map(function(v){return qL(v,e)});l.push({scope:Cn(_[0].instrumentationLibrary),spans:f,schemaUrl:_[0].instrumentationLibrary.schemaUrl})}p=c.next()}var S={resource:Un(r),scopeSpans:l,schemaUrl:void 0};i.push(S),s=a.next()}return i}var AW,OW,Mu=m(()=>{"use strict";jL();hi();wn();bu();AW=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},OW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function KL(t,e){var n=pr(e);return{resource:Un(t.resource),schemaUrl:void 0,scopeMetrics:RW(t.scopeMetrics,n)}}function RW(t,e){return Array.from(t.map(function(n){return{scope:Cn(n.scope),metrics:n.metrics.map(function(i){return PW(i,e)}),schemaUrl:n.scope.schemaUrl}}))}function PW(t,e){var n={name:t.descriptor.name,description:t.descriptor.description,unit:t.descriptor.unit},i=LW(t.aggregationTemporality);switch(t.dataPointType){case Ne.SUM:n.sum={aggregationTemporality:i,isMonotonic:t.isMonotonic,dataPoints:$L(t,e)};break;case Ne.GAUGE:n.gauge={dataPoints:$L(t,e)};break;case Ne.HISTOGRAM:n.histogram={aggregationTemporality:i,dataPoints:MW(t,e)};break;case Ne.EXPONENTIAL_HISTOGRAM:n.exponentialHistogram={aggregationTemporality:i,dataPoints:xW(t,e)};break}return n}function bW(t,e,n){var i={attributes:Pt(t.attributes),startTimeUnixNano:n.encodeHrTime(t.startTime),timeUnixNano:n.encodeHrTime(t.endTime)};switch(e){case pt.INT:i.asInt=t.value;break;case pt.DOUBLE:i.asDouble=t.value;break}return i}function $L(t,e){return t.dataPoints.map(function(n){return bW(n,t.descriptor.valueType,e)})}function MW(t,e){return t.dataPoints.map(function(n){var i=n.value;return{attributes:Pt(n.attributes),bucketCounts:i.buckets.counts,explicitBounds:i.buckets.boundaries,count:i.count,sum:i.sum,min:i.min,max:i.max,startTimeUnixNano:e.encodeHrTime(n.startTime),timeUnixNano:e.encodeHrTime(n.endTime)}})}function xW(t,e){return t.dataPoints.map(function(n){var i=n.value;return{attributes:Pt(n.attributes),count:i.count,min:i.min,max:i.max,sum:i.sum,positive:{offset:i.positive.offset,bucketCounts:i.positive.bucketCounts},negative:{offset:i.negative.offset,bucketCounts:i.negative.bucketCounts},scale:i.scale,zeroCount:i.zeroCount,startTimeUnixNano:e.encodeHrTime(n.startTime),timeUnixNano:e.encodeHrTime(n.endTime)}})}function LW(t){switch(t){case ge.DELTA:return 1;case ge.CUMULATIVE:return 2}}var WL=m(()=>{"use strict";b();xn();hi();wn();bu()});function Vn(t,e){return{resourceMetrics:t.map(function(n){return KL(n,e)})}}var xu=m(()=>{"use strict";WL()});function Bn(t,e){var n=pr(e);return{resourceLogs:wW(t,n)}}function CW(t){var e,n,i=new Map;try{for(var a=IW(t),s=a.next();!s.done;s=a.next()){var o=s.value,r=o.resource,u=o.instrumentationScope,l=u.name,c=u.version,p=c===void 0?"":c,_=u.schemaUrl,f=_===void 0?"":_,S=i.get(r);S||(S=new Map,i.set(r,S));var v=l+"@"+p+":"+f,T=S.get(v);T||(T=[],S.set(v,T)),T.push(o)}}catch(A){e={error:A}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function wW(t,e){var n=CW(t);return Array.from(n,function(i){var a=zL(i,2),s=a[0],o=a[1];return{resource:Un(s),scopeLogs:Array.from(o,function(r){var u=zL(r,2),l=u[1];return{scope:Cn(l[0].instrumentationScope),logRecords:l.map(function(c){return UW(c,e)}),schemaUrl:l[0].instrumentationScope.schemaUrl}}),schemaUrl:void 0}})}function UW(t,e){var n,i,a;return{timeUnixNano:e.encodeHrTime(t.hrTime),observedTimeUnixNano:e.encodeHrTime(t.hrTimeObserved),severityNumber:t.severityNumber,severityText:t.severityText,body:Pu(t.body),attributes:DW(t.attributes),droppedAttributesCount:t.droppedAttributesCount,flags:(n=t.spanContext)===null||n===void 0?void 0:n.traceFlags,traceId:e.encodeOptionalSpanContext((i=t.spanContext)===null||i===void 0?void 0:i.traceId),spanId:e.encodeOptionalSpanContext((a=t.spanContext)===null||a===void 0?void 0:a.spanId)}}function DW(t){return Object.keys(t).map(function(e){return Ru(e,t[e])})}var IW,zL,Lu=m(()=>{"use strict";hi();wn();bu();IW=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},zL=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});var JL=h((pue,XL)=>{"use strict";var I=IU(),y=I.Reader,V=I.Writer,E=I.util,d=I.roots.default||(I.roots.default={});d.opentelemetry=function(){var t={};return t.proto=function(){var e={};return e.common=function(){var n={};return n.v1=function(){var i={};return i.AnyValue=function(){function a(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}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 s;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(s=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){return u||(u=V.create()),r.stringValue!=null&&Object.hasOwnProperty.call(r,"stringValue")&&u.uint32(10).string(r.stringValue),r.boolValue!=null&&Object.hasOwnProperty.call(r,"boolValue")&&u.uint32(16).bool(r.boolValue),r.intValue!=null&&Object.hasOwnProperty.call(r,"intValue")&&u.uint32(24).int64(r.intValue),r.doubleValue!=null&&Object.hasOwnProperty.call(r,"doubleValue")&&u.uint32(33).double(r.doubleValue),r.arrayValue!=null&&Object.hasOwnProperty.call(r,"arrayValue")&&d.opentelemetry.proto.common.v1.ArrayValue.encode(r.arrayValue,u.uint32(42).fork()).ldelim(),r.kvlistValue!=null&&Object.hasOwnProperty.call(r,"kvlistValue")&&d.opentelemetry.proto.common.v1.KeyValueList.encode(r.kvlistValue,u.uint32(50).fork()).ldelim(),r.bytesValue!=null&&Object.hasOwnProperty.call(r,"bytesValue")&&u.uint32(58).bytes(r.bytesValue),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.common.v1.AnyValue;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.stringValue=r.string();break}case 2:{c.boolValue=r.bool();break}case 3:{c.intValue=r.int64();break}case 4:{c.doubleValue=r.double();break}case 5:{c.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.decode(r,r.uint32());break}case 6:{c.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.decode(r,r.uint32());break}case 7:{c.bytesValue=r.bytes();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.stringValue!=null&&r.hasOwnProperty("stringValue")&&(u.value=1,!E.isString(r.stringValue)))return"stringValue: string expected";if(r.boolValue!=null&&r.hasOwnProperty("boolValue")){if(u.value===1)return"value: multiple values";if(u.value=1,typeof r.boolValue!="boolean")return"boolValue: boolean expected"}if(r.intValue!=null&&r.hasOwnProperty("intValue")){if(u.value===1)return"value: multiple values";if(u.value=1,!E.isInteger(r.intValue)&&!(r.intValue&&E.isInteger(r.intValue.low)&&E.isInteger(r.intValue.high)))return"intValue: integer|Long expected"}if(r.doubleValue!=null&&r.hasOwnProperty("doubleValue")){if(u.value===1)return"value: multiple values";if(u.value=1,typeof r.doubleValue!="number")return"doubleValue: number expected"}if(r.arrayValue!=null&&r.hasOwnProperty("arrayValue")){if(u.value===1)return"value: multiple values";u.value=1;{var l=d.opentelemetry.proto.common.v1.ArrayValue.verify(r.arrayValue);if(l)return"arrayValue."+l}}if(r.kvlistValue!=null&&r.hasOwnProperty("kvlistValue")){if(u.value===1)return"value: multiple values";u.value=1;{var l=d.opentelemetry.proto.common.v1.KeyValueList.verify(r.kvlistValue);if(l)return"kvlistValue."+l}}if(r.bytesValue!=null&&r.hasOwnProperty("bytesValue")){if(u.value===1)return"value: multiple values";if(u.value=1,!(r.bytesValue&&typeof r.bytesValue.length=="number"||E.isString(r.bytesValue)))return"bytesValue: buffer expected"}return null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.common.v1.AnyValue)return r;var u=new d.opentelemetry.proto.common.v1.AnyValue;if(r.stringValue!=null&&(u.stringValue=String(r.stringValue)),r.boolValue!=null&&(u.boolValue=!!r.boolValue),r.intValue!=null&&(E.Long?(u.intValue=E.Long.fromValue(r.intValue)).unsigned=!1:typeof r.intValue=="string"?u.intValue=parseInt(r.intValue,10):typeof r.intValue=="number"?u.intValue=r.intValue:typeof r.intValue=="object"&&(u.intValue=new E.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber())),r.doubleValue!=null&&(u.doubleValue=Number(r.doubleValue)),r.arrayValue!=null){if(typeof r.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");u.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.fromObject(r.arrayValue)}if(r.kvlistValue!=null){if(typeof r.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");u.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.fromObject(r.kvlistValue)}return r.bytesValue!=null&&(typeof r.bytesValue=="string"?E.base64.decode(r.bytesValue,u.bytesValue=E.newBuffer(E.base64.length(r.bytesValue)),0):r.bytesValue.length>=0&&(u.bytesValue=r.bytesValue)),u},a.toObject=function(r,u){u||(u={});var l={};return r.stringValue!=null&&r.hasOwnProperty("stringValue")&&(l.stringValue=r.stringValue,u.oneofs&&(l.value="stringValue")),r.boolValue!=null&&r.hasOwnProperty("boolValue")&&(l.boolValue=r.boolValue,u.oneofs&&(l.value="boolValue")),r.intValue!=null&&r.hasOwnProperty("intValue")&&(typeof r.intValue=="number"?l.intValue=u.longs===String?String(r.intValue):r.intValue:l.intValue=u.longs===String?E.Long.prototype.toString.call(r.intValue):u.longs===Number?new E.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber():r.intValue,u.oneofs&&(l.value="intValue")),r.doubleValue!=null&&r.hasOwnProperty("doubleValue")&&(l.doubleValue=u.json&&!isFinite(r.doubleValue)?String(r.doubleValue):r.doubleValue,u.oneofs&&(l.value="doubleValue")),r.arrayValue!=null&&r.hasOwnProperty("arrayValue")&&(l.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.toObject(r.arrayValue,u),u.oneofs&&(l.value="arrayValue")),r.kvlistValue!=null&&r.hasOwnProperty("kvlistValue")&&(l.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.toObject(r.kvlistValue,u),u.oneofs&&(l.value="kvlistValue")),r.bytesValue!=null&&r.hasOwnProperty("bytesValue")&&(l.bytesValue=u.bytes===String?E.base64.encode(r.bytesValue,0,r.bytesValue.length):u.bytes===Array?Array.prototype.slice.call(r.bytesValue):r.bytesValue,u.oneofs&&(l.value="bytesValue")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.common.v1.AnyValue"},a}(),i.ArrayValue=function(){function a(s){if(this.values=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.values=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.values!=null&&o.values.length)for(var u=0;u<o.values.length;++u)d.opentelemetry.proto.common.v1.AnyValue.encode(o.values[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.ArrayValue;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.values&&l.values.length||(l.values=[]),l.values.push(d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.values!=null&&o.hasOwnProperty("values")){if(!Array.isArray(o.values))return"values: array expected";for(var r=0;r<o.values.length;++r){var u=d.opentelemetry.proto.common.v1.AnyValue.verify(o.values[r]);if(u)return"values."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.ArrayValue)return o;var r=new d.opentelemetry.proto.common.v1.ArrayValue;if(o.values){if(!Array.isArray(o.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");r.values=[];for(var u=0;u<o.values.length;++u){if(typeof o.values[u]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");r.values[u]=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.values[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.values=[]),o.values&&o.values.length){u.values=[];for(var l=0;l<o.values.length;++l)u.values[l]=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.values[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.ArrayValue"},a}(),i.KeyValueList=function(){function a(s){if(this.values=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.values=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.values!=null&&o.values.length)for(var u=0;u<o.values.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.values[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.KeyValueList;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.values&&l.values.length||(l.values=[]),l.values.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.values!=null&&o.hasOwnProperty("values")){if(!Array.isArray(o.values))return"values: array expected";for(var r=0;r<o.values.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.values[r]);if(u)return"values."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.KeyValueList)return o;var r=new d.opentelemetry.proto.common.v1.KeyValueList;if(o.values){if(!Array.isArray(o.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");r.values=[];for(var u=0;u<o.values.length;++u){if(typeof o.values[u]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");r.values[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.values[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.values=[]),o.values&&o.values.length){u.values=[];for(var l=0;l<o.values.length;++l)u.values[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.values[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.KeyValueList"},a}(),i.KeyValue=function(){function a(s){if(s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.key=null,a.prototype.value=null,a.create=function(o){return new a(o)},a.encode=function(o,r){return r||(r=V.create()),o.key!=null&&Object.hasOwnProperty.call(o,"key")&&r.uint32(10).string(o.key),o.value!=null&&Object.hasOwnProperty.call(o,"value")&&d.opentelemetry.proto.common.v1.AnyValue.encode(o.value,r.uint32(18).fork()).ldelim(),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.KeyValue;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.key=o.string();break}case 2:{l.value=d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32());break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.key!=null&&o.hasOwnProperty("key")&&!E.isString(o.key))return"key: string expected";if(o.value!=null&&o.hasOwnProperty("value")){var r=d.opentelemetry.proto.common.v1.AnyValue.verify(o.value);if(r)return"value."+r}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.KeyValue)return o;var r=new d.opentelemetry.proto.common.v1.KeyValue;if(o.key!=null&&(r.key=String(o.key)),o.value!=null){if(typeof o.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");r.value=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.value)}return r},a.toObject=function(o,r){r||(r={});var u={};return r.defaults&&(u.key="",u.value=null),o.key!=null&&o.hasOwnProperty("key")&&(u.key=o.key),o.value!=null&&o.hasOwnProperty("value")&&(u.value=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.value,r)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.KeyValue"},a}(),i.InstrumentationScope=function(){function a(s){if(this.attributes=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.name=null,a.prototype.version=null,a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&r.uint32(10).string(o.name),o.version!=null&&Object.hasOwnProperty.call(o,"version")&&r.uint32(18).string(o.version),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(26).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(32).uint32(o.droppedAttributesCount),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.InstrumentationScope;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.name=o.string();break}case 2:{l.version=o.string();break}case 3:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 4:{l.droppedAttributesCount=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.name!=null&&o.hasOwnProperty("name")&&!E.isString(o.name))return"name: string expected";if(o.version!=null&&o.hasOwnProperty("version")&&!E.isString(o.version))return"version: string expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.InstrumentationScope)return o;var r=new d.opentelemetry.proto.common.v1.InstrumentationScope;if(o.name!=null&&(r.name=String(o.name)),o.version!=null&&(r.version=String(o.version)),o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults&&(u.name="",u.version="",u.droppedAttributesCount=0),o.name!=null&&o.hasOwnProperty("name")&&(u.name=o.name),o.version!=null&&o.hasOwnProperty("version")&&(u.version=o.version),o.attributes&&o.attributes.length){u.attributes=[];for(var l=0;l<o.attributes.length;++l)u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[l],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.InstrumentationScope"},a}(),i}(),n}(),e.resource=function(){var n={};return n.v1=function(){var i={};return i.Resource=function(){function a(s){if(this.attributes=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(10).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(16).uint32(o.droppedAttributesCount),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.resource.v1.Resource;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 2:{l.droppedAttributesCount=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.resource.v1.Resource)return o;var r=new d.opentelemetry.proto.resource.v1.Resource;if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults&&(u.droppedAttributesCount=0),o.attributes&&o.attributes.length){u.attributes=[];for(var l=0;l<o.attributes.length;++l)u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[l],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.resource.v1.Resource"},a}(),i}(),n}(),e.trace=function(){var n={};return n.v1=function(){var i={};return i.TracesData=function(){function a(s){if(this.resourceSpans=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resourceSpans=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceSpans!=null&&o.resourceSpans.length)for(var u=0;u<o.resourceSpans.length;++u)d.opentelemetry.proto.trace.v1.ResourceSpans.encode(o.resourceSpans[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.TracesData;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceSpans&&l.resourceSpans.length||(l.resourceSpans=[]),l.resourceSpans.push(d.opentelemetry.proto.trace.v1.ResourceSpans.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceSpans!=null&&o.hasOwnProperty("resourceSpans")){if(!Array.isArray(o.resourceSpans))return"resourceSpans: array expected";for(var r=0;r<o.resourceSpans.length;++r){var u=d.opentelemetry.proto.trace.v1.ResourceSpans.verify(o.resourceSpans[r]);if(u)return"resourceSpans."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.TracesData)return o;var r=new d.opentelemetry.proto.trace.v1.TracesData;if(o.resourceSpans){if(!Array.isArray(o.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");r.resourceSpans=[];for(var u=0;u<o.resourceSpans.length;++u){if(typeof o.resourceSpans[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");r.resourceSpans[u]=d.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(o.resourceSpans[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceSpans=[]),o.resourceSpans&&o.resourceSpans.length){u.resourceSpans=[];for(var l=0;l<o.resourceSpans.length;++l)u.resourceSpans[l]=d.opentelemetry.proto.trace.v1.ResourceSpans.toObject(o.resourceSpans[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.TracesData"},a}(),i.ResourceSpans=function(){function a(s){if(this.scopeSpans=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resource=null,a.prototype.scopeSpans=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeSpans!=null&&o.scopeSpans.length)for(var u=0;u<o.scopeSpans.length;++u)d.opentelemetry.proto.trace.v1.ScopeSpans.encode(o.scopeSpans[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.ResourceSpans;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeSpans&&l.scopeSpans.length||(l.scopeSpans=[]),l.scopeSpans.push(d.opentelemetry.proto.trace.v1.ScopeSpans.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeSpans!=null&&o.hasOwnProperty("scopeSpans")){if(!Array.isArray(o.scopeSpans))return"scopeSpans: array expected";for(var u=0;u<o.scopeSpans.length;++u){var r=d.opentelemetry.proto.trace.v1.ScopeSpans.verify(o.scopeSpans[u]);if(r)return"scopeSpans."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.ResourceSpans)return o;var r=new d.opentelemetry.proto.trace.v1.ResourceSpans;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeSpans){if(!Array.isArray(o.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");r.scopeSpans=[];for(var u=0;u<o.scopeSpans.length;++u){if(typeof o.scopeSpans[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");r.scopeSpans[u]=d.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(o.scopeSpans[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeSpans=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(u.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeSpans&&o.scopeSpans.length){u.scopeSpans=[];for(var l=0;l<o.scopeSpans.length;++l)u.scopeSpans[l]=d.opentelemetry.proto.trace.v1.ScopeSpans.toObject(o.scopeSpans[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.ResourceSpans"},a}(),i.ScopeSpans=function(){function a(s){if(this.spans=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.scope=null,a.prototype.spans=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.spans!=null&&o.spans.length)for(var u=0;u<o.spans.length;++u)d.opentelemetry.proto.trace.v1.Span.encode(o.spans[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.ScopeSpans;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.spans&&l.spans.length||(l.spans=[]),l.spans.push(d.opentelemetry.proto.trace.v1.Span.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.spans!=null&&o.hasOwnProperty("spans")){if(!Array.isArray(o.spans))return"spans: array expected";for(var u=0;u<o.spans.length;++u){var r=d.opentelemetry.proto.trace.v1.Span.verify(o.spans[u]);if(r)return"spans."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.ScopeSpans)return o;var r=new d.opentelemetry.proto.trace.v1.ScopeSpans;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.spans){if(!Array.isArray(o.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");r.spans=[];for(var u=0;u<o.spans.length;++u){if(typeof o.spans[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");r.spans[u]=d.opentelemetry.proto.trace.v1.Span.fromObject(o.spans[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.spans=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(u.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.spans&&o.spans.length){u.spans=[];for(var l=0;l<o.spans.length;++l)u.spans[l]=d.opentelemetry.proto.trace.v1.Span.toObject(o.spans[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.ScopeSpans"},a}(),i.Span=function(){function a(s){if(this.attributes=[],this.events=[],this.links=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}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=E.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.events=E.emptyArray,a.prototype.droppedEventsCount=null,a.prototype.links=E.emptyArray,a.prototype.droppedLinksCount=null,a.prototype.status=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.traceId!=null&&Object.hasOwnProperty.call(o,"traceId")&&r.uint32(10).bytes(o.traceId),o.spanId!=null&&Object.hasOwnProperty.call(o,"spanId")&&r.uint32(18).bytes(o.spanId),o.traceState!=null&&Object.hasOwnProperty.call(o,"traceState")&&r.uint32(26).string(o.traceState),o.parentSpanId!=null&&Object.hasOwnProperty.call(o,"parentSpanId")&&r.uint32(34).bytes(o.parentSpanId),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&r.uint32(42).string(o.name),o.kind!=null&&Object.hasOwnProperty.call(o,"kind")&&r.uint32(48).int32(o.kind),o.startTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"startTimeUnixNano")&&r.uint32(57).fixed64(o.startTimeUnixNano),o.endTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"endTimeUnixNano")&&r.uint32(65).fixed64(o.endTimeUnixNano),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(74).fork()).ldelim();if(o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(80).uint32(o.droppedAttributesCount),o.events!=null&&o.events.length)for(var u=0;u<o.events.length;++u)d.opentelemetry.proto.trace.v1.Span.Event.encode(o.events[u],r.uint32(90).fork()).ldelim();if(o.droppedEventsCount!=null&&Object.hasOwnProperty.call(o,"droppedEventsCount")&&r.uint32(96).uint32(o.droppedEventsCount),o.links!=null&&o.links.length)for(var u=0;u<o.links.length;++u)d.opentelemetry.proto.trace.v1.Span.Link.encode(o.links[u],r.uint32(106).fork()).ldelim();return o.droppedLinksCount!=null&&Object.hasOwnProperty.call(o,"droppedLinksCount")&&r.uint32(112).uint32(o.droppedLinksCount),o.status!=null&&Object.hasOwnProperty.call(o,"status")&&d.opentelemetry.proto.trace.v1.Status.encode(o.status,r.uint32(122).fork()).ldelim(),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.Span;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.traceId=o.bytes();break}case 2:{l.spanId=o.bytes();break}case 3:{l.traceState=o.string();break}case 4:{l.parentSpanId=o.bytes();break}case 5:{l.name=o.string();break}case 6:{l.kind=o.int32();break}case 7:{l.startTimeUnixNano=o.fixed64();break}case 8:{l.endTimeUnixNano=o.fixed64();break}case 9:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 10:{l.droppedAttributesCount=o.uint32();break}case 11:{l.events&&l.events.length||(l.events=[]),l.events.push(d.opentelemetry.proto.trace.v1.Span.Event.decode(o,o.uint32()));break}case 12:{l.droppedEventsCount=o.uint32();break}case 13:{l.links&&l.links.length||(l.links=[]),l.links.push(d.opentelemetry.proto.trace.v1.Span.Link.decode(o,o.uint32()));break}case 14:{l.droppedLinksCount=o.uint32();break}case 15:{l.status=d.opentelemetry.proto.trace.v1.Status.decode(o,o.uint32());break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.traceId!=null&&o.hasOwnProperty("traceId")&&!(o.traceId&&typeof o.traceId.length=="number"||E.isString(o.traceId)))return"traceId: buffer expected";if(o.spanId!=null&&o.hasOwnProperty("spanId")&&!(o.spanId&&typeof o.spanId.length=="number"||E.isString(o.spanId)))return"spanId: buffer expected";if(o.traceState!=null&&o.hasOwnProperty("traceState")&&!E.isString(o.traceState))return"traceState: string expected";if(o.parentSpanId!=null&&o.hasOwnProperty("parentSpanId")&&!(o.parentSpanId&&typeof o.parentSpanId.length=="number"||E.isString(o.parentSpanId)))return"parentSpanId: buffer expected";if(o.name!=null&&o.hasOwnProperty("name")&&!E.isString(o.name))return"name: string expected";if(o.kind!=null&&o.hasOwnProperty("kind"))switch(o.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(o.startTimeUnixNano)&&!(o.startTimeUnixNano&&E.isInteger(o.startTimeUnixNano.low)&&E.isInteger(o.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(o.endTimeUnixNano!=null&&o.hasOwnProperty("endTimeUnixNano")&&!E.isInteger(o.endTimeUnixNano)&&!(o.endTimeUnixNano&&E.isInteger(o.endTimeUnixNano.low)&&E.isInteger(o.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}if(o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(o.events!=null&&o.hasOwnProperty("events")){if(!Array.isArray(o.events))return"events: array expected";for(var r=0;r<o.events.length;++r){var u=d.opentelemetry.proto.trace.v1.Span.Event.verify(o.events[r]);if(u)return"events."+u}}if(o.droppedEventsCount!=null&&o.hasOwnProperty("droppedEventsCount")&&!E.isInteger(o.droppedEventsCount))return"droppedEventsCount: integer expected";if(o.links!=null&&o.hasOwnProperty("links")){if(!Array.isArray(o.links))return"links: array expected";for(var r=0;r<o.links.length;++r){var u=d.opentelemetry.proto.trace.v1.Span.Link.verify(o.links[r]);if(u)return"links."+u}}if(o.droppedLinksCount!=null&&o.hasOwnProperty("droppedLinksCount")&&!E.isInteger(o.droppedLinksCount))return"droppedLinksCount: integer expected";if(o.status!=null&&o.hasOwnProperty("status")){var u=d.opentelemetry.proto.trace.v1.Status.verify(o.status);if(u)return"status."+u}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.Span)return o;var r=new d.opentelemetry.proto.trace.v1.Span;switch(o.traceId!=null&&(typeof o.traceId=="string"?E.base64.decode(o.traceId,r.traceId=E.newBuffer(E.base64.length(o.traceId)),0):o.traceId.length>=0&&(r.traceId=o.traceId)),o.spanId!=null&&(typeof o.spanId=="string"?E.base64.decode(o.spanId,r.spanId=E.newBuffer(E.base64.length(o.spanId)),0):o.spanId.length>=0&&(r.spanId=o.spanId)),o.traceState!=null&&(r.traceState=String(o.traceState)),o.parentSpanId!=null&&(typeof o.parentSpanId=="string"?E.base64.decode(o.parentSpanId,r.parentSpanId=E.newBuffer(E.base64.length(o.parentSpanId)),0):o.parentSpanId.length>=0&&(r.parentSpanId=o.parentSpanId)),o.name!=null&&(r.name=String(o.name)),o.kind){default:if(typeof o.kind=="number"){r.kind=o.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:r.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:r.kind=1;break;case"SPAN_KIND_SERVER":case 2:r.kind=2;break;case"SPAN_KIND_CLIENT":case 3:r.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:r.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:r.kind=5;break}if(o.startTimeUnixNano!=null&&(E.Long?(r.startTimeUnixNano=E.Long.fromValue(o.startTimeUnixNano)).unsigned=!1:typeof o.startTimeUnixNano=="string"?r.startTimeUnixNano=parseInt(o.startTimeUnixNano,10):typeof o.startTimeUnixNano=="number"?r.startTimeUnixNano=o.startTimeUnixNano:typeof o.startTimeUnixNano=="object"&&(r.startTimeUnixNano=new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber())),o.endTimeUnixNano!=null&&(E.Long?(r.endTimeUnixNano=E.Long.fromValue(o.endTimeUnixNano)).unsigned=!1:typeof o.endTimeUnixNano=="string"?r.endTimeUnixNano=parseInt(o.endTimeUnixNano,10):typeof o.endTimeUnixNano=="number"?r.endTimeUnixNano=o.endTimeUnixNano:typeof o.endTimeUnixNano=="object"&&(r.endTimeUnixNano=new E.LongBits(o.endTimeUnixNano.low>>>0,o.endTimeUnixNano.high>>>0).toNumber())),o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}if(o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),o.events){if(!Array.isArray(o.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");r.events=[];for(var u=0;u<o.events.length;++u){if(typeof o.events[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");r.events[u]=d.opentelemetry.proto.trace.v1.Span.Event.fromObject(o.events[u])}}if(o.droppedEventsCount!=null&&(r.droppedEventsCount=o.droppedEventsCount>>>0),o.links){if(!Array.isArray(o.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");r.links=[];for(var u=0;u<o.links.length;++u){if(typeof o.links[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");r.links[u]=d.opentelemetry.proto.trace.v1.Span.Link.fromObject(o.links[u])}}if(o.droppedLinksCount!=null&&(r.droppedLinksCount=o.droppedLinksCount>>>0),o.status!=null){if(typeof o.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");r.status=d.opentelemetry.proto.trace.v1.Status.fromObject(o.status)}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[],u.events=[],u.links=[]),r.defaults){if(r.bytes===String?u.traceId="":(u.traceId=[],r.bytes!==Array&&(u.traceId=E.newBuffer(u.traceId))),r.bytes===String?u.spanId="":(u.spanId=[],r.bytes!==Array&&(u.spanId=E.newBuffer(u.spanId))),u.traceState="",r.bytes===String?u.parentSpanId="":(u.parentSpanId=[],r.bytes!==Array&&(u.parentSpanId=E.newBuffer(u.parentSpanId))),u.name="",u.kind=r.enums===String?"SPAN_KIND_UNSPECIFIED":0,E.Long){var l=new E.Long(0,0,!1);u.startTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.startTimeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);u.endTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.endTimeUnixNano=r.longs===String?"0":0;u.droppedAttributesCount=0,u.droppedEventsCount=0,u.droppedLinksCount=0,u.status=null}if(o.traceId!=null&&o.hasOwnProperty("traceId")&&(u.traceId=r.bytes===String?E.base64.encode(o.traceId,0,o.traceId.length):r.bytes===Array?Array.prototype.slice.call(o.traceId):o.traceId),o.spanId!=null&&o.hasOwnProperty("spanId")&&(u.spanId=r.bytes===String?E.base64.encode(o.spanId,0,o.spanId.length):r.bytes===Array?Array.prototype.slice.call(o.spanId):o.spanId),o.traceState!=null&&o.hasOwnProperty("traceState")&&(u.traceState=o.traceState),o.parentSpanId!=null&&o.hasOwnProperty("parentSpanId")&&(u.parentSpanId=r.bytes===String?E.base64.encode(o.parentSpanId,0,o.parentSpanId.length):r.bytes===Array?Array.prototype.slice.call(o.parentSpanId):o.parentSpanId),o.name!=null&&o.hasOwnProperty("name")&&(u.name=o.name),o.kind!=null&&o.hasOwnProperty("kind")&&(u.kind=r.enums===String?d.opentelemetry.proto.trace.v1.Span.SpanKind[o.kind]===void 0?o.kind:d.opentelemetry.proto.trace.v1.Span.SpanKind[o.kind]:o.kind),o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&(typeof o.startTimeUnixNano=="number"?u.startTimeUnixNano=r.longs===String?String(o.startTimeUnixNano):o.startTimeUnixNano:u.startTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.startTimeUnixNano):r.longs===Number?new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber():o.startTimeUnixNano),o.endTimeUnixNano!=null&&o.hasOwnProperty("endTimeUnixNano")&&(typeof o.endTimeUnixNano=="number"?u.endTimeUnixNano=r.longs===String?String(o.endTimeUnixNano):o.endTimeUnixNano:u.endTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.endTimeUnixNano):r.longs===Number?new E.LongBits(o.endTimeUnixNano.low>>>0,o.endTimeUnixNano.high>>>0).toNumber():o.endTimeUnixNano),o.attributes&&o.attributes.length){u.attributes=[];for(var c=0;c<o.attributes.length;++c)u.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}if(o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),o.events&&o.events.length){u.events=[];for(var c=0;c<o.events.length;++c)u.events[c]=d.opentelemetry.proto.trace.v1.Span.Event.toObject(o.events[c],r)}if(o.droppedEventsCount!=null&&o.hasOwnProperty("droppedEventsCount")&&(u.droppedEventsCount=o.droppedEventsCount),o.links&&o.links.length){u.links=[];for(var c=0;c<o.links.length;++c)u.links[c]=d.opentelemetry.proto.trace.v1.Span.Link.toObject(o.links[c],r)}return o.droppedLinksCount!=null&&o.hasOwnProperty("droppedLinksCount")&&(u.droppedLinksCount=o.droppedLinksCount),o.status!=null&&o.hasOwnProperty("status")&&(u.status=d.opentelemetry.proto.trace.v1.Status.toObject(o.status,r)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.Span"},a.SpanKind=function(){var s={},o=Object.create(s);return o[s[0]="SPAN_KIND_UNSPECIFIED"]=0,o[s[1]="SPAN_KIND_INTERNAL"]=1,o[s[2]="SPAN_KIND_SERVER"]=2,o[s[3]="SPAN_KIND_CLIENT"]=3,o[s[4]="SPAN_KIND_PRODUCER"]=4,o[s[5]="SPAN_KIND_CONSUMER"]=5,o}(),a.Event=function(){function s(o){if(this.attributes=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.timeUnixNano=null,s.prototype.name=null,s.prototype.attributes=E.emptyArray,s.prototype.droppedAttributesCount=null,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(9).fixed64(r.timeUnixNano),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&u.uint32(18).string(r.name),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&u.uint32(32).uint32(r.droppedAttributesCount),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.trace.v1.Span.Event;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.timeUnixNano=r.fixed64();break}case 2:{c.name=r.string();break}case 3:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 4:{c.droppedAttributesCount=r.uint32();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.name!=null&&r.hasOwnProperty("name")&&!E.isString(r.name))return"name: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var u=0;u<r.attributes.length;++u){var l=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[u]);if(l)return"attributes."+l}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.trace.v1.Span.Event)return r;var u=new d.opentelemetry.proto.trace.v1.Span.Event;if(r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.name!=null&&(u.name=String(r.name)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}return r.droppedAttributesCount!=null&&(u.droppedAttributesCount=r.droppedAttributesCount>>>0),u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.attributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;l.name="",l.droppedAttributesCount=0}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.name!=null&&r.hasOwnProperty("name")&&(l.name=r.name),r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(l.droppedAttributesCount=r.droppedAttributesCount),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Event"},s}(),a.Link=function(){function s(o){if(this.attributes=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.traceId=null,s.prototype.spanId=null,s.prototype.traceState=null,s.prototype.attributes=E.emptyArray,s.prototype.droppedAttributesCount=null,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.traceId!=null&&Object.hasOwnProperty.call(r,"traceId")&&u.uint32(10).bytes(r.traceId),r.spanId!=null&&Object.hasOwnProperty.call(r,"spanId")&&u.uint32(18).bytes(r.spanId),r.traceState!=null&&Object.hasOwnProperty.call(r,"traceState")&&u.uint32(26).string(r.traceState),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(34).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&u.uint32(40).uint32(r.droppedAttributesCount),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.trace.v1.Span.Link;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.traceId=r.bytes();break}case 2:{c.spanId=r.bytes();break}case 3:{c.traceState=r.string();break}case 4:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 5:{c.droppedAttributesCount=r.uint32();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.traceId!=null&&r.hasOwnProperty("traceId")&&!(r.traceId&&typeof r.traceId.length=="number"||E.isString(r.traceId)))return"traceId: buffer expected";if(r.spanId!=null&&r.hasOwnProperty("spanId")&&!(r.spanId&&typeof r.spanId.length=="number"||E.isString(r.spanId)))return"spanId: buffer expected";if(r.traceState!=null&&r.hasOwnProperty("traceState")&&!E.isString(r.traceState))return"traceState: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var u=0;u<r.attributes.length;++u){var l=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[u]);if(l)return"attributes."+l}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.trace.v1.Span.Link)return r;var u=new d.opentelemetry.proto.trace.v1.Span.Link;if(r.traceId!=null&&(typeof r.traceId=="string"?E.base64.decode(r.traceId,u.traceId=E.newBuffer(E.base64.length(r.traceId)),0):r.traceId.length>=0&&(u.traceId=r.traceId)),r.spanId!=null&&(typeof r.spanId=="string"?E.base64.decode(r.spanId,u.spanId=E.newBuffer(E.base64.length(r.spanId)),0):r.spanId.length>=0&&(u.spanId=r.spanId)),r.traceState!=null&&(u.traceState=String(r.traceState)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}return r.droppedAttributesCount!=null&&(u.droppedAttributesCount=r.droppedAttributesCount>>>0),u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.attributes=[]),u.defaults&&(u.bytes===String?l.traceId="":(l.traceId=[],u.bytes!==Array&&(l.traceId=E.newBuffer(l.traceId))),u.bytes===String?l.spanId="":(l.spanId=[],u.bytes!==Array&&(l.spanId=E.newBuffer(l.spanId))),l.traceState="",l.droppedAttributesCount=0),r.traceId!=null&&r.hasOwnProperty("traceId")&&(l.traceId=u.bytes===String?E.base64.encode(r.traceId,0,r.traceId.length):u.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),r.spanId!=null&&r.hasOwnProperty("spanId")&&(l.spanId=u.bytes===String?E.base64.encode(r.spanId,0,r.spanId.length):u.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),r.traceState!=null&&r.hasOwnProperty("traceState")&&(l.traceState=r.traceState),r.attributes&&r.attributes.length){l.attributes=[];for(var c=0;c<r.attributes.length;++c)l.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[c],u)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(l.droppedAttributesCount=r.droppedAttributesCount),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Link"},s}(),a}(),i.Status=function(){function a(s){if(s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.message=null,a.prototype.code=null,a.create=function(o){return new a(o)},a.encode=function(o,r){return r||(r=V.create()),o.message!=null&&Object.hasOwnProperty.call(o,"message")&&r.uint32(18).string(o.message),o.code!=null&&Object.hasOwnProperty.call(o,"code")&&r.uint32(24).int32(o.code),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.Status;o.pos<u;){var c=o.uint32();switch(c>>>3){case 2:{l.message=o.string();break}case 3:{l.code=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.message!=null&&o.hasOwnProperty("message")&&!E.isString(o.message))return"message: string expected";if(o.code!=null&&o.hasOwnProperty("code"))switch(o.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.Status)return o;var r=new d.opentelemetry.proto.trace.v1.Status;switch(o.message!=null&&(r.message=String(o.message)),o.code){default:if(typeof o.code=="number"){r.code=o.code;break}break;case"STATUS_CODE_UNSET":case 0:r.code=0;break;case"STATUS_CODE_OK":case 1:r.code=1;break;case"STATUS_CODE_ERROR":case 2:r.code=2;break}return r},a.toObject=function(o,r){r||(r={});var u={};return r.defaults&&(u.message="",u.code=r.enums===String?"STATUS_CODE_UNSET":0),o.message!=null&&o.hasOwnProperty("message")&&(u.message=o.message),o.code!=null&&o.hasOwnProperty("code")&&(u.code=r.enums===String?d.opentelemetry.proto.trace.v1.Status.StatusCode[o.code]===void 0?o.code:d.opentelemetry.proto.trace.v1.Status.StatusCode[o.code]:o.code),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.Status"},a.StatusCode=function(){var s={},o=Object.create(s);return o[s[0]="STATUS_CODE_UNSET"]=0,o[s[1]="STATUS_CODE_OK"]=1,o[s[2]="STATUS_CODE_ERROR"]=2,o}(),a}(),i}(),n}(),e.collector=function(){var n={};return n.trace=function(){var i={};return i.v1=function(){var a={};return a.TraceService=function(){function s(o,r,u){I.rpc.Service.call(this,o,r,u)}return(s.prototype=Object.create(I.rpc.Service.prototype)).constructor=s,s.create=function(r,u,l){return new this(r,u,l)},Object.defineProperty(s.prototype.export=function o(r,u){return this.rpcCall(o,d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,r,u)},"name",{value:"Export"}),s}(),a.ExportTraceServiceRequest=function(){function s(o){if(this.resourceSpans=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.resourceSpans=E.emptyArray,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.resourceSpans!=null&&r.resourceSpans.length)for(var l=0;l<r.resourceSpans.length;++l)d.opentelemetry.proto.trace.v1.ResourceSpans.encode(r.resourceSpans[l],u.uint32(10).fork()).ldelim();return u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceSpans&&c.resourceSpans.length||(c.resourceSpans=[]),c.resourceSpans.push(d.opentelemetry.proto.trace.v1.ResourceSpans.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceSpans!=null&&r.hasOwnProperty("resourceSpans")){if(!Array.isArray(r.resourceSpans))return"resourceSpans: array expected";for(var u=0;u<r.resourceSpans.length;++u){var l=d.opentelemetry.proto.trace.v1.ResourceSpans.verify(r.resourceSpans[u]);if(l)return"resourceSpans."+l}}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return r;var u=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(r.resourceSpans){if(!Array.isArray(r.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");u.resourceSpans=[];for(var l=0;l<r.resourceSpans.length;++l){if(typeof r.resourceSpans[l]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");u.resourceSpans[l]=d.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(r.resourceSpans[l])}}return u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.resourceSpans=[]),r.resourceSpans&&r.resourceSpans.length){l.resourceSpans=[];for(var c=0;c<r.resourceSpans.length;++c)l.resourceSpans[c]=d.opentelemetry.proto.trace.v1.ResourceSpans.toObject(r.resourceSpans[c],u)}return l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},s}(),a.ExportTraceServiceResponse=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.partialSuccess=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var u=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return r;var u=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");u.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(r.partialSuccess)}return u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(r.partialSuccess,u)),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},s}(),a.ExportTracePartialSuccess=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.rejectedSpans=null,s.prototype.errorMessage=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.rejectedSpans!=null&&Object.hasOwnProperty.call(r,"rejectedSpans")&&u.uint32(8).int64(r.rejectedSpans),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedSpans=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedSpans!=null&&r.hasOwnProperty("rejectedSpans")&&!E.isInteger(r.rejectedSpans)&&!(r.rejectedSpans&&E.isInteger(r.rejectedSpans.low)&&E.isInteger(r.rejectedSpans.high))?"rejectedSpans: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return r;var u=new d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return r.rejectedSpans!=null&&(E.Long?(u.rejectedSpans=E.Long.fromValue(r.rejectedSpans)).unsigned=!1:typeof r.rejectedSpans=="string"?u.rejectedSpans=parseInt(r.rejectedSpans,10):typeof r.rejectedSpans=="number"?u.rejectedSpans=r.rejectedSpans:typeof r.rejectedSpans=="object"&&(u.rejectedSpans=new E.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber())),r.errorMessage!=null&&(u.errorMessage=String(r.errorMessage)),u},s.toObject=function(r,u){u||(u={});var l={};if(u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedSpans=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.rejectedSpans=u.longs===String?"0":0;l.errorMessage=""}return r.rejectedSpans!=null&&r.hasOwnProperty("rejectedSpans")&&(typeof r.rejectedSpans=="number"?l.rejectedSpans=u.longs===String?String(r.rejectedSpans):r.rejectedSpans:l.rejectedSpans=u.longs===String?E.Long.prototype.toString.call(r.rejectedSpans):u.longs===Number?new E.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber():r.rejectedSpans),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},s}(),a}(),i}(),n.metrics=function(){var i={};return i.v1=function(){var a={};return a.MetricsService=function(){function s(o,r,u){I.rpc.Service.call(this,o,r,u)}return(s.prototype=Object.create(I.rpc.Service.prototype)).constructor=s,s.create=function(r,u,l){return new this(r,u,l)},Object.defineProperty(s.prototype.export=function o(r,u){return this.rpcCall(o,d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,r,u)},"name",{value:"Export"}),s}(),a.ExportMetricsServiceRequest=function(){function s(o){if(this.resourceMetrics=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.resourceMetrics=E.emptyArray,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.resourceMetrics!=null&&r.resourceMetrics.length)for(var l=0;l<r.resourceMetrics.length;++l)d.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(r.resourceMetrics[l],u.uint32(10).fork()).ldelim();return u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceMetrics&&c.resourceMetrics.length||(c.resourceMetrics=[]),c.resourceMetrics.push(d.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceMetrics!=null&&r.hasOwnProperty("resourceMetrics")){if(!Array.isArray(r.resourceMetrics))return"resourceMetrics: array expected";for(var u=0;u<r.resourceMetrics.length;++u){var l=d.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(r.resourceMetrics[u]);if(l)return"resourceMetrics."+l}}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return r;var u=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(r.resourceMetrics){if(!Array.isArray(r.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");u.resourceMetrics=[];for(var l=0;l<r.resourceMetrics.length;++l){if(typeof r.resourceMetrics[l]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");u.resourceMetrics[l]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(r.resourceMetrics[l])}}return u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.resourceMetrics=[]),r.resourceMetrics&&r.resourceMetrics.length){l.resourceMetrics=[];for(var c=0;c<r.resourceMetrics.length;++c)l.resourceMetrics[c]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(r.resourceMetrics[c],u)}return l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},s}(),a.ExportMetricsServiceResponse=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.partialSuccess=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var u=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return r;var u=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");u.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(r.partialSuccess)}return u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(r.partialSuccess,u)),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},s}(),a.ExportMetricsPartialSuccess=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.rejectedDataPoints=null,s.prototype.errorMessage=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.rejectedDataPoints!=null&&Object.hasOwnProperty.call(r,"rejectedDataPoints")&&u.uint32(8).int64(r.rejectedDataPoints),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedDataPoints=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedDataPoints!=null&&r.hasOwnProperty("rejectedDataPoints")&&!E.isInteger(r.rejectedDataPoints)&&!(r.rejectedDataPoints&&E.isInteger(r.rejectedDataPoints.low)&&E.isInteger(r.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return r;var u=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return r.rejectedDataPoints!=null&&(E.Long?(u.rejectedDataPoints=E.Long.fromValue(r.rejectedDataPoints)).unsigned=!1:typeof r.rejectedDataPoints=="string"?u.rejectedDataPoints=parseInt(r.rejectedDataPoints,10):typeof r.rejectedDataPoints=="number"?u.rejectedDataPoints=r.rejectedDataPoints:typeof r.rejectedDataPoints=="object"&&(u.rejectedDataPoints=new E.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber())),r.errorMessage!=null&&(u.errorMessage=String(r.errorMessage)),u},s.toObject=function(r,u){u||(u={});var l={};if(u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedDataPoints=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.rejectedDataPoints=u.longs===String?"0":0;l.errorMessage=""}return r.rejectedDataPoints!=null&&r.hasOwnProperty("rejectedDataPoints")&&(typeof r.rejectedDataPoints=="number"?l.rejectedDataPoints=u.longs===String?String(r.rejectedDataPoints):r.rejectedDataPoints:l.rejectedDataPoints=u.longs===String?E.Long.prototype.toString.call(r.rejectedDataPoints):u.longs===Number?new E.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber():r.rejectedDataPoints),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},s}(),a}(),i}(),n.logs=function(){var i={};return i.v1=function(){var a={};return a.LogsService=function(){function s(o,r,u){I.rpc.Service.call(this,o,r,u)}return(s.prototype=Object.create(I.rpc.Service.prototype)).constructor=s,s.create=function(r,u,l){return new this(r,u,l)},Object.defineProperty(s.prototype.export=function o(r,u){return this.rpcCall(o,d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,r,u)},"name",{value:"Export"}),s}(),a.ExportLogsServiceRequest=function(){function s(o){if(this.resourceLogs=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.resourceLogs=E.emptyArray,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.resourceLogs!=null&&r.resourceLogs.length)for(var l=0;l<r.resourceLogs.length;++l)d.opentelemetry.proto.logs.v1.ResourceLogs.encode(r.resourceLogs[l],u.uint32(10).fork()).ldelim();return u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceLogs&&c.resourceLogs.length||(c.resourceLogs=[]),c.resourceLogs.push(d.opentelemetry.proto.logs.v1.ResourceLogs.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceLogs!=null&&r.hasOwnProperty("resourceLogs")){if(!Array.isArray(r.resourceLogs))return"resourceLogs: array expected";for(var u=0;u<r.resourceLogs.length;++u){var l=d.opentelemetry.proto.logs.v1.ResourceLogs.verify(r.resourceLogs[u]);if(l)return"resourceLogs."+l}}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return r;var u=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(r.resourceLogs){if(!Array.isArray(r.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");u.resourceLogs=[];for(var l=0;l<r.resourceLogs.length;++l){if(typeof r.resourceLogs[l]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");u.resourceLogs[l]=d.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(r.resourceLogs[l])}}return u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.resourceLogs=[]),r.resourceLogs&&r.resourceLogs.length){l.resourceLogs=[];for(var c=0;c<r.resourceLogs.length;++c)l.resourceLogs[c]=d.opentelemetry.proto.logs.v1.ResourceLogs.toObject(r.resourceLogs[c],u)}return l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},s}(),a.ExportLogsServiceResponse=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.partialSuccess=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var u=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return r;var u=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");u.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(r.partialSuccess)}return u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(r.partialSuccess,u)),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},s}(),a.ExportLogsPartialSuccess=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.rejectedLogRecords=null,s.prototype.errorMessage=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.rejectedLogRecords!=null&&Object.hasOwnProperty.call(r,"rejectedLogRecords")&&u.uint32(8).int64(r.rejectedLogRecords),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedLogRecords=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedLogRecords!=null&&r.hasOwnProperty("rejectedLogRecords")&&!E.isInteger(r.rejectedLogRecords)&&!(r.rejectedLogRecords&&E.isInteger(r.rejectedLogRecords.low)&&E.isInteger(r.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return r;var u=new d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return r.rejectedLogRecords!=null&&(E.Long?(u.rejectedLogRecords=E.Long.fromValue(r.rejectedLogRecords)).unsigned=!1:typeof r.rejectedLogRecords=="string"?u.rejectedLogRecords=parseInt(r.rejectedLogRecords,10):typeof r.rejectedLogRecords=="number"?u.rejectedLogRecords=r.rejectedLogRecords:typeof r.rejectedLogRecords=="object"&&(u.rejectedLogRecords=new E.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber())),r.errorMessage!=null&&(u.errorMessage=String(r.errorMessage)),u},s.toObject=function(r,u){u||(u={});var l={};if(u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedLogRecords=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.rejectedLogRecords=u.longs===String?"0":0;l.errorMessage=""}return r.rejectedLogRecords!=null&&r.hasOwnProperty("rejectedLogRecords")&&(typeof r.rejectedLogRecords=="number"?l.rejectedLogRecords=u.longs===String?String(r.rejectedLogRecords):r.rejectedLogRecords:l.rejectedLogRecords=u.longs===String?E.Long.prototype.toString.call(r.rejectedLogRecords):u.longs===Number?new E.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber():r.rejectedLogRecords),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},s}(),a}(),i}(),n}(),e.metrics=function(){var n={};return n.v1=function(){var i={};return i.MetricsData=function(){function a(s){if(this.resourceMetrics=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resourceMetrics=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceMetrics!=null&&o.resourceMetrics.length)for(var u=0;u<o.resourceMetrics.length;++u)d.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(o.resourceMetrics[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.MetricsData;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceMetrics&&l.resourceMetrics.length||(l.resourceMetrics=[]),l.resourceMetrics.push(d.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceMetrics!=null&&o.hasOwnProperty("resourceMetrics")){if(!Array.isArray(o.resourceMetrics))return"resourceMetrics: array expected";for(var r=0;r<o.resourceMetrics.length;++r){var u=d.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(o.resourceMetrics[r]);if(u)return"resourceMetrics."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.MetricsData)return o;var r=new d.opentelemetry.proto.metrics.v1.MetricsData;if(o.resourceMetrics){if(!Array.isArray(o.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");r.resourceMetrics=[];for(var u=0;u<o.resourceMetrics.length;++u){if(typeof o.resourceMetrics[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");r.resourceMetrics[u]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(o.resourceMetrics[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceMetrics=[]),o.resourceMetrics&&o.resourceMetrics.length){u.resourceMetrics=[];for(var l=0;l<o.resourceMetrics.length;++l)u.resourceMetrics[l]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(o.resourceMetrics[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.MetricsData"},a}(),i.ResourceMetrics=function(){function a(s){if(this.scopeMetrics=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resource=null,a.prototype.scopeMetrics=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeMetrics!=null&&o.scopeMetrics.length)for(var u=0;u<o.scopeMetrics.length;++u)d.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(o.scopeMetrics[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ResourceMetrics;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeMetrics&&l.scopeMetrics.length||(l.scopeMetrics=[]),l.scopeMetrics.push(d.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeMetrics!=null&&o.hasOwnProperty("scopeMetrics")){if(!Array.isArray(o.scopeMetrics))return"scopeMetrics: array expected";for(var u=0;u<o.scopeMetrics.length;++u){var r=d.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(o.scopeMetrics[u]);if(r)return"scopeMetrics."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ResourceMetrics)return o;var r=new d.opentelemetry.proto.metrics.v1.ResourceMetrics;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeMetrics){if(!Array.isArray(o.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");r.scopeMetrics=[];for(var u=0;u<o.scopeMetrics.length;++u){if(typeof o.scopeMetrics[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");r.scopeMetrics[u]=d.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(o.scopeMetrics[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeMetrics=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(u.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeMetrics&&o.scopeMetrics.length){u.scopeMetrics=[];for(var l=0;l<o.scopeMetrics.length;++l)u.scopeMetrics[l]=d.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(o.scopeMetrics[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},a}(),i.ScopeMetrics=function(){function a(s){if(this.metrics=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.scope=null,a.prototype.metrics=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.metrics!=null&&o.metrics.length)for(var u=0;u<o.metrics.length;++u)d.opentelemetry.proto.metrics.v1.Metric.encode(o.metrics[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ScopeMetrics;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.metrics&&l.metrics.length||(l.metrics=[]),l.metrics.push(d.opentelemetry.proto.metrics.v1.Metric.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.metrics!=null&&o.hasOwnProperty("metrics")){if(!Array.isArray(o.metrics))return"metrics: array expected";for(var u=0;u<o.metrics.length;++u){var r=d.opentelemetry.proto.metrics.v1.Metric.verify(o.metrics[u]);if(r)return"metrics."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ScopeMetrics)return o;var r=new d.opentelemetry.proto.metrics.v1.ScopeMetrics;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.metrics){if(!Array.isArray(o.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");r.metrics=[];for(var u=0;u<o.metrics.length;++u){if(typeof o.metrics[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");r.metrics[u]=d.opentelemetry.proto.metrics.v1.Metric.fromObject(o.metrics[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.metrics=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(u.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.metrics&&o.metrics.length){u.metrics=[];for(var l=0;l<o.metrics.length;++l)u.metrics[l]=d.opentelemetry.proto.metrics.v1.Metric.toObject(o.metrics[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},a}(),i.Metric=function(){function a(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}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 s;return Object.defineProperty(a.prototype,"data",{get:E.oneOfGetter(s=["gauge","sum","histogram","exponentialHistogram","summary"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){return u||(u=V.create()),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&u.uint32(10).string(r.name),r.description!=null&&Object.hasOwnProperty.call(r,"description")&&u.uint32(18).string(r.description),r.unit!=null&&Object.hasOwnProperty.call(r,"unit")&&u.uint32(26).string(r.unit),r.gauge!=null&&Object.hasOwnProperty.call(r,"gauge")&&d.opentelemetry.proto.metrics.v1.Gauge.encode(r.gauge,u.uint32(42).fork()).ldelim(),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&d.opentelemetry.proto.metrics.v1.Sum.encode(r.sum,u.uint32(58).fork()).ldelim(),r.histogram!=null&&Object.hasOwnProperty.call(r,"histogram")&&d.opentelemetry.proto.metrics.v1.Histogram.encode(r.histogram,u.uint32(74).fork()).ldelim(),r.exponentialHistogram!=null&&Object.hasOwnProperty.call(r,"exponentialHistogram")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(r.exponentialHistogram,u.uint32(82).fork()).ldelim(),r.summary!=null&&Object.hasOwnProperty.call(r,"summary")&&d.opentelemetry.proto.metrics.v1.Summary.encode(r.summary,u.uint32(90).fork()).ldelim(),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.Metric;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.name=r.string();break}case 2:{c.description=r.string();break}case 3:{c.unit=r.string();break}case 5:{c.gauge=d.opentelemetry.proto.metrics.v1.Gauge.decode(r,r.uint32());break}case 7:{c.sum=d.opentelemetry.proto.metrics.v1.Sum.decode(r,r.uint32());break}case 9:{c.histogram=d.opentelemetry.proto.metrics.v1.Histogram.decode(r,r.uint32());break}case 10:{c.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(r,r.uint32());break}case 11:{c.summary=d.opentelemetry.proto.metrics.v1.Summary.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.name!=null&&r.hasOwnProperty("name")&&!E.isString(r.name))return"name: string expected";if(r.description!=null&&r.hasOwnProperty("description")&&!E.isString(r.description))return"description: string expected";if(r.unit!=null&&r.hasOwnProperty("unit")&&!E.isString(r.unit))return"unit: string expected";if(r.gauge!=null&&r.hasOwnProperty("gauge")){u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Gauge.verify(r.gauge);if(l)return"gauge."+l}}if(r.sum!=null&&r.hasOwnProperty("sum")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Sum.verify(r.sum);if(l)return"sum."+l}}if(r.histogram!=null&&r.hasOwnProperty("histogram")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Histogram.verify(r.histogram);if(l)return"histogram."+l}}if(r.exponentialHistogram!=null&&r.hasOwnProperty("exponentialHistogram")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(r.exponentialHistogram);if(l)return"exponentialHistogram."+l}}if(r.summary!=null&&r.hasOwnProperty("summary")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Summary.verify(r.summary);if(l)return"summary."+l}}return null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.Metric)return r;var u=new d.opentelemetry.proto.metrics.v1.Metric;if(r.name!=null&&(u.name=String(r.name)),r.description!=null&&(u.description=String(r.description)),r.unit!=null&&(u.unit=String(r.unit)),r.gauge!=null){if(typeof r.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");u.gauge=d.opentelemetry.proto.metrics.v1.Gauge.fromObject(r.gauge)}if(r.sum!=null){if(typeof r.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");u.sum=d.opentelemetry.proto.metrics.v1.Sum.fromObject(r.sum)}if(r.histogram!=null){if(typeof r.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");u.histogram=d.opentelemetry.proto.metrics.v1.Histogram.fromObject(r.histogram)}if(r.exponentialHistogram!=null){if(typeof r.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");u.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(r.exponentialHistogram)}if(r.summary!=null){if(typeof r.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");u.summary=d.opentelemetry.proto.metrics.v1.Summary.fromObject(r.summary)}return u},a.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.name="",l.description="",l.unit=""),r.name!=null&&r.hasOwnProperty("name")&&(l.name=r.name),r.description!=null&&r.hasOwnProperty("description")&&(l.description=r.description),r.unit!=null&&r.hasOwnProperty("unit")&&(l.unit=r.unit),r.gauge!=null&&r.hasOwnProperty("gauge")&&(l.gauge=d.opentelemetry.proto.metrics.v1.Gauge.toObject(r.gauge,u),u.oneofs&&(l.data="gauge")),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=d.opentelemetry.proto.metrics.v1.Sum.toObject(r.sum,u),u.oneofs&&(l.data="sum")),r.histogram!=null&&r.hasOwnProperty("histogram")&&(l.histogram=d.opentelemetry.proto.metrics.v1.Histogram.toObject(r.histogram,u),u.oneofs&&(l.data="histogram")),r.exponentialHistogram!=null&&r.hasOwnProperty("exponentialHistogram")&&(l.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(r.exponentialHistogram,u),u.oneofs&&(l.data="exponentialHistogram")),r.summary!=null&&r.hasOwnProperty("summary")&&(l.summary=d.opentelemetry.proto.metrics.v1.Summary.toObject(r.summary,u),u.oneofs&&(l.data="summary")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Metric"},a}(),i.Gauge=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Gauge;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Gauge)return o;var r=new d.opentelemetry.proto.metrics.v1.Gauge;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(o.dataPoints[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(o.dataPoints[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Gauge"},a}(),i.Sum=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.prototype.isMonotonic=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),o.isMonotonic!=null&&Object.hasOwnProperty.call(o,"isMonotonic")&&r.uint32(24).bool(o.isMonotonic),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Sum;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}case 3:{l.isMonotonic=o.bool();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return o.isMonotonic!=null&&o.hasOwnProperty("isMonotonic")&&typeof o.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Sum)return o;var r=new d.opentelemetry.proto.metrics.v1.Sum;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(o.dataPoints[u])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return o.isMonotonic!=null&&(r.isMonotonic=!!o.isMonotonic),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,u.isMonotonic=!1),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),o.isMonotonic!=null&&o.hasOwnProperty("isMonotonic")&&(u.isMonotonic=o.isMonotonic),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Sum"},a}(),i.Histogram=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Histogram;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Histogram)return o;var r=new d.opentelemetry.proto.metrics.v1.Histogram;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(o.dataPoints[u])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Histogram"},a}(),i.ExponentialHistogram=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ExponentialHistogram;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogram)return o;var r=new d.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(o.dataPoints[u])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},a}(),i.Summary=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Summary;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Summary)return o;var r=new d.opentelemetry.proto.metrics.v1.Summary;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(o.dataPoints[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(o.dataPoints[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Summary"},a}(),i.AggregationTemporality=function(){var a={},s=Object.create(a);return s[a[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,s[a[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,s[a[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,s}(),i.DataPointFlags=function(){var a={},s=Object.create(a);return s[a[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,s[a[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,s}(),i.NumberDataPoint=function(){function a(o){if(this.attributes=[],this.exemplars=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.exemplars=E.emptyArray,a.prototype.flags=null;var s;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(s=["asDouble","asInt"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),r.asDouble!=null&&Object.hasOwnProperty.call(r,"asDouble")&&u.uint32(33).double(r.asDouble),r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],u.uint32(42).fork()).ldelim();if(r.asInt!=null&&Object.hasOwnProperty.call(r,"asInt")&&u.uint32(49).sfixed64(r.asInt),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(58).fork()).ldelim();return r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(64).uint32(r.flags),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.NumberDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 7:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.asDouble=r.double();break}case 6:{c.asInt=r.sfixed64();break}case 5:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 8:{c.flags=r.uint32();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(u.value=1,typeof r.asDouble!="number"))return"asDouble: number expected";if(r.asInt!=null&&r.hasOwnProperty("asInt")){if(u.value===1)return"value: multiple values";if(u.value=1,!E.isInteger(r.asInt)&&!(r.asInt&&E.isInteger(r.asInt.low)&&E.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags)?"flags: integer expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.NumberDataPoint)return r;var u=new d.opentelemetry.proto.metrics.v1.NumberDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(u.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(u.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.asDouble!=null&&(u.asDouble=Number(r.asDouble)),r.asInt!=null&&(E.Long?(u.asInt=E.Long.fromValue(r.asInt)).unsigned=!1:typeof r.asInt=="string"?u.asInt=parseInt(r.asInt,10):typeof r.asInt=="number"?u.asInt=r.asInt:typeof r.asInt=="object"&&(u.asInt=new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");u.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");u.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.flags!=null&&(u.flags=r.flags>>>0),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.exemplars=[],l.attributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.startTimeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;l.flags=0}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(l.asDouble=u.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,u.oneofs&&(l.value="asDouble")),r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],u)}if(r.asInt!=null&&r.hasOwnProperty("asInt")&&(typeof r.asInt=="number"?l.asInt=u.longs===String?String(r.asInt):r.asInt:l.asInt=u.longs===String?E.Long.prototype.toString.call(r.asInt):u.longs===Number?new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,u.oneofs&&(l.value="asInt")),r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}return r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},a}(),i.HistogramDataPoint=function(){function a(o){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.bucketCounts=E.emptyArray,a.prototype.explicitBounds=E.emptyArray,a.prototype.exemplars=E.emptyArray,a.prototype.flags=null,a.prototype.min=null,a.prototype.max=null;var s;return Object.defineProperty(a.prototype,"_sum",{get:E.oneOfGetter(s=["sum"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_min",{get:E.oneOfGetter(s=["min"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_max",{get:E.oneOfGetter(s=["max"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),r.count!=null&&Object.hasOwnProperty.call(r,"count")&&u.uint32(33).fixed64(r.count),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&u.uint32(41).double(r.sum),r.bucketCounts!=null&&r.bucketCounts.length){u.uint32(50).fork();for(var l=0;l<r.bucketCounts.length;++l)u.fixed64(r.bucketCounts[l]);u.ldelim()}if(r.explicitBounds!=null&&r.explicitBounds.length){u.uint32(58).fork();for(var l=0;l<r.explicitBounds.length;++l)u.double(r.explicitBounds[l]);u.ldelim()}if(r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],u.uint32(66).fork()).ldelim();if(r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(74).fork()).ldelim();return r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(80).uint32(r.flags),r.min!=null&&Object.hasOwnProperty.call(r,"min")&&u.uint32(89).double(r.min),r.max!=null&&Object.hasOwnProperty.call(r,"max")&&u.uint32(97).double(r.max),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.HistogramDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 9:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.count=r.fixed64();break}case 5:{c.sum=r.double();break}case 6:{if(c.bucketCounts&&c.bucketCounts.length||(c.bucketCounts=[]),(p&7)===2)for(var _=r.uint32()+r.pos;r.pos<_;)c.bucketCounts.push(r.fixed64());else c.bucketCounts.push(r.fixed64());break}case 7:{if(c.explicitBounds&&c.explicitBounds.length||(c.explicitBounds=[]),(p&7)===2)for(var _=r.uint32()+r.pos;r.pos<_;)c.explicitBounds.push(r.double());else c.explicitBounds.push(r.double());break}case 8:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 10:{c.flags=r.uint32();break}case 11:{c.min=r.double();break}case 12:{c.max=r.double();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.count!=null&&r.hasOwnProperty("count")&&!E.isInteger(r.count)&&!(r.count&&E.isInteger(r.count.low)&&E.isInteger(r.count.high)))return"count: integer|Long expected";if(r.sum!=null&&r.hasOwnProperty("sum")&&(u._sum=1,typeof r.sum!="number"))return"sum: number expected";if(r.bucketCounts!=null&&r.hasOwnProperty("bucketCounts")){if(!Array.isArray(r.bucketCounts))return"bucketCounts: array expected";for(var l=0;l<r.bucketCounts.length;++l)if(!E.isInteger(r.bucketCounts[l])&&!(r.bucketCounts[l]&&E.isInteger(r.bucketCounts[l].low)&&E.isInteger(r.bucketCounts[l].high)))return"bucketCounts: integer|Long[] expected"}if(r.explicitBounds!=null&&r.hasOwnProperty("explicitBounds")){if(!Array.isArray(r.explicitBounds))return"explicitBounds: array expected";for(var l=0;l<r.explicitBounds.length;++l)if(typeof r.explicitBounds[l]!="number")return"explicitBounds: number[] expected"}if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags)?"flags: integer expected":r.min!=null&&r.hasOwnProperty("min")&&(u._min=1,typeof r.min!="number")?"min: number expected":r.max!=null&&r.hasOwnProperty("max")&&(u._max=1,typeof r.max!="number")?"max: number expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.HistogramDataPoint)return r;var u=new d.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(u.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(u.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.count!=null&&(E.Long?(u.count=E.Long.fromValue(r.count)).unsigned=!1:typeof r.count=="string"?u.count=parseInt(r.count,10):typeof r.count=="number"?u.count=r.count:typeof r.count=="object"&&(u.count=new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),r.sum!=null&&(u.sum=Number(r.sum)),r.bucketCounts){if(!Array.isArray(r.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");u.bucketCounts=[];for(var l=0;l<r.bucketCounts.length;++l)E.Long?(u.bucketCounts[l]=E.Long.fromValue(r.bucketCounts[l])).unsigned=!1:typeof r.bucketCounts[l]=="string"?u.bucketCounts[l]=parseInt(r.bucketCounts[l],10):typeof r.bucketCounts[l]=="number"?u.bucketCounts[l]=r.bucketCounts[l]:typeof r.bucketCounts[l]=="object"&&(u.bucketCounts[l]=new E.LongBits(r.bucketCounts[l].low>>>0,r.bucketCounts[l].high>>>0).toNumber())}if(r.explicitBounds){if(!Array.isArray(r.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");u.explicitBounds=[];for(var l=0;l<r.explicitBounds.length;++l)u.explicitBounds[l]=Number(r.explicitBounds[l])}if(r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");u.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");u.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.flags!=null&&(u.flags=r.flags>>>0),r.min!=null&&(u.min=Number(r.min)),r.max!=null&&(u.max=Number(r.max)),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.bucketCounts=[],l.explicitBounds=[],l.exemplars=[],l.attributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.startTimeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.count=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.count=u.longs===String?"0":0;l.flags=0}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.count!=null&&r.hasOwnProperty("count")&&(typeof r.count=="number"?l.count=u.longs===String?String(r.count):r.count:l.count=u.longs===String?E.Long.prototype.toString.call(r.count):u.longs===Number?new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=u.json&&!isFinite(r.sum)?String(r.sum):r.sum,u.oneofs&&(l._sum="sum")),r.bucketCounts&&r.bucketCounts.length){l.bucketCounts=[];for(var p=0;p<r.bucketCounts.length;++p)typeof r.bucketCounts[p]=="number"?l.bucketCounts[p]=u.longs===String?String(r.bucketCounts[p]):r.bucketCounts[p]:l.bucketCounts[p]=u.longs===String?E.Long.prototype.toString.call(r.bucketCounts[p]):u.longs===Number?new E.LongBits(r.bucketCounts[p].low>>>0,r.bucketCounts[p].high>>>0).toNumber():r.bucketCounts[p]}if(r.explicitBounds&&r.explicitBounds.length){l.explicitBounds=[];for(var p=0;p<r.explicitBounds.length;++p)l.explicitBounds[p]=u.json&&!isFinite(r.explicitBounds[p])?String(r.explicitBounds[p]):r.explicitBounds[p]}if(r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],u)}if(r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}return r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),r.min!=null&&r.hasOwnProperty("min")&&(l.min=u.json&&!isFinite(r.min)?String(r.min):r.min,u.oneofs&&(l._min="min")),r.max!=null&&r.hasOwnProperty("max")&&(l.max=u.json&&!isFinite(r.max)?String(r.max):r.max,u.oneofs&&(l._max="max")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},a}(),i.ExponentialHistogramDataPoint=function(){function a(o){if(this.attributes=[],this.exemplars=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.attributes=E.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=E.emptyArray,a.prototype.min=null,a.prototype.max=null,a.prototype.zeroThreshold=null;var s;return Object.defineProperty(a.prototype,"_sum",{get:E.oneOfGetter(s=["sum"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_min",{get:E.oneOfGetter(s=["min"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_max",{get:E.oneOfGetter(s=["max"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(10).fork()).ldelim();if(r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),r.count!=null&&Object.hasOwnProperty.call(r,"count")&&u.uint32(33).fixed64(r.count),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&u.uint32(41).double(r.sum),r.scale!=null&&Object.hasOwnProperty.call(r,"scale")&&u.uint32(48).sint32(r.scale),r.zeroCount!=null&&Object.hasOwnProperty.call(r,"zeroCount")&&u.uint32(57).fixed64(r.zeroCount),r.positive!=null&&Object.hasOwnProperty.call(r,"positive")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.positive,u.uint32(66).fork()).ldelim(),r.negative!=null&&Object.hasOwnProperty.call(r,"negative")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.negative,u.uint32(74).fork()).ldelim(),r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(80).uint32(r.flags),r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],u.uint32(90).fork()).ldelim();return r.min!=null&&Object.hasOwnProperty.call(r,"min")&&u.uint32(97).double(r.min),r.max!=null&&Object.hasOwnProperty.call(r,"max")&&u.uint32(105).double(r.max),r.zeroThreshold!=null&&Object.hasOwnProperty.call(r,"zeroThreshold")&&u.uint32(113).double(r.zeroThreshold),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.count=r.fixed64();break}case 5:{c.sum=r.double();break}case 6:{c.scale=r.sint32();break}case 7:{c.zeroCount=r.fixed64();break}case 8:{c.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break}case 9:{c.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break}case 10:{c.flags=r.uint32();break}case 11:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 12:{c.min=r.double();break}case 13:{c.max=r.double();break}case 14:{c.zeroThreshold=r.double();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.count!=null&&r.hasOwnProperty("count")&&!E.isInteger(r.count)&&!(r.count&&E.isInteger(r.count.low)&&E.isInteger(r.count.high)))return"count: integer|Long expected";if(r.sum!=null&&r.hasOwnProperty("sum")&&(u._sum=1,typeof r.sum!="number"))return"sum: number expected";if(r.scale!=null&&r.hasOwnProperty("scale")&&!E.isInteger(r.scale))return"scale: integer expected";if(r.zeroCount!=null&&r.hasOwnProperty("zeroCount")&&!E.isInteger(r.zeroCount)&&!(r.zeroCount&&E.isInteger(r.zeroCount.low)&&E.isInteger(r.zeroCount.high)))return"zeroCount: integer|Long expected";if(r.positive!=null&&r.hasOwnProperty("positive")){var c=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.positive);if(c)return"positive."+c}if(r.negative!=null&&r.hasOwnProperty("negative")){var c=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.negative);if(c)return"negative."+c}if(r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags))return"flags: integer expected";if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.min!=null&&r.hasOwnProperty("min")&&(u._min=1,typeof r.min!="number")?"min: number expected":r.max!=null&&r.hasOwnProperty("max")&&(u._max=1,typeof r.max!="number")?"max: number expected":r.zeroThreshold!=null&&r.hasOwnProperty("zeroThreshold")&&typeof r.zeroThreshold!="number"?"zeroThreshold: number expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return r;var u=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(u.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(u.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.count!=null&&(E.Long?(u.count=E.Long.fromValue(r.count)).unsigned=!1:typeof r.count=="string"?u.count=parseInt(r.count,10):typeof r.count=="number"?u.count=r.count:typeof r.count=="object"&&(u.count=new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),r.sum!=null&&(u.sum=Number(r.sum)),r.scale!=null&&(u.scale=r.scale|0),r.zeroCount!=null&&(E.Long?(u.zeroCount=E.Long.fromValue(r.zeroCount)).unsigned=!1:typeof r.zeroCount=="string"?u.zeroCount=parseInt(r.zeroCount,10):typeof r.zeroCount=="number"?u.zeroCount=r.zeroCount:typeof r.zeroCount=="object"&&(u.zeroCount=new E.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber())),r.positive!=null){if(typeof r.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");u.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.positive)}if(r.negative!=null){if(typeof r.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");u.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.negative)}if(r.flags!=null&&(u.flags=r.flags>>>0),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");u.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");u.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.min!=null&&(u.min=Number(r.min)),r.max!=null&&(u.max=Number(r.max)),r.zeroThreshold!=null&&(u.zeroThreshold=Number(r.zeroThreshold)),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.attributes=[],l.exemplars=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.startTimeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.count=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.count=u.longs===String?"0":0;if(l.scale=0,E.Long){var c=new E.Long(0,0,!1);l.zeroCount=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.zeroCount=u.longs===String?"0":0;l.positive=null,l.negative=null,l.flags=0,l.zeroThreshold=0}if(r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.count!=null&&r.hasOwnProperty("count")&&(typeof r.count=="number"?l.count=u.longs===String?String(r.count):r.count:l.count=u.longs===String?E.Long.prototype.toString.call(r.count):u.longs===Number?new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=u.json&&!isFinite(r.sum)?String(r.sum):r.sum,u.oneofs&&(l._sum="sum")),r.scale!=null&&r.hasOwnProperty("scale")&&(l.scale=r.scale),r.zeroCount!=null&&r.hasOwnProperty("zeroCount")&&(typeof r.zeroCount=="number"?l.zeroCount=u.longs===String?String(r.zeroCount):r.zeroCount:l.zeroCount=u.longs===String?E.Long.prototype.toString.call(r.zeroCount):u.longs===Number?new E.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber():r.zeroCount),r.positive!=null&&r.hasOwnProperty("positive")&&(l.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.positive,u)),r.negative!=null&&r.hasOwnProperty("negative")&&(l.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.negative,u)),r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],u)}return r.min!=null&&r.hasOwnProperty("min")&&(l.min=u.json&&!isFinite(r.min)?String(r.min):r.min,u.oneofs&&(l._min="min")),r.max!=null&&r.hasOwnProperty("max")&&(l.max=u.json&&!isFinite(r.max)?String(r.max):r.max,u.oneofs&&(l._max="max")),r.zeroThreshold!=null&&r.hasOwnProperty("zeroThreshold")&&(l.zeroThreshold=u.json&&!isFinite(r.zeroThreshold)?String(r.zeroThreshold):r.zeroThreshold),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},a.Buckets=function(){function o(r){if(this.bucketCounts=[],r)for(var u=Object.keys(r),l=0;l<u.length;++l)r[u[l]]!=null&&(this[u[l]]=r[u[l]])}return o.prototype.offset=null,o.prototype.bucketCounts=E.emptyArray,o.create=function(u){return new o(u)},o.encode=function(u,l){if(l||(l=V.create()),u.offset!=null&&Object.hasOwnProperty.call(u,"offset")&&l.uint32(8).sint32(u.offset),u.bucketCounts!=null&&u.bucketCounts.length){l.uint32(18).fork();for(var c=0;c<u.bucketCounts.length;++c)l.uint64(u.bucketCounts[c]);l.ldelim()}return l},o.encodeDelimited=function(u,l){return this.encode(u,l).ldelim()},o.decode=function(u,l){u instanceof y||(u=y.create(u));for(var c=l===void 0?u.len:u.pos+l,p=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;u.pos<c;){var _=u.uint32();switch(_>>>3){case 1:{p.offset=u.sint32();break}case 2:{if(p.bucketCounts&&p.bucketCounts.length||(p.bucketCounts=[]),(_&7)===2)for(var f=u.uint32()+u.pos;u.pos<f;)p.bucketCounts.push(u.uint64());else p.bucketCounts.push(u.uint64());break}default:u.skipType(_&7);break}}return p},o.decodeDelimited=function(u){return u instanceof y||(u=new y(u)),this.decode(u,u.uint32())},o.verify=function(u){if(typeof u!="object"||u===null)return"object expected";if(u.offset!=null&&u.hasOwnProperty("offset")&&!E.isInteger(u.offset))return"offset: integer expected";if(u.bucketCounts!=null&&u.hasOwnProperty("bucketCounts")){if(!Array.isArray(u.bucketCounts))return"bucketCounts: array expected";for(var l=0;l<u.bucketCounts.length;++l)if(!E.isInteger(u.bucketCounts[l])&&!(u.bucketCounts[l]&&E.isInteger(u.bucketCounts[l].low)&&E.isInteger(u.bucketCounts[l].high)))return"bucketCounts: integer|Long[] expected"}return null},o.fromObject=function(u){if(u instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return u;var l=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(u.offset!=null&&(l.offset=u.offset|0),u.bucketCounts){if(!Array.isArray(u.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");l.bucketCounts=[];for(var c=0;c<u.bucketCounts.length;++c)E.Long?(l.bucketCounts[c]=E.Long.fromValue(u.bucketCounts[c])).unsigned=!0:typeof u.bucketCounts[c]=="string"?l.bucketCounts[c]=parseInt(u.bucketCounts[c],10):typeof u.bucketCounts[c]=="number"?l.bucketCounts[c]=u.bucketCounts[c]:typeof u.bucketCounts[c]=="object"&&(l.bucketCounts[c]=new E.LongBits(u.bucketCounts[c].low>>>0,u.bucketCounts[c].high>>>0).toNumber(!0))}return l},o.toObject=function(u,l){l||(l={});var c={};if((l.arrays||l.defaults)&&(c.bucketCounts=[]),l.defaults&&(c.offset=0),u.offset!=null&&u.hasOwnProperty("offset")&&(c.offset=u.offset),u.bucketCounts&&u.bucketCounts.length){c.bucketCounts=[];for(var p=0;p<u.bucketCounts.length;++p)typeof u.bucketCounts[p]=="number"?c.bucketCounts[p]=l.longs===String?String(u.bucketCounts[p]):u.bucketCounts[p]:c.bucketCounts[p]=l.longs===String?E.Long.prototype.toString.call(u.bucketCounts[p]):l.longs===Number?new E.LongBits(u.bucketCounts[p].low>>>0,u.bucketCounts[p].high>>>0).toNumber(!0):u.bucketCounts[p]}return c},o.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},o.getTypeUrl=function(u){return u===void 0&&(u="type.googleapis.com"),u+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},o}(),a}(),i.SummaryDataPoint=function(){function a(s){if(this.attributes=[],this.quantileValues=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.quantileValues=E.emptyArray,a.prototype.flags=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.startTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"startTimeUnixNano")&&r.uint32(17).fixed64(o.startTimeUnixNano),o.timeUnixNano!=null&&Object.hasOwnProperty.call(o,"timeUnixNano")&&r.uint32(25).fixed64(o.timeUnixNano),o.count!=null&&Object.hasOwnProperty.call(o,"count")&&r.uint32(33).fixed64(o.count),o.sum!=null&&Object.hasOwnProperty.call(o,"sum")&&r.uint32(41).double(o.sum),o.quantileValues!=null&&o.quantileValues.length)for(var u=0;u<o.quantileValues.length;++u)d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(o.quantileValues[u],r.uint32(50).fork()).ldelim();if(o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(58).fork()).ldelim();return o.flags!=null&&Object.hasOwnProperty.call(o,"flags")&&r.uint32(64).uint32(o.flags),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint;o.pos<u;){var c=o.uint32();switch(c>>>3){case 7:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 2:{l.startTimeUnixNano=o.fixed64();break}case 3:{l.timeUnixNano=o.fixed64();break}case 4:{l.count=o.fixed64();break}case 5:{l.sum=o.double();break}case 6:{l.quantileValues&&l.quantileValues.length||(l.quantileValues=[]),l.quantileValues.push(d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(o,o.uint32()));break}case 8:{l.flags=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(o.startTimeUnixNano)&&!(o.startTimeUnixNano&&E.isInteger(o.startTimeUnixNano.low)&&E.isInteger(o.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&!E.isInteger(o.timeUnixNano)&&!(o.timeUnixNano&&E.isInteger(o.timeUnixNano.low)&&E.isInteger(o.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(o.count!=null&&o.hasOwnProperty("count")&&!E.isInteger(o.count)&&!(o.count&&E.isInteger(o.count.low)&&E.isInteger(o.count.high)))return"count: integer|Long expected";if(o.sum!=null&&o.hasOwnProperty("sum")&&typeof o.sum!="number")return"sum: number expected";if(o.quantileValues!=null&&o.hasOwnProperty("quantileValues")){if(!Array.isArray(o.quantileValues))return"quantileValues: array expected";for(var r=0;r<o.quantileValues.length;++r){var u=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(o.quantileValues[r]);if(u)return"quantileValues."+u}}return o.flags!=null&&o.hasOwnProperty("flags")&&!E.isInteger(o.flags)?"flags: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.SummaryDataPoint)return o;var r=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}if(o.startTimeUnixNano!=null&&(E.Long?(r.startTimeUnixNano=E.Long.fromValue(o.startTimeUnixNano)).unsigned=!1:typeof o.startTimeUnixNano=="string"?r.startTimeUnixNano=parseInt(o.startTimeUnixNano,10):typeof o.startTimeUnixNano=="number"?r.startTimeUnixNano=o.startTimeUnixNano:typeof o.startTimeUnixNano=="object"&&(r.startTimeUnixNano=new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber())),o.timeUnixNano!=null&&(E.Long?(r.timeUnixNano=E.Long.fromValue(o.timeUnixNano)).unsigned=!1:typeof o.timeUnixNano=="string"?r.timeUnixNano=parseInt(o.timeUnixNano,10):typeof o.timeUnixNano=="number"?r.timeUnixNano=o.timeUnixNano:typeof o.timeUnixNano=="object"&&(r.timeUnixNano=new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber())),o.count!=null&&(E.Long?(r.count=E.Long.fromValue(o.count)).unsigned=!1:typeof o.count=="string"?r.count=parseInt(o.count,10):typeof o.count=="number"?r.count=o.count:typeof o.count=="object"&&(r.count=new E.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber())),o.sum!=null&&(r.sum=Number(o.sum)),o.quantileValues){if(!Array.isArray(o.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");r.quantileValues=[];for(var u=0;u<o.quantileValues.length;++u){if(typeof o.quantileValues[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");r.quantileValues[u]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(o.quantileValues[u])}}return o.flags!=null&&(r.flags=o.flags>>>0),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.quantileValues=[],u.attributes=[]),r.defaults){if(E.Long){var l=new E.Long(0,0,!1);u.startTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.startTimeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);u.timeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.timeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);u.count=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.count=r.longs===String?"0":0;u.sum=0,u.flags=0}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&(typeof o.startTimeUnixNano=="number"?u.startTimeUnixNano=r.longs===String?String(o.startTimeUnixNano):o.startTimeUnixNano:u.startTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.startTimeUnixNano):r.longs===Number?new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber():o.startTimeUnixNano),o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&(typeof o.timeUnixNano=="number"?u.timeUnixNano=r.longs===String?String(o.timeUnixNano):o.timeUnixNano:u.timeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.timeUnixNano):r.longs===Number?new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber():o.timeUnixNano),o.count!=null&&o.hasOwnProperty("count")&&(typeof o.count=="number"?u.count=r.longs===String?String(o.count):o.count:u.count=r.longs===String?E.Long.prototype.toString.call(o.count):r.longs===Number?new E.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber():o.count),o.sum!=null&&o.hasOwnProperty("sum")&&(u.sum=r.json&&!isFinite(o.sum)?String(o.sum):o.sum),o.quantileValues&&o.quantileValues.length){u.quantileValues=[];for(var c=0;c<o.quantileValues.length;++c)u.quantileValues[c]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(o.quantileValues[c],r)}if(o.attributes&&o.attributes.length){u.attributes=[];for(var c=0;c<o.attributes.length;++c)u.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}return o.flags!=null&&o.hasOwnProperty("flags")&&(u.flags=o.flags),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},a.ValueAtQuantile=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.quantile=null,s.prototype.value=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.quantile!=null&&Object.hasOwnProperty.call(r,"quantile")&&u.uint32(9).double(r.quantile),r.value!=null&&Object.hasOwnProperty.call(r,"value")&&u.uint32(17).double(r.value),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.quantile=r.double();break}case 2:{c.value=r.double();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.quantile!=null&&r.hasOwnProperty("quantile")&&typeof r.quantile!="number"?"quantile: number expected":r.value!=null&&r.hasOwnProperty("value")&&typeof r.value!="number"?"value: number expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return r;var u=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return r.quantile!=null&&(u.quantile=Number(r.quantile)),r.value!=null&&(u.value=Number(r.value)),u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.quantile=0,l.value=0),r.quantile!=null&&r.hasOwnProperty("quantile")&&(l.quantile=u.json&&!isFinite(r.quantile)?String(r.quantile):r.quantile),r.value!=null&&r.hasOwnProperty("value")&&(l.value=u.json&&!isFinite(r.value)?String(r.value):r.value),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},s}(),a}(),i.Exemplar=function(){function a(o){if(this.filteredAttributes=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.filteredAttributes=E.emptyArray,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.spanId=null,a.prototype.traceId=null;var s;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(s=["asDouble","asInt"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(17).fixed64(r.timeUnixNano),r.asDouble!=null&&Object.hasOwnProperty.call(r,"asDouble")&&u.uint32(25).double(r.asDouble),r.spanId!=null&&Object.hasOwnProperty.call(r,"spanId")&&u.uint32(34).bytes(r.spanId),r.traceId!=null&&Object.hasOwnProperty.call(r,"traceId")&&u.uint32(42).bytes(r.traceId),r.asInt!=null&&Object.hasOwnProperty.call(r,"asInt")&&u.uint32(49).sfixed64(r.asInt),r.filteredAttributes!=null&&r.filteredAttributes.length)for(var l=0;l<r.filteredAttributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.filteredAttributes[l],u.uint32(58).fork()).ldelim();return u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.Exemplar;r.pos<l;){var p=r.uint32();switch(p>>>3){case 7:{c.filteredAttributes&&c.filteredAttributes.length||(c.filteredAttributes=[]),c.filteredAttributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.timeUnixNano=r.fixed64();break}case 3:{c.asDouble=r.double();break}case 6:{c.asInt=r.sfixed64();break}case 4:{c.spanId=r.bytes();break}case 5:{c.traceId=r.bytes();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.filteredAttributes!=null&&r.hasOwnProperty("filteredAttributes")){if(!Array.isArray(r.filteredAttributes))return"filteredAttributes: array expected";for(var l=0;l<r.filteredAttributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.filteredAttributes[l]);if(c)return"filteredAttributes."+c}}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(u.value=1,typeof r.asDouble!="number"))return"asDouble: number expected";if(r.asInt!=null&&r.hasOwnProperty("asInt")){if(u.value===1)return"value: multiple values";if(u.value=1,!E.isInteger(r.asInt)&&!(r.asInt&&E.isInteger(r.asInt.low)&&E.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}return r.spanId!=null&&r.hasOwnProperty("spanId")&&!(r.spanId&&typeof r.spanId.length=="number"||E.isString(r.spanId))?"spanId: buffer expected":r.traceId!=null&&r.hasOwnProperty("traceId")&&!(r.traceId&&typeof r.traceId.length=="number"||E.isString(r.traceId))?"traceId: buffer expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.Exemplar)return r;var u=new d.opentelemetry.proto.metrics.v1.Exemplar;if(r.filteredAttributes){if(!Array.isArray(r.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");u.filteredAttributes=[];for(var l=0;l<r.filteredAttributes.length;++l){if(typeof r.filteredAttributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");u.filteredAttributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.filteredAttributes[l])}}return r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.asDouble!=null&&(u.asDouble=Number(r.asDouble)),r.asInt!=null&&(E.Long?(u.asInt=E.Long.fromValue(r.asInt)).unsigned=!1:typeof r.asInt=="string"?u.asInt=parseInt(r.asInt,10):typeof r.asInt=="number"?u.asInt=r.asInt:typeof r.asInt=="object"&&(u.asInt=new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.spanId!=null&&(typeof r.spanId=="string"?E.base64.decode(r.spanId,u.spanId=E.newBuffer(E.base64.length(r.spanId)),0):r.spanId.length>=0&&(u.spanId=r.spanId)),r.traceId!=null&&(typeof r.traceId=="string"?E.base64.decode(r.traceId,u.traceId=E.newBuffer(E.base64.length(r.traceId)),0):r.traceId.length>=0&&(u.traceId=r.traceId)),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.filteredAttributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;u.bytes===String?l.spanId="":(l.spanId=[],u.bytes!==Array&&(l.spanId=E.newBuffer(l.spanId))),u.bytes===String?l.traceId="":(l.traceId=[],u.bytes!==Array&&(l.traceId=E.newBuffer(l.traceId)))}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(l.asDouble=u.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,u.oneofs&&(l.value="asDouble")),r.spanId!=null&&r.hasOwnProperty("spanId")&&(l.spanId=u.bytes===String?E.base64.encode(r.spanId,0,r.spanId.length):u.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),r.traceId!=null&&r.hasOwnProperty("traceId")&&(l.traceId=u.bytes===String?E.base64.encode(r.traceId,0,r.traceId.length):u.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),r.asInt!=null&&r.hasOwnProperty("asInt")&&(typeof r.asInt=="number"?l.asInt=u.longs===String?String(r.asInt):r.asInt:l.asInt=u.longs===String?E.Long.prototype.toString.call(r.asInt):u.longs===Number?new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,u.oneofs&&(l.value="asInt")),r.filteredAttributes&&r.filteredAttributes.length){l.filteredAttributes=[];for(var p=0;p<r.filteredAttributes.length;++p)l.filteredAttributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.filteredAttributes[p],u)}return l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Exemplar"},a}(),i}(),n}(),e.logs=function(){var n={};return n.v1=function(){var i={};return i.LogsData=function(){function a(s){if(this.resourceLogs=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resourceLogs=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceLogs!=null&&o.resourceLogs.length)for(var u=0;u<o.resourceLogs.length;++u)d.opentelemetry.proto.logs.v1.ResourceLogs.encode(o.resourceLogs[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.LogsData;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceLogs&&l.resourceLogs.length||(l.resourceLogs=[]),l.resourceLogs.push(d.opentelemetry.proto.logs.v1.ResourceLogs.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceLogs!=null&&o.hasOwnProperty("resourceLogs")){if(!Array.isArray(o.resourceLogs))return"resourceLogs: array expected";for(var r=0;r<o.resourceLogs.length;++r){var u=d.opentelemetry.proto.logs.v1.ResourceLogs.verify(o.resourceLogs[r]);if(u)return"resourceLogs."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.LogsData)return o;var r=new d.opentelemetry.proto.logs.v1.LogsData;if(o.resourceLogs){if(!Array.isArray(o.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");r.resourceLogs=[];for(var u=0;u<o.resourceLogs.length;++u){if(typeof o.resourceLogs[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");r.resourceLogs[u]=d.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(o.resourceLogs[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceLogs=[]),o.resourceLogs&&o.resourceLogs.length){u.resourceLogs=[];for(var l=0;l<o.resourceLogs.length;++l)u.resourceLogs[l]=d.opentelemetry.proto.logs.v1.ResourceLogs.toObject(o.resourceLogs[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.LogsData"},a}(),i.ResourceLogs=function(){function a(s){if(this.scopeLogs=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resource=null,a.prototype.scopeLogs=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeLogs!=null&&o.scopeLogs.length)for(var u=0;u<o.scopeLogs.length;++u)d.opentelemetry.proto.logs.v1.ScopeLogs.encode(o.scopeLogs[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.ResourceLogs;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeLogs&&l.scopeLogs.length||(l.scopeLogs=[]),l.scopeLogs.push(d.opentelemetry.proto.logs.v1.ScopeLogs.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeLogs!=null&&o.hasOwnProperty("scopeLogs")){if(!Array.isArray(o.scopeLogs))return"scopeLogs: array expected";for(var u=0;u<o.scopeLogs.length;++u){var r=d.opentelemetry.proto.logs.v1.ScopeLogs.verify(o.scopeLogs[u]);if(r)return"scopeLogs."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.ResourceLogs)return o;var r=new d.opentelemetry.proto.logs.v1.ResourceLogs;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeLogs){if(!Array.isArray(o.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");r.scopeLogs=[];for(var u=0;u<o.scopeLogs.length;++u){if(typeof o.scopeLogs[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");r.scopeLogs[u]=d.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(o.scopeLogs[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeLogs=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(u.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeLogs&&o.scopeLogs.length){u.scopeLogs=[];for(var l=0;l<o.scopeLogs.length;++l)u.scopeLogs[l]=d.opentelemetry.proto.logs.v1.ScopeLogs.toObject(o.scopeLogs[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.ResourceLogs"},a}(),i.ScopeLogs=function(){function a(s){if(this.logRecords=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.scope=null,a.prototype.logRecords=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.logRecords!=null&&o.logRecords.length)for(var u=0;u<o.logRecords.length;++u)d.opentelemetry.proto.logs.v1.LogRecord.encode(o.logRecords[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.ScopeLogs;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.logRecords&&l.logRecords.length||(l.logRecords=[]),l.logRecords.push(d.opentelemetry.proto.logs.v1.LogRecord.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.logRecords!=null&&o.hasOwnProperty("logRecords")){if(!Array.isArray(o.logRecords))return"logRecords: array expected";for(var u=0;u<o.logRecords.length;++u){var r=d.opentelemetry.proto.logs.v1.LogRecord.verify(o.logRecords[u]);if(r)return"logRecords."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.ScopeLogs)return o;var r=new d.opentelemetry.proto.logs.v1.ScopeLogs;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.logRecords){if(!Array.isArray(o.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");r.logRecords=[];for(var u=0;u<o.logRecords.length;++u){if(typeof o.logRecords[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");r.logRecords[u]=d.opentelemetry.proto.logs.v1.LogRecord.fromObject(o.logRecords[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.logRecords=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(u.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.logRecords&&o.logRecords.length){u.logRecords=[];for(var l=0;l<o.logRecords.length;++l)u.logRecords[l]=d.opentelemetry.proto.logs.v1.LogRecord.toObject(o.logRecords[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.ScopeLogs"},a}(),i.SeverityNumber=function(){var a={},s=Object.create(a);return s[a[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,s[a[1]="SEVERITY_NUMBER_TRACE"]=1,s[a[2]="SEVERITY_NUMBER_TRACE2"]=2,s[a[3]="SEVERITY_NUMBER_TRACE3"]=3,s[a[4]="SEVERITY_NUMBER_TRACE4"]=4,s[a[5]="SEVERITY_NUMBER_DEBUG"]=5,s[a[6]="SEVERITY_NUMBER_DEBUG2"]=6,s[a[7]="SEVERITY_NUMBER_DEBUG3"]=7,s[a[8]="SEVERITY_NUMBER_DEBUG4"]=8,s[a[9]="SEVERITY_NUMBER_INFO"]=9,s[a[10]="SEVERITY_NUMBER_INFO2"]=10,s[a[11]="SEVERITY_NUMBER_INFO3"]=11,s[a[12]="SEVERITY_NUMBER_INFO4"]=12,s[a[13]="SEVERITY_NUMBER_WARN"]=13,s[a[14]="SEVERITY_NUMBER_WARN2"]=14,s[a[15]="SEVERITY_NUMBER_WARN3"]=15,s[a[16]="SEVERITY_NUMBER_WARN4"]=16,s[a[17]="SEVERITY_NUMBER_ERROR"]=17,s[a[18]="SEVERITY_NUMBER_ERROR2"]=18,s[a[19]="SEVERITY_NUMBER_ERROR3"]=19,s[a[20]="SEVERITY_NUMBER_ERROR4"]=20,s[a[21]="SEVERITY_NUMBER_FATAL"]=21,s[a[22]="SEVERITY_NUMBER_FATAL2"]=22,s[a[23]="SEVERITY_NUMBER_FATAL3"]=23,s[a[24]="SEVERITY_NUMBER_FATAL4"]=24,s}(),i.LogRecordFlags=function(){var a={},s=Object.create(a);return s[a[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,s[a[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,s}(),i.LogRecord=function(){function a(s){if(this.attributes=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.timeUnixNano=null,a.prototype.observedTimeUnixNano=null,a.prototype.severityNumber=null,a.prototype.severityText=null,a.prototype.body=null,a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.flags=null,a.prototype.traceId=null,a.prototype.spanId=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.timeUnixNano!=null&&Object.hasOwnProperty.call(o,"timeUnixNano")&&r.uint32(9).fixed64(o.timeUnixNano),o.severityNumber!=null&&Object.hasOwnProperty.call(o,"severityNumber")&&r.uint32(16).int32(o.severityNumber),o.severityText!=null&&Object.hasOwnProperty.call(o,"severityText")&&r.uint32(26).string(o.severityText),o.body!=null&&Object.hasOwnProperty.call(o,"body")&&d.opentelemetry.proto.common.v1.AnyValue.encode(o.body,r.uint32(42).fork()).ldelim(),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(50).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(56).uint32(o.droppedAttributesCount),o.flags!=null&&Object.hasOwnProperty.call(o,"flags")&&r.uint32(69).fixed32(o.flags),o.traceId!=null&&Object.hasOwnProperty.call(o,"traceId")&&r.uint32(74).bytes(o.traceId),o.spanId!=null&&Object.hasOwnProperty.call(o,"spanId")&&r.uint32(82).bytes(o.spanId),o.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"observedTimeUnixNano")&&r.uint32(89).fixed64(o.observedTimeUnixNano),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.LogRecord;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.timeUnixNano=o.fixed64();break}case 11:{l.observedTimeUnixNano=o.fixed64();break}case 2:{l.severityNumber=o.int32();break}case 3:{l.severityText=o.string();break}case 5:{l.body=d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32());break}case 6:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 7:{l.droppedAttributesCount=o.uint32();break}case 8:{l.flags=o.fixed32();break}case 9:{l.traceId=o.bytes();break}case 10:{l.spanId=o.bytes();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&!E.isInteger(o.timeUnixNano)&&!(o.timeUnixNano&&E.isInteger(o.timeUnixNano.low)&&E.isInteger(o.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(o.observedTimeUnixNano!=null&&o.hasOwnProperty("observedTimeUnixNano")&&!E.isInteger(o.observedTimeUnixNano)&&!(o.observedTimeUnixNano&&E.isInteger(o.observedTimeUnixNano.low)&&E.isInteger(o.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(o.severityNumber!=null&&o.hasOwnProperty("severityNumber"))switch(o.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(o.severityText!=null&&o.hasOwnProperty("severityText")&&!E.isString(o.severityText))return"severityText: string expected";if(o.body!=null&&o.hasOwnProperty("body")){var r=d.opentelemetry.proto.common.v1.AnyValue.verify(o.body);if(r)return"body."+r}if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var u=0;u<o.attributes.length;++u){var r=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[u]);if(r)return"attributes."+r}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":o.flags!=null&&o.hasOwnProperty("flags")&&!E.isInteger(o.flags)?"flags: integer expected":o.traceId!=null&&o.hasOwnProperty("traceId")&&!(o.traceId&&typeof o.traceId.length=="number"||E.isString(o.traceId))?"traceId: buffer expected":o.spanId!=null&&o.hasOwnProperty("spanId")&&!(o.spanId&&typeof o.spanId.length=="number"||E.isString(o.spanId))?"spanId: buffer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.LogRecord)return o;var r=new d.opentelemetry.proto.logs.v1.LogRecord;switch(o.timeUnixNano!=null&&(E.Long?(r.timeUnixNano=E.Long.fromValue(o.timeUnixNano)).unsigned=!1:typeof o.timeUnixNano=="string"?r.timeUnixNano=parseInt(o.timeUnixNano,10):typeof o.timeUnixNano=="number"?r.timeUnixNano=o.timeUnixNano:typeof o.timeUnixNano=="object"&&(r.timeUnixNano=new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber())),o.observedTimeUnixNano!=null&&(E.Long?(r.observedTimeUnixNano=E.Long.fromValue(o.observedTimeUnixNano)).unsigned=!1:typeof o.observedTimeUnixNano=="string"?r.observedTimeUnixNano=parseInt(o.observedTimeUnixNano,10):typeof o.observedTimeUnixNano=="number"?r.observedTimeUnixNano=o.observedTimeUnixNano:typeof o.observedTimeUnixNano=="object"&&(r.observedTimeUnixNano=new E.LongBits(o.observedTimeUnixNano.low>>>0,o.observedTimeUnixNano.high>>>0).toNumber())),o.severityNumber){default:if(typeof o.severityNumber=="number"){r.severityNumber=o.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:r.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:r.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:r.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:r.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:r.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:r.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:r.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:r.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:r.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:r.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:r.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:r.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:r.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:r.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:r.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:r.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:r.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:r.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:r.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:r.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:r.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:r.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:r.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:r.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:r.severityNumber=24;break}if(o.severityText!=null&&(r.severityText=String(o.severityText)),o.body!=null){if(typeof o.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");r.body=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.body)}if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),o.flags!=null&&(r.flags=o.flags>>>0),o.traceId!=null&&(typeof o.traceId=="string"?E.base64.decode(o.traceId,r.traceId=E.newBuffer(E.base64.length(o.traceId)),0):o.traceId.length>=0&&(r.traceId=o.traceId)),o.spanId!=null&&(typeof o.spanId=="string"?E.base64.decode(o.spanId,r.spanId=E.newBuffer(E.base64.length(o.spanId)),0):o.spanId.length>=0&&(r.spanId=o.spanId)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults){if(E.Long){var l=new E.Long(0,0,!1);u.timeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.timeUnixNano=r.longs===String?"0":0;if(u.severityNumber=r.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,u.severityText="",u.body=null,u.droppedAttributesCount=0,u.flags=0,r.bytes===String?u.traceId="":(u.traceId=[],r.bytes!==Array&&(u.traceId=E.newBuffer(u.traceId))),r.bytes===String?u.spanId="":(u.spanId=[],r.bytes!==Array&&(u.spanId=E.newBuffer(u.spanId))),E.Long){var l=new E.Long(0,0,!1);u.observedTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.observedTimeUnixNano=r.longs===String?"0":0}if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&(typeof o.timeUnixNano=="number"?u.timeUnixNano=r.longs===String?String(o.timeUnixNano):o.timeUnixNano:u.timeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.timeUnixNano):r.longs===Number?new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber():o.timeUnixNano),o.severityNumber!=null&&o.hasOwnProperty("severityNumber")&&(u.severityNumber=r.enums===String?d.opentelemetry.proto.logs.v1.SeverityNumber[o.severityNumber]===void 0?o.severityNumber:d.opentelemetry.proto.logs.v1.SeverityNumber[o.severityNumber]:o.severityNumber),o.severityText!=null&&o.hasOwnProperty("severityText")&&(u.severityText=o.severityText),o.body!=null&&o.hasOwnProperty("body")&&(u.body=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.body,r)),o.attributes&&o.attributes.length){u.attributes=[];for(var c=0;c<o.attributes.length;++c)u.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),o.flags!=null&&o.hasOwnProperty("flags")&&(u.flags=o.flags),o.traceId!=null&&o.hasOwnProperty("traceId")&&(u.traceId=r.bytes===String?E.base64.encode(o.traceId,0,o.traceId.length):r.bytes===Array?Array.prototype.slice.call(o.traceId):o.traceId),o.spanId!=null&&o.hasOwnProperty("spanId")&&(u.spanId=r.bytes===String?E.base64.encode(o.spanId,0,o.spanId.length):r.bytes===Array?Array.prototype.slice.call(o.spanId):o.spanId),o.observedTimeUnixNano!=null&&o.hasOwnProperty("observedTimeUnixNano")&&(typeof o.observedTimeUnixNano=="number"?u.observedTimeUnixNano=r.longs===String?String(o.observedTimeUnixNano):o.observedTimeUnixNano:u.observedTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.observedTimeUnixNano):r.longs===Number?new E.LongBits(o.observedTimeUnixNano.low>>>0,o.observedTimeUnixNano.high>>>0).toNumber():o.observedTimeUnixNano),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.LogRecord"},a}(),i}(),n}(),e}(),t}();XL.exports=d});var kr,VW,BW,GW,kW,HW,FW,QL,ZL,eI,tI=m(()=>{"use strict";kr=Ke(JL());Mu();xu();Lu();VW=kr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,BW=kr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,GW=kr.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,kW=kr.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,HW=kr.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,FW=kr.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,QL={serializeRequest:function(t){var e=Bn(t);return BW.encode(e).finish()},deserializeResponse:function(t){return VW.decode(t)}},ZL={serializeRequest:function(t){var e=Vn(t);return kW.encode(e).finish()},deserializeResponse:function(t){return GW.decode(t)}},eI={serializeRequest:function(t){var e=Dn(t);return FW.encode(e).finish()},deserializeResponse:function(t){return HW.decode(t)}}});var rI,Iu,nI,oI=m(()=>{"use strict";Mu();xu();Lu();rI={serializeRequest:function(t){var e=Dn(t,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}},Iu={serializeRequest:function(t){var e=Vn(t,{useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}},nI={serializeRequest:function(t){var e=Bn(t,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}}});var id={};nt(id,{ESpanKind:()=>Nu,JsonLogsSerializer:()=>nI,JsonMetricsSerializer:()=>Iu,JsonTraceSerializer:()=>rI,ProtobufLogsSerializer:()=>QL,ProtobufMetricsSerializer:()=>ZL,ProtobufTraceSerializer:()=>eI,createExportLogsServiceRequest:()=>Bn,createExportMetricsServiceRequest:()=>Vn,createExportTraceServiceRequest:()=>Dn,encodeAsLongBits:()=>gu,encodeAsString:()=>od,getOtlpEncoder:()=>pr,hrTimeToNanos:()=>Ou,toLongBits:()=>nd});var Cu=m(()=>{"use strict";hi();YL();Mu();xu();Lu();tI();oI()});var iI,aI=m(()=>{"use strict";iI="0.54.0"});var sI,wu,YW,qW,jW,uI=m(()=>{"use strict";Wp();Si();Cu();aI();sI=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),wu=function(){return wu=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},wu.apply(this,arguments)},YW={"User-Agent":"OTel-OTLP-Exporter-JavaScript/"+iI},qW=function(t){sI(e,t);function e(n){return t.call(this,n,Iu,wu(wu({},YW),{"Content-Type":"application/json"}),"METRICS","v1/metrics")||this}return e}(Ei),jW=function(t){sI(e,t);function e(n){return t.call(this,new qW(n),n)||this}return e}(Kp)});var lI=m(()=>{"use strict";uI()});var cI=m(()=>{"use strict";lI()});var fI={};nt(fI,{AggregationTemporalityPreference:()=>Ln,CumulativeTemporalitySelector:()=>uu,DeltaTemporalitySelector:()=>jp,LowMemoryTemporalitySelector:()=>$p,OTLPMetricExporter:()=>jW,OTLPMetricExporterBase:()=>Kp});var pI=m(()=>{"use strict";cI();qp();Wp()});var dI=h(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.createServiceClientConstructor=void 0;var $W=Zn();function KW(t,e){let n={export:{path:t,requestStream:!1,responseStream:!1,requestSerialize:i=>i,requestDeserialize:i=>i,responseSerialize:i=>i,responseDeserialize:i=>i}};return $W.makeGenericClientConstructor(n,e)}Uu.createServiceClientConstructor=KW});var Du=h(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.GrpcExporterTransport=bt.createEmptyMetadata=bt.createSslCredentials=bt.createInsecureCredentials=void 0;var WW=0,zW=2;function XW(t){return t==="gzip"?zW:WW}function JW(){let{credentials:t}=Zn();return t.createInsecure()}bt.createInsecureCredentials=JW;function QW(t,e,n){let{credentials:i}=Zn();return i.createSsl(t,e,n)}bt.createSslCredentials=QW;function ZW(){let{Metadata:t}=Zn();return new t}bt.createEmptyMetadata=ZW;var ad=class{constructor(e){this._parameters=e}shutdown(){var e;(e=this._client)===null||e===void 0||e.close()}send(e,n){let i=Buffer.from(e);if(this._client==null){let{createServiceClientConstructor:a}=dI();try{this._metadata=this._parameters.metadata()}catch(o){return Promise.resolve({status:"failure",error:o})}let s=a(this._parameters.grpcPath,this._parameters.grpcName);try{this._client=new s(this._parameters.address,this._parameters.credentials(),{"grpc.default_compression_algorithm":XW(this._parameters.compression)})}catch(o){return Promise.resolve({status:"failure",error:o})}}return new Promise(a=>{let s=Date.now()+n;if(this._metadata==null)return a({error:new Error("metadata was null"),status:"failure"});this._client.export(i,this._metadata,{deadline:s},(o,r)=>{a(o?{status:"failure",error:o}:{data:r,status:"success"})})})}};bt.GrpcExporterTransport=ad});var EI=h(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.VERSION=void 0;Vu.VERSION="0.54.0"});var vI=h(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.getOtlpGrpcDefaultConfiguration=dr.mergeOtlpGrpcConfigurationWithDefaults=dr.validateAndNormalizeUrl=void 0;var hI=(Si(),Y(Au)),Ti=Du(),ez=EI(),tz=L("url"),_I=(b(),Y(Re));function TI(t){var e;t=t.trim(),t.match(/^([\w]{1,8}):\/\//)||(t=`https://${t}`);let i=new tz.URL(t);return i.protocol==="unix:"?t:(i.pathname&&i.pathname!=="/"&&_I.diag.warn("URL path should not be set when using grpc, the path part of the URL will be ignored."),i.protocol!==""&&!(!((e=i.protocol)===null||e===void 0)&&e.match(/^(http)s?:$/))&&_I.diag.warn("URL protocol should be http(s)://. Using http://."),i.host)}dr.validateAndNormalizeUrl=TI;function SI(t,e){for(let[n,i]of Object.entries(e.getMap()))t.get(n).length<1&&t.set(n,i)}function rz(t,e,n){var i,a,s,o,r;let u=(a=(i=t.url)!==null&&i!==void 0?i:e.url)!==null&&a!==void 0?a:n.url;return Object.assign(Object.assign({},(0,hI.mergeOtlpSharedConfigurationWithDefaults)(t,e,n)),{metadata:()=>{var l,c,p,_;let f=n.metadata();return SI(f,(c=(l=t.metadata)===null||l===void 0?void 0:l.call(t).clone())!==null&&c!==void 0?c:(0,Ti.createEmptyMetadata)()),SI(f,(_=(p=e.metadata)===null||p===void 0?void 0:p.call(e))!==null&&_!==void 0?_:(0,Ti.createEmptyMetadata)()),f},url:TI(u),credentials:(r=(s=t.credentials)!==null&&s!==void 0?s:(o=e.credentials)===null||o===void 0?void 0:o.call(e,u))!==null&&r!==void 0?r:n.credentials(u)})}dr.mergeOtlpGrpcConfigurationWithDefaults=rz;function nz(){return Object.assign(Object.assign({},(0,hI.getSharedConfigurationDefaults)()),{metadata:()=>{let t=(0,Ti.createEmptyMetadata)();return t.set("User-Agent",`OTel-OTLP-Exporter-JavaScript/${ez.VERSION}`),t},url:"http://localhost:4317",credentials:t=>t.startsWith("http://")?()=>(0,Ti.createInsecureCredentials)():()=>(0,Ti.createSslCredentials)()})}dr.getOtlpGrpcDefaultConfiguration=nz});var gI=h(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.getOtlpGrpcConfigurationFromEnv=void 0;var mI=(K(),Y(Is)),vi=Du(),oz=(Si(),Y(Au)),iz=L("fs"),az=L("path"),AI=(b(),Y(Re));function sd(t,e){if(t!=null&&t!=="")return t;if(e!=null&&e!=="")return e}function sz(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_HEADERS`])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_HEADERS)===null||n===void 0?void 0:n.trim(),s=mI.baggageUtils.parseKeyPairsIntoRecord(i),o=mI.baggageUtils.parseKeyPairsIntoRecord(a);if(Object.keys(s).length===0&&Object.keys(o).length===0)return;let r=Object.assign({},o,s),u=(0,vi.createEmptyMetadata)();for(let[l,c]of Object.entries(r))u.set(l,c);return u}function uz(t){let e=sz(t);if(e!=null)return()=>e}function lz(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_ENDPOINT`])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_ENDPOINT)===null||n===void 0?void 0:n.trim();return sd(i,a)}function cz(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_INSECURE`])===null||e===void 0?void 0:e.toLowerCase().trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_INSECURE)===null||n===void 0?void 0:n.toLowerCase().trim();return sd(i,a)==="true"}function ud(t,e,n){var i,a;let s=(i=process.env[t])===null||i===void 0?void 0:i.trim(),o=(a=process.env[e])===null||a===void 0?void 0:a.trim(),r=sd(s,o);if(r!=null)try{return iz.readFileSync(az.resolve(process.cwd(),r))}catch{AI.diag.warn(n);return}else return}function fz(t){return ud(`OTEL_EXPORTER_OTLP_${t}_CLIENT_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE","Failed to read client certificate chain file")}function pz(t){return ud(`OTEL_EXPORTER_OTLP_${t}_CLIENT_KEY`,"OTEL_EXPORTER_OTLP_CLIENT_KEY","Failed to read client certificate private key file")}function yI(t){return ud(`OTEL_EXPORTER_OTLP_${t}_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CERTIFICATE","Failed to read root certificate file")}function OI(t){let e=pz(t),n=fz(t),i=yI(t),a=e!=null&&n!=null;return i!=null&&!a?(AI.diag.warn("Client key and certificate must both be provided, but one was missing - attempting to create credentials from just the root certificate"),(0,vi.createSslCredentials)(yI(t))):(0,vi.createSslCredentials)(i,e,n)}function dz(t){return cz(t)?(0,vi.createInsecureCredentials)():OI(t)}function Ez(t){return Object.assign(Object.assign({},(0,oz.getSharedConfigurationFromEnvironment)(t)),{metadata:uz(t),url:lz(t),credentials:e=>e.startsWith("http://")?()=>(0,vi.createInsecureCredentials)():e.startsWith("https://")?()=>OI(t):()=>dz(t)})}Bu.getOtlpGrpcConfigurationFromEnv=Ez});var bI=h(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.OTLPGRPCExporterNodeBase=void 0;var NI=(b(),Y(Re)),ld=(Si(),Y(Au)),RI=Du(),PI=vI(),_z=gI(),cd=class extends ld.OTLPExporterBase{constructor(e={},n,i,a,s){super(e);let o=e.credentials,r=(0,PI.mergeOtlpGrpcConfigurationWithDefaults)({url:e.url,metadata:()=>{var u;return(u=e.metadata)!==null&&u!==void 0?u:(0,RI.createEmptyMetadata)()},compression:e.compression,timeoutMillis:e.timeoutMillis,concurrencyLimit:e.concurrencyLimit,credentials:o!=null?()=>o:void 0},(0,_z.getOtlpGrpcConfigurationFromEnv)(s),(0,PI.getOtlpGrpcDefaultConfiguration)());this._serializer=n,this._timeoutMillis=r.timeoutMillis,this._concurrencyLimit=r.concurrencyLimit,e.headers&&NI.diag.warn("Headers cannot be set when using grpc"),this._transport=new RI.GrpcExporterTransport({address:r.url,compression:r.compression,credentials:r.credentials,grpcName:i,grpcPath:a,metadata:r.metadata})}onShutdown(){this._transport.shutdown()}send(e,n,i){if(this._shutdownOnce.isCalled){NI.diag.debug("Shutdown already started. Cannot send objects");return}let a=this._serializer.serializeRequest(e);if(a==null){i(new Error("Could not serialize message"));return}let s=this._transport.send(a,this._timeoutMillis).then(r=>{r.status==="success"?n():r.status==="failure"&&r.error?i(r.error):r.status==="retryable"?i(new ld.OTLPExporterError("Export failed with retryable status")):i(new ld.OTLPExporterError("Export failed with unknown error"))},i);this._sendingPromises.push(s);let o=()=>{let r=this._sendingPromises.indexOf(s);this._sendingPromises.splice(r,1)};s.then(o,o)}};Gu.OTLPGRPCExporterNodeBase=cd});var fd=h(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.OTLPGRPCExporterNodeBase=void 0;var Sz=bI();Object.defineProperty(ku,"OTLPGRPCExporterNodeBase",{enumerable:!0,get:function(){return Sz.OTLPGRPCExporterNodeBase}})});var MI=h(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.OTLPMetricExporter=void 0;var hz=(pI(),Y(fI)),Tz=fd(),vz=(Cu(),Y(id)),pd=class extends Tz.OTLPGRPCExporterNodeBase{constructor(e){super(e,vz.ProtobufMetricsSerializer,"MetricsExportService","/opentelemetry.proto.collector.metrics.v1.MetricsService/Export","METRICS")}},dd=class extends hz.OTLPMetricExporterBase{constructor(e){super(new pd(e),e)}};Hu.OTLPMetricExporter=dd});var xI=h(Hr=>{"use strict";var mz=Hr&&Hr.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),yz=Hr&&Hr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&mz(e,t,n)};Object.defineProperty(Hr,"__esModule",{value:!0});yz(MI(),Hr)});var hd=h(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.PrometheusSerializer=void 0;var Az=(b(),Y(Re)),Fr=(xn(),Y(Yp)),LI=(K(),Y(Is));function Yu(t){return t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n")}function II(t=""){return typeof t!="string"&&(t=JSON.stringify(t)),Yu(t).replace(/"/g,'\\"')}var Oz=/[^a-z0-9_]/gi,gz=/_{2,}/g;function _d(t){return t.replace(Oz,"_").replace(gz,"_")}function Ed(t,e){return!t.endsWith("_total")&&e===Fr.InstrumentType.COUNTER&&(t=t+"_total"),t}function Nz(t){return Number.isNaN(t)?"NaN":Number.isFinite(t)?`${t}`:t<0?"-Inf":"+Inf"}function Rz(t){switch(t.dataPointType){case Fr.DataPointType.SUM:return t.isMonotonic?"counter":"gauge";case Fr.DataPointType.GAUGE:return"gauge";case Fr.DataPointType.HISTOGRAM:return"histogram";default:return"untyped"}}function Fu(t,e,n,i,a){let s=!1,o="";for(let[r,u]of Object.entries(e)){let l=_d(r);s=!0,o+=`${o.length>0?",":""}${l}="${II(u)}"`}if(a)for(let[r,u]of Object.entries(a)){let l=_d(r);s=!0,o+=`${o.length>0?",":""}${l}="${II(u)}"`}return s&&(t+=`{${o}}`),`${t} ${Nz(n)}${i!==void 0?" "+String(i):""}
|
52
|
-
`}var
|
53
|
-
`;return n}_serializeMetricData(e){let n=
|
54
|
-
# UNIT ${n} ${
|
50
|
+
`,Yp(l,e),`To resolve the conflict:
|
51
|
+
`,qp(l,e))}}catch(c){i={error:c}}finally{try{r&&!r.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}return s},t}()});var QM,ZM=m(()=>{"use strict";QM=function(){function t(e){this._backingStorages=e}return t.prototype.record=function(e,n,i,a){this._backingStorages.forEach(function(s){s.record(e,n,i,a)})},t}()});var eL,tL,rL=m(()=>{"use strict";b();di();au();eL=function(){function t(e,n){this._instrumentName=e,this._valueType=n,this._buffer=new ct}return t.prototype.observe=function(e,n){if(n===void 0&&(n={}),typeof e!="number"){g.warn("non-number value provided to metric "+this._instrumentName+": "+e);return}this._valueType===pt.INT&&!Number.isInteger(e)&&(g.warn("INT value type cannot accept a floating-point value for "+this._instrumentName+", ignoring the fractional digits."),e=Math.trunc(e),!Number.isInteger(e))||this._buffer.set(n,e)},t}(),tL=function(){function t(){this._buffer=new Map}return t.prototype.observe=function(e,n,i){if(i===void 0&&(i={}),!!pi(e)){var a=this._buffer.get(e);if(a==null&&(a=new ct,this._buffer.set(e,a)),typeof n!="number"){g.warn("non-number value provided to metric "+e._descriptor.name+": "+n);return}e._descriptor.valueType===pt.INT&&!Number.isInteger(n)&&(g.warn("INT value type cannot accept a floating-point value for "+e._descriptor.name+", ignoring the fractional digits."),n=Math.trunc(n),!Number.isInteger(n))||a.set(i,n)}},t}()});var $p,Kp,nL,oL,iL,aL=m(()=>{"use strict";b();au();rL();gt();$p=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Kp=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},nL=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},oL=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},iL=function(){function t(){this._callbacks=[],this._batchCallbacks=[]}return t.prototype.addCallback=function(e,n){var i=this._findCallback(e,n);i>=0||this._callbacks.push({callback:e,instrument:n})},t.prototype.removeCallback=function(e,n){var i=this._findCallback(e,n);i<0||this._callbacks.splice(i,1)},t.prototype.addBatchCallback=function(e,n){var i=new Set(n.filter(pi));if(i.size===0){g.error("BatchObservableCallback is not associated with valid instruments",n);return}var a=this._findBatchCallback(e,i);a>=0||this._batchCallbacks.push({callback:e,instruments:i})},t.prototype.removeBatchCallback=function(e,n){var i=new Set(n.filter(pi)),a=this._findBatchCallback(e,i);a<0||this._batchCallbacks.splice(a,1)},t.prototype.observe=function(e,n){return $p(this,void 0,void 0,function(){var i,a,s,o;return Kp(this,function(r){switch(r.label){case 0:return i=this._observeCallbacks(e,n),a=this._observeBatchCallbacks(e,n),[4,Xx(oL(oL([],nL(i),!1),nL(a),!1))];case 1:return s=r.sent(),o=s.filter(Jx).map(function(u){return u.reason}),[2,o]}})})},t.prototype._observeCallbacks=function(e,n){var i=this;return this._callbacks.map(function(a){var s=a.callback,o=a.instrument;return $p(i,void 0,void 0,function(){var r,u;return Kp(this,function(l){switch(l.label){case 0:return r=new eL(o._descriptor.name,o._descriptor.valueType),u=Promise.resolve(s(r)),n!=null&&(u=fr(u,n)),[4,u];case 1:return l.sent(),o._metricStorages.forEach(function(c){c.record(r._buffer,e)}),[2]}})})})},t.prototype._observeBatchCallbacks=function(e,n){var i=this;return this._batchCallbacks.map(function(a){var s=a.callback,o=a.instruments;return $p(i,void 0,void 0,function(){var r,u;return Kp(this,function(l){switch(l.label){case 0:return r=new tL,u=Promise.resolve(s(r)),n!=null&&(u=fr(u,n)),[4,u];case 1:return l.sent(),o.forEach(function(c){var p=r._buffer.get(c);p!=null&&c._metricStorages.forEach(function(_){_.record(p,e)})}),[2]}})})})},t.prototype._findCallback=function(e,n){return this._callbacks.findIndex(function(i){return i.callback===e&&i.instrument===n})},t.prototype._findBatchCallback=function(e,n){return this._batchCallbacks.findIndex(function(i){return i.callback===e&&Qx(i.instruments,n)})},t}()});var M8,sL,uL=m(()=>{"use strict";Gp();kp();Fp();M8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),sL=function(t){M8(e,t);function e(n,i,a,s){var o=t.call(this,n)||this;return o._attributesProcessor=a,o._deltaMetricStorage=new uu(i),o._temporalMetricStorage=new lu(i,s),o}return e.prototype.record=function(n,i,a,s){i=this._attributesProcessor.process(i,a),this._deltaMetricStorage.record(n,i,a,s)},e.prototype.collect=function(n,i){var a=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(n,this._instrumentDescriptor,a,i)},e}(su)});var lL,xn,L8,cL,I8,Wp=m(()=>{"use strict";lL=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),xn=function(){function t(){}return t.Noop=function(){return I8},t}(),L8=function(t){lL(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.process=function(n,i){return n},e}(xn),cL=function(t){lL(e,t);function e(n){var i=t.call(this)||this;return i._allowedAttributeNames=n,i}return e.prototype.process=function(n,i){var a=this,s={};return Object.keys(n).filter(function(o){return a._allowedAttributeNames.includes(o)}).forEach(function(o){return s[o]=n[o]}),s},e}(xn),I8=new L8});var C8,w8,U8,fL,pL=m(()=>{"use strict";Vt();qM();gt();WM();JM();ZM();aL();uL();Wp();C8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},w8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},U8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},fL=function(){function t(e,n){this._meterProviderSharedState=e,this._instrumentationScope=n,this.metricStorageRegistry=new XM,this.observableRegistry=new iL,this.meter=new YM(this)}return t.prototype.registerMetricStorage=function(e){var n=this._registerMetricStorage(e,sL);return n.length===1?n[0]:new QM(n)},t.prototype.registerAsyncMetricStorage=function(e){var n=this._registerMetricStorage(e,KM);return n},t.prototype.collect=function(e,n,i){return C8(this,void 0,void 0,function(){var a,s,o;return w8(this,function(r){switch(r.label){case 0:return[4,this.observableRegistry.observe(n,i?.timeoutMillis)];case 1:return a=r.sent(),s=this.metricStorageRegistry.getStorages(e),s.length===0?[2,null]:(o=s.map(function(u){return u.collect(e,n)}).filter(Kx),o.length===0?[2,{errors:a}]:[2,{scopeMetrics:{scope:this._instrumentationScope,metrics:o},errors:a}])}})})},t.prototype._registerMetricStorage=function(e,n){var i=this,a=this._meterProviderSharedState.viewRegistry.findViews(e,this._instrumentationScope),s=a.map(function(u){var l=rM(u,e),c=i.metricStorageRegistry.findOrUpdateCompatibleStorage(l);if(c!=null)return c;var p=u.aggregation.createAggregator(l),_=new n(l,p,u.attributesProcessor,i._meterProviderSharedState.metricCollectors);return i.metricStorageRegistry.register(_),_});if(s.length===0){var o=this._meterProviderSharedState.selectAggregations(e.type),r=o.map(function(u){var l=U8(u,2),c=l[0],p=l[1],_=i.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(c,e);if(_!=null)return _;var f=p.createAggregator(e),S=new n(e,f,xn.Noop(),[c]);return i.metricStorageRegistry.registerForCollector(c,S),S});s=s.concat(r)}return s},t}()});var D8,dL,EL=m(()=>{"use strict";gt();UM();pL();D8=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},dL=function(){function t(e){this.resource=e,this.viewRegistry=new wM,this.metricCollectors=[],this.meterSharedStates=new Map}return t.prototype.getMeterSharedState=function(e){var n=zx(e),i=this.meterSharedStates.get(n);return i==null&&(i=new fL(this,e),this.meterSharedStates.set(n,i)),i},t.prototype.selectAggregations=function(e){var n,i,a=[];try{for(var s=D8(this.metricCollectors),o=s.next();!o.done;o=s.next()){var r=o.value;a.push([r,r.selectAggregation(e)])}}catch(u){n={error:u}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return a},t}()});var cu,fu,V8,B8,_L,SL=m(()=>{"use strict";K();cu=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},fu=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},V8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},B8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},_L=function(){function t(e,n){this._sharedState=e,this._metricReader=n}return t.prototype.collect=function(e){return cu(this,void 0,void 0,function(){var n,i,a,s,o=this;return fu(this,function(r){switch(r.label){case 0:return n=ge(Date.now()),i=[],a=[],s=Array.from(this._sharedState.meterSharedStates.values()).map(function(u){return cu(o,void 0,void 0,function(){var l;return fu(this,function(c){switch(c.label){case 0:return[4,u.collect(this,n,e)];case 1:return l=c.sent(),l?.scopeMetrics!=null&&i.push(l.scopeMetrics),l?.errors!=null&&a.push.apply(a,B8([],V8(l.errors),!1)),[2]}})})}),[4,Promise.all(s)];case 1:return r.sent(),[2,{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:i},errors:a}]}})})},t.prototype.forceFlush=function(e){return cu(this,void 0,void 0,function(){return fu(this,function(n){switch(n.label){case 0:return[4,this._metricReader.forceFlush(e)];case 1:return n.sent(),[2]}})})},t.prototype.shutdown=function(e){return cu(this,void 0,void 0,function(){return fu(this,function(n){switch(n.label){case 0:return[4,this._metricReader.shutdown(e)];case 1:return n.sent(),[2]}})})},t.prototype.selectAggregationTemporality=function(e){return this._metricReader.selectAggregationTemporality(e)},t.prototype.selectAggregation=function(e){return this._metricReader.selectAggregation(e)},t}()});var hL,TL,vL,Ei,mL=m(()=>{"use strict";b();Hs();EL();SL();hL=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},TL=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},vL=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ei=function(){function t(e){var n,i,a,s,o;this._shutdown=!1;var r=Dt.default().merge((o=e?.resource)!==null&&o!==void 0?o:Dt.empty());if(this._sharedState=new dL(r),e?.views!=null&&e.views.length>0)try{for(var u=vL(e.views),l=u.next();!l.done;l=u.next()){var c=l.value;this._sharedState.viewRegistry.addView(c)}}catch(S){n={error:S}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}if(e?.readers!=null&&e.readers.length>0)try{for(var p=vL(e.readers),_=p.next();!_.done;_=p.next()){var f=_.value;this.addMetricReader(f)}}catch(S){a={error:S}}finally{try{_&&!_.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}}return t.prototype.getMeter=function(e,n,i){return n===void 0&&(n=""),i===void 0&&(i={}),this._shutdown?(g.warn("A shutdown MeterProvider cannot provide a Meter"),_E()):this._sharedState.getMeterSharedState({name:e,version:n,schemaUrl:i.schemaUrl}).meter},t.prototype.addMetricReader=function(e){var n=new _L(this._sharedState,e);e.setMetricProducer(n),this._sharedState.metricCollectors.push(n)},t.prototype.shutdown=function(e){return hL(this,void 0,void 0,function(){return TL(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("shutdown may only be called once per MeterProvider"),[2]):(this._shutdown=!0,[4,Promise.all(this._sharedState.metricCollectors.map(function(i){return i.shutdown(e)}))]);case 1:return n.sent(),[2]}})})},t.prototype.forceFlush=function(e){return hL(this,void 0,void 0,function(){return TL(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("invalid attempt to force flush after MeterProvider shutdown"),[2]):[4,Promise.all(this._sharedState.metricCollectors.map(function(i){return i.forceFlush(e)}))];case 1:return n.sent(),[2]}})})},t}()});var G8,pu,Mn,du=m(()=>{"use strict";G8=/[\^$\\.+?()[\]{}|]/g,pu=function(){function t(e){e==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(t.escapePattern(e)))}return t.prototype.match=function(e){return this._matchAll?!0:this._regexp.test(e)},t.escapePattern=function(e){return"^"+e.replace(G8,"\\$&").replace("*",".*")+"$"},t.hasWildcard=function(e){return e.includes("*")},t}(),Mn=function(){function t(e){this._matchAll=e===void 0,this._pattern=e}return t.prototype.match=function(e){return!!(this._matchAll||e===this._pattern)},t}()});var yL,AL=m(()=>{"use strict";du();yL=function(){function t(e){var n;this._nameFilter=new pu((n=e?.name)!==null&&n!==void 0?n:"*"),this._type=e?.type,this._unitFilter=new Mn(e?.unit)}return t.prototype.getType=function(){return this._type},t.prototype.getNameFilter=function(){return this._nameFilter},t.prototype.getUnitFilter=function(){return this._unitFilter},t}()});var OL,gL=m(()=>{"use strict";du();OL=function(){function t(e){this._nameFilter=new Mn(e?.name),this._versionFilter=new Mn(e?.version),this._schemaUrlFilter=new Mn(e?.schemaUrl)}return t.prototype.getNameFilter=function(){return this._nameFilter},t.prototype.getVersionFilter=function(){return this._versionFilter},t.prototype.getSchemaUrlFilter=function(){return this._schemaUrlFilter},t}()});function k8(t){return t.instrumentName==null&&t.instrumentType==null&&t.instrumentUnit==null&&t.meterName==null&&t.meterVersion==null&&t.meterSchemaUrl==null}var NL,RL=m(()=>{"use strict";du();Wp();AL();gL();eu();NL=function(){function t(e){var n;if(k8(e))throw new Error("Cannot create view with no selector arguments supplied");if(e.name!=null&&(e?.instrumentName==null||pu.hasWildcard(e.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.");e.attributeKeys!=null?this.attributesProcessor=new cL(e.attributeKeys):this.attributesProcessor=xn.Noop(),this.name=e.name,this.description=e.description,this.aggregation=(n=e.aggregation)!==null&&n!==void 0?n:Ve.Default(),this.instrumentSelector=new yL({name:e.instrumentName,type:e.instrumentType,unit:e.instrumentUnit}),this.meterSelector=new OL({name:e.meterName,version:e.meterVersion,schemaUrl:e.meterSchemaUrl})}return t}()});var zp={};nt(zp,{Aggregation:()=>Ve,AggregationTemporality:()=>Ne,ConsoleMetricExporter:()=>IM,DataPointType:()=>Re,DefaultAggregation:()=>wp,DropAggregation:()=>bp,ExplicitBucketHistogramAggregation:()=>Ip,ExponentialHistogramAggregation:()=>Cp,HistogramAggregation:()=>Lp,InMemoryMetricExporter:()=>xM,InstrumentType:()=>C,LastValueAggregation:()=>Mp,MeterProvider:()=>Ei,MetricReader:()=>ru,PeriodicExportingMetricReader:()=>nu,SumAggregation:()=>xp,TimeoutError:()=>si,View:()=>NL});var Ln=m(()=>{"use strict";Fs();Rn();Bp();bM();MM();CM();Vt();mL();eu();RL();gt()});var In,Xp=m(()=>{"use strict";(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE",t[t.LOWMEMORY=2]="LOWMEMORY"})(In||(In={}))});function Y8(){var t=Oe(),e=t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();return e==="cumulative"?Eu:e==="delta"?Jp:e==="lowmemory"?Qp:(g.warn("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '"+t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE+"', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead."),Eu)}function q8(t){return t!=null?t===In.DELTA?Jp:t===In.LOWMEMORY?Qp:Eu:Y8()}function j8(t){return t?.aggregationPreference?t.aggregationPreference:function(e){return Ve.Default()}}var H8,F8,Eu,Jp,Qp,Zp,ed=m(()=>{"use strict";K();Ln();Xp();b();H8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},F8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Eu=function(){return Ne.CUMULATIVE},Jp=function(t){switch(t){case C.COUNTER:case C.OBSERVABLE_COUNTER:case C.GAUGE:case C.HISTOGRAM:case C.OBSERVABLE_GAUGE:return Ne.DELTA;case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:return Ne.CUMULATIVE}},Qp=function(t){switch(t){case C.COUNTER:case C.HISTOGRAM:return Ne.DELTA;case C.GAUGE:case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:case C.OBSERVABLE_COUNTER:case C.OBSERVABLE_GAUGE:return Ne.CUMULATIVE}};Zp=function(){function t(e,n){this._otlpExporter=e,this._aggregationSelector=j8(n),this._aggregationTemporalitySelector=q8(n?.temporalityPreference)}return t.prototype.export=function(e,n){this._otlpExporter.export([e],n)},t.prototype.shutdown=function(){return H8(this,void 0,void 0,function(){return F8(this,function(e){switch(e.label){case 0:return[4,this._otlpExporter.shutdown()];case 1:return e.sent(),[2]}})})},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.selectAggregation=function(e){return this._aggregationSelector(e)},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporalitySelector(e)},t}()});var Cn,_u=m(()=>{"use strict";b();K();Cn=function(){function t(e){e===void 0&&(e={}),this._sendingPromises=[],this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new lr(this._shutdown,this),this._concurrencyLimit=typeof e.concurrencyLimit=="number"?e.concurrencyLimit:30}return t.prototype.export=function(e,n){if(this._shutdownOnce.isCalled){n({code:ee.FAILED,error:new Error("Exporter has been shutdown")});return}if(this._sendingPromises.length>=this._concurrencyLimit){n({code:ee.FAILED,error:new Error("Concurrent export limit reached")});return}this._export(e).then(function(){n({code:ee.SUCCESS})}).catch(function(i){n({code:ee.FAILED,error:i})})},t.prototype._export=function(e){var n=this;return new Promise(function(i,a){try{g.debug("items to be sent",e),n.send(e,i,a)}catch(s){a(s)}})},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},t.prototype._shutdown=function(){return g.debug("shutdown started"),this.onShutdown(),this.forceFlush()},t}()});function Su(t){var e=[429,502,503,504];return e.includes(t)}function hu(t){if(t!=null){var e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;var n=new Date(t).getTime()-Date.now();return n>=0?n:0}}var td=m(()=>{"use strict"});var $8,Rt,_i=m(()=>{"use strict";$8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Rt=function(t){$8(e,t);function e(n,i,a){var s=t.call(this,n)||this;return s.name="OTLPExporterError",s.data=a,s.code=i,s}return e}(Error)});var bL={};nt(bL,{createHttpAgent:()=>J8,sendWithHttp:()=>W8});import*as Tu from"http";import*as vu from"https";import*as PL from"zlib";import{Readable as K8}from"stream";function W8(t,e,n,i,a){var s=new URL(t.url),o=Number(process.versions.node.split(".")[0]),r={hostname:s.hostname,port:s.port,path:s.pathname,method:"POST",headers:rd({},t.headers),agent:e},u=s.protocol==="http:"?Tu.request:vu.request,l=u(r,function(p){var _=[];p.on("data",function(f){return _.push(f)}),p.on("end",function(){if(p.statusCode&&p.statusCode<299)i({status:"success",data:Buffer.concat(_)});else if(p.statusCode&&Su(p.statusCode))i({status:"retryable",retryInMillis:hu(p.headers["retry-after"])});else{var f=new Rt(p.statusMessage,p.statusCode);i({status:"failure",error:f})}})});l.setTimeout(a,function(){l.destroy(),i({status:"failure",error:new Error("Request Timeout")})}),l.on("error",function(p){i({status:"failure",error:p})});var c=o>=14?"close":"abort";l.on(c,function(){i({status:"failure",error:new Error("Request timed out")})}),z8(l,t.compression,n,function(p){i({status:"failure",error:p})})}function z8(t,e,n,i){var a=X8(n);e==="gzip"&&(t.setHeader("Content-Encoding","gzip"),a=a.on("error",i).pipe(PL.createGzip()).on("error",i)),a.pipe(t)}function X8(t){var e=new K8;return e.push(t),e.push(null),e}function J8(t,e){var n=new URL(t),i=n.protocol==="http:"?Tu.Agent:vu.Agent;return new i(e)}var rd,xL=m(()=>{"use strict";td();_i();rd=function(){return rd=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},rd.apply(this,arguments)}});function ML(t){return new eW(t)}var Q8,Z8,eW,LL=m(()=>{"use strict";Q8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Z8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},eW=function(){function t(e){this._parameters=e,this._send=null,this._agent=null}return t.prototype.send=function(e,n){return Q8(this,void 0,void 0,function(){var i,a,s,o=this;return Z8(this,function(r){return this._send==null&&(i=(xL(),Y(bL)),a=i.sendWithHttp,s=i.createHttpAgent,this._agent=s(this._parameters.url,this._parameters.agentOptions),this._send=a),[2,new Promise(function(u){var l;(l=o._send)===null||l===void 0||l.call(o,o._parameters,o._agent,e,function(c){u(c)},n)})]})})},t.prototype.shutdown=function(){},t}()});function sW(){return Math.random()*(2*IL)-IL}function mu(t){return new uW(t.transport)}var tW,rW,nW,oW,iW,aW,IL,uW,nd=m(()=>{"use strict";tW=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},rW=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},nW=5,oW=1e3,iW=5e3,aW=1.5,IL=.2;uW=function(){function t(e){this._transport=e}return t.prototype.retry=function(e,n,i){var a=this;return new Promise(function(s,o){setTimeout(function(){a._transport.send(e,n).then(s,o)},i)})},t.prototype.send=function(e,n){var i;return tW(this,void 0,void 0,function(){var a,s,o,r,u,l,c;return rW(this,function(p){switch(p.label){case 0:return a=Date.now()+n,[4,this._transport.send(e,n)];case 1:s=p.sent(),o=nW,r=oW,p.label=2;case 2:return s.status==="retryable"&&o>0?(o--,u=Math.max(Math.min(r,iW)+sW(),0),r=r*aW,l=(i=s.retryInMillis)!==null&&i!==void 0?i:u,c=a-Date.now(),l>c?[2,s]:[4,this.retry(e,c,l)]):[3,4];case 3:return s=p.sent(),[3,2];case 4:return[2,s]}})})},t.prototype.shutdown=function(){return this._transport.shutdown()},t}()});function CL(t){var e;return t?.keepAlive!=null&&(t.httpAgentOptions!=null?t.httpAgentOptions.keepAlive==null&&(t.httpAgentOptions.keepAlive=t.keepAlive):t.httpAgentOptions={keepAlive:t.keepAlive}),(e=t.httpAgentOptions)!==null&&e!==void 0?e:{keepAlive:!0}}var wL=m(()=>{"use strict"});function lW(t){if(!Number.isNaN(t)&&Number.isFinite(t)&&t>0)return t;throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+t+"')")}function yu(t,e,n){var i,a,s,o,r,u;return{timeoutMillis:lW((a=(i=t.timeoutMillis)!==null&&i!==void 0?i:e.timeoutMillis)!==null&&a!==void 0?a:n.timeoutMillis),concurrencyLimit:(o=(s=t.concurrencyLimit)!==null&&s!==void 0?s:e.concurrencyLimit)!==null&&o!==void 0?o:n.concurrencyLimit,compression:(u=(r=t.compression)!==null&&r!==void 0?r:e.compression)!==null&&u!==void 0?u:n.compression}}function Au(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var od=m(()=>{"use strict"});function Ou(t){t===void 0&&(t={});var e={};return Object.entries(t).forEach(function(n){var i=cW(n,2),a=i[0],s=i[1];typeof s<"u"?e[a]=String(s):g.warn('Header "'+a+'" has invalid value ('+s+") and will be ignored")}),e}var cW,id=m(()=>{"use strict";b();cW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function fW(t,e,n){var i=kr({},n),a={};return e!=null&&Object.assign(a,e),t!=null&&Object.assign(a,t),Object.assign(a,i)}function pW(t){if(t!=null)try{return new URL(t),t}catch{throw new Error("Configuration: Could not parse user-provided export URL: '"+t+"'")}}function gu(t,e,n){var i,a;return kr(kr({},yu(t,e,n)),{headers:fW(Ou(t.headers),e.headers,n.headers),url:(a=(i=pW(t.url))!==null&&i!==void 0?i:e.url)!==null&&a!==void 0?a:n.url})}function Nu(t,e){return kr(kr({},Au()),{headers:t,url:"http://localhost:4318/"+e})}var kr,ad=m(()=>{"use strict";od();id();kr=function(){return kr=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},kr.apply(this,arguments)}});function UL(t){var e,n=(e=process.env[t])===null||e===void 0?void 0:e.trim();if(n!=null&&n!==""){var i=Number(n);if(!Number.isNaN(i)&&Number.isFinite(i)&&i>0)return i;g.warn("Configuration: "+t+" is invalid, expected number greater than 0 (actual: "+n+")")}}function dW(t){var e=UL("OTEL_EXPORTER_OTLP_"+t+"_TIMEOUT"),n=UL("OTEL_EXPORTER_OTLP_TIMEOUT");return e??n}function DL(t){var e,n=(e=process.env[t])===null||e===void 0?void 0:e.trim();if(n!==""){if(n==null||n==="none"||n==="gzip")return n;g.warn("Configuration: "+t+" is invalid, expected 'none' or 'gzip' (actual: '"+n+"')")}}function EW(t){var e=DL("OTEL_EXPORTER_OTLP_"+t+"_COMPRESSION"),n=DL("OTEL_EXPORTER_OTLP_COMPRESSION");return e??n}function Ru(t){return{timeoutMillis:dW(t),compression:EW(t)}}var sd=m(()=>{"use strict";b()});function _W(t){var e,n,i=(e=process.env["OTEL_EXPORTER_OTLP_"+t+"_HEADERS"])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_HEADERS)===null||n===void 0?void 0:n.trim(),s=Nn.parseKeyPairsIntoRecord(i),o=Nn.parseKeyPairsIntoRecord(a);if(!(Object.keys(s).length===0&&Object.keys(o).length===0))return Object.assign({},Nn.parseKeyPairsIntoRecord(a),Nn.parseKeyPairsIntoRecord(i))}function SW(t){try{var e=new URL(t);return e.toString()}catch{g.warn("Configuration: Could not parse environment-provided export URL: '"+t+"', falling back to undefined");return}}function hW(t,e){try{new URL(t)}catch{g.warn("Configuration: Could not parse environment-provided export URL: '"+t+"', falling back to undefined");return}t.endsWith("/")||(t=t+"/"),t+=e;try{new URL(t)}catch{g.warn("Configuration: Provided URL appended with '"+e+"' is not a valid URL, using 'undefined' instead of '"+t+"'");return}return t}function TW(t){var e,n=(e=process.env.OTEL_EXPORTER_OTLP_ENDPOINT)===null||e===void 0?void 0:e.trim();if(!(n==null||n===""))return hW(n,t)}function vW(t){var e,n=(e=process.env["OTEL_EXPORTER_OTLP_"+t+"_ENDPOINT"])===null||e===void 0?void 0:e.trim();if(!(n==null||n===""))return SW(n)}function VL(t,e){var n;return Pu(Pu({},Ru(t)),{url:(n=vW(t))!==null&&n!==void 0?n:TW(e),headers:_W(t)})}var Pu,BL=m(()=>{"use strict";K();b();sd();Pu=function(){return Pu=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Pu.apply(this,arguments)}});var mW,Si,GL=m(()=>{"use strict";_u();b();LL();_i();nd();wL();ad();BL();mW=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Si=function(t){mW(e,t);function e(n,i,a,s,o){n===void 0&&(n={});var r=t.call(this,n)||this,u=gu({url:n.url,headers:n.headers,concurrencyLimit:n.concurrencyLimit,timeoutMillis:n.timeoutMillis,compression:n.compression},VL(s,o),Nu(a,o));return r._timeoutMillis=u.timeoutMillis,r._concurrencyLimit=u.concurrencyLimit,n.metadata&&g.warn("Metadata cannot be set when using http"),r._serializer=i,r._transport=mu({transport:ML({agentOptions:CL(n),compression:u.compression,headers:u.headers,url:u.url})}),r}return e.prototype.send=function(n,i,a){var s=this;if(this._shutdownOnce.isCalled){g.debug("Shutdown already started. Cannot send objects");return}var o=this._serializer.serializeRequest(n);if(o==null){a(new Error("Could not serialize message"));return}var r=this._transport.send(o,this._timeoutMillis).then(function(l){l.status==="success"?i():l.status==="failure"&&l.error?a(l.error):l.status==="retryable"?a(new Rt("Export failed with retryable status")):a(new Rt("Export failed with unknown error"))},a);this._sendingPromises.push(r);var u=function(){var l=s._sendingPromises.indexOf(r);s._sendingPromises.splice(l,1)};r.then(u,u)},e.prototype.onShutdown=function(){},e}(Cn)});var hi,kL=m(()=>{"use strict";(function(t){t.NONE="none",t.GZIP="gzip"})(hi||(hi={}))});var HL=m(()=>{"use strict";GL();kL()});function FL(t){return new AW(t)}var yW,AW,YL=m(()=>{"use strict";b();td();yW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},AW=function(){function t(e){this._parameters=e}return t.prototype.send=function(e,n){var i=this;return new Promise(function(a){var s=new XMLHttpRequest;s.timeout=n,s.open("POST",i._parameters.url),Object.entries(i._parameters.headers).forEach(function(o){var r=yW(o,2),u=r[0],l=r[1];s.setRequestHeader(u,l)}),s.ontimeout=function(o){a({status:"failure",error:new Error("XHR request timed out")})},s.onreadystatechange=function(){s.status>=200&&s.status<=299?(g.debug("XHR success"),a({status:"success"})):s.status&&Su(s.status)?a({status:"retryable",retryInMillis:hu(s.getResponseHeader("Retry-After"))}):s.status!==0&&a({status:"failure",error:new Error("XHR request failed with non-retryable status")})},s.onabort=function(){a({status:"failure",error:new Error("XHR request aborted")})},s.onerror=function(){a({status:"failure",error:new Error("XHR request errored")})},s.send(new Blob([e],{type:i._parameters.headers["Content-Type"]}))})},t.prototype.shutdown=function(){},t}()});function qL(t){return new OW(t)}var OW,jL=m(()=>{"use strict";b();OW=function(){function t(e){this._params=e}return t.prototype.send=function(e){var n=this;return new Promise(function(i){navigator.sendBeacon(n._params.url,new Blob([e],{type:n._params.blobType}))?(g.debug("SendBeacon success"),i({status:"success"})):i({status:"failure",error:new Error("SendBeacon failed")})})},t.prototype.shutdown=function(){},t}()});var gW,ud,$L=m(()=>{"use strict";_u();_i();b();YL();jL();nd();ad();gW=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),ud=function(t){gW(e,t);function e(n,i,a,s){n===void 0&&(n={});var o=t.call(this,n)||this;o._serializer=i;var r=!!n.headers||typeof navigator.sendBeacon!="function",u=gu({url:n.url,timeoutMillis:n.timeoutMillis,headers:n.headers,concurrencyLimit:n.concurrencyLimit},{},Nu(a,s));return o._timeoutMillis=u.timeoutMillis,o._concurrencyLimit=u.concurrencyLimit,r?o._transport=mu({transport:FL({headers:u.headers,url:u.url})}):o._transport=qL({url:u.url,blobType:u.headers["Content-Type"]}),o}return e.prototype.onShutdown=function(){},e.prototype.send=function(n,i,a){var s=this;if(this._shutdownOnce.isCalled){g.debug("Shutdown already started. Cannot send objects");return}var o=this._serializer.serializeRequest(n);if(o==null){a(new Error("Could not serialize message"));return}var r=this._transport.send(o,this._timeoutMillis).then(function(l){l.status==="success"?i():l.status==="failure"&&l.error?a(l.error):l.status==="retryable"?a(new Rt("Export failed with retryable status")):a(new Rt("Export failed with unknown error"))},a);this._sendingPromises.push(r);var u=function(){var l=s._sendingPromises.indexOf(r);s._sendingPromises.splice(l,1)};r.then(u,u)},e}(Cn)});var KL=m(()=>{"use strict";$L()});var WL=m(()=>{"use strict";HL();KL()});var bu={};nt(bu,{CompressionAlgorithm:()=>hi,OTLPExporterBase:()=>Cn,OTLPExporterBrowserBase:()=>ud,OTLPExporterError:()=>Rt,OTLPExporterNodeBase:()=>Si,getSharedConfigurationDefaults:()=>Au,getSharedConfigurationFromEnvironment:()=>Ru,mergeOtlpSharedConfigurationWithDefaults:()=>yu,validateAndNormalizeHeaders:()=>Ou});var Ti=m(()=>{"use strict";WL();_u();_i();id();od();sd()});function xu(t){var e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function ld(t){var e=Number(BigInt.asUintN(32,t)),n=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:n}}function Mu(t){var e=xu(t);return ld(e)}function cd(t){var e=xu(t);return e.toString()}function zL(t){return t}function XL(t){if(t!==void 0)return ar(t)}function dr(t){var e,n;if(t===void 0)return RW;var i=(e=t.useLongBits)!==null&&e!==void 0?e:!0,a=(n=t.useHex)!==null&&n!==void 0?n:!1;return{encodeHrTime:i?Mu:NW,encodeSpanContext:a?zL:ar,encodeOptionalSpanContext:a?zL:XL}}var NW,RW,vi=m(()=>{"use strict";K();NW=typeof BigInt<"u"?cd:Ms;RW={encodeHrTime:Mu,encodeSpanContext:ar,encodeOptionalSpanContext:XL}});var Lu,JL=m(()=>{"use strict";(function(t){t[t.SPAN_KIND_UNSPECIFIED=0]="SPAN_KIND_UNSPECIFIED",t[t.SPAN_KIND_INTERNAL=1]="SPAN_KIND_INTERNAL",t[t.SPAN_KIND_SERVER=2]="SPAN_KIND_SERVER",t[t.SPAN_KIND_CLIENT=3]="SPAN_KIND_CLIENT",t[t.SPAN_KIND_PRODUCER=4]="SPAN_KIND_PRODUCER",t[t.SPAN_KIND_CONSUMER=5]="SPAN_KIND_CONSUMER"})(Lu||(Lu={}))});function wn(t){return{name:t.name,version:t.version}}function Pt(t){return Object.keys(t).map(function(e){return Iu(e,t[e])})}function Iu(t,e){return{key:t,value:Cu(e)}}function Cu(t){var e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(Cu)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(function(n){var i=PW(n,2),a=i[0],s=i[1];return Iu(a,s)})}}:{}}var PW,Un=m(()=>{"use strict";PW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function QL(t,e){var n,i=t.spanContext(),a=t.status;return{traceId:e.encodeSpanContext(i.traceId),spanId:e.encodeSpanContext(i.spanId),parentSpanId:e.encodeOptionalSpanContext(t.parentSpanId),traceState:(n=i.traceState)===null||n===void 0?void 0:n.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:Pt(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(function(s){return xW(s,e)}),droppedEventsCount:t.droppedEventsCount,status:{code:a.code,message:a.message},links:t.links.map(function(s){return bW(s,e)}),droppedLinksCount:t.droppedLinksCount}}function bW(t,e){var n;return{attributes:t.attributes?Pt(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:(n=t.context.traceState)===null||n===void 0?void 0:n.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function xW(t,e){return{attributes:t.attributes?Pt(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}var ZL=m(()=>{"use strict";Un()});function Dn(t){return{attributes:Pt(t.attributes),droppedAttributesCount:0}}var wu=m(()=>{"use strict";Un()});function Vn(t,e){var n=dr(e);return{resourceSpans:CW(t,n)}}function IW(t){var e,n,i=new Map;try{for(var a=MW(t),s=a.next();!s.done;s=a.next()){var o=s.value,r=i.get(o.resource);r||(r=new Map,i.set(o.resource,r));var u=o.instrumentationLibrary.name+"@"+(o.instrumentationLibrary.version||"")+":"+(o.instrumentationLibrary.schemaUrl||""),l=r.get(u);l||(l=[],r.set(u,l)),l.push(o)}}catch(c){e={error:c}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function CW(t,e){for(var n=IW(t),i=[],a=n.entries(),s=a.next();!s.done;){for(var o=LW(s.value,2),r=o[0],u=o[1],l=[],c=u.values(),p=c.next();!p.done;){var _=p.value;if(_.length>0){var f=_.map(function(v){return QL(v,e)});l.push({scope:wn(_[0].instrumentationLibrary),spans:f,schemaUrl:_[0].instrumentationLibrary.schemaUrl})}p=c.next()}var S={resource:Dn(r),scopeSpans:l,schemaUrl:void 0};i.push(S),s=a.next()}return i}var MW,LW,Uu=m(()=>{"use strict";ZL();vi();Un();wu();MW=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},LW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function tI(t,e){var n=dr(e);return{resource:Dn(t.resource),schemaUrl:void 0,scopeMetrics:wW(t.scopeMetrics,n)}}function wW(t,e){return Array.from(t.map(function(n){return{scope:wn(n.scope),metrics:n.metrics.map(function(i){return UW(i,e)}),schemaUrl:n.scope.schemaUrl}}))}function UW(t,e){var n={name:t.descriptor.name,description:t.descriptor.description,unit:t.descriptor.unit},i=GW(t.aggregationTemporality);switch(t.dataPointType){case Re.SUM:n.sum={aggregationTemporality:i,isMonotonic:t.isMonotonic,dataPoints:eI(t,e)};break;case Re.GAUGE:n.gauge={dataPoints:eI(t,e)};break;case Re.HISTOGRAM:n.histogram={aggregationTemporality:i,dataPoints:VW(t,e)};break;case Re.EXPONENTIAL_HISTOGRAM:n.exponentialHistogram={aggregationTemporality:i,dataPoints:BW(t,e)};break}return n}function DW(t,e,n){var i={attributes:Pt(t.attributes),startTimeUnixNano:n.encodeHrTime(t.startTime),timeUnixNano:n.encodeHrTime(t.endTime)};switch(e){case pt.INT:i.asInt=t.value;break;case pt.DOUBLE:i.asDouble=t.value;break}return i}function eI(t,e){return t.dataPoints.map(function(n){return DW(n,t.descriptor.valueType,e)})}function VW(t,e){return t.dataPoints.map(function(n){var i=n.value;return{attributes:Pt(n.attributes),bucketCounts:i.buckets.counts,explicitBounds:i.buckets.boundaries,count:i.count,sum:i.sum,min:i.min,max:i.max,startTimeUnixNano:e.encodeHrTime(n.startTime),timeUnixNano:e.encodeHrTime(n.endTime)}})}function BW(t,e){return t.dataPoints.map(function(n){var i=n.value;return{attributes:Pt(n.attributes),count:i.count,min:i.min,max:i.max,sum:i.sum,positive:{offset:i.positive.offset,bucketCounts:i.positive.bucketCounts},negative:{offset:i.negative.offset,bucketCounts:i.negative.bucketCounts},scale:i.scale,zeroCount:i.zeroCount,startTimeUnixNano:e.encodeHrTime(n.startTime),timeUnixNano:e.encodeHrTime(n.endTime)}})}function GW(t){switch(t){case Ne.DELTA:return 1;case Ne.CUMULATIVE:return 2}}var rI=m(()=>{"use strict";b();Ln();vi();Un();wu()});function Bn(t,e){return{resourceMetrics:t.map(function(n){return tI(n,e)})}}var Du=m(()=>{"use strict";rI()});function Gn(t,e){var n=dr(e);return{resourceLogs:FW(t,n)}}function HW(t){var e,n,i=new Map;try{for(var a=kW(t),s=a.next();!s.done;s=a.next()){var o=s.value,r=o.resource,u=o.instrumentationScope,l=u.name,c=u.version,p=c===void 0?"":c,_=u.schemaUrl,f=_===void 0?"":_,S=i.get(r);S||(S=new Map,i.set(r,S));var v=l+"@"+p+":"+f,T=S.get(v);T||(T=[],S.set(v,T)),T.push(o)}}catch(A){e={error:A}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function FW(t,e){var n=HW(t);return Array.from(n,function(i){var a=nI(i,2),s=a[0],o=a[1];return{resource:Dn(s),scopeLogs:Array.from(o,function(r){var u=nI(r,2),l=u[1];return{scope:wn(l[0].instrumentationScope),logRecords:l.map(function(c){return YW(c,e)}),schemaUrl:l[0].instrumentationScope.schemaUrl}}),schemaUrl:void 0}})}function YW(t,e){var n,i,a;return{timeUnixNano:e.encodeHrTime(t.hrTime),observedTimeUnixNano:e.encodeHrTime(t.hrTimeObserved),severityNumber:t.severityNumber,severityText:t.severityText,body:Cu(t.body),attributes:qW(t.attributes),droppedAttributesCount:t.droppedAttributesCount,flags:(n=t.spanContext)===null||n===void 0?void 0:n.traceFlags,traceId:e.encodeOptionalSpanContext((i=t.spanContext)===null||i===void 0?void 0:i.traceId),spanId:e.encodeOptionalSpanContext((a=t.spanContext)===null||a===void 0?void 0:a.spanId)}}function qW(t){return Object.keys(t).map(function(e){return Iu(e,t[e])})}var kW,nI,Vu=m(()=>{"use strict";vi();Un();wu();kW=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},nI=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});var iI=h((Jue,oI)=>{"use strict";var I=GU(),y=I.Reader,V=I.Writer,E=I.util,d=I.roots.default||(I.roots.default={});d.opentelemetry=function(){var t={};return t.proto=function(){var e={};return e.common=function(){var n={};return n.v1=function(){var i={};return i.AnyValue=function(){function a(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}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 s;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(s=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){return u||(u=V.create()),r.stringValue!=null&&Object.hasOwnProperty.call(r,"stringValue")&&u.uint32(10).string(r.stringValue),r.boolValue!=null&&Object.hasOwnProperty.call(r,"boolValue")&&u.uint32(16).bool(r.boolValue),r.intValue!=null&&Object.hasOwnProperty.call(r,"intValue")&&u.uint32(24).int64(r.intValue),r.doubleValue!=null&&Object.hasOwnProperty.call(r,"doubleValue")&&u.uint32(33).double(r.doubleValue),r.arrayValue!=null&&Object.hasOwnProperty.call(r,"arrayValue")&&d.opentelemetry.proto.common.v1.ArrayValue.encode(r.arrayValue,u.uint32(42).fork()).ldelim(),r.kvlistValue!=null&&Object.hasOwnProperty.call(r,"kvlistValue")&&d.opentelemetry.proto.common.v1.KeyValueList.encode(r.kvlistValue,u.uint32(50).fork()).ldelim(),r.bytesValue!=null&&Object.hasOwnProperty.call(r,"bytesValue")&&u.uint32(58).bytes(r.bytesValue),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.common.v1.AnyValue;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.stringValue=r.string();break}case 2:{c.boolValue=r.bool();break}case 3:{c.intValue=r.int64();break}case 4:{c.doubleValue=r.double();break}case 5:{c.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.decode(r,r.uint32());break}case 6:{c.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.decode(r,r.uint32());break}case 7:{c.bytesValue=r.bytes();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.stringValue!=null&&r.hasOwnProperty("stringValue")&&(u.value=1,!E.isString(r.stringValue)))return"stringValue: string expected";if(r.boolValue!=null&&r.hasOwnProperty("boolValue")){if(u.value===1)return"value: multiple values";if(u.value=1,typeof r.boolValue!="boolean")return"boolValue: boolean expected"}if(r.intValue!=null&&r.hasOwnProperty("intValue")){if(u.value===1)return"value: multiple values";if(u.value=1,!E.isInteger(r.intValue)&&!(r.intValue&&E.isInteger(r.intValue.low)&&E.isInteger(r.intValue.high)))return"intValue: integer|Long expected"}if(r.doubleValue!=null&&r.hasOwnProperty("doubleValue")){if(u.value===1)return"value: multiple values";if(u.value=1,typeof r.doubleValue!="number")return"doubleValue: number expected"}if(r.arrayValue!=null&&r.hasOwnProperty("arrayValue")){if(u.value===1)return"value: multiple values";u.value=1;{var l=d.opentelemetry.proto.common.v1.ArrayValue.verify(r.arrayValue);if(l)return"arrayValue."+l}}if(r.kvlistValue!=null&&r.hasOwnProperty("kvlistValue")){if(u.value===1)return"value: multiple values";u.value=1;{var l=d.opentelemetry.proto.common.v1.KeyValueList.verify(r.kvlistValue);if(l)return"kvlistValue."+l}}if(r.bytesValue!=null&&r.hasOwnProperty("bytesValue")){if(u.value===1)return"value: multiple values";if(u.value=1,!(r.bytesValue&&typeof r.bytesValue.length=="number"||E.isString(r.bytesValue)))return"bytesValue: buffer expected"}return null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.common.v1.AnyValue)return r;var u=new d.opentelemetry.proto.common.v1.AnyValue;if(r.stringValue!=null&&(u.stringValue=String(r.stringValue)),r.boolValue!=null&&(u.boolValue=!!r.boolValue),r.intValue!=null&&(E.Long?(u.intValue=E.Long.fromValue(r.intValue)).unsigned=!1:typeof r.intValue=="string"?u.intValue=parseInt(r.intValue,10):typeof r.intValue=="number"?u.intValue=r.intValue:typeof r.intValue=="object"&&(u.intValue=new E.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber())),r.doubleValue!=null&&(u.doubleValue=Number(r.doubleValue)),r.arrayValue!=null){if(typeof r.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");u.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.fromObject(r.arrayValue)}if(r.kvlistValue!=null){if(typeof r.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");u.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.fromObject(r.kvlistValue)}return r.bytesValue!=null&&(typeof r.bytesValue=="string"?E.base64.decode(r.bytesValue,u.bytesValue=E.newBuffer(E.base64.length(r.bytesValue)),0):r.bytesValue.length>=0&&(u.bytesValue=r.bytesValue)),u},a.toObject=function(r,u){u||(u={});var l={};return r.stringValue!=null&&r.hasOwnProperty("stringValue")&&(l.stringValue=r.stringValue,u.oneofs&&(l.value="stringValue")),r.boolValue!=null&&r.hasOwnProperty("boolValue")&&(l.boolValue=r.boolValue,u.oneofs&&(l.value="boolValue")),r.intValue!=null&&r.hasOwnProperty("intValue")&&(typeof r.intValue=="number"?l.intValue=u.longs===String?String(r.intValue):r.intValue:l.intValue=u.longs===String?E.Long.prototype.toString.call(r.intValue):u.longs===Number?new E.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber():r.intValue,u.oneofs&&(l.value="intValue")),r.doubleValue!=null&&r.hasOwnProperty("doubleValue")&&(l.doubleValue=u.json&&!isFinite(r.doubleValue)?String(r.doubleValue):r.doubleValue,u.oneofs&&(l.value="doubleValue")),r.arrayValue!=null&&r.hasOwnProperty("arrayValue")&&(l.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.toObject(r.arrayValue,u),u.oneofs&&(l.value="arrayValue")),r.kvlistValue!=null&&r.hasOwnProperty("kvlistValue")&&(l.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.toObject(r.kvlistValue,u),u.oneofs&&(l.value="kvlistValue")),r.bytesValue!=null&&r.hasOwnProperty("bytesValue")&&(l.bytesValue=u.bytes===String?E.base64.encode(r.bytesValue,0,r.bytesValue.length):u.bytes===Array?Array.prototype.slice.call(r.bytesValue):r.bytesValue,u.oneofs&&(l.value="bytesValue")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.common.v1.AnyValue"},a}(),i.ArrayValue=function(){function a(s){if(this.values=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.values=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.values!=null&&o.values.length)for(var u=0;u<o.values.length;++u)d.opentelemetry.proto.common.v1.AnyValue.encode(o.values[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.ArrayValue;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.values&&l.values.length||(l.values=[]),l.values.push(d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.values!=null&&o.hasOwnProperty("values")){if(!Array.isArray(o.values))return"values: array expected";for(var r=0;r<o.values.length;++r){var u=d.opentelemetry.proto.common.v1.AnyValue.verify(o.values[r]);if(u)return"values."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.ArrayValue)return o;var r=new d.opentelemetry.proto.common.v1.ArrayValue;if(o.values){if(!Array.isArray(o.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");r.values=[];for(var u=0;u<o.values.length;++u){if(typeof o.values[u]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");r.values[u]=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.values[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.values=[]),o.values&&o.values.length){u.values=[];for(var l=0;l<o.values.length;++l)u.values[l]=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.values[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.ArrayValue"},a}(),i.KeyValueList=function(){function a(s){if(this.values=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.values=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.values!=null&&o.values.length)for(var u=0;u<o.values.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.values[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.KeyValueList;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.values&&l.values.length||(l.values=[]),l.values.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.values!=null&&o.hasOwnProperty("values")){if(!Array.isArray(o.values))return"values: array expected";for(var r=0;r<o.values.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.values[r]);if(u)return"values."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.KeyValueList)return o;var r=new d.opentelemetry.proto.common.v1.KeyValueList;if(o.values){if(!Array.isArray(o.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");r.values=[];for(var u=0;u<o.values.length;++u){if(typeof o.values[u]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");r.values[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.values[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.values=[]),o.values&&o.values.length){u.values=[];for(var l=0;l<o.values.length;++l)u.values[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.values[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.KeyValueList"},a}(),i.KeyValue=function(){function a(s){if(s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.key=null,a.prototype.value=null,a.create=function(o){return new a(o)},a.encode=function(o,r){return r||(r=V.create()),o.key!=null&&Object.hasOwnProperty.call(o,"key")&&r.uint32(10).string(o.key),o.value!=null&&Object.hasOwnProperty.call(o,"value")&&d.opentelemetry.proto.common.v1.AnyValue.encode(o.value,r.uint32(18).fork()).ldelim(),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.KeyValue;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.key=o.string();break}case 2:{l.value=d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32());break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.key!=null&&o.hasOwnProperty("key")&&!E.isString(o.key))return"key: string expected";if(o.value!=null&&o.hasOwnProperty("value")){var r=d.opentelemetry.proto.common.v1.AnyValue.verify(o.value);if(r)return"value."+r}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.KeyValue)return o;var r=new d.opentelemetry.proto.common.v1.KeyValue;if(o.key!=null&&(r.key=String(o.key)),o.value!=null){if(typeof o.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");r.value=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.value)}return r},a.toObject=function(o,r){r||(r={});var u={};return r.defaults&&(u.key="",u.value=null),o.key!=null&&o.hasOwnProperty("key")&&(u.key=o.key),o.value!=null&&o.hasOwnProperty("value")&&(u.value=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.value,r)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.KeyValue"},a}(),i.InstrumentationScope=function(){function a(s){if(this.attributes=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.name=null,a.prototype.version=null,a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&r.uint32(10).string(o.name),o.version!=null&&Object.hasOwnProperty.call(o,"version")&&r.uint32(18).string(o.version),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(26).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(32).uint32(o.droppedAttributesCount),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.InstrumentationScope;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.name=o.string();break}case 2:{l.version=o.string();break}case 3:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 4:{l.droppedAttributesCount=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.name!=null&&o.hasOwnProperty("name")&&!E.isString(o.name))return"name: string expected";if(o.version!=null&&o.hasOwnProperty("version")&&!E.isString(o.version))return"version: string expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.InstrumentationScope)return o;var r=new d.opentelemetry.proto.common.v1.InstrumentationScope;if(o.name!=null&&(r.name=String(o.name)),o.version!=null&&(r.version=String(o.version)),o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults&&(u.name="",u.version="",u.droppedAttributesCount=0),o.name!=null&&o.hasOwnProperty("name")&&(u.name=o.name),o.version!=null&&o.hasOwnProperty("version")&&(u.version=o.version),o.attributes&&o.attributes.length){u.attributes=[];for(var l=0;l<o.attributes.length;++l)u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[l],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.InstrumentationScope"},a}(),i}(),n}(),e.resource=function(){var n={};return n.v1=function(){var i={};return i.Resource=function(){function a(s){if(this.attributes=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(10).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(16).uint32(o.droppedAttributesCount),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.resource.v1.Resource;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 2:{l.droppedAttributesCount=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.resource.v1.Resource)return o;var r=new d.opentelemetry.proto.resource.v1.Resource;if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults&&(u.droppedAttributesCount=0),o.attributes&&o.attributes.length){u.attributes=[];for(var l=0;l<o.attributes.length;++l)u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[l],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.resource.v1.Resource"},a}(),i}(),n}(),e.trace=function(){var n={};return n.v1=function(){var i={};return i.TracesData=function(){function a(s){if(this.resourceSpans=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resourceSpans=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceSpans!=null&&o.resourceSpans.length)for(var u=0;u<o.resourceSpans.length;++u)d.opentelemetry.proto.trace.v1.ResourceSpans.encode(o.resourceSpans[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.TracesData;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceSpans&&l.resourceSpans.length||(l.resourceSpans=[]),l.resourceSpans.push(d.opentelemetry.proto.trace.v1.ResourceSpans.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceSpans!=null&&o.hasOwnProperty("resourceSpans")){if(!Array.isArray(o.resourceSpans))return"resourceSpans: array expected";for(var r=0;r<o.resourceSpans.length;++r){var u=d.opentelemetry.proto.trace.v1.ResourceSpans.verify(o.resourceSpans[r]);if(u)return"resourceSpans."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.TracesData)return o;var r=new d.opentelemetry.proto.trace.v1.TracesData;if(o.resourceSpans){if(!Array.isArray(o.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");r.resourceSpans=[];for(var u=0;u<o.resourceSpans.length;++u){if(typeof o.resourceSpans[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");r.resourceSpans[u]=d.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(o.resourceSpans[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceSpans=[]),o.resourceSpans&&o.resourceSpans.length){u.resourceSpans=[];for(var l=0;l<o.resourceSpans.length;++l)u.resourceSpans[l]=d.opentelemetry.proto.trace.v1.ResourceSpans.toObject(o.resourceSpans[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.TracesData"},a}(),i.ResourceSpans=function(){function a(s){if(this.scopeSpans=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resource=null,a.prototype.scopeSpans=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeSpans!=null&&o.scopeSpans.length)for(var u=0;u<o.scopeSpans.length;++u)d.opentelemetry.proto.trace.v1.ScopeSpans.encode(o.scopeSpans[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.ResourceSpans;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeSpans&&l.scopeSpans.length||(l.scopeSpans=[]),l.scopeSpans.push(d.opentelemetry.proto.trace.v1.ScopeSpans.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeSpans!=null&&o.hasOwnProperty("scopeSpans")){if(!Array.isArray(o.scopeSpans))return"scopeSpans: array expected";for(var u=0;u<o.scopeSpans.length;++u){var r=d.opentelemetry.proto.trace.v1.ScopeSpans.verify(o.scopeSpans[u]);if(r)return"scopeSpans."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.ResourceSpans)return o;var r=new d.opentelemetry.proto.trace.v1.ResourceSpans;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeSpans){if(!Array.isArray(o.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");r.scopeSpans=[];for(var u=0;u<o.scopeSpans.length;++u){if(typeof o.scopeSpans[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");r.scopeSpans[u]=d.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(o.scopeSpans[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeSpans=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(u.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeSpans&&o.scopeSpans.length){u.scopeSpans=[];for(var l=0;l<o.scopeSpans.length;++l)u.scopeSpans[l]=d.opentelemetry.proto.trace.v1.ScopeSpans.toObject(o.scopeSpans[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.ResourceSpans"},a}(),i.ScopeSpans=function(){function a(s){if(this.spans=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.scope=null,a.prototype.spans=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.spans!=null&&o.spans.length)for(var u=0;u<o.spans.length;++u)d.opentelemetry.proto.trace.v1.Span.encode(o.spans[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.ScopeSpans;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.spans&&l.spans.length||(l.spans=[]),l.spans.push(d.opentelemetry.proto.trace.v1.Span.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.spans!=null&&o.hasOwnProperty("spans")){if(!Array.isArray(o.spans))return"spans: array expected";for(var u=0;u<o.spans.length;++u){var r=d.opentelemetry.proto.trace.v1.Span.verify(o.spans[u]);if(r)return"spans."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.ScopeSpans)return o;var r=new d.opentelemetry.proto.trace.v1.ScopeSpans;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.spans){if(!Array.isArray(o.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");r.spans=[];for(var u=0;u<o.spans.length;++u){if(typeof o.spans[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");r.spans[u]=d.opentelemetry.proto.trace.v1.Span.fromObject(o.spans[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.spans=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(u.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.spans&&o.spans.length){u.spans=[];for(var l=0;l<o.spans.length;++l)u.spans[l]=d.opentelemetry.proto.trace.v1.Span.toObject(o.spans[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.ScopeSpans"},a}(),i.Span=function(){function a(s){if(this.attributes=[],this.events=[],this.links=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}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=E.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.events=E.emptyArray,a.prototype.droppedEventsCount=null,a.prototype.links=E.emptyArray,a.prototype.droppedLinksCount=null,a.prototype.status=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.traceId!=null&&Object.hasOwnProperty.call(o,"traceId")&&r.uint32(10).bytes(o.traceId),o.spanId!=null&&Object.hasOwnProperty.call(o,"spanId")&&r.uint32(18).bytes(o.spanId),o.traceState!=null&&Object.hasOwnProperty.call(o,"traceState")&&r.uint32(26).string(o.traceState),o.parentSpanId!=null&&Object.hasOwnProperty.call(o,"parentSpanId")&&r.uint32(34).bytes(o.parentSpanId),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&r.uint32(42).string(o.name),o.kind!=null&&Object.hasOwnProperty.call(o,"kind")&&r.uint32(48).int32(o.kind),o.startTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"startTimeUnixNano")&&r.uint32(57).fixed64(o.startTimeUnixNano),o.endTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"endTimeUnixNano")&&r.uint32(65).fixed64(o.endTimeUnixNano),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(74).fork()).ldelim();if(o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(80).uint32(o.droppedAttributesCount),o.events!=null&&o.events.length)for(var u=0;u<o.events.length;++u)d.opentelemetry.proto.trace.v1.Span.Event.encode(o.events[u],r.uint32(90).fork()).ldelim();if(o.droppedEventsCount!=null&&Object.hasOwnProperty.call(o,"droppedEventsCount")&&r.uint32(96).uint32(o.droppedEventsCount),o.links!=null&&o.links.length)for(var u=0;u<o.links.length;++u)d.opentelemetry.proto.trace.v1.Span.Link.encode(o.links[u],r.uint32(106).fork()).ldelim();return o.droppedLinksCount!=null&&Object.hasOwnProperty.call(o,"droppedLinksCount")&&r.uint32(112).uint32(o.droppedLinksCount),o.status!=null&&Object.hasOwnProperty.call(o,"status")&&d.opentelemetry.proto.trace.v1.Status.encode(o.status,r.uint32(122).fork()).ldelim(),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.Span;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.traceId=o.bytes();break}case 2:{l.spanId=o.bytes();break}case 3:{l.traceState=o.string();break}case 4:{l.parentSpanId=o.bytes();break}case 5:{l.name=o.string();break}case 6:{l.kind=o.int32();break}case 7:{l.startTimeUnixNano=o.fixed64();break}case 8:{l.endTimeUnixNano=o.fixed64();break}case 9:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 10:{l.droppedAttributesCount=o.uint32();break}case 11:{l.events&&l.events.length||(l.events=[]),l.events.push(d.opentelemetry.proto.trace.v1.Span.Event.decode(o,o.uint32()));break}case 12:{l.droppedEventsCount=o.uint32();break}case 13:{l.links&&l.links.length||(l.links=[]),l.links.push(d.opentelemetry.proto.trace.v1.Span.Link.decode(o,o.uint32()));break}case 14:{l.droppedLinksCount=o.uint32();break}case 15:{l.status=d.opentelemetry.proto.trace.v1.Status.decode(o,o.uint32());break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.traceId!=null&&o.hasOwnProperty("traceId")&&!(o.traceId&&typeof o.traceId.length=="number"||E.isString(o.traceId)))return"traceId: buffer expected";if(o.spanId!=null&&o.hasOwnProperty("spanId")&&!(o.spanId&&typeof o.spanId.length=="number"||E.isString(o.spanId)))return"spanId: buffer expected";if(o.traceState!=null&&o.hasOwnProperty("traceState")&&!E.isString(o.traceState))return"traceState: string expected";if(o.parentSpanId!=null&&o.hasOwnProperty("parentSpanId")&&!(o.parentSpanId&&typeof o.parentSpanId.length=="number"||E.isString(o.parentSpanId)))return"parentSpanId: buffer expected";if(o.name!=null&&o.hasOwnProperty("name")&&!E.isString(o.name))return"name: string expected";if(o.kind!=null&&o.hasOwnProperty("kind"))switch(o.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(o.startTimeUnixNano)&&!(o.startTimeUnixNano&&E.isInteger(o.startTimeUnixNano.low)&&E.isInteger(o.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(o.endTimeUnixNano!=null&&o.hasOwnProperty("endTimeUnixNano")&&!E.isInteger(o.endTimeUnixNano)&&!(o.endTimeUnixNano&&E.isInteger(o.endTimeUnixNano.low)&&E.isInteger(o.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}if(o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(o.events!=null&&o.hasOwnProperty("events")){if(!Array.isArray(o.events))return"events: array expected";for(var r=0;r<o.events.length;++r){var u=d.opentelemetry.proto.trace.v1.Span.Event.verify(o.events[r]);if(u)return"events."+u}}if(o.droppedEventsCount!=null&&o.hasOwnProperty("droppedEventsCount")&&!E.isInteger(o.droppedEventsCount))return"droppedEventsCount: integer expected";if(o.links!=null&&o.hasOwnProperty("links")){if(!Array.isArray(o.links))return"links: array expected";for(var r=0;r<o.links.length;++r){var u=d.opentelemetry.proto.trace.v1.Span.Link.verify(o.links[r]);if(u)return"links."+u}}if(o.droppedLinksCount!=null&&o.hasOwnProperty("droppedLinksCount")&&!E.isInteger(o.droppedLinksCount))return"droppedLinksCount: integer expected";if(o.status!=null&&o.hasOwnProperty("status")){var u=d.opentelemetry.proto.trace.v1.Status.verify(o.status);if(u)return"status."+u}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.Span)return o;var r=new d.opentelemetry.proto.trace.v1.Span;switch(o.traceId!=null&&(typeof o.traceId=="string"?E.base64.decode(o.traceId,r.traceId=E.newBuffer(E.base64.length(o.traceId)),0):o.traceId.length>=0&&(r.traceId=o.traceId)),o.spanId!=null&&(typeof o.spanId=="string"?E.base64.decode(o.spanId,r.spanId=E.newBuffer(E.base64.length(o.spanId)),0):o.spanId.length>=0&&(r.spanId=o.spanId)),o.traceState!=null&&(r.traceState=String(o.traceState)),o.parentSpanId!=null&&(typeof o.parentSpanId=="string"?E.base64.decode(o.parentSpanId,r.parentSpanId=E.newBuffer(E.base64.length(o.parentSpanId)),0):o.parentSpanId.length>=0&&(r.parentSpanId=o.parentSpanId)),o.name!=null&&(r.name=String(o.name)),o.kind){default:if(typeof o.kind=="number"){r.kind=o.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:r.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:r.kind=1;break;case"SPAN_KIND_SERVER":case 2:r.kind=2;break;case"SPAN_KIND_CLIENT":case 3:r.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:r.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:r.kind=5;break}if(o.startTimeUnixNano!=null&&(E.Long?(r.startTimeUnixNano=E.Long.fromValue(o.startTimeUnixNano)).unsigned=!1:typeof o.startTimeUnixNano=="string"?r.startTimeUnixNano=parseInt(o.startTimeUnixNano,10):typeof o.startTimeUnixNano=="number"?r.startTimeUnixNano=o.startTimeUnixNano:typeof o.startTimeUnixNano=="object"&&(r.startTimeUnixNano=new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber())),o.endTimeUnixNano!=null&&(E.Long?(r.endTimeUnixNano=E.Long.fromValue(o.endTimeUnixNano)).unsigned=!1:typeof o.endTimeUnixNano=="string"?r.endTimeUnixNano=parseInt(o.endTimeUnixNano,10):typeof o.endTimeUnixNano=="number"?r.endTimeUnixNano=o.endTimeUnixNano:typeof o.endTimeUnixNano=="object"&&(r.endTimeUnixNano=new E.LongBits(o.endTimeUnixNano.low>>>0,o.endTimeUnixNano.high>>>0).toNumber())),o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}if(o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),o.events){if(!Array.isArray(o.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");r.events=[];for(var u=0;u<o.events.length;++u){if(typeof o.events[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");r.events[u]=d.opentelemetry.proto.trace.v1.Span.Event.fromObject(o.events[u])}}if(o.droppedEventsCount!=null&&(r.droppedEventsCount=o.droppedEventsCount>>>0),o.links){if(!Array.isArray(o.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");r.links=[];for(var u=0;u<o.links.length;++u){if(typeof o.links[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");r.links[u]=d.opentelemetry.proto.trace.v1.Span.Link.fromObject(o.links[u])}}if(o.droppedLinksCount!=null&&(r.droppedLinksCount=o.droppedLinksCount>>>0),o.status!=null){if(typeof o.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");r.status=d.opentelemetry.proto.trace.v1.Status.fromObject(o.status)}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[],u.events=[],u.links=[]),r.defaults){if(r.bytes===String?u.traceId="":(u.traceId=[],r.bytes!==Array&&(u.traceId=E.newBuffer(u.traceId))),r.bytes===String?u.spanId="":(u.spanId=[],r.bytes!==Array&&(u.spanId=E.newBuffer(u.spanId))),u.traceState="",r.bytes===String?u.parentSpanId="":(u.parentSpanId=[],r.bytes!==Array&&(u.parentSpanId=E.newBuffer(u.parentSpanId))),u.name="",u.kind=r.enums===String?"SPAN_KIND_UNSPECIFIED":0,E.Long){var l=new E.Long(0,0,!1);u.startTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.startTimeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);u.endTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.endTimeUnixNano=r.longs===String?"0":0;u.droppedAttributesCount=0,u.droppedEventsCount=0,u.droppedLinksCount=0,u.status=null}if(o.traceId!=null&&o.hasOwnProperty("traceId")&&(u.traceId=r.bytes===String?E.base64.encode(o.traceId,0,o.traceId.length):r.bytes===Array?Array.prototype.slice.call(o.traceId):o.traceId),o.spanId!=null&&o.hasOwnProperty("spanId")&&(u.spanId=r.bytes===String?E.base64.encode(o.spanId,0,o.spanId.length):r.bytes===Array?Array.prototype.slice.call(o.spanId):o.spanId),o.traceState!=null&&o.hasOwnProperty("traceState")&&(u.traceState=o.traceState),o.parentSpanId!=null&&o.hasOwnProperty("parentSpanId")&&(u.parentSpanId=r.bytes===String?E.base64.encode(o.parentSpanId,0,o.parentSpanId.length):r.bytes===Array?Array.prototype.slice.call(o.parentSpanId):o.parentSpanId),o.name!=null&&o.hasOwnProperty("name")&&(u.name=o.name),o.kind!=null&&o.hasOwnProperty("kind")&&(u.kind=r.enums===String?d.opentelemetry.proto.trace.v1.Span.SpanKind[o.kind]===void 0?o.kind:d.opentelemetry.proto.trace.v1.Span.SpanKind[o.kind]:o.kind),o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&(typeof o.startTimeUnixNano=="number"?u.startTimeUnixNano=r.longs===String?String(o.startTimeUnixNano):o.startTimeUnixNano:u.startTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.startTimeUnixNano):r.longs===Number?new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber():o.startTimeUnixNano),o.endTimeUnixNano!=null&&o.hasOwnProperty("endTimeUnixNano")&&(typeof o.endTimeUnixNano=="number"?u.endTimeUnixNano=r.longs===String?String(o.endTimeUnixNano):o.endTimeUnixNano:u.endTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.endTimeUnixNano):r.longs===Number?new E.LongBits(o.endTimeUnixNano.low>>>0,o.endTimeUnixNano.high>>>0).toNumber():o.endTimeUnixNano),o.attributes&&o.attributes.length){u.attributes=[];for(var c=0;c<o.attributes.length;++c)u.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}if(o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),o.events&&o.events.length){u.events=[];for(var c=0;c<o.events.length;++c)u.events[c]=d.opentelemetry.proto.trace.v1.Span.Event.toObject(o.events[c],r)}if(o.droppedEventsCount!=null&&o.hasOwnProperty("droppedEventsCount")&&(u.droppedEventsCount=o.droppedEventsCount),o.links&&o.links.length){u.links=[];for(var c=0;c<o.links.length;++c)u.links[c]=d.opentelemetry.proto.trace.v1.Span.Link.toObject(o.links[c],r)}return o.droppedLinksCount!=null&&o.hasOwnProperty("droppedLinksCount")&&(u.droppedLinksCount=o.droppedLinksCount),o.status!=null&&o.hasOwnProperty("status")&&(u.status=d.opentelemetry.proto.trace.v1.Status.toObject(o.status,r)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.Span"},a.SpanKind=function(){var s={},o=Object.create(s);return o[s[0]="SPAN_KIND_UNSPECIFIED"]=0,o[s[1]="SPAN_KIND_INTERNAL"]=1,o[s[2]="SPAN_KIND_SERVER"]=2,o[s[3]="SPAN_KIND_CLIENT"]=3,o[s[4]="SPAN_KIND_PRODUCER"]=4,o[s[5]="SPAN_KIND_CONSUMER"]=5,o}(),a.Event=function(){function s(o){if(this.attributes=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.timeUnixNano=null,s.prototype.name=null,s.prototype.attributes=E.emptyArray,s.prototype.droppedAttributesCount=null,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(9).fixed64(r.timeUnixNano),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&u.uint32(18).string(r.name),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&u.uint32(32).uint32(r.droppedAttributesCount),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.trace.v1.Span.Event;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.timeUnixNano=r.fixed64();break}case 2:{c.name=r.string();break}case 3:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 4:{c.droppedAttributesCount=r.uint32();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.name!=null&&r.hasOwnProperty("name")&&!E.isString(r.name))return"name: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var u=0;u<r.attributes.length;++u){var l=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[u]);if(l)return"attributes."+l}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.trace.v1.Span.Event)return r;var u=new d.opentelemetry.proto.trace.v1.Span.Event;if(r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.name!=null&&(u.name=String(r.name)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}return r.droppedAttributesCount!=null&&(u.droppedAttributesCount=r.droppedAttributesCount>>>0),u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.attributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;l.name="",l.droppedAttributesCount=0}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.name!=null&&r.hasOwnProperty("name")&&(l.name=r.name),r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(l.droppedAttributesCount=r.droppedAttributesCount),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Event"},s}(),a.Link=function(){function s(o){if(this.attributes=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.traceId=null,s.prototype.spanId=null,s.prototype.traceState=null,s.prototype.attributes=E.emptyArray,s.prototype.droppedAttributesCount=null,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.traceId!=null&&Object.hasOwnProperty.call(r,"traceId")&&u.uint32(10).bytes(r.traceId),r.spanId!=null&&Object.hasOwnProperty.call(r,"spanId")&&u.uint32(18).bytes(r.spanId),r.traceState!=null&&Object.hasOwnProperty.call(r,"traceState")&&u.uint32(26).string(r.traceState),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(34).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&u.uint32(40).uint32(r.droppedAttributesCount),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.trace.v1.Span.Link;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.traceId=r.bytes();break}case 2:{c.spanId=r.bytes();break}case 3:{c.traceState=r.string();break}case 4:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 5:{c.droppedAttributesCount=r.uint32();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.traceId!=null&&r.hasOwnProperty("traceId")&&!(r.traceId&&typeof r.traceId.length=="number"||E.isString(r.traceId)))return"traceId: buffer expected";if(r.spanId!=null&&r.hasOwnProperty("spanId")&&!(r.spanId&&typeof r.spanId.length=="number"||E.isString(r.spanId)))return"spanId: buffer expected";if(r.traceState!=null&&r.hasOwnProperty("traceState")&&!E.isString(r.traceState))return"traceState: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var u=0;u<r.attributes.length;++u){var l=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[u]);if(l)return"attributes."+l}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.trace.v1.Span.Link)return r;var u=new d.opentelemetry.proto.trace.v1.Span.Link;if(r.traceId!=null&&(typeof r.traceId=="string"?E.base64.decode(r.traceId,u.traceId=E.newBuffer(E.base64.length(r.traceId)),0):r.traceId.length>=0&&(u.traceId=r.traceId)),r.spanId!=null&&(typeof r.spanId=="string"?E.base64.decode(r.spanId,u.spanId=E.newBuffer(E.base64.length(r.spanId)),0):r.spanId.length>=0&&(u.spanId=r.spanId)),r.traceState!=null&&(u.traceState=String(r.traceState)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}return r.droppedAttributesCount!=null&&(u.droppedAttributesCount=r.droppedAttributesCount>>>0),u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.attributes=[]),u.defaults&&(u.bytes===String?l.traceId="":(l.traceId=[],u.bytes!==Array&&(l.traceId=E.newBuffer(l.traceId))),u.bytes===String?l.spanId="":(l.spanId=[],u.bytes!==Array&&(l.spanId=E.newBuffer(l.spanId))),l.traceState="",l.droppedAttributesCount=0),r.traceId!=null&&r.hasOwnProperty("traceId")&&(l.traceId=u.bytes===String?E.base64.encode(r.traceId,0,r.traceId.length):u.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),r.spanId!=null&&r.hasOwnProperty("spanId")&&(l.spanId=u.bytes===String?E.base64.encode(r.spanId,0,r.spanId.length):u.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),r.traceState!=null&&r.hasOwnProperty("traceState")&&(l.traceState=r.traceState),r.attributes&&r.attributes.length){l.attributes=[];for(var c=0;c<r.attributes.length;++c)l.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[c],u)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(l.droppedAttributesCount=r.droppedAttributesCount),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Link"},s}(),a}(),i.Status=function(){function a(s){if(s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.message=null,a.prototype.code=null,a.create=function(o){return new a(o)},a.encode=function(o,r){return r||(r=V.create()),o.message!=null&&Object.hasOwnProperty.call(o,"message")&&r.uint32(18).string(o.message),o.code!=null&&Object.hasOwnProperty.call(o,"code")&&r.uint32(24).int32(o.code),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.Status;o.pos<u;){var c=o.uint32();switch(c>>>3){case 2:{l.message=o.string();break}case 3:{l.code=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.message!=null&&o.hasOwnProperty("message")&&!E.isString(o.message))return"message: string expected";if(o.code!=null&&o.hasOwnProperty("code"))switch(o.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.Status)return o;var r=new d.opentelemetry.proto.trace.v1.Status;switch(o.message!=null&&(r.message=String(o.message)),o.code){default:if(typeof o.code=="number"){r.code=o.code;break}break;case"STATUS_CODE_UNSET":case 0:r.code=0;break;case"STATUS_CODE_OK":case 1:r.code=1;break;case"STATUS_CODE_ERROR":case 2:r.code=2;break}return r},a.toObject=function(o,r){r||(r={});var u={};return r.defaults&&(u.message="",u.code=r.enums===String?"STATUS_CODE_UNSET":0),o.message!=null&&o.hasOwnProperty("message")&&(u.message=o.message),o.code!=null&&o.hasOwnProperty("code")&&(u.code=r.enums===String?d.opentelemetry.proto.trace.v1.Status.StatusCode[o.code]===void 0?o.code:d.opentelemetry.proto.trace.v1.Status.StatusCode[o.code]:o.code),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.Status"},a.StatusCode=function(){var s={},o=Object.create(s);return o[s[0]="STATUS_CODE_UNSET"]=0,o[s[1]="STATUS_CODE_OK"]=1,o[s[2]="STATUS_CODE_ERROR"]=2,o}(),a}(),i}(),n}(),e.collector=function(){var n={};return n.trace=function(){var i={};return i.v1=function(){var a={};return a.TraceService=function(){function s(o,r,u){I.rpc.Service.call(this,o,r,u)}return(s.prototype=Object.create(I.rpc.Service.prototype)).constructor=s,s.create=function(r,u,l){return new this(r,u,l)},Object.defineProperty(s.prototype.export=function o(r,u){return this.rpcCall(o,d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,r,u)},"name",{value:"Export"}),s}(),a.ExportTraceServiceRequest=function(){function s(o){if(this.resourceSpans=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.resourceSpans=E.emptyArray,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.resourceSpans!=null&&r.resourceSpans.length)for(var l=0;l<r.resourceSpans.length;++l)d.opentelemetry.proto.trace.v1.ResourceSpans.encode(r.resourceSpans[l],u.uint32(10).fork()).ldelim();return u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceSpans&&c.resourceSpans.length||(c.resourceSpans=[]),c.resourceSpans.push(d.opentelemetry.proto.trace.v1.ResourceSpans.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceSpans!=null&&r.hasOwnProperty("resourceSpans")){if(!Array.isArray(r.resourceSpans))return"resourceSpans: array expected";for(var u=0;u<r.resourceSpans.length;++u){var l=d.opentelemetry.proto.trace.v1.ResourceSpans.verify(r.resourceSpans[u]);if(l)return"resourceSpans."+l}}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return r;var u=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(r.resourceSpans){if(!Array.isArray(r.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");u.resourceSpans=[];for(var l=0;l<r.resourceSpans.length;++l){if(typeof r.resourceSpans[l]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");u.resourceSpans[l]=d.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(r.resourceSpans[l])}}return u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.resourceSpans=[]),r.resourceSpans&&r.resourceSpans.length){l.resourceSpans=[];for(var c=0;c<r.resourceSpans.length;++c)l.resourceSpans[c]=d.opentelemetry.proto.trace.v1.ResourceSpans.toObject(r.resourceSpans[c],u)}return l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},s}(),a.ExportTraceServiceResponse=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.partialSuccess=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var u=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return r;var u=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");u.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(r.partialSuccess)}return u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(r.partialSuccess,u)),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},s}(),a.ExportTracePartialSuccess=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.rejectedSpans=null,s.prototype.errorMessage=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.rejectedSpans!=null&&Object.hasOwnProperty.call(r,"rejectedSpans")&&u.uint32(8).int64(r.rejectedSpans),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedSpans=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedSpans!=null&&r.hasOwnProperty("rejectedSpans")&&!E.isInteger(r.rejectedSpans)&&!(r.rejectedSpans&&E.isInteger(r.rejectedSpans.low)&&E.isInteger(r.rejectedSpans.high))?"rejectedSpans: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return r;var u=new d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return r.rejectedSpans!=null&&(E.Long?(u.rejectedSpans=E.Long.fromValue(r.rejectedSpans)).unsigned=!1:typeof r.rejectedSpans=="string"?u.rejectedSpans=parseInt(r.rejectedSpans,10):typeof r.rejectedSpans=="number"?u.rejectedSpans=r.rejectedSpans:typeof r.rejectedSpans=="object"&&(u.rejectedSpans=new E.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber())),r.errorMessage!=null&&(u.errorMessage=String(r.errorMessage)),u},s.toObject=function(r,u){u||(u={});var l={};if(u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedSpans=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.rejectedSpans=u.longs===String?"0":0;l.errorMessage=""}return r.rejectedSpans!=null&&r.hasOwnProperty("rejectedSpans")&&(typeof r.rejectedSpans=="number"?l.rejectedSpans=u.longs===String?String(r.rejectedSpans):r.rejectedSpans:l.rejectedSpans=u.longs===String?E.Long.prototype.toString.call(r.rejectedSpans):u.longs===Number?new E.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber():r.rejectedSpans),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},s}(),a}(),i}(),n.metrics=function(){var i={};return i.v1=function(){var a={};return a.MetricsService=function(){function s(o,r,u){I.rpc.Service.call(this,o,r,u)}return(s.prototype=Object.create(I.rpc.Service.prototype)).constructor=s,s.create=function(r,u,l){return new this(r,u,l)},Object.defineProperty(s.prototype.export=function o(r,u){return this.rpcCall(o,d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,r,u)},"name",{value:"Export"}),s}(),a.ExportMetricsServiceRequest=function(){function s(o){if(this.resourceMetrics=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.resourceMetrics=E.emptyArray,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.resourceMetrics!=null&&r.resourceMetrics.length)for(var l=0;l<r.resourceMetrics.length;++l)d.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(r.resourceMetrics[l],u.uint32(10).fork()).ldelim();return u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceMetrics&&c.resourceMetrics.length||(c.resourceMetrics=[]),c.resourceMetrics.push(d.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceMetrics!=null&&r.hasOwnProperty("resourceMetrics")){if(!Array.isArray(r.resourceMetrics))return"resourceMetrics: array expected";for(var u=0;u<r.resourceMetrics.length;++u){var l=d.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(r.resourceMetrics[u]);if(l)return"resourceMetrics."+l}}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return r;var u=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(r.resourceMetrics){if(!Array.isArray(r.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");u.resourceMetrics=[];for(var l=0;l<r.resourceMetrics.length;++l){if(typeof r.resourceMetrics[l]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");u.resourceMetrics[l]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(r.resourceMetrics[l])}}return u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.resourceMetrics=[]),r.resourceMetrics&&r.resourceMetrics.length){l.resourceMetrics=[];for(var c=0;c<r.resourceMetrics.length;++c)l.resourceMetrics[c]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(r.resourceMetrics[c],u)}return l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},s}(),a.ExportMetricsServiceResponse=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.partialSuccess=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var u=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return r;var u=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");u.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(r.partialSuccess)}return u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(r.partialSuccess,u)),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},s}(),a.ExportMetricsPartialSuccess=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.rejectedDataPoints=null,s.prototype.errorMessage=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.rejectedDataPoints!=null&&Object.hasOwnProperty.call(r,"rejectedDataPoints")&&u.uint32(8).int64(r.rejectedDataPoints),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedDataPoints=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedDataPoints!=null&&r.hasOwnProperty("rejectedDataPoints")&&!E.isInteger(r.rejectedDataPoints)&&!(r.rejectedDataPoints&&E.isInteger(r.rejectedDataPoints.low)&&E.isInteger(r.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return r;var u=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return r.rejectedDataPoints!=null&&(E.Long?(u.rejectedDataPoints=E.Long.fromValue(r.rejectedDataPoints)).unsigned=!1:typeof r.rejectedDataPoints=="string"?u.rejectedDataPoints=parseInt(r.rejectedDataPoints,10):typeof r.rejectedDataPoints=="number"?u.rejectedDataPoints=r.rejectedDataPoints:typeof r.rejectedDataPoints=="object"&&(u.rejectedDataPoints=new E.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber())),r.errorMessage!=null&&(u.errorMessage=String(r.errorMessage)),u},s.toObject=function(r,u){u||(u={});var l={};if(u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedDataPoints=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.rejectedDataPoints=u.longs===String?"0":0;l.errorMessage=""}return r.rejectedDataPoints!=null&&r.hasOwnProperty("rejectedDataPoints")&&(typeof r.rejectedDataPoints=="number"?l.rejectedDataPoints=u.longs===String?String(r.rejectedDataPoints):r.rejectedDataPoints:l.rejectedDataPoints=u.longs===String?E.Long.prototype.toString.call(r.rejectedDataPoints):u.longs===Number?new E.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber():r.rejectedDataPoints),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},s}(),a}(),i}(),n.logs=function(){var i={};return i.v1=function(){var a={};return a.LogsService=function(){function s(o,r,u){I.rpc.Service.call(this,o,r,u)}return(s.prototype=Object.create(I.rpc.Service.prototype)).constructor=s,s.create=function(r,u,l){return new this(r,u,l)},Object.defineProperty(s.prototype.export=function o(r,u){return this.rpcCall(o,d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,r,u)},"name",{value:"Export"}),s}(),a.ExportLogsServiceRequest=function(){function s(o){if(this.resourceLogs=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.resourceLogs=E.emptyArray,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.resourceLogs!=null&&r.resourceLogs.length)for(var l=0;l<r.resourceLogs.length;++l)d.opentelemetry.proto.logs.v1.ResourceLogs.encode(r.resourceLogs[l],u.uint32(10).fork()).ldelim();return u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceLogs&&c.resourceLogs.length||(c.resourceLogs=[]),c.resourceLogs.push(d.opentelemetry.proto.logs.v1.ResourceLogs.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceLogs!=null&&r.hasOwnProperty("resourceLogs")){if(!Array.isArray(r.resourceLogs))return"resourceLogs: array expected";for(var u=0;u<r.resourceLogs.length;++u){var l=d.opentelemetry.proto.logs.v1.ResourceLogs.verify(r.resourceLogs[u]);if(l)return"resourceLogs."+l}}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return r;var u=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(r.resourceLogs){if(!Array.isArray(r.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");u.resourceLogs=[];for(var l=0;l<r.resourceLogs.length;++l){if(typeof r.resourceLogs[l]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");u.resourceLogs[l]=d.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(r.resourceLogs[l])}}return u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.resourceLogs=[]),r.resourceLogs&&r.resourceLogs.length){l.resourceLogs=[];for(var c=0;c<r.resourceLogs.length;++c)l.resourceLogs[c]=d.opentelemetry.proto.logs.v1.ResourceLogs.toObject(r.resourceLogs[c],u)}return l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},s}(),a.ExportLogsServiceResponse=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.partialSuccess=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var u=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return r;var u=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");u.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(r.partialSuccess)}return u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(r.partialSuccess,u)),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},s}(),a.ExportLogsPartialSuccess=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.rejectedLogRecords=null,s.prototype.errorMessage=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.rejectedLogRecords!=null&&Object.hasOwnProperty.call(r,"rejectedLogRecords")&&u.uint32(8).int64(r.rejectedLogRecords),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedLogRecords=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedLogRecords!=null&&r.hasOwnProperty("rejectedLogRecords")&&!E.isInteger(r.rejectedLogRecords)&&!(r.rejectedLogRecords&&E.isInteger(r.rejectedLogRecords.low)&&E.isInteger(r.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return r;var u=new d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return r.rejectedLogRecords!=null&&(E.Long?(u.rejectedLogRecords=E.Long.fromValue(r.rejectedLogRecords)).unsigned=!1:typeof r.rejectedLogRecords=="string"?u.rejectedLogRecords=parseInt(r.rejectedLogRecords,10):typeof r.rejectedLogRecords=="number"?u.rejectedLogRecords=r.rejectedLogRecords:typeof r.rejectedLogRecords=="object"&&(u.rejectedLogRecords=new E.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber())),r.errorMessage!=null&&(u.errorMessage=String(r.errorMessage)),u},s.toObject=function(r,u){u||(u={});var l={};if(u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedLogRecords=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.rejectedLogRecords=u.longs===String?"0":0;l.errorMessage=""}return r.rejectedLogRecords!=null&&r.hasOwnProperty("rejectedLogRecords")&&(typeof r.rejectedLogRecords=="number"?l.rejectedLogRecords=u.longs===String?String(r.rejectedLogRecords):r.rejectedLogRecords:l.rejectedLogRecords=u.longs===String?E.Long.prototype.toString.call(r.rejectedLogRecords):u.longs===Number?new E.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber():r.rejectedLogRecords),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},s}(),a}(),i}(),n}(),e.metrics=function(){var n={};return n.v1=function(){var i={};return i.MetricsData=function(){function a(s){if(this.resourceMetrics=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resourceMetrics=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceMetrics!=null&&o.resourceMetrics.length)for(var u=0;u<o.resourceMetrics.length;++u)d.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(o.resourceMetrics[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.MetricsData;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceMetrics&&l.resourceMetrics.length||(l.resourceMetrics=[]),l.resourceMetrics.push(d.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceMetrics!=null&&o.hasOwnProperty("resourceMetrics")){if(!Array.isArray(o.resourceMetrics))return"resourceMetrics: array expected";for(var r=0;r<o.resourceMetrics.length;++r){var u=d.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(o.resourceMetrics[r]);if(u)return"resourceMetrics."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.MetricsData)return o;var r=new d.opentelemetry.proto.metrics.v1.MetricsData;if(o.resourceMetrics){if(!Array.isArray(o.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");r.resourceMetrics=[];for(var u=0;u<o.resourceMetrics.length;++u){if(typeof o.resourceMetrics[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");r.resourceMetrics[u]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(o.resourceMetrics[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceMetrics=[]),o.resourceMetrics&&o.resourceMetrics.length){u.resourceMetrics=[];for(var l=0;l<o.resourceMetrics.length;++l)u.resourceMetrics[l]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(o.resourceMetrics[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.MetricsData"},a}(),i.ResourceMetrics=function(){function a(s){if(this.scopeMetrics=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resource=null,a.prototype.scopeMetrics=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeMetrics!=null&&o.scopeMetrics.length)for(var u=0;u<o.scopeMetrics.length;++u)d.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(o.scopeMetrics[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ResourceMetrics;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeMetrics&&l.scopeMetrics.length||(l.scopeMetrics=[]),l.scopeMetrics.push(d.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeMetrics!=null&&o.hasOwnProperty("scopeMetrics")){if(!Array.isArray(o.scopeMetrics))return"scopeMetrics: array expected";for(var u=0;u<o.scopeMetrics.length;++u){var r=d.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(o.scopeMetrics[u]);if(r)return"scopeMetrics."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ResourceMetrics)return o;var r=new d.opentelemetry.proto.metrics.v1.ResourceMetrics;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeMetrics){if(!Array.isArray(o.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");r.scopeMetrics=[];for(var u=0;u<o.scopeMetrics.length;++u){if(typeof o.scopeMetrics[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");r.scopeMetrics[u]=d.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(o.scopeMetrics[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeMetrics=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(u.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeMetrics&&o.scopeMetrics.length){u.scopeMetrics=[];for(var l=0;l<o.scopeMetrics.length;++l)u.scopeMetrics[l]=d.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(o.scopeMetrics[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},a}(),i.ScopeMetrics=function(){function a(s){if(this.metrics=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.scope=null,a.prototype.metrics=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.metrics!=null&&o.metrics.length)for(var u=0;u<o.metrics.length;++u)d.opentelemetry.proto.metrics.v1.Metric.encode(o.metrics[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ScopeMetrics;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.metrics&&l.metrics.length||(l.metrics=[]),l.metrics.push(d.opentelemetry.proto.metrics.v1.Metric.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.metrics!=null&&o.hasOwnProperty("metrics")){if(!Array.isArray(o.metrics))return"metrics: array expected";for(var u=0;u<o.metrics.length;++u){var r=d.opentelemetry.proto.metrics.v1.Metric.verify(o.metrics[u]);if(r)return"metrics."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ScopeMetrics)return o;var r=new d.opentelemetry.proto.metrics.v1.ScopeMetrics;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.metrics){if(!Array.isArray(o.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");r.metrics=[];for(var u=0;u<o.metrics.length;++u){if(typeof o.metrics[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");r.metrics[u]=d.opentelemetry.proto.metrics.v1.Metric.fromObject(o.metrics[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.metrics=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(u.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.metrics&&o.metrics.length){u.metrics=[];for(var l=0;l<o.metrics.length;++l)u.metrics[l]=d.opentelemetry.proto.metrics.v1.Metric.toObject(o.metrics[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},a}(),i.Metric=function(){function a(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}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 s;return Object.defineProperty(a.prototype,"data",{get:E.oneOfGetter(s=["gauge","sum","histogram","exponentialHistogram","summary"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){return u||(u=V.create()),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&u.uint32(10).string(r.name),r.description!=null&&Object.hasOwnProperty.call(r,"description")&&u.uint32(18).string(r.description),r.unit!=null&&Object.hasOwnProperty.call(r,"unit")&&u.uint32(26).string(r.unit),r.gauge!=null&&Object.hasOwnProperty.call(r,"gauge")&&d.opentelemetry.proto.metrics.v1.Gauge.encode(r.gauge,u.uint32(42).fork()).ldelim(),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&d.opentelemetry.proto.metrics.v1.Sum.encode(r.sum,u.uint32(58).fork()).ldelim(),r.histogram!=null&&Object.hasOwnProperty.call(r,"histogram")&&d.opentelemetry.proto.metrics.v1.Histogram.encode(r.histogram,u.uint32(74).fork()).ldelim(),r.exponentialHistogram!=null&&Object.hasOwnProperty.call(r,"exponentialHistogram")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(r.exponentialHistogram,u.uint32(82).fork()).ldelim(),r.summary!=null&&Object.hasOwnProperty.call(r,"summary")&&d.opentelemetry.proto.metrics.v1.Summary.encode(r.summary,u.uint32(90).fork()).ldelim(),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.Metric;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.name=r.string();break}case 2:{c.description=r.string();break}case 3:{c.unit=r.string();break}case 5:{c.gauge=d.opentelemetry.proto.metrics.v1.Gauge.decode(r,r.uint32());break}case 7:{c.sum=d.opentelemetry.proto.metrics.v1.Sum.decode(r,r.uint32());break}case 9:{c.histogram=d.opentelemetry.proto.metrics.v1.Histogram.decode(r,r.uint32());break}case 10:{c.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(r,r.uint32());break}case 11:{c.summary=d.opentelemetry.proto.metrics.v1.Summary.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.name!=null&&r.hasOwnProperty("name")&&!E.isString(r.name))return"name: string expected";if(r.description!=null&&r.hasOwnProperty("description")&&!E.isString(r.description))return"description: string expected";if(r.unit!=null&&r.hasOwnProperty("unit")&&!E.isString(r.unit))return"unit: string expected";if(r.gauge!=null&&r.hasOwnProperty("gauge")){u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Gauge.verify(r.gauge);if(l)return"gauge."+l}}if(r.sum!=null&&r.hasOwnProperty("sum")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Sum.verify(r.sum);if(l)return"sum."+l}}if(r.histogram!=null&&r.hasOwnProperty("histogram")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Histogram.verify(r.histogram);if(l)return"histogram."+l}}if(r.exponentialHistogram!=null&&r.hasOwnProperty("exponentialHistogram")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(r.exponentialHistogram);if(l)return"exponentialHistogram."+l}}if(r.summary!=null&&r.hasOwnProperty("summary")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Summary.verify(r.summary);if(l)return"summary."+l}}return null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.Metric)return r;var u=new d.opentelemetry.proto.metrics.v1.Metric;if(r.name!=null&&(u.name=String(r.name)),r.description!=null&&(u.description=String(r.description)),r.unit!=null&&(u.unit=String(r.unit)),r.gauge!=null){if(typeof r.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");u.gauge=d.opentelemetry.proto.metrics.v1.Gauge.fromObject(r.gauge)}if(r.sum!=null){if(typeof r.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");u.sum=d.opentelemetry.proto.metrics.v1.Sum.fromObject(r.sum)}if(r.histogram!=null){if(typeof r.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");u.histogram=d.opentelemetry.proto.metrics.v1.Histogram.fromObject(r.histogram)}if(r.exponentialHistogram!=null){if(typeof r.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");u.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(r.exponentialHistogram)}if(r.summary!=null){if(typeof r.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");u.summary=d.opentelemetry.proto.metrics.v1.Summary.fromObject(r.summary)}return u},a.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.name="",l.description="",l.unit=""),r.name!=null&&r.hasOwnProperty("name")&&(l.name=r.name),r.description!=null&&r.hasOwnProperty("description")&&(l.description=r.description),r.unit!=null&&r.hasOwnProperty("unit")&&(l.unit=r.unit),r.gauge!=null&&r.hasOwnProperty("gauge")&&(l.gauge=d.opentelemetry.proto.metrics.v1.Gauge.toObject(r.gauge,u),u.oneofs&&(l.data="gauge")),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=d.opentelemetry.proto.metrics.v1.Sum.toObject(r.sum,u),u.oneofs&&(l.data="sum")),r.histogram!=null&&r.hasOwnProperty("histogram")&&(l.histogram=d.opentelemetry.proto.metrics.v1.Histogram.toObject(r.histogram,u),u.oneofs&&(l.data="histogram")),r.exponentialHistogram!=null&&r.hasOwnProperty("exponentialHistogram")&&(l.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(r.exponentialHistogram,u),u.oneofs&&(l.data="exponentialHistogram")),r.summary!=null&&r.hasOwnProperty("summary")&&(l.summary=d.opentelemetry.proto.metrics.v1.Summary.toObject(r.summary,u),u.oneofs&&(l.data="summary")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Metric"},a}(),i.Gauge=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Gauge;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Gauge)return o;var r=new d.opentelemetry.proto.metrics.v1.Gauge;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(o.dataPoints[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(o.dataPoints[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Gauge"},a}(),i.Sum=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.prototype.isMonotonic=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),o.isMonotonic!=null&&Object.hasOwnProperty.call(o,"isMonotonic")&&r.uint32(24).bool(o.isMonotonic),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Sum;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}case 3:{l.isMonotonic=o.bool();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return o.isMonotonic!=null&&o.hasOwnProperty("isMonotonic")&&typeof o.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Sum)return o;var r=new d.opentelemetry.proto.metrics.v1.Sum;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(o.dataPoints[u])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return o.isMonotonic!=null&&(r.isMonotonic=!!o.isMonotonic),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,u.isMonotonic=!1),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),o.isMonotonic!=null&&o.hasOwnProperty("isMonotonic")&&(u.isMonotonic=o.isMonotonic),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Sum"},a}(),i.Histogram=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Histogram;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Histogram)return o;var r=new d.opentelemetry.proto.metrics.v1.Histogram;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(o.dataPoints[u])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Histogram"},a}(),i.ExponentialHistogram=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ExponentialHistogram;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogram)return o;var r=new d.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(o.dataPoints[u])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},a}(),i.Summary=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Summary;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Summary)return o;var r=new d.opentelemetry.proto.metrics.v1.Summary;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(o.dataPoints[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(o.dataPoints[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Summary"},a}(),i.AggregationTemporality=function(){var a={},s=Object.create(a);return s[a[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,s[a[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,s[a[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,s}(),i.DataPointFlags=function(){var a={},s=Object.create(a);return s[a[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,s[a[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,s}(),i.NumberDataPoint=function(){function a(o){if(this.attributes=[],this.exemplars=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.exemplars=E.emptyArray,a.prototype.flags=null;var s;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(s=["asDouble","asInt"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),r.asDouble!=null&&Object.hasOwnProperty.call(r,"asDouble")&&u.uint32(33).double(r.asDouble),r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],u.uint32(42).fork()).ldelim();if(r.asInt!=null&&Object.hasOwnProperty.call(r,"asInt")&&u.uint32(49).sfixed64(r.asInt),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(58).fork()).ldelim();return r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(64).uint32(r.flags),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.NumberDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 7:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.asDouble=r.double();break}case 6:{c.asInt=r.sfixed64();break}case 5:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 8:{c.flags=r.uint32();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(u.value=1,typeof r.asDouble!="number"))return"asDouble: number expected";if(r.asInt!=null&&r.hasOwnProperty("asInt")){if(u.value===1)return"value: multiple values";if(u.value=1,!E.isInteger(r.asInt)&&!(r.asInt&&E.isInteger(r.asInt.low)&&E.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags)?"flags: integer expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.NumberDataPoint)return r;var u=new d.opentelemetry.proto.metrics.v1.NumberDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(u.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(u.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.asDouble!=null&&(u.asDouble=Number(r.asDouble)),r.asInt!=null&&(E.Long?(u.asInt=E.Long.fromValue(r.asInt)).unsigned=!1:typeof r.asInt=="string"?u.asInt=parseInt(r.asInt,10):typeof r.asInt=="number"?u.asInt=r.asInt:typeof r.asInt=="object"&&(u.asInt=new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");u.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");u.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.flags!=null&&(u.flags=r.flags>>>0),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.exemplars=[],l.attributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.startTimeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;l.flags=0}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(l.asDouble=u.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,u.oneofs&&(l.value="asDouble")),r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],u)}if(r.asInt!=null&&r.hasOwnProperty("asInt")&&(typeof r.asInt=="number"?l.asInt=u.longs===String?String(r.asInt):r.asInt:l.asInt=u.longs===String?E.Long.prototype.toString.call(r.asInt):u.longs===Number?new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,u.oneofs&&(l.value="asInt")),r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}return r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},a}(),i.HistogramDataPoint=function(){function a(o){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.bucketCounts=E.emptyArray,a.prototype.explicitBounds=E.emptyArray,a.prototype.exemplars=E.emptyArray,a.prototype.flags=null,a.prototype.min=null,a.prototype.max=null;var s;return Object.defineProperty(a.prototype,"_sum",{get:E.oneOfGetter(s=["sum"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_min",{get:E.oneOfGetter(s=["min"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_max",{get:E.oneOfGetter(s=["max"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),r.count!=null&&Object.hasOwnProperty.call(r,"count")&&u.uint32(33).fixed64(r.count),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&u.uint32(41).double(r.sum),r.bucketCounts!=null&&r.bucketCounts.length){u.uint32(50).fork();for(var l=0;l<r.bucketCounts.length;++l)u.fixed64(r.bucketCounts[l]);u.ldelim()}if(r.explicitBounds!=null&&r.explicitBounds.length){u.uint32(58).fork();for(var l=0;l<r.explicitBounds.length;++l)u.double(r.explicitBounds[l]);u.ldelim()}if(r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],u.uint32(66).fork()).ldelim();if(r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(74).fork()).ldelim();return r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(80).uint32(r.flags),r.min!=null&&Object.hasOwnProperty.call(r,"min")&&u.uint32(89).double(r.min),r.max!=null&&Object.hasOwnProperty.call(r,"max")&&u.uint32(97).double(r.max),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.HistogramDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 9:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.count=r.fixed64();break}case 5:{c.sum=r.double();break}case 6:{if(c.bucketCounts&&c.bucketCounts.length||(c.bucketCounts=[]),(p&7)===2)for(var _=r.uint32()+r.pos;r.pos<_;)c.bucketCounts.push(r.fixed64());else c.bucketCounts.push(r.fixed64());break}case 7:{if(c.explicitBounds&&c.explicitBounds.length||(c.explicitBounds=[]),(p&7)===2)for(var _=r.uint32()+r.pos;r.pos<_;)c.explicitBounds.push(r.double());else c.explicitBounds.push(r.double());break}case 8:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 10:{c.flags=r.uint32();break}case 11:{c.min=r.double();break}case 12:{c.max=r.double();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.count!=null&&r.hasOwnProperty("count")&&!E.isInteger(r.count)&&!(r.count&&E.isInteger(r.count.low)&&E.isInteger(r.count.high)))return"count: integer|Long expected";if(r.sum!=null&&r.hasOwnProperty("sum")&&(u._sum=1,typeof r.sum!="number"))return"sum: number expected";if(r.bucketCounts!=null&&r.hasOwnProperty("bucketCounts")){if(!Array.isArray(r.bucketCounts))return"bucketCounts: array expected";for(var l=0;l<r.bucketCounts.length;++l)if(!E.isInteger(r.bucketCounts[l])&&!(r.bucketCounts[l]&&E.isInteger(r.bucketCounts[l].low)&&E.isInteger(r.bucketCounts[l].high)))return"bucketCounts: integer|Long[] expected"}if(r.explicitBounds!=null&&r.hasOwnProperty("explicitBounds")){if(!Array.isArray(r.explicitBounds))return"explicitBounds: array expected";for(var l=0;l<r.explicitBounds.length;++l)if(typeof r.explicitBounds[l]!="number")return"explicitBounds: number[] expected"}if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags)?"flags: integer expected":r.min!=null&&r.hasOwnProperty("min")&&(u._min=1,typeof r.min!="number")?"min: number expected":r.max!=null&&r.hasOwnProperty("max")&&(u._max=1,typeof r.max!="number")?"max: number expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.HistogramDataPoint)return r;var u=new d.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(u.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(u.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.count!=null&&(E.Long?(u.count=E.Long.fromValue(r.count)).unsigned=!1:typeof r.count=="string"?u.count=parseInt(r.count,10):typeof r.count=="number"?u.count=r.count:typeof r.count=="object"&&(u.count=new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),r.sum!=null&&(u.sum=Number(r.sum)),r.bucketCounts){if(!Array.isArray(r.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");u.bucketCounts=[];for(var l=0;l<r.bucketCounts.length;++l)E.Long?(u.bucketCounts[l]=E.Long.fromValue(r.bucketCounts[l])).unsigned=!1:typeof r.bucketCounts[l]=="string"?u.bucketCounts[l]=parseInt(r.bucketCounts[l],10):typeof r.bucketCounts[l]=="number"?u.bucketCounts[l]=r.bucketCounts[l]:typeof r.bucketCounts[l]=="object"&&(u.bucketCounts[l]=new E.LongBits(r.bucketCounts[l].low>>>0,r.bucketCounts[l].high>>>0).toNumber())}if(r.explicitBounds){if(!Array.isArray(r.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");u.explicitBounds=[];for(var l=0;l<r.explicitBounds.length;++l)u.explicitBounds[l]=Number(r.explicitBounds[l])}if(r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");u.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");u.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.flags!=null&&(u.flags=r.flags>>>0),r.min!=null&&(u.min=Number(r.min)),r.max!=null&&(u.max=Number(r.max)),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.bucketCounts=[],l.explicitBounds=[],l.exemplars=[],l.attributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.startTimeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.count=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.count=u.longs===String?"0":0;l.flags=0}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.count!=null&&r.hasOwnProperty("count")&&(typeof r.count=="number"?l.count=u.longs===String?String(r.count):r.count:l.count=u.longs===String?E.Long.prototype.toString.call(r.count):u.longs===Number?new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=u.json&&!isFinite(r.sum)?String(r.sum):r.sum,u.oneofs&&(l._sum="sum")),r.bucketCounts&&r.bucketCounts.length){l.bucketCounts=[];for(var p=0;p<r.bucketCounts.length;++p)typeof r.bucketCounts[p]=="number"?l.bucketCounts[p]=u.longs===String?String(r.bucketCounts[p]):r.bucketCounts[p]:l.bucketCounts[p]=u.longs===String?E.Long.prototype.toString.call(r.bucketCounts[p]):u.longs===Number?new E.LongBits(r.bucketCounts[p].low>>>0,r.bucketCounts[p].high>>>0).toNumber():r.bucketCounts[p]}if(r.explicitBounds&&r.explicitBounds.length){l.explicitBounds=[];for(var p=0;p<r.explicitBounds.length;++p)l.explicitBounds[p]=u.json&&!isFinite(r.explicitBounds[p])?String(r.explicitBounds[p]):r.explicitBounds[p]}if(r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],u)}if(r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}return r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),r.min!=null&&r.hasOwnProperty("min")&&(l.min=u.json&&!isFinite(r.min)?String(r.min):r.min,u.oneofs&&(l._min="min")),r.max!=null&&r.hasOwnProperty("max")&&(l.max=u.json&&!isFinite(r.max)?String(r.max):r.max,u.oneofs&&(l._max="max")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},a}(),i.ExponentialHistogramDataPoint=function(){function a(o){if(this.attributes=[],this.exemplars=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.attributes=E.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=E.emptyArray,a.prototype.min=null,a.prototype.max=null,a.prototype.zeroThreshold=null;var s;return Object.defineProperty(a.prototype,"_sum",{get:E.oneOfGetter(s=["sum"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_min",{get:E.oneOfGetter(s=["min"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_max",{get:E.oneOfGetter(s=["max"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(10).fork()).ldelim();if(r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),r.count!=null&&Object.hasOwnProperty.call(r,"count")&&u.uint32(33).fixed64(r.count),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&u.uint32(41).double(r.sum),r.scale!=null&&Object.hasOwnProperty.call(r,"scale")&&u.uint32(48).sint32(r.scale),r.zeroCount!=null&&Object.hasOwnProperty.call(r,"zeroCount")&&u.uint32(57).fixed64(r.zeroCount),r.positive!=null&&Object.hasOwnProperty.call(r,"positive")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.positive,u.uint32(66).fork()).ldelim(),r.negative!=null&&Object.hasOwnProperty.call(r,"negative")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.negative,u.uint32(74).fork()).ldelim(),r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(80).uint32(r.flags),r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],u.uint32(90).fork()).ldelim();return r.min!=null&&Object.hasOwnProperty.call(r,"min")&&u.uint32(97).double(r.min),r.max!=null&&Object.hasOwnProperty.call(r,"max")&&u.uint32(105).double(r.max),r.zeroThreshold!=null&&Object.hasOwnProperty.call(r,"zeroThreshold")&&u.uint32(113).double(r.zeroThreshold),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.count=r.fixed64();break}case 5:{c.sum=r.double();break}case 6:{c.scale=r.sint32();break}case 7:{c.zeroCount=r.fixed64();break}case 8:{c.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break}case 9:{c.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break}case 10:{c.flags=r.uint32();break}case 11:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 12:{c.min=r.double();break}case 13:{c.max=r.double();break}case 14:{c.zeroThreshold=r.double();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.count!=null&&r.hasOwnProperty("count")&&!E.isInteger(r.count)&&!(r.count&&E.isInteger(r.count.low)&&E.isInteger(r.count.high)))return"count: integer|Long expected";if(r.sum!=null&&r.hasOwnProperty("sum")&&(u._sum=1,typeof r.sum!="number"))return"sum: number expected";if(r.scale!=null&&r.hasOwnProperty("scale")&&!E.isInteger(r.scale))return"scale: integer expected";if(r.zeroCount!=null&&r.hasOwnProperty("zeroCount")&&!E.isInteger(r.zeroCount)&&!(r.zeroCount&&E.isInteger(r.zeroCount.low)&&E.isInteger(r.zeroCount.high)))return"zeroCount: integer|Long expected";if(r.positive!=null&&r.hasOwnProperty("positive")){var c=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.positive);if(c)return"positive."+c}if(r.negative!=null&&r.hasOwnProperty("negative")){var c=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.negative);if(c)return"negative."+c}if(r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags))return"flags: integer expected";if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.min!=null&&r.hasOwnProperty("min")&&(u._min=1,typeof r.min!="number")?"min: number expected":r.max!=null&&r.hasOwnProperty("max")&&(u._max=1,typeof r.max!="number")?"max: number expected":r.zeroThreshold!=null&&r.hasOwnProperty("zeroThreshold")&&typeof r.zeroThreshold!="number"?"zeroThreshold: number expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return r;var u=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(u.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(u.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.count!=null&&(E.Long?(u.count=E.Long.fromValue(r.count)).unsigned=!1:typeof r.count=="string"?u.count=parseInt(r.count,10):typeof r.count=="number"?u.count=r.count:typeof r.count=="object"&&(u.count=new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),r.sum!=null&&(u.sum=Number(r.sum)),r.scale!=null&&(u.scale=r.scale|0),r.zeroCount!=null&&(E.Long?(u.zeroCount=E.Long.fromValue(r.zeroCount)).unsigned=!1:typeof r.zeroCount=="string"?u.zeroCount=parseInt(r.zeroCount,10):typeof r.zeroCount=="number"?u.zeroCount=r.zeroCount:typeof r.zeroCount=="object"&&(u.zeroCount=new E.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber())),r.positive!=null){if(typeof r.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");u.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.positive)}if(r.negative!=null){if(typeof r.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");u.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.negative)}if(r.flags!=null&&(u.flags=r.flags>>>0),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");u.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");u.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.min!=null&&(u.min=Number(r.min)),r.max!=null&&(u.max=Number(r.max)),r.zeroThreshold!=null&&(u.zeroThreshold=Number(r.zeroThreshold)),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.attributes=[],l.exemplars=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.startTimeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.count=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.count=u.longs===String?"0":0;if(l.scale=0,E.Long){var c=new E.Long(0,0,!1);l.zeroCount=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.zeroCount=u.longs===String?"0":0;l.positive=null,l.negative=null,l.flags=0,l.zeroThreshold=0}if(r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.count!=null&&r.hasOwnProperty("count")&&(typeof r.count=="number"?l.count=u.longs===String?String(r.count):r.count:l.count=u.longs===String?E.Long.prototype.toString.call(r.count):u.longs===Number?new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=u.json&&!isFinite(r.sum)?String(r.sum):r.sum,u.oneofs&&(l._sum="sum")),r.scale!=null&&r.hasOwnProperty("scale")&&(l.scale=r.scale),r.zeroCount!=null&&r.hasOwnProperty("zeroCount")&&(typeof r.zeroCount=="number"?l.zeroCount=u.longs===String?String(r.zeroCount):r.zeroCount:l.zeroCount=u.longs===String?E.Long.prototype.toString.call(r.zeroCount):u.longs===Number?new E.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber():r.zeroCount),r.positive!=null&&r.hasOwnProperty("positive")&&(l.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.positive,u)),r.negative!=null&&r.hasOwnProperty("negative")&&(l.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.negative,u)),r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],u)}return r.min!=null&&r.hasOwnProperty("min")&&(l.min=u.json&&!isFinite(r.min)?String(r.min):r.min,u.oneofs&&(l._min="min")),r.max!=null&&r.hasOwnProperty("max")&&(l.max=u.json&&!isFinite(r.max)?String(r.max):r.max,u.oneofs&&(l._max="max")),r.zeroThreshold!=null&&r.hasOwnProperty("zeroThreshold")&&(l.zeroThreshold=u.json&&!isFinite(r.zeroThreshold)?String(r.zeroThreshold):r.zeroThreshold),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},a.Buckets=function(){function o(r){if(this.bucketCounts=[],r)for(var u=Object.keys(r),l=0;l<u.length;++l)r[u[l]]!=null&&(this[u[l]]=r[u[l]])}return o.prototype.offset=null,o.prototype.bucketCounts=E.emptyArray,o.create=function(u){return new o(u)},o.encode=function(u,l){if(l||(l=V.create()),u.offset!=null&&Object.hasOwnProperty.call(u,"offset")&&l.uint32(8).sint32(u.offset),u.bucketCounts!=null&&u.bucketCounts.length){l.uint32(18).fork();for(var c=0;c<u.bucketCounts.length;++c)l.uint64(u.bucketCounts[c]);l.ldelim()}return l},o.encodeDelimited=function(u,l){return this.encode(u,l).ldelim()},o.decode=function(u,l){u instanceof y||(u=y.create(u));for(var c=l===void 0?u.len:u.pos+l,p=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;u.pos<c;){var _=u.uint32();switch(_>>>3){case 1:{p.offset=u.sint32();break}case 2:{if(p.bucketCounts&&p.bucketCounts.length||(p.bucketCounts=[]),(_&7)===2)for(var f=u.uint32()+u.pos;u.pos<f;)p.bucketCounts.push(u.uint64());else p.bucketCounts.push(u.uint64());break}default:u.skipType(_&7);break}}return p},o.decodeDelimited=function(u){return u instanceof y||(u=new y(u)),this.decode(u,u.uint32())},o.verify=function(u){if(typeof u!="object"||u===null)return"object expected";if(u.offset!=null&&u.hasOwnProperty("offset")&&!E.isInteger(u.offset))return"offset: integer expected";if(u.bucketCounts!=null&&u.hasOwnProperty("bucketCounts")){if(!Array.isArray(u.bucketCounts))return"bucketCounts: array expected";for(var l=0;l<u.bucketCounts.length;++l)if(!E.isInteger(u.bucketCounts[l])&&!(u.bucketCounts[l]&&E.isInteger(u.bucketCounts[l].low)&&E.isInteger(u.bucketCounts[l].high)))return"bucketCounts: integer|Long[] expected"}return null},o.fromObject=function(u){if(u instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return u;var l=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(u.offset!=null&&(l.offset=u.offset|0),u.bucketCounts){if(!Array.isArray(u.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");l.bucketCounts=[];for(var c=0;c<u.bucketCounts.length;++c)E.Long?(l.bucketCounts[c]=E.Long.fromValue(u.bucketCounts[c])).unsigned=!0:typeof u.bucketCounts[c]=="string"?l.bucketCounts[c]=parseInt(u.bucketCounts[c],10):typeof u.bucketCounts[c]=="number"?l.bucketCounts[c]=u.bucketCounts[c]:typeof u.bucketCounts[c]=="object"&&(l.bucketCounts[c]=new E.LongBits(u.bucketCounts[c].low>>>0,u.bucketCounts[c].high>>>0).toNumber(!0))}return l},o.toObject=function(u,l){l||(l={});var c={};if((l.arrays||l.defaults)&&(c.bucketCounts=[]),l.defaults&&(c.offset=0),u.offset!=null&&u.hasOwnProperty("offset")&&(c.offset=u.offset),u.bucketCounts&&u.bucketCounts.length){c.bucketCounts=[];for(var p=0;p<u.bucketCounts.length;++p)typeof u.bucketCounts[p]=="number"?c.bucketCounts[p]=l.longs===String?String(u.bucketCounts[p]):u.bucketCounts[p]:c.bucketCounts[p]=l.longs===String?E.Long.prototype.toString.call(u.bucketCounts[p]):l.longs===Number?new E.LongBits(u.bucketCounts[p].low>>>0,u.bucketCounts[p].high>>>0).toNumber(!0):u.bucketCounts[p]}return c},o.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},o.getTypeUrl=function(u){return u===void 0&&(u="type.googleapis.com"),u+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},o}(),a}(),i.SummaryDataPoint=function(){function a(s){if(this.attributes=[],this.quantileValues=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.quantileValues=E.emptyArray,a.prototype.flags=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.startTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"startTimeUnixNano")&&r.uint32(17).fixed64(o.startTimeUnixNano),o.timeUnixNano!=null&&Object.hasOwnProperty.call(o,"timeUnixNano")&&r.uint32(25).fixed64(o.timeUnixNano),o.count!=null&&Object.hasOwnProperty.call(o,"count")&&r.uint32(33).fixed64(o.count),o.sum!=null&&Object.hasOwnProperty.call(o,"sum")&&r.uint32(41).double(o.sum),o.quantileValues!=null&&o.quantileValues.length)for(var u=0;u<o.quantileValues.length;++u)d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(o.quantileValues[u],r.uint32(50).fork()).ldelim();if(o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(58).fork()).ldelim();return o.flags!=null&&Object.hasOwnProperty.call(o,"flags")&&r.uint32(64).uint32(o.flags),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint;o.pos<u;){var c=o.uint32();switch(c>>>3){case 7:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 2:{l.startTimeUnixNano=o.fixed64();break}case 3:{l.timeUnixNano=o.fixed64();break}case 4:{l.count=o.fixed64();break}case 5:{l.sum=o.double();break}case 6:{l.quantileValues&&l.quantileValues.length||(l.quantileValues=[]),l.quantileValues.push(d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(o,o.uint32()));break}case 8:{l.flags=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(o.startTimeUnixNano)&&!(o.startTimeUnixNano&&E.isInteger(o.startTimeUnixNano.low)&&E.isInteger(o.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&!E.isInteger(o.timeUnixNano)&&!(o.timeUnixNano&&E.isInteger(o.timeUnixNano.low)&&E.isInteger(o.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(o.count!=null&&o.hasOwnProperty("count")&&!E.isInteger(o.count)&&!(o.count&&E.isInteger(o.count.low)&&E.isInteger(o.count.high)))return"count: integer|Long expected";if(o.sum!=null&&o.hasOwnProperty("sum")&&typeof o.sum!="number")return"sum: number expected";if(o.quantileValues!=null&&o.hasOwnProperty("quantileValues")){if(!Array.isArray(o.quantileValues))return"quantileValues: array expected";for(var r=0;r<o.quantileValues.length;++r){var u=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(o.quantileValues[r]);if(u)return"quantileValues."+u}}return o.flags!=null&&o.hasOwnProperty("flags")&&!E.isInteger(o.flags)?"flags: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.SummaryDataPoint)return o;var r=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}if(o.startTimeUnixNano!=null&&(E.Long?(r.startTimeUnixNano=E.Long.fromValue(o.startTimeUnixNano)).unsigned=!1:typeof o.startTimeUnixNano=="string"?r.startTimeUnixNano=parseInt(o.startTimeUnixNano,10):typeof o.startTimeUnixNano=="number"?r.startTimeUnixNano=o.startTimeUnixNano:typeof o.startTimeUnixNano=="object"&&(r.startTimeUnixNano=new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber())),o.timeUnixNano!=null&&(E.Long?(r.timeUnixNano=E.Long.fromValue(o.timeUnixNano)).unsigned=!1:typeof o.timeUnixNano=="string"?r.timeUnixNano=parseInt(o.timeUnixNano,10):typeof o.timeUnixNano=="number"?r.timeUnixNano=o.timeUnixNano:typeof o.timeUnixNano=="object"&&(r.timeUnixNano=new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber())),o.count!=null&&(E.Long?(r.count=E.Long.fromValue(o.count)).unsigned=!1:typeof o.count=="string"?r.count=parseInt(o.count,10):typeof o.count=="number"?r.count=o.count:typeof o.count=="object"&&(r.count=new E.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber())),o.sum!=null&&(r.sum=Number(o.sum)),o.quantileValues){if(!Array.isArray(o.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");r.quantileValues=[];for(var u=0;u<o.quantileValues.length;++u){if(typeof o.quantileValues[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");r.quantileValues[u]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(o.quantileValues[u])}}return o.flags!=null&&(r.flags=o.flags>>>0),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.quantileValues=[],u.attributes=[]),r.defaults){if(E.Long){var l=new E.Long(0,0,!1);u.startTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.startTimeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);u.timeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.timeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);u.count=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.count=r.longs===String?"0":0;u.sum=0,u.flags=0}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&(typeof o.startTimeUnixNano=="number"?u.startTimeUnixNano=r.longs===String?String(o.startTimeUnixNano):o.startTimeUnixNano:u.startTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.startTimeUnixNano):r.longs===Number?new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber():o.startTimeUnixNano),o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&(typeof o.timeUnixNano=="number"?u.timeUnixNano=r.longs===String?String(o.timeUnixNano):o.timeUnixNano:u.timeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.timeUnixNano):r.longs===Number?new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber():o.timeUnixNano),o.count!=null&&o.hasOwnProperty("count")&&(typeof o.count=="number"?u.count=r.longs===String?String(o.count):o.count:u.count=r.longs===String?E.Long.prototype.toString.call(o.count):r.longs===Number?new E.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber():o.count),o.sum!=null&&o.hasOwnProperty("sum")&&(u.sum=r.json&&!isFinite(o.sum)?String(o.sum):o.sum),o.quantileValues&&o.quantileValues.length){u.quantileValues=[];for(var c=0;c<o.quantileValues.length;++c)u.quantileValues[c]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(o.quantileValues[c],r)}if(o.attributes&&o.attributes.length){u.attributes=[];for(var c=0;c<o.attributes.length;++c)u.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}return o.flags!=null&&o.hasOwnProperty("flags")&&(u.flags=o.flags),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},a.ValueAtQuantile=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.quantile=null,s.prototype.value=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.quantile!=null&&Object.hasOwnProperty.call(r,"quantile")&&u.uint32(9).double(r.quantile),r.value!=null&&Object.hasOwnProperty.call(r,"value")&&u.uint32(17).double(r.value),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.quantile=r.double();break}case 2:{c.value=r.double();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.quantile!=null&&r.hasOwnProperty("quantile")&&typeof r.quantile!="number"?"quantile: number expected":r.value!=null&&r.hasOwnProperty("value")&&typeof r.value!="number"?"value: number expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return r;var u=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return r.quantile!=null&&(u.quantile=Number(r.quantile)),r.value!=null&&(u.value=Number(r.value)),u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.quantile=0,l.value=0),r.quantile!=null&&r.hasOwnProperty("quantile")&&(l.quantile=u.json&&!isFinite(r.quantile)?String(r.quantile):r.quantile),r.value!=null&&r.hasOwnProperty("value")&&(l.value=u.json&&!isFinite(r.value)?String(r.value):r.value),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},s}(),a}(),i.Exemplar=function(){function a(o){if(this.filteredAttributes=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.filteredAttributes=E.emptyArray,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.spanId=null,a.prototype.traceId=null;var s;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(s=["asDouble","asInt"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(17).fixed64(r.timeUnixNano),r.asDouble!=null&&Object.hasOwnProperty.call(r,"asDouble")&&u.uint32(25).double(r.asDouble),r.spanId!=null&&Object.hasOwnProperty.call(r,"spanId")&&u.uint32(34).bytes(r.spanId),r.traceId!=null&&Object.hasOwnProperty.call(r,"traceId")&&u.uint32(42).bytes(r.traceId),r.asInt!=null&&Object.hasOwnProperty.call(r,"asInt")&&u.uint32(49).sfixed64(r.asInt),r.filteredAttributes!=null&&r.filteredAttributes.length)for(var l=0;l<r.filteredAttributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.filteredAttributes[l],u.uint32(58).fork()).ldelim();return u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.Exemplar;r.pos<l;){var p=r.uint32();switch(p>>>3){case 7:{c.filteredAttributes&&c.filteredAttributes.length||(c.filteredAttributes=[]),c.filteredAttributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.timeUnixNano=r.fixed64();break}case 3:{c.asDouble=r.double();break}case 6:{c.asInt=r.sfixed64();break}case 4:{c.spanId=r.bytes();break}case 5:{c.traceId=r.bytes();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.filteredAttributes!=null&&r.hasOwnProperty("filteredAttributes")){if(!Array.isArray(r.filteredAttributes))return"filteredAttributes: array expected";for(var l=0;l<r.filteredAttributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.filteredAttributes[l]);if(c)return"filteredAttributes."+c}}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(u.value=1,typeof r.asDouble!="number"))return"asDouble: number expected";if(r.asInt!=null&&r.hasOwnProperty("asInt")){if(u.value===1)return"value: multiple values";if(u.value=1,!E.isInteger(r.asInt)&&!(r.asInt&&E.isInteger(r.asInt.low)&&E.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}return r.spanId!=null&&r.hasOwnProperty("spanId")&&!(r.spanId&&typeof r.spanId.length=="number"||E.isString(r.spanId))?"spanId: buffer expected":r.traceId!=null&&r.hasOwnProperty("traceId")&&!(r.traceId&&typeof r.traceId.length=="number"||E.isString(r.traceId))?"traceId: buffer expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.Exemplar)return r;var u=new d.opentelemetry.proto.metrics.v1.Exemplar;if(r.filteredAttributes){if(!Array.isArray(r.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");u.filteredAttributes=[];for(var l=0;l<r.filteredAttributes.length;++l){if(typeof r.filteredAttributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");u.filteredAttributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.filteredAttributes[l])}}return r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.asDouble!=null&&(u.asDouble=Number(r.asDouble)),r.asInt!=null&&(E.Long?(u.asInt=E.Long.fromValue(r.asInt)).unsigned=!1:typeof r.asInt=="string"?u.asInt=parseInt(r.asInt,10):typeof r.asInt=="number"?u.asInt=r.asInt:typeof r.asInt=="object"&&(u.asInt=new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.spanId!=null&&(typeof r.spanId=="string"?E.base64.decode(r.spanId,u.spanId=E.newBuffer(E.base64.length(r.spanId)),0):r.spanId.length>=0&&(u.spanId=r.spanId)),r.traceId!=null&&(typeof r.traceId=="string"?E.base64.decode(r.traceId,u.traceId=E.newBuffer(E.base64.length(r.traceId)),0):r.traceId.length>=0&&(u.traceId=r.traceId)),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.filteredAttributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;u.bytes===String?l.spanId="":(l.spanId=[],u.bytes!==Array&&(l.spanId=E.newBuffer(l.spanId))),u.bytes===String?l.traceId="":(l.traceId=[],u.bytes!==Array&&(l.traceId=E.newBuffer(l.traceId)))}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(l.asDouble=u.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,u.oneofs&&(l.value="asDouble")),r.spanId!=null&&r.hasOwnProperty("spanId")&&(l.spanId=u.bytes===String?E.base64.encode(r.spanId,0,r.spanId.length):u.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),r.traceId!=null&&r.hasOwnProperty("traceId")&&(l.traceId=u.bytes===String?E.base64.encode(r.traceId,0,r.traceId.length):u.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),r.asInt!=null&&r.hasOwnProperty("asInt")&&(typeof r.asInt=="number"?l.asInt=u.longs===String?String(r.asInt):r.asInt:l.asInt=u.longs===String?E.Long.prototype.toString.call(r.asInt):u.longs===Number?new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,u.oneofs&&(l.value="asInt")),r.filteredAttributes&&r.filteredAttributes.length){l.filteredAttributes=[];for(var p=0;p<r.filteredAttributes.length;++p)l.filteredAttributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.filteredAttributes[p],u)}return l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Exemplar"},a}(),i}(),n}(),e.logs=function(){var n={};return n.v1=function(){var i={};return i.LogsData=function(){function a(s){if(this.resourceLogs=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resourceLogs=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceLogs!=null&&o.resourceLogs.length)for(var u=0;u<o.resourceLogs.length;++u)d.opentelemetry.proto.logs.v1.ResourceLogs.encode(o.resourceLogs[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.LogsData;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceLogs&&l.resourceLogs.length||(l.resourceLogs=[]),l.resourceLogs.push(d.opentelemetry.proto.logs.v1.ResourceLogs.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceLogs!=null&&o.hasOwnProperty("resourceLogs")){if(!Array.isArray(o.resourceLogs))return"resourceLogs: array expected";for(var r=0;r<o.resourceLogs.length;++r){var u=d.opentelemetry.proto.logs.v1.ResourceLogs.verify(o.resourceLogs[r]);if(u)return"resourceLogs."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.LogsData)return o;var r=new d.opentelemetry.proto.logs.v1.LogsData;if(o.resourceLogs){if(!Array.isArray(o.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");r.resourceLogs=[];for(var u=0;u<o.resourceLogs.length;++u){if(typeof o.resourceLogs[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");r.resourceLogs[u]=d.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(o.resourceLogs[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceLogs=[]),o.resourceLogs&&o.resourceLogs.length){u.resourceLogs=[];for(var l=0;l<o.resourceLogs.length;++l)u.resourceLogs[l]=d.opentelemetry.proto.logs.v1.ResourceLogs.toObject(o.resourceLogs[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.LogsData"},a}(),i.ResourceLogs=function(){function a(s){if(this.scopeLogs=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resource=null,a.prototype.scopeLogs=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeLogs!=null&&o.scopeLogs.length)for(var u=0;u<o.scopeLogs.length;++u)d.opentelemetry.proto.logs.v1.ScopeLogs.encode(o.scopeLogs[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.ResourceLogs;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeLogs&&l.scopeLogs.length||(l.scopeLogs=[]),l.scopeLogs.push(d.opentelemetry.proto.logs.v1.ScopeLogs.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeLogs!=null&&o.hasOwnProperty("scopeLogs")){if(!Array.isArray(o.scopeLogs))return"scopeLogs: array expected";for(var u=0;u<o.scopeLogs.length;++u){var r=d.opentelemetry.proto.logs.v1.ScopeLogs.verify(o.scopeLogs[u]);if(r)return"scopeLogs."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.ResourceLogs)return o;var r=new d.opentelemetry.proto.logs.v1.ResourceLogs;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeLogs){if(!Array.isArray(o.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");r.scopeLogs=[];for(var u=0;u<o.scopeLogs.length;++u){if(typeof o.scopeLogs[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");r.scopeLogs[u]=d.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(o.scopeLogs[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeLogs=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(u.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeLogs&&o.scopeLogs.length){u.scopeLogs=[];for(var l=0;l<o.scopeLogs.length;++l)u.scopeLogs[l]=d.opentelemetry.proto.logs.v1.ScopeLogs.toObject(o.scopeLogs[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.ResourceLogs"},a}(),i.ScopeLogs=function(){function a(s){if(this.logRecords=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.scope=null,a.prototype.logRecords=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.logRecords!=null&&o.logRecords.length)for(var u=0;u<o.logRecords.length;++u)d.opentelemetry.proto.logs.v1.LogRecord.encode(o.logRecords[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.ScopeLogs;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.logRecords&&l.logRecords.length||(l.logRecords=[]),l.logRecords.push(d.opentelemetry.proto.logs.v1.LogRecord.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.logRecords!=null&&o.hasOwnProperty("logRecords")){if(!Array.isArray(o.logRecords))return"logRecords: array expected";for(var u=0;u<o.logRecords.length;++u){var r=d.opentelemetry.proto.logs.v1.LogRecord.verify(o.logRecords[u]);if(r)return"logRecords."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.ScopeLogs)return o;var r=new d.opentelemetry.proto.logs.v1.ScopeLogs;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.logRecords){if(!Array.isArray(o.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");r.logRecords=[];for(var u=0;u<o.logRecords.length;++u){if(typeof o.logRecords[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");r.logRecords[u]=d.opentelemetry.proto.logs.v1.LogRecord.fromObject(o.logRecords[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.logRecords=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(u.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.logRecords&&o.logRecords.length){u.logRecords=[];for(var l=0;l<o.logRecords.length;++l)u.logRecords[l]=d.opentelemetry.proto.logs.v1.LogRecord.toObject(o.logRecords[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.ScopeLogs"},a}(),i.SeverityNumber=function(){var a={},s=Object.create(a);return s[a[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,s[a[1]="SEVERITY_NUMBER_TRACE"]=1,s[a[2]="SEVERITY_NUMBER_TRACE2"]=2,s[a[3]="SEVERITY_NUMBER_TRACE3"]=3,s[a[4]="SEVERITY_NUMBER_TRACE4"]=4,s[a[5]="SEVERITY_NUMBER_DEBUG"]=5,s[a[6]="SEVERITY_NUMBER_DEBUG2"]=6,s[a[7]="SEVERITY_NUMBER_DEBUG3"]=7,s[a[8]="SEVERITY_NUMBER_DEBUG4"]=8,s[a[9]="SEVERITY_NUMBER_INFO"]=9,s[a[10]="SEVERITY_NUMBER_INFO2"]=10,s[a[11]="SEVERITY_NUMBER_INFO3"]=11,s[a[12]="SEVERITY_NUMBER_INFO4"]=12,s[a[13]="SEVERITY_NUMBER_WARN"]=13,s[a[14]="SEVERITY_NUMBER_WARN2"]=14,s[a[15]="SEVERITY_NUMBER_WARN3"]=15,s[a[16]="SEVERITY_NUMBER_WARN4"]=16,s[a[17]="SEVERITY_NUMBER_ERROR"]=17,s[a[18]="SEVERITY_NUMBER_ERROR2"]=18,s[a[19]="SEVERITY_NUMBER_ERROR3"]=19,s[a[20]="SEVERITY_NUMBER_ERROR4"]=20,s[a[21]="SEVERITY_NUMBER_FATAL"]=21,s[a[22]="SEVERITY_NUMBER_FATAL2"]=22,s[a[23]="SEVERITY_NUMBER_FATAL3"]=23,s[a[24]="SEVERITY_NUMBER_FATAL4"]=24,s}(),i.LogRecordFlags=function(){var a={},s=Object.create(a);return s[a[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,s[a[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,s}(),i.LogRecord=function(){function a(s){if(this.attributes=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.timeUnixNano=null,a.prototype.observedTimeUnixNano=null,a.prototype.severityNumber=null,a.prototype.severityText=null,a.prototype.body=null,a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.flags=null,a.prototype.traceId=null,a.prototype.spanId=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.timeUnixNano!=null&&Object.hasOwnProperty.call(o,"timeUnixNano")&&r.uint32(9).fixed64(o.timeUnixNano),o.severityNumber!=null&&Object.hasOwnProperty.call(o,"severityNumber")&&r.uint32(16).int32(o.severityNumber),o.severityText!=null&&Object.hasOwnProperty.call(o,"severityText")&&r.uint32(26).string(o.severityText),o.body!=null&&Object.hasOwnProperty.call(o,"body")&&d.opentelemetry.proto.common.v1.AnyValue.encode(o.body,r.uint32(42).fork()).ldelim(),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(50).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(56).uint32(o.droppedAttributesCount),o.flags!=null&&Object.hasOwnProperty.call(o,"flags")&&r.uint32(69).fixed32(o.flags),o.traceId!=null&&Object.hasOwnProperty.call(o,"traceId")&&r.uint32(74).bytes(o.traceId),o.spanId!=null&&Object.hasOwnProperty.call(o,"spanId")&&r.uint32(82).bytes(o.spanId),o.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"observedTimeUnixNano")&&r.uint32(89).fixed64(o.observedTimeUnixNano),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.LogRecord;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.timeUnixNano=o.fixed64();break}case 11:{l.observedTimeUnixNano=o.fixed64();break}case 2:{l.severityNumber=o.int32();break}case 3:{l.severityText=o.string();break}case 5:{l.body=d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32());break}case 6:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 7:{l.droppedAttributesCount=o.uint32();break}case 8:{l.flags=o.fixed32();break}case 9:{l.traceId=o.bytes();break}case 10:{l.spanId=o.bytes();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&!E.isInteger(o.timeUnixNano)&&!(o.timeUnixNano&&E.isInteger(o.timeUnixNano.low)&&E.isInteger(o.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(o.observedTimeUnixNano!=null&&o.hasOwnProperty("observedTimeUnixNano")&&!E.isInteger(o.observedTimeUnixNano)&&!(o.observedTimeUnixNano&&E.isInteger(o.observedTimeUnixNano.low)&&E.isInteger(o.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(o.severityNumber!=null&&o.hasOwnProperty("severityNumber"))switch(o.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(o.severityText!=null&&o.hasOwnProperty("severityText")&&!E.isString(o.severityText))return"severityText: string expected";if(o.body!=null&&o.hasOwnProperty("body")){var r=d.opentelemetry.proto.common.v1.AnyValue.verify(o.body);if(r)return"body."+r}if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var u=0;u<o.attributes.length;++u){var r=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[u]);if(r)return"attributes."+r}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":o.flags!=null&&o.hasOwnProperty("flags")&&!E.isInteger(o.flags)?"flags: integer expected":o.traceId!=null&&o.hasOwnProperty("traceId")&&!(o.traceId&&typeof o.traceId.length=="number"||E.isString(o.traceId))?"traceId: buffer expected":o.spanId!=null&&o.hasOwnProperty("spanId")&&!(o.spanId&&typeof o.spanId.length=="number"||E.isString(o.spanId))?"spanId: buffer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.LogRecord)return o;var r=new d.opentelemetry.proto.logs.v1.LogRecord;switch(o.timeUnixNano!=null&&(E.Long?(r.timeUnixNano=E.Long.fromValue(o.timeUnixNano)).unsigned=!1:typeof o.timeUnixNano=="string"?r.timeUnixNano=parseInt(o.timeUnixNano,10):typeof o.timeUnixNano=="number"?r.timeUnixNano=o.timeUnixNano:typeof o.timeUnixNano=="object"&&(r.timeUnixNano=new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber())),o.observedTimeUnixNano!=null&&(E.Long?(r.observedTimeUnixNano=E.Long.fromValue(o.observedTimeUnixNano)).unsigned=!1:typeof o.observedTimeUnixNano=="string"?r.observedTimeUnixNano=parseInt(o.observedTimeUnixNano,10):typeof o.observedTimeUnixNano=="number"?r.observedTimeUnixNano=o.observedTimeUnixNano:typeof o.observedTimeUnixNano=="object"&&(r.observedTimeUnixNano=new E.LongBits(o.observedTimeUnixNano.low>>>0,o.observedTimeUnixNano.high>>>0).toNumber())),o.severityNumber){default:if(typeof o.severityNumber=="number"){r.severityNumber=o.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:r.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:r.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:r.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:r.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:r.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:r.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:r.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:r.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:r.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:r.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:r.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:r.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:r.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:r.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:r.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:r.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:r.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:r.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:r.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:r.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:r.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:r.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:r.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:r.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:r.severityNumber=24;break}if(o.severityText!=null&&(r.severityText=String(o.severityText)),o.body!=null){if(typeof o.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");r.body=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.body)}if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),o.flags!=null&&(r.flags=o.flags>>>0),o.traceId!=null&&(typeof o.traceId=="string"?E.base64.decode(o.traceId,r.traceId=E.newBuffer(E.base64.length(o.traceId)),0):o.traceId.length>=0&&(r.traceId=o.traceId)),o.spanId!=null&&(typeof o.spanId=="string"?E.base64.decode(o.spanId,r.spanId=E.newBuffer(E.base64.length(o.spanId)),0):o.spanId.length>=0&&(r.spanId=o.spanId)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults){if(E.Long){var l=new E.Long(0,0,!1);u.timeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.timeUnixNano=r.longs===String?"0":0;if(u.severityNumber=r.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,u.severityText="",u.body=null,u.droppedAttributesCount=0,u.flags=0,r.bytes===String?u.traceId="":(u.traceId=[],r.bytes!==Array&&(u.traceId=E.newBuffer(u.traceId))),r.bytes===String?u.spanId="":(u.spanId=[],r.bytes!==Array&&(u.spanId=E.newBuffer(u.spanId))),E.Long){var l=new E.Long(0,0,!1);u.observedTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.observedTimeUnixNano=r.longs===String?"0":0}if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&(typeof o.timeUnixNano=="number"?u.timeUnixNano=r.longs===String?String(o.timeUnixNano):o.timeUnixNano:u.timeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.timeUnixNano):r.longs===Number?new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber():o.timeUnixNano),o.severityNumber!=null&&o.hasOwnProperty("severityNumber")&&(u.severityNumber=r.enums===String?d.opentelemetry.proto.logs.v1.SeverityNumber[o.severityNumber]===void 0?o.severityNumber:d.opentelemetry.proto.logs.v1.SeverityNumber[o.severityNumber]:o.severityNumber),o.severityText!=null&&o.hasOwnProperty("severityText")&&(u.severityText=o.severityText),o.body!=null&&o.hasOwnProperty("body")&&(u.body=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.body,r)),o.attributes&&o.attributes.length){u.attributes=[];for(var c=0;c<o.attributes.length;++c)u.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),o.flags!=null&&o.hasOwnProperty("flags")&&(u.flags=o.flags),o.traceId!=null&&o.hasOwnProperty("traceId")&&(u.traceId=r.bytes===String?E.base64.encode(o.traceId,0,o.traceId.length):r.bytes===Array?Array.prototype.slice.call(o.traceId):o.traceId),o.spanId!=null&&o.hasOwnProperty("spanId")&&(u.spanId=r.bytes===String?E.base64.encode(o.spanId,0,o.spanId.length):r.bytes===Array?Array.prototype.slice.call(o.spanId):o.spanId),o.observedTimeUnixNano!=null&&o.hasOwnProperty("observedTimeUnixNano")&&(typeof o.observedTimeUnixNano=="number"?u.observedTimeUnixNano=r.longs===String?String(o.observedTimeUnixNano):o.observedTimeUnixNano:u.observedTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.observedTimeUnixNano):r.longs===Number?new E.LongBits(o.observedTimeUnixNano.low>>>0,o.observedTimeUnixNano.high>>>0).toNumber():o.observedTimeUnixNano),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.LogRecord"},a}(),i}(),n}(),e}(),t}();oI.exports=d});var Hr,jW,$W,KW,WW,zW,XW,aI,sI,uI,lI=m(()=>{"use strict";Hr=Fe(iI());Uu();Du();Vu();jW=Hr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,$W=Hr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,KW=Hr.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,WW=Hr.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,zW=Hr.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,XW=Hr.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,aI={serializeRequest:function(t){var e=Gn(t);return $W.encode(e).finish()},deserializeResponse:function(t){return jW.decode(t)}},sI={serializeRequest:function(t){var e=Bn(t);return WW.encode(e).finish()},deserializeResponse:function(t){return KW.decode(t)}},uI={serializeRequest:function(t){var e=Vn(t);return XW.encode(e).finish()},deserializeResponse:function(t){return zW.decode(t)}}});var cI,Bu,fI,pI=m(()=>{"use strict";Uu();Du();Vu();cI={serializeRequest:function(t){var e=Vn(t,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}},Bu={serializeRequest:function(t){var e=Bn(t,{useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}},fI={serializeRequest:function(t){var e=Gn(t,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}}});var fd={};nt(fd,{ESpanKind:()=>Lu,JsonLogsSerializer:()=>fI,JsonMetricsSerializer:()=>Bu,JsonTraceSerializer:()=>cI,ProtobufLogsSerializer:()=>aI,ProtobufMetricsSerializer:()=>sI,ProtobufTraceSerializer:()=>uI,createExportLogsServiceRequest:()=>Gn,createExportMetricsServiceRequest:()=>Bn,createExportTraceServiceRequest:()=>Vn,encodeAsLongBits:()=>Mu,encodeAsString:()=>cd,getOtlpEncoder:()=>dr,hrTimeToNanos:()=>xu,toLongBits:()=>ld});var Gu=m(()=>{"use strict";vi();JL();Uu();Du();Vu();lI();pI()});var dI,EI=m(()=>{"use strict";dI="0.54.0"});var _I,ku,JW,QW,ZW,SI=m(()=>{"use strict";ed();Ti();Gu();EI();_I=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),ku=function(){return ku=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},ku.apply(this,arguments)},JW={"User-Agent":"OTel-OTLP-Exporter-JavaScript/"+dI},QW=function(t){_I(e,t);function e(n){return t.call(this,n,Bu,ku(ku({},JW),{"Content-Type":"application/json"}),"METRICS","v1/metrics")||this}return e}(Si),ZW=function(t){_I(e,t);function e(n){return t.call(this,new QW(n),n)||this}return e}(Zp)});var hI=m(()=>{"use strict";SI()});var TI=m(()=>{"use strict";hI()});var vI={};nt(vI,{AggregationTemporalityPreference:()=>In,CumulativeTemporalitySelector:()=>Eu,DeltaTemporalitySelector:()=>Jp,LowMemoryTemporalitySelector:()=>Qp,OTLPMetricExporter:()=>ZW,OTLPMetricExporterBase:()=>Zp});var mI=m(()=>{"use strict";TI();Xp();ed()});var yI=h(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.createServiceClientConstructor=void 0;var ez=eo();function tz(t,e){let n={export:{path:t,requestStream:!1,responseStream:!1,requestSerialize:i=>i,requestDeserialize:i=>i,responseSerialize:i=>i,responseDeserialize:i=>i}};return ez.makeGenericClientConstructor(n,e)}Hu.createServiceClientConstructor=tz});var Fu=h(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.GrpcExporterTransport=bt.createEmptyMetadata=bt.createSslCredentials=bt.createInsecureCredentials=void 0;var rz=0,nz=2;function oz(t){return t==="gzip"?nz:rz}function iz(){let{credentials:t}=eo();return t.createInsecure()}bt.createInsecureCredentials=iz;function az(t,e,n){let{credentials:i}=eo();return i.createSsl(t,e,n)}bt.createSslCredentials=az;function sz(){let{Metadata:t}=eo();return new t}bt.createEmptyMetadata=sz;var pd=class{constructor(e){this._parameters=e}shutdown(){var e;(e=this._client)===null||e===void 0||e.close()}send(e,n){let i=Buffer.from(e);if(this._client==null){let{createServiceClientConstructor:a}=yI();try{this._metadata=this._parameters.metadata()}catch(o){return Promise.resolve({status:"failure",error:o})}let s=a(this._parameters.grpcPath,this._parameters.grpcName);try{this._client=new s(this._parameters.address,this._parameters.credentials(),{"grpc.default_compression_algorithm":oz(this._parameters.compression)})}catch(o){return Promise.resolve({status:"failure",error:o})}}return new Promise(a=>{let s=Date.now()+n;if(this._metadata==null)return a({error:new Error("metadata was null"),status:"failure"});this._client.export(i,this._metadata,{deadline:s},(o,r)=>{a(o?{status:"failure",error:o}:{data:r,status:"success"})})})}};bt.GrpcExporterTransport=pd});var AI=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.VERSION=void 0;Yu.VERSION="0.54.0"});var PI=h(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.getOtlpGrpcDefaultConfiguration=Er.mergeOtlpGrpcConfigurationWithDefaults=Er.validateAndNormalizeUrl=void 0;var NI=(Ti(),Y(bu)),mi=Fu(),uz=AI(),lz=L("url"),OI=(b(),Y(Pe));function RI(t){var e;t=t.trim(),t.match(/^([\w]{1,8}):\/\//)||(t=`https://${t}`);let i=new lz.URL(t);return i.protocol==="unix:"?t:(i.pathname&&i.pathname!=="/"&&OI.diag.warn("URL path should not be set when using grpc, the path part of the URL will be ignored."),i.protocol!==""&&!(!((e=i.protocol)===null||e===void 0)&&e.match(/^(http)s?:$/))&&OI.diag.warn("URL protocol should be http(s)://. Using http://."),i.host)}Er.validateAndNormalizeUrl=RI;function gI(t,e){for(let[n,i]of Object.entries(e.getMap()))t.get(n).length<1&&t.set(n,i)}function cz(t,e,n){var i,a,s,o,r;let u=(a=(i=t.url)!==null&&i!==void 0?i:e.url)!==null&&a!==void 0?a:n.url;return Object.assign(Object.assign({},(0,NI.mergeOtlpSharedConfigurationWithDefaults)(t,e,n)),{metadata:()=>{var l,c,p,_;let f=n.metadata();return gI(f,(c=(l=t.metadata)===null||l===void 0?void 0:l.call(t).clone())!==null&&c!==void 0?c:(0,mi.createEmptyMetadata)()),gI(f,(_=(p=e.metadata)===null||p===void 0?void 0:p.call(e))!==null&&_!==void 0?_:(0,mi.createEmptyMetadata)()),f},url:RI(u),credentials:(r=(s=t.credentials)!==null&&s!==void 0?s:(o=e.credentials)===null||o===void 0?void 0:o.call(e,u))!==null&&r!==void 0?r:n.credentials(u)})}Er.mergeOtlpGrpcConfigurationWithDefaults=cz;function fz(){return Object.assign(Object.assign({},(0,NI.getSharedConfigurationDefaults)()),{metadata:()=>{let t=(0,mi.createEmptyMetadata)();return t.set("User-Agent",`OTel-OTLP-Exporter-JavaScript/${uz.VERSION}`),t},url:"http://localhost:4317",credentials:t=>t.startsWith("http://")?()=>(0,mi.createInsecureCredentials)():()=>(0,mi.createSslCredentials)()})}Er.getOtlpGrpcDefaultConfiguration=fz});var II=h(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.getOtlpGrpcConfigurationFromEnv=void 0;var bI=(K(),Y(Bs)),yi=Fu(),pz=(Ti(),Y(bu)),dz=L("fs"),Ez=L("path"),MI=(b(),Y(Pe));function dd(t,e){if(t!=null&&t!=="")return t;if(e!=null&&e!=="")return e}function _z(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_HEADERS`])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_HEADERS)===null||n===void 0?void 0:n.trim(),s=bI.baggageUtils.parseKeyPairsIntoRecord(i),o=bI.baggageUtils.parseKeyPairsIntoRecord(a);if(Object.keys(s).length===0&&Object.keys(o).length===0)return;let r=Object.assign({},o,s),u=(0,yi.createEmptyMetadata)();for(let[l,c]of Object.entries(r))u.set(l,c);return u}function Sz(t){let e=_z(t);if(e!=null)return()=>e}function hz(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_ENDPOINT`])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_ENDPOINT)===null||n===void 0?void 0:n.trim();return dd(i,a)}function Tz(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_INSECURE`])===null||e===void 0?void 0:e.toLowerCase().trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_INSECURE)===null||n===void 0?void 0:n.toLowerCase().trim();return dd(i,a)==="true"}function Ed(t,e,n){var i,a;let s=(i=process.env[t])===null||i===void 0?void 0:i.trim(),o=(a=process.env[e])===null||a===void 0?void 0:a.trim(),r=dd(s,o);if(r!=null)try{return dz.readFileSync(Ez.resolve(process.cwd(),r))}catch{MI.diag.warn(n);return}else return}function vz(t){return Ed(`OTEL_EXPORTER_OTLP_${t}_CLIENT_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE","Failed to read client certificate chain file")}function mz(t){return Ed(`OTEL_EXPORTER_OTLP_${t}_CLIENT_KEY`,"OTEL_EXPORTER_OTLP_CLIENT_KEY","Failed to read client certificate private key file")}function xI(t){return Ed(`OTEL_EXPORTER_OTLP_${t}_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CERTIFICATE","Failed to read root certificate file")}function LI(t){let e=mz(t),n=vz(t),i=xI(t),a=e!=null&&n!=null;return i!=null&&!a?(MI.diag.warn("Client key and certificate must both be provided, but one was missing - attempting to create credentials from just the root certificate"),(0,yi.createSslCredentials)(xI(t))):(0,yi.createSslCredentials)(i,e,n)}function yz(t){return Tz(t)?(0,yi.createInsecureCredentials)():LI(t)}function Az(t){return Object.assign(Object.assign({},(0,pz.getSharedConfigurationFromEnvironment)(t)),{metadata:Sz(t),url:hz(t),credentials:e=>e.startsWith("http://")?()=>(0,yi.createInsecureCredentials)():e.startsWith("https://")?()=>LI(t):()=>yz(t)})}qu.getOtlpGrpcConfigurationFromEnv=Az});var DI=h(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.OTLPGRPCExporterNodeBase=void 0;var CI=(b(),Y(Pe)),_d=(Ti(),Y(bu)),wI=Fu(),UI=PI(),Oz=II(),Sd=class extends _d.OTLPExporterBase{constructor(e={},n,i,a,s){super(e);let o=e.credentials,r=(0,UI.mergeOtlpGrpcConfigurationWithDefaults)({url:e.url,metadata:()=>{var u;return(u=e.metadata)!==null&&u!==void 0?u:(0,wI.createEmptyMetadata)()},compression:e.compression,timeoutMillis:e.timeoutMillis,concurrencyLimit:e.concurrencyLimit,credentials:o!=null?()=>o:void 0},(0,Oz.getOtlpGrpcConfigurationFromEnv)(s),(0,UI.getOtlpGrpcDefaultConfiguration)());this._serializer=n,this._timeoutMillis=r.timeoutMillis,this._concurrencyLimit=r.concurrencyLimit,e.headers&&CI.diag.warn("Headers cannot be set when using grpc"),this._transport=new wI.GrpcExporterTransport({address:r.url,compression:r.compression,credentials:r.credentials,grpcName:i,grpcPath:a,metadata:r.metadata})}onShutdown(){this._transport.shutdown()}send(e,n,i){if(this._shutdownOnce.isCalled){CI.diag.debug("Shutdown already started. Cannot send objects");return}let a=this._serializer.serializeRequest(e);if(a==null){i(new Error("Could not serialize message"));return}let s=this._transport.send(a,this._timeoutMillis).then(r=>{r.status==="success"?n():r.status==="failure"&&r.error?i(r.error):r.status==="retryable"?i(new _d.OTLPExporterError("Export failed with retryable status")):i(new _d.OTLPExporterError("Export failed with unknown error"))},i);this._sendingPromises.push(s);let o=()=>{let r=this._sendingPromises.indexOf(s);this._sendingPromises.splice(r,1)};s.then(o,o)}};ju.OTLPGRPCExporterNodeBase=Sd});var hd=h($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.OTLPGRPCExporterNodeBase=void 0;var gz=DI();Object.defineProperty($u,"OTLPGRPCExporterNodeBase",{enumerable:!0,get:function(){return gz.OTLPGRPCExporterNodeBase}})});var VI=h(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.OTLPMetricExporter=void 0;var Nz=(mI(),Y(vI)),Rz=hd(),Pz=(Gu(),Y(fd)),Td=class extends Rz.OTLPGRPCExporterNodeBase{constructor(e){super(e,Pz.ProtobufMetricsSerializer,"MetricsExportService","/opentelemetry.proto.collector.metrics.v1.MetricsService/Export","METRICS")}},vd=class extends Nz.OTLPMetricExporterBase{constructor(e){super(new Td(e),e)}};Ku.OTLPMetricExporter=vd});var BI=h(Fr=>{"use strict";var bz=Fr&&Fr.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),xz=Fr&&Fr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&bz(e,t,n)};Object.defineProperty(Fr,"__esModule",{value:!0});xz(VI(),Fr)});var Od=h(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.PrometheusSerializer=void 0;var Mz=(b(),Y(Pe)),Yr=(Ln(),Y(zp)),GI=(K(),Y(Bs));function zu(t){return t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n")}function kI(t=""){return typeof t!="string"&&(t=JSON.stringify(t)),zu(t).replace(/"/g,'\\"')}var Lz=/[^a-z0-9_]/gi,Iz=/_{2,}/g;function yd(t){return t.replace(Lz,"_").replace(Iz,"_")}function md(t,e){return!t.endsWith("_total")&&e===Yr.InstrumentType.COUNTER&&(t=t+"_total"),t}function Cz(t){return Number.isNaN(t)?"NaN":Number.isFinite(t)?`${t}`:t<0?"-Inf":"+Inf"}function wz(t){switch(t.dataPointType){case Yr.DataPointType.SUM:return t.isMonotonic?"counter":"gauge";case Yr.DataPointType.GAUGE:return"gauge";case Yr.DataPointType.HISTOGRAM:return"histogram";default:return"untyped"}}function Wu(t,e,n,i,a){let s=!1,o="";for(let[r,u]of Object.entries(e)){let l=yd(r);s=!0,o+=`${o.length>0?",":""}${l}="${kI(u)}"`}if(a)for(let[r,u]of Object.entries(a)){let l=yd(r);s=!0,o+=`${o.length>0?",":""}${l}="${kI(u)}"`}return s&&(t+=`{${o}}`),`${t} ${Cz(n)}${i!==void 0?" "+String(i):""}
|
52
|
+
`}var Uz="# no registered metrics",Ad=class{constructor(e,n=!1){e&&(this._prefix=e+"_"),this._appendTimestamp=n}serialize(e){let n="";for(let i of e.scopeMetrics)n+=this._serializeScopeMetrics(i);return n===""&&(n+=Uz),this._serializeResource(e.resource)+n}_serializeScopeMetrics(e){let n="";for(let i of e.metrics)n+=this._serializeMetricData(i)+`
|
53
|
+
`;return n}_serializeMetricData(e){let n=yd(zu(e.descriptor.name));this._prefix&&(n=`${this._prefix}${n}`);let i=e.dataPointType;n=md(n,e.descriptor.type);let a=`# HELP ${n} ${zu(e.descriptor.description||"description missing")}`,s=e.descriptor.unit?`
|
54
|
+
# UNIT ${n} ${zu(e.descriptor.unit)}`:"",o=`# TYPE ${n} ${wz(e)}`,r="";switch(i){case Yr.DataPointType.SUM:case Yr.DataPointType.GAUGE:{r=e.dataPoints.map(u=>this._serializeSingularDataPoint(n,e.descriptor.type,u)).join("");break}case Yr.DataPointType.HISTOGRAM:{r=e.dataPoints.map(u=>this._serializeHistogramDataPoint(n,e.descriptor.type,u)).join("");break}default:Mz.diag.error(`Unrecognizable DataPointType: ${i} for metric "${n}"`)}return`${a}${s}
|
55
55
|
${o}
|
56
|
-
${r}`.trim()}_serializeSingularDataPoint(e,n,i){let a="";e=
|
56
|
+
${r}`.trim()}_serializeSingularDataPoint(e,n,i){let a="";e=md(e,n);let{value:s,attributes:o}=i,r=(0,GI.hrTimeToMilliseconds)(i.endTime);return a+=Wu(e,o,s,this._appendTimestamp?r:void 0,void 0),a}_serializeHistogramDataPoint(e,n,i){let a="";e=md(e,n);let s=i.attributes,o=i.value,r=(0,GI.hrTimeToMilliseconds)(i.endTime);for(let p of["count","sum"]){let _=o[p];_!=null&&(a+=Wu(e+"_"+p,s,_,this._appendTimestamp?r:void 0,void 0))}let u=0,l=o.buckets.counts.entries(),c=!1;for(let[p,_]of l){u+=_;let f=o.buckets.boundaries[p];if(f===void 0&&c)break;f===1/0&&(c=!0),a+=Wu(e+"_bucket",s,u,this._appendTimestamp?r:void 0,{le:f===void 0||f===1/0?"+Inf":String(f)})}return a}_serializeResource(e){let n="target_info",i=`# HELP ${n} Target metadata`,a=`# TYPE ${n} gauge`,s=Wu(n,e.attributes,1).trim();return`${i}
|
57
57
|
${a}
|
58
58
|
${s}
|
59
|
-
`}};qu.PrometheusSerializer=Sd});var CI=h($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.PrometheusExporter=void 0;var mi=(b(),Y(Re)),bz=(K(),Y(Is)),Td=(xn(),Y(Yp)),Mz=L("http"),xz=hd(),Lz=L("url"),ju=class t extends Td.MetricReader{constructor(e={},n=()=>{}){super({aggregationSelector:i=>Td.Aggregation.Default(),aggregationTemporalitySelector:i=>Td.AggregationTemporality.CUMULATIVE,metricProducers:e.metricProducers}),this._requestHandler=(i,a)=>{i.url!=null&&new Lz.URL(i.url,this._baseUrl).pathname===this._endpoint?this._exportMetrics(a):this._notFound(a)},this._exportMetrics=i=>{i.statusCode=200,i.setHeader("content-type","text/plain"),this.collect().then(a=>{let{resourceMetrics:s,errors:o}=a;o.length&&mi.diag.error("PrometheusExporter: metrics collection errors",...o),i.end(this._serializer.serialize(s))},a=>{i.end(`# failed to export metrics: ${a}`)})},this._notFound=i=>{i.statusCode=404,i.end()},this._host=e.host||process.env.OTEL_EXPORTER_PROMETHEUS_HOST||t.DEFAULT_OPTIONS.host,this._port=e.port||Number(process.env.OTEL_EXPORTER_PROMETHEUS_PORT)||t.DEFAULT_OPTIONS.port,this._prefix=e.prefix||t.DEFAULT_OPTIONS.prefix,this._appendTimestamp=typeof e.appendTimestamp=="boolean"?e.appendTimestamp:t.DEFAULT_OPTIONS.appendTimestamp,this._server=(0,Mz.createServer)(this._requestHandler).unref(),this._serializer=new xz.PrometheusSerializer(this._prefix,this._appendTimestamp),this._baseUrl=`http://${this._host}:${this._port}/`,this._endpoint=(e.endpoint||t.DEFAULT_OPTIONS.endpoint).replace(/^([^/])/,"/$1"),e.preventServerStart!==!0?this.startServer().then(n,i=>{mi.diag.error(i),n(i)}):n&&queueMicrotask(n)}async onForceFlush(){}onShutdown(){return this.stopServer()}stopServer(){return this._server?new Promise(e=>{this._server.close(n=>{n?n.code!=="ERR_SERVER_NOT_RUNNING"&&(0,bz.globalErrorHandler)(n):mi.diag.debug("Prometheus exporter was stopped"),e()})}):(mi.diag.debug("Prometheus stopServer() was called but server was never started."),Promise.resolve())}startServer(){var e;return(e=this._startServerPromise)!==null&&e!==void 0||(this._startServerPromise=new Promise((n,i)=>{this._server.once("error",i),this._server.listen({port:this._port,host:this._host},()=>{mi.diag.debug(`Prometheus exporter server started: ${this._host}:${this._port}/${this._endpoint}`),n()})})),this._startServerPromise}getMetricsRequestHandler(e,n){this._exportMetrics(n)}};$u.PrometheusExporter=ju;ju.DEFAULT_OPTIONS={host:void 0,port:9464,endpoint:"/metrics",prefix:"",appendTimestamp:!1}});var wI=h(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.PrometheusSerializer=Gn.PrometheusExporter=void 0;var Iz=CI();Object.defineProperty(Gn,"PrometheusExporter",{enumerable:!0,get:function(){return Iz.PrometheusExporter}});var Cz=hd();Object.defineProperty(Gn,"PrometheusSerializer",{enumerable:!0,get:function(){return Cz.PrometheusSerializer}})});var md=h(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.AbstractAsyncHooksContextManager=void 0;var wz=L("events"),Uz=["addListener","on","once","prependListener","prependOnceListener"],vd=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1}bind(e,n){return n instanceof wz.EventEmitter?this._bindEventEmitter(e,n):typeof n=="function"?this._bindFunction(e,n):n}_bindFunction(e,n){let i=this,a=function(...s){return i.with(e,()=>n.apply(this,s))};return Object.defineProperty(a,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),a}_bindEventEmitter(e,n){return this._getPatchMap(n)!==void 0||(this._createPatchMap(n),Uz.forEach(a=>{n[a]!==void 0&&(n[a]=this._patchAddListener(n,n[a],e))}),typeof n.removeListener=="function"&&(n.removeListener=this._patchRemoveListener(n,n.removeListener)),typeof n.off=="function"&&(n.off=this._patchRemoveListener(n,n.off)),typeof n.removeAllListeners=="function"&&(n.removeAllListeners=this._patchRemoveAllListeners(n,n.removeAllListeners))),n}_patchRemoveListener(e,n){let i=this;return function(a,s){var o;let r=(o=i._getPatchMap(e))===null||o===void 0?void 0:o[a];if(r===void 0)return n.call(this,a,s);let u=r.get(s);return n.call(this,a,u||s)}}_patchRemoveAllListeners(e,n){let i=this;return function(a){let s=i._getPatchMap(e);return s!==void 0&&(arguments.length===0?i._createPatchMap(e):s[a]!==void 0&&delete s[a]),n.apply(this,arguments)}}_patchAddListener(e,n,i){let a=this;return function(s,o){if(a._wrapped)return n.call(this,s,o);let r=a._getPatchMap(e);r===void 0&&(r=a._createPatchMap(e));let u=r[s];u===void 0&&(u=new WeakMap,r[s]=u);let l=a.bind(i,o);u.set(o,l),a._wrapped=!0;try{return n.call(this,s,l)}finally{a._wrapped=!1}}}_createPatchMap(e){let n=Object.create(null);return e[this._kOtListeners]=n,n}_getPatchMap(e){return e[this._kOtListeners]}};Ku.AbstractAsyncHooksContextManager=vd});var UI=h(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.AsyncHooksContextManager=void 0;var Dz=(b(),Y(Re)),Vz=L("async_hooks"),Bz=md(),yd=class extends Bz.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=Vz.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){var e;return(e=this._stack[this._stack.length-1])!==null&&e!==void 0?e:Dz.ROOT_CONTEXT}with(e,n,i,...a){this._enterContext(e);try{return n.call(i,...a)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(e,n){if(n==="TIMERWRAP")return;let i=this._stack[this._stack.length-1];i!==void 0&&this._contexts.set(e,i)}_destroy(e){this._contexts.delete(e)}_before(e){let n=this._contexts.get(e);n!==void 0&&this._enterContext(n)}_after(){this._exitContext()}_enterContext(e){this._stack.push(e)}_exitContext(){this._stack.pop()}};Wu.AsyncHooksContextManager=yd});var DI=h(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.AsyncLocalStorageContextManager=void 0;var Gz=(b(),Y(Re)),kz=L("async_hooks"),Hz=md(),Ad=class extends Hz.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new kz.AsyncLocalStorage}active(){var e;return(e=this._asyncLocalStorage.getStore())!==null&&e!==void 0?e:Gz.ROOT_CONTEXT}with(e,n,i,...a){let s=i==null?n:n.bind(i);return this._asyncLocalStorage.run(e,s,...a)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};zu.AsyncLocalStorageContextManager=Ad});var VI=h(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.AsyncLocalStorageContextManager=kn.AsyncHooksContextManager=void 0;var Fz=UI();Object.defineProperty(kn,"AsyncHooksContextManager",{enumerable:!0,get:function(){return Fz.AsyncHooksContextManager}});var Yz=DI();Object.defineProperty(kn,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return Yz.AsyncLocalStorageContextManager}})});var Hn,Od=m(()=>{"use strict";b();Hn=$r("OpenTelemetry Context Key B3 Debug Flag")});var Er,Fn,Yn,qn,Xu,jn,yi=m(()=>{"use strict";Er="b3",Fn="x-b3-traceid",Yn="x-b3-spanid",qn="x-b3-sampled",Xu="x-b3-parentspanid",jn="x-b3-flags"});function $z(t){return t===J.SAMPLED||t===J.NONE}function Kz(t){return Array.isArray(t)?t[0]:t}function Ju(t,e,n){var i=e.get(t,n);return Kz(i)}function Wz(t,e){var n=Ju(t,e,Fn);return typeof n=="string"?n.padStart(32,"0"):""}function zz(t,e){var n=Ju(t,e,Yn);return typeof n=="string"?n:""}function BI(t,e){var n=Ju(t,e,jn);return n==="1"?"1":void 0}function Xz(t,e){var n=Ju(t,e,qn),i=BI(t,e);if(i==="1"||qz.has(n))return J.SAMPLED;if(n===void 0||jz.has(n))return J.NONE}var qz,jz,GI,kI=m(()=>{"use strict";b();K();Od();yi();qz=new Set([!0,"true","True","1",1]),jz=new Set([!1,"false","False","0",0]);GI=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=X.getSpanContext(e);if(!(!a||!dt(a)||be(e))){var s=e.getValue(Hn);i.set(n,Fn,a.traceId),i.set(n,Yn,a.spanId),s==="1"?i.set(n,jn,s):a.traceFlags!==void 0&&i.set(n,qn,(J.SAMPLED&a.traceFlags)===J.SAMPLED?"1":"0")}},t.prototype.extract=function(e,n,i){var a=Wz(n,i),s=zz(n,i),o=Xz(n,i),r=BI(n,i);return Gt(a)&&Ii(s)&&$z(o)?(e=e.setValue(Hn,r),X.setSpanContext(e,{traceId:a,spanId:s,isRemote:!0,traceFlags:o})):e},t.prototype.fields=function(){return[Fn,Yn,jn,qn,Xu]},t}()});function rX(t){return t.length===32?t:""+Zz+t}function nX(t){return t&&eX.has(t)?J.SAMPLED:J.NONE}var Jz,Qz,Zz,eX,tX,HI,FI=m(()=>{"use strict";b();K();Od();yi();Jz=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Qz=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,Zz="0".repeat(16),eX=new Set(["d","1"]),tX="d";HI=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=X.getSpanContext(e);if(!(!a||!dt(a)||be(e))){var s=e.getValue(Hn)||a.traceFlags&1,o=a.traceId+"-"+a.spanId+"-"+s;i.set(n,Er,o)}},t.prototype.extract=function(e,n,i){var a=i.get(n,Er),s=Array.isArray(a)?a[0]:a;if(typeof s!="string")return e;var o=s.match(Qz);if(!o)return e;var r=Jz(o,4),u=r[1],l=r[2],c=r[3],p=rX(u);if(!Gt(p)||!Ii(l))return e;var _=nX(c);return c===tX&&(e=e.setValue(Hn,c)),X.setSpanContext(e,{traceId:p,spanId:l,isRemote:!0,traceFlags:_})},t.prototype.fields=function(){return[Er]},t}()});var $n,gd=m(()=>{"use strict";(function(t){t[t.SINGLE_HEADER=0]="SINGLE_HEADER",t[t.MULTI_HEADER=1]="MULTI_HEADER"})($n||($n={}))});var YI,qI=m(()=>{"use strict";K();kI();FI();yi();gd();YI=function(){function t(e){e===void 0&&(e={}),this._b3MultiPropagator=new GI,this._b3SinglePropagator=new HI,e.injectEncoding===$n.MULTI_HEADER?(this._inject=this._b3MultiPropagator.inject,this._fields=this._b3MultiPropagator.fields()):(this._inject=this._b3SinglePropagator.inject,this._fields=this._b3SinglePropagator.fields())}return t.prototype.inject=function(e,n,i){be(e)||this._inject(e,n,i)},t.prototype.extract=function(e,n,i){var a=i.get(n,Er),s=Array.isArray(a)?a[0]:a;return s?this._b3SinglePropagator.extract(e,n,i):this._b3MultiPropagator.extract(e,n,i)},t.prototype.fields=function(){return this._fields},t}()});var jI={};nt(jI,{B3InjectEncoding:()=>$n,B3Propagator:()=>YI,B3_CONTEXT_HEADER:()=>Er,X_B3_FLAGS:()=>jn,X_B3_PARENT_SPAN_ID:()=>Xu,X_B3_SAMPLED:()=>qn,X_B3_SPAN_ID:()=>Yn,X_B3_TRACE_ID:()=>Fn});var $I=m(()=>{"use strict";qI();yi();gd()});var KI,WI=m(()=>{"use strict";KI="exception"});var Nd,oX,zI,iX,Qu,Rd=m(()=>{"use strict";b();K();jo();WI();Nd=function(){return Nd=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Nd.apply(this,arguments)},oX=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},zI=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},iX=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},Qu=function(){function t(e,n,i,a,s,o,r,u,l,c){r===void 0&&(r=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:pE.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=i,this._spanContext=a,this.parentSpanId=o,this.kind=s,this.links=r;var p=Date.now();this._performanceStartTime=Ze.now(),this._performanceOffset=p-(this._performanceStartTime+yn()),this._startTimeProvided=u!=null,this.startTime=this._getTime(u??p),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,c!=null&&this.setAttributes(c),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,n)}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,n){return n==null||this._isSpanEnded()?this:e.length===0?(g.warn("Invalid attribute key: "+e),this):Wo(n)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(n),this):(g.warn("Invalid attribute value set for key: "+e),this)},t.prototype.setAttributes=function(e){var n,i;try{for(var a=oX(Object.entries(e)),s=a.next();!s.done;s=a.next()){var o=zI(s.value,2),r=o[0],u=o[1];this.setAttribute(r,u)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return this},t.prototype.addEvent=function(e,n,i){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return g.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&g.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Qo(n)&&(Qo(i)||(i=n),n=void 0);var a=or(n);return this.events.push({name:e,attributes:a,time:this._getTime(i),droppedAttributesCount:0}),this},t.prototype.addLink=function(e){return this.links.push(e),this},t.prototype.addLinks=function(e){var n;return(n=this.links).push.apply(n,iX([],zI(e),!1)),this},t.prototype.setStatus=function(e){return this._isSpanEnded()?this:(this.status=Nd({},e),this.status.message!=null&&typeof e.message!="string"&&(g.warn("Dropping invalid status.message of type '"+typeof e.message+"', expected 'string'"),delete this.status.message),this)},t.prototype.updateName=function(e){return this._isSpanEnded()?this:(this.name=e,this)},t.prototype.end=function(e){if(this._isSpanEnded()){g.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once.");return}this._ended=!0,this.endTime=this._getTime(e),this._duration=Os(this.startTime,this.endTime),this._duration[0]<0&&(g.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&&g.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},t.prototype._getTime=function(e){if(typeof e=="number"&&e<Ze.now())return Jo(e+this._performanceOffset);if(typeof e=="number")return Oe(e);if(e instanceof Date)return Oe(e.getTime());if(An(e))return e;if(this._startTimeProvided)return Oe(Date.now());var n=Ze.now()-this._performanceStartTime;return Zo(this.startTime,Oe(n))},t.prototype.isRecording=function(){return this._ended===!1},t.prototype.recordException=function(e,n){var i={};typeof e=="string"?i[ls]=e:e&&(e.code?i[us]=e.code.toString():e.name&&(i[us]=e.name),e.message&&(i[ls]=e.message),e.stack&&(i[l0]=e.stack)),i[us]||i[ls]?this.addEvent(KI,i,n):g.warn("Failed to record an exception "+e)},Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),t.prototype._isSpanEnded=function(){return this._ended&&g.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},t.prototype._truncateToLimitUtil=function(e,n){return e.length<=n?e:e.substr(0,n)},t.prototype._truncateToSize=function(e){var n=this,i=this._attributeValueLengthLimit;return i<=0?(g.warn("Attribute value limit must be positive, got "+i),e):typeof e=="string"?this._truncateToLimitUtil(e,i):Array.isArray(e)?e.map(function(a){return typeof a=="string"?n._truncateToLimitUtil(a,i):a}):e},t}()});var ft,Ai=m(()=>{"use strict";(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(ft||(ft={}))});var _r,Zu=m(()=>{"use strict";Ai();_r=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:ft.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var Mt,el=m(()=>{"use strict";Ai();Mt=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:ft.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var Kn,Pd=m(()=>{"use strict";b();K();Zu();el();Kn=function(){function t(e){var n,i,a,s;this._root=e.root,this._root||(he(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Mt),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new Mt,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new _r,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new Mt,this._localParentNotSampled=(s=e.localParentNotSampled)!==null&&s!==void 0?s:new _r}return t.prototype.shouldSample=function(e,n,i,a,s,o){var r=X.getSpanContext(e);return!r||!dt(r)?this._root.shouldSample(e,n,i,a,s,o):r.isRemote?r.traceFlags&J.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,s,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,s,o):r.traceFlags&J.SAMPLED?this._localParentSampled.shouldSample(e,n,i,a,s,o):this._localParentNotSampled.shouldSample(e,n,i,a,s,o)},t.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},t}()});var Oi,bd=m(()=>{"use strict";b();Ai();Oi=function(){function t(e){e===void 0&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}return t.prototype.shouldSample=function(e,n){return{decision:Gt(n)&&this._accumulate(n)<this._upperBound?ft.RECORD_AND_SAMPLED:ft.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e},t.prototype._accumulate=function(e){for(var n=0,i=0;i<e.length/8;i++){var a=i*8,s=parseInt(e.slice(a,a+8),16);n=(n^s)>>>0}return n},t}()});function tl(){var t=Ae();return{sampler:Md(aX),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:t.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:t.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:t.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:t.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function Md(t){switch(t===void 0&&(t=Ae()),t.OTEL_TRACES_SAMPLER){case je.AlwaysOn:return new Mt;case je.AlwaysOff:return new _r;case je.ParentBasedAlwaysOn:return new Kn({root:new Mt});case je.ParentBasedAlwaysOff:return new Kn({root:new _r});case je.TraceIdRatio:return new Oi(XI(t));case je.ParentBasedTraceIdRatio:return new Kn({root:new Oi(XI(t))});default:return g.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+sX+'".'),new Mt}}function XI(t){if(t.OTEL_TRACES_SAMPLER_ARG===void 0||t.OTEL_TRACES_SAMPLER_ARG==="")return g.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+Wn+"."),Wn;var e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(g.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+Wn+"."),Wn):e<0||e>1?(g.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+Wn+"."),Wn):e}var aX,sX,Wn,xd=m(()=>{"use strict";b();K();Zu();el();Pd();bd();aX=Ae(),sX=je.AlwaysOn,Wn=1});function JI(t){var e={sampler:Md()},n=tl(),i=Object.assign({},n,e,t);return i.generalLimits=Object.assign({},n.generalLimits,t.generalLimits||{}),i.spanLimits=Object.assign({},n.spanLimits,t.spanLimits||{}),i}function QI(t){var e,n,i,a,s,o,r,u,l,c,p,_,f=Object.assign({},t.spanLimits),S=vn();return f.attributeCountLimit=(o=(s=(a=(n=(e=t.spanLimits)===null||e===void 0?void 0:e.attributeCountLimit)!==null&&n!==void 0?n:(i=t.generalLimits)===null||i===void 0?void 0:i.attributeCountLimit)!==null&&a!==void 0?a:S.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&s!==void 0?s:S.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&o!==void 0?o:Ur,f.attributeValueLengthLimit=(_=(p=(c=(u=(r=t.spanLimits)===null||r===void 0?void 0:r.attributeValueLengthLimit)!==null&&u!==void 0?u:(l=t.generalLimits)===null||l===void 0?void 0:l.attributeValueLengthLimit)!==null&&c!==void 0?c:S.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&p!==void 0?p:S.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&_!==void 0?_:wr,Object.assign({},t,{spanLimits:f})}var Ld=m(()=>{"use strict";xd();K()});var ZI,eC=m(()=>{"use strict";b();K();ZI=function(){function t(e,n){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var i=Ae();this._maxExportBatchSize=typeof n?.maxExportBatchSize=="number"?n.maxExportBatchSize:i.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof n?.maxQueueSize=="number"?n.maxQueueSize:i.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof n?.scheduledDelayMillis=="number"?n.scheduledDelayMillis:i.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof n?.exportTimeoutMillis=="number"?n.exportTimeoutMillis:i.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new ur(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(g.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return t.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&J.SAMPLED&&this._addToBuffer(e)},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){var e=this;return Promise.resolve().then(function(){return e.onShutdown()}).then(function(){return e._flushAll()}).then(function(){return e._exporter.shutdown()})},t.prototype._addToBuffer=function(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&g.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(g.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()},t.prototype._flushAll=function(){var e=this;return new Promise(function(n,i){for(var a=[],s=Math.ceil(e._finishedSpans.length/e._maxExportBatchSize),o=0,r=s;o<r;o++)a.push(e._flushOneBatch());Promise.all(a).then(function(){n()}).catch(i)})},t.prototype._flushOneBatch=function(){var e=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(n,i){var a=setTimeout(function(){i(new Error("Timeout"))},e._exportTimeoutMillis);He.with(hn(He.active()),function(){var s;e._finishedSpans.length<=e._maxExportBatchSize?(s=e._finishedSpans,e._finishedSpans=[]):s=e._finishedSpans.splice(0,e._maxExportBatchSize);for(var o=function(){return e._exporter.export(s,function(p){var _;clearTimeout(a),p.code===ee.SUCCESS?n():i((_=p.error)!==null&&_!==void 0?_:new Error("BatchSpanProcessor: span export failed"))})},r=null,u=0,l=s.length;u<l;u++){var c=s[u];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(r??(r=[]),r.push(c.resource.waitForAsyncAttributes()))}r===null?o():Promise.all(r).then(o,function(p){he(p),i(p)})})})},t.prototype._maybeStartTimer=function(){var e=this;if(!this._isExporting){var n=function(){e._isExporting=!0,e._flushOneBatch().finally(function(){e._isExporting=!1,e._finishedSpans.length>0&&(e._clearTimer(),e._maybeStartTimer())}).catch(function(i){e._isExporting=!1,he(i)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return n();this._timer===void 0&&(this._timer=setTimeout(function(){return n()},this._scheduledDelayMillis),sr(this._timer))}},t.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},t}()});var uX,Sr,tC=m(()=>{"use strict";eC();uX=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Sr=function(t){uX(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onShutdown=function(){},e}(ZI)});function rC(t){return function(){for(var n=0;n<t/4;n++)rl.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(rl[n]>0);n++)n===t-1&&(rl[t-1]=1);return rl.toString("hex",0,t)}}var lX,nC,zn,rl,oC=m(()=>{"use strict";lX=8,nC=16,zn=function(){function t(){this.generateTraceId=rC(nC),this.generateSpanId=rC(lX)}return t}(),rl=Buffer.allocUnsafe(nC)});var iC=m(()=>{"use strict";tC();oC()});var nl=m(()=>{"use strict";iC()});var ol,aC=m(()=>{"use strict";b();K();Rd();Ld();nl();ol=function(){function t(e,n,i){this._tracerProvider=i;var a=JI(n);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=n.idGenerator||new zn,this.resource=i.resource,this.instrumentationLibrary=e}return t.prototype.startSpan=function(e,n,i){var a,s,o;n===void 0&&(n={}),i===void 0&&(i=He.active()),n.root&&(i=X.deleteSpan(i));var r=X.getSpan(i);if(be(i)){g.debug("Instrumentation suppressed, returning Noop Span");var u=X.wrapSpanContext(lE);return u}var l=r?.spanContext(),c=this._idGenerator.generateSpanId(),p,_,f;!l||!X.isSpanContextValid(l)?p=this._idGenerator.generateTraceId():(p=l.traceId,_=l.traceState,f=l.spanId);var S=(a=n.kind)!==null&&a!==void 0?a:fE.INTERNAL,v=((s=n.links)!==null&&s!==void 0?s:[]).map(function(F){return{context:F.context,attributes:or(F.attributes)}}),T=or(n.attributes),A=this._sampler.shouldSample(i,p,e,S,T,v);_=(o=A.traceState)!==null&&o!==void 0?o:_;var O=A.decision===Et.RECORD_AND_SAMPLED?J.SAMPLED:J.NONE,N={traceId:p,spanId:c,traceFlags:O,traceState:_};if(A.decision===Et.NOT_RECORD){g.debug("Recording is off, propagating context in a non-recording span");var u=X.wrapSpanContext(N);return u}var D=or(Object.assign(T,A.attributes)),G=new Qu(this,i,e,N,S,f,v,n.startTime,void 0,D);return G},t.prototype.startActiveSpan=function(e,n,i,a){var s,o,r;if(!(arguments.length<2)){arguments.length===2?r=n:arguments.length===3?(s=n,r=i):(s=n,o=i,r=a);var u=o??He.active(),l=this.startSpan(e,s,u),c=X.setSpan(u,l);return He.with(c,r,void 0,l)}},t.prototype.getGeneralLimits=function(){return this._generalLimits},t.prototype.getSpanLimits=function(){return this._spanLimits},t.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},t}()});var il,sC,uC=m(()=>{"use strict";K();il=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},sC=function(){function t(e){this._spanProcessors=e}return t.prototype.forceFlush=function(){var e,n,i=[];try{for(var a=il(this._spanProcessors),s=a.next();!s.done;s=a.next()){var o=s.value;i.push(o.forceFlush())}}catch(r){e={error:r}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return new Promise(function(r){Promise.all(i).then(function(){r()}).catch(function(u){he(u||new Error("MultiSpanProcessor: forceFlush failed")),r()})})},t.prototype.onStart=function(e,n){var i,a;try{for(var s=il(this._spanProcessors),o=s.next();!o.done;o=s.next()){var r=o.value;r.onStart(e,n)}}catch(u){i={error:u}}finally{try{o&&!o.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}},t.prototype.onEnd=function(e){var n,i;try{for(var a=il(this._spanProcessors),s=a.next();!s.done;s=a.next()){var o=s.value;o.onEnd(e)}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}},t.prototype.shutdown=function(){var e,n,i=[];try{for(var a=il(this._spanProcessors),s=a.next();!s.done;s=a.next()){var o=s.value;i.push(o.shutdown())}}catch(r){e={error:r}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return new Promise(function(r,u){Promise.all(i).then(function(){r()},u)})},t}()});var al,Id=m(()=>{"use strict";al=function(){function t(){}return t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){},t.prototype.shutdown=function(){return Promise.resolve()},t.prototype.forceFlush=function(){return Promise.resolve()},t}()});var Vt,lC,cC=m(()=>{"use strict";b();K();Us();gi();xd();uC();Id();nl();Ld();(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(Vt||(Vt={}));lC=function(){function t(e){e===void 0&&(e={});var n;this._registeredSpanProcessors=[],this._tracers=new Map;var i=Ls({},tl(),QI(e));this.resource=(n=i.resource)!==null&&n!==void 0?n:Ut.empty(),this.resource=Ut.default().merge(this.resource),this._config=Object.assign({},i,{resource:this.resource});var a=this._buildExporterFromEnv();if(a!==void 0){var s=new Sr(a);this.activeSpanProcessor=s}else this.activeSpanProcessor=new al}return t.prototype.getTracer=function(e,n,i){var a=e+"@"+(n||"")+":"+(i?.schemaUrl||"");return this._tracers.has(a)||this._tracers.set(a,new ol({name:e,version:n,schemaUrl:i?.schemaUrl},this._config,this)),this._tracers.get(a)},t.prototype.addSpanProcessor=function(e){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(n){return g.error("Error while trying to shutdown current span processor",n)}),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new sC(this._registeredSpanProcessors)},t.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},t.prototype.register=function(e){e===void 0&&(e={}),X.setGlobalTracerProvider(this),e.propagator===void 0&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&He.setGlobalContextManager(e.contextManager),e.propagator&&it.setGlobalPropagator(e.propagator)},t.prototype.forceFlush=function(){var e=this._config.forceFlushTimeoutMillis,n=this._registeredSpanProcessors.map(function(i){return new Promise(function(a){var s,o=setTimeout(function(){a(new Error("Span processor did not completed within timeout period of "+e+" ms")),s=Vt.timeout},e);i.forceFlush().then(function(){clearTimeout(o),s!==Vt.timeout&&(s=Vt.resolved,a(s))}).catch(function(r){clearTimeout(o),s=Vt.error,a(r)})})});return new Promise(function(i,a){Promise.all(n).then(function(s){var o=s.filter(function(r){return r!==Vt.resolved});o.length>0?a(o):i()}).catch(function(s){return a([s])})})},t.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},t.prototype._getPropagator=function(e){var n;return(n=this.constructor._registeredPropagators.get(e))===null||n===void 0?void 0:n()},t.prototype._getSpanExporter=function(e){var n;return(n=this.constructor._registeredExporters.get(e))===null||n===void 0?void 0:n()},t.prototype._buildPropagatorFromEnv=function(){var e=this,n=Array.from(new Set(Ae().OTEL_PROPAGATORS)),i=n.map(function(s){var o=e._getPropagator(s);return o||g.warn('Propagator "'+s+'" requested through environment variable is unavailable.'),o}),a=i.reduce(function(s,o){return o&&s.push(o),s},[]);if(a.length!==0)return n.length===1?a[0]:new Ns({propagators:a})},t.prototype._buildExporterFromEnv=function(){var e=Ae().OTEL_TRACES_EXPORTER;if(!(e==="none"||e==="")){var n=this._getSpanExporter(e);return n||g.error('Exporter "'+e+'" requested through environment variable is unavailable.'),n}},t._registeredPropagators=new Map([["tracecontext",function(){return new Ps}],["baggage",function(){return new _s}]]),t._registeredExporters=new Map,t}()});var cX,fC,pC=m(()=>{"use strict";K();cX=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},fC=function(){function t(){}return t.prototype.export=function(e,n){return this._sendSpans(e,n)},t.prototype.shutdown=function(){return this._sendSpans([]),this.forceFlush()},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype._exportInfo=function(e){var n;return{resource:{attributes:e.resource.attributes},instrumentationScope:e.instrumentationLibrary,traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:(n=e.spanContext().traceState)===null||n===void 0?void 0:n.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:Ot(e.startTime),duration:Ot(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}},t.prototype._sendSpans=function(e,n){var i,a;try{for(var s=cX(e),o=s.next();!o.done;o=s.next()){var r=o.value;console.dir(this._exportInfo(r),{depth:3})}}catch(u){i={error:u}}finally{try{o&&!o.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}if(n)return n({code:ee.SUCCESS})},t}()});var fX,pX,dC,EC=m(()=>{"use strict";K();fX=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},pX=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},dC=function(){function t(){this._finishedSpans=[],this._stopped=!1}return t.prototype.export=function(e,n){var i;if(this._stopped)return n({code:ee.FAILED,error:new Error("Exporter has been stopped")});(i=this._finishedSpans).push.apply(i,pX([],fX(e),!1)),setTimeout(function(){return n({code:ee.SUCCESS})},0)},t.prototype.shutdown=function(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.reset=function(){this._finishedSpans=[]},t.prototype.getFinishedSpans=function(){return this._finishedSpans},t}()});var dX,EX,_C,SC=m(()=>{"use strict";b();K();dX=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},EX=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},_C=function(){function t(e){this._exporter=e,this._shutdownOnce=new ur(this._shutdown,this),this._unresolvedExports=new Set}return t.prototype.forceFlush=function(){return dX(this,void 0,void 0,function(){return EX(this,function(e){switch(e.label){case 0:return[4,Promise.all(Array.from(this._unresolvedExports))];case 1:return e.sent(),this._exporter.forceFlush?[4,this._exporter.forceFlush()]:[3,3];case 2:e.sent(),e.label=3;case 3:return[2]}})})},t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){var n=this,i,a;if(!this._shutdownOnce.isCalled&&e.spanContext().traceFlags&J.SAMPLED){var s=function(){return oi._export(n._exporter,[e]).then(function(r){var u;r.code!==ee.SUCCESS&&he((u=r.error)!==null&&u!==void 0?u:new Error("SimpleSpanProcessor: span export failed (status "+r+")"))}).catch(function(r){he(r)})};if(e.resource.asyncAttributesPending){var o=(a=(i=e.resource).waitForAsyncAttributes)===null||a===void 0?void 0:a.call(i).then(function(){return o!=null&&n._unresolvedExports.delete(o),s()},function(r){return he(r)});o!=null&&this._unresolvedExports.add(o)}else s()}},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){return this._exporter.shutdown()},t}()});var Cd={};nt(Cd,{AlwaysOffSampler:()=>_r,AlwaysOnSampler:()=>Mt,BasicTracerProvider:()=>lC,BatchSpanProcessor:()=>Sr,ConsoleSpanExporter:()=>fC,ForceFlushState:()=>Vt,InMemorySpanExporter:()=>dC,NoopSpanProcessor:()=>al,ParentBasedSampler:()=>Kn,RandomIdGenerator:()=>zn,SamplingDecision:()=>ft,SimpleSpanProcessor:()=>_C,Span:()=>Qu,TraceIdRatioBasedSampler:()=>Oi,Tracer:()=>ol});var gi=m(()=>{"use strict";aC();cC();nl();pC();EC();SC();Id();Zu();el();Pd();bd();Ai();Rd()});var Ni=h((Xce,hC)=>{"use strict";var _X="2.0.0",SX=Number.MAX_SAFE_INTEGER||9007199254740991,hX=16,TX=250,vX=["major","premajor","minor","preminor","patch","prepatch","prerelease"];hC.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:hX,MAX_SAFE_BUILD_LENGTH:TX,MAX_SAFE_INTEGER:SX,RELEASE_TYPES:vX,SEMVER_SPEC_VERSION:_X,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ri=h((Jce,TC)=>{"use strict";var mX=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};TC.exports=mX});var Xn=h((Bt,vC)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:wd,MAX_SAFE_BUILD_LENGTH:yX,MAX_LENGTH:AX}=Ni(),OX=Ri();Bt=vC.exports={};var gX=Bt.re=[],NX=Bt.safeRe=[],R=Bt.src=[],P=Bt.t={},RX=0,Ud="[a-zA-Z0-9-]",PX=[["\\s",1],["\\d",AX],[Ud,yX]],bX=t=>{for(let[e,n]of PX)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},U=(t,e,n)=>{let i=bX(e),a=RX++;OX(t,a,e),P[t]=a,R[a]=e,gX[a]=new RegExp(e,n?"g":void 0),NX[a]=new RegExp(i,n?"g":void 0)};U("NUMERICIDENTIFIER","0|[1-9]\\d*");U("NUMERICIDENTIFIERLOOSE","\\d+");U("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Ud}*`);U("MAINVERSION",`(${R[P.NUMERICIDENTIFIER]})\\.(${R[P.NUMERICIDENTIFIER]})\\.(${R[P.NUMERICIDENTIFIER]})`);U("MAINVERSIONLOOSE",`(${R[P.NUMERICIDENTIFIERLOOSE]})\\.(${R[P.NUMERICIDENTIFIERLOOSE]})\\.(${R[P.NUMERICIDENTIFIERLOOSE]})`);U("PRERELEASEIDENTIFIER",`(?:${R[P.NUMERICIDENTIFIER]}|${R[P.NONNUMERICIDENTIFIER]})`);U("PRERELEASEIDENTIFIERLOOSE",`(?:${R[P.NUMERICIDENTIFIERLOOSE]}|${R[P.NONNUMERICIDENTIFIER]})`);U("PRERELEASE",`(?:-(${R[P.PRERELEASEIDENTIFIER]}(?:\\.${R[P.PRERELEASEIDENTIFIER]})*))`);U("PRERELEASELOOSE",`(?:-?(${R[P.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${R[P.PRERELEASEIDENTIFIERLOOSE]})*))`);U("BUILDIDENTIFIER",`${Ud}+`);U("BUILD",`(?:\\+(${R[P.BUILDIDENTIFIER]}(?:\\.${R[P.BUILDIDENTIFIER]})*))`);U("FULLPLAIN",`v?${R[P.MAINVERSION]}${R[P.PRERELEASE]}?${R[P.BUILD]}?`);U("FULL",`^${R[P.FULLPLAIN]}$`);U("LOOSEPLAIN",`[v=\\s]*${R[P.MAINVERSIONLOOSE]}${R[P.PRERELEASELOOSE]}?${R[P.BUILD]}?`);U("LOOSE",`^${R[P.LOOSEPLAIN]}$`);U("GTLT","((?:<|>)?=?)");U("XRANGEIDENTIFIERLOOSE",`${R[P.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);U("XRANGEIDENTIFIER",`${R[P.NUMERICIDENTIFIER]}|x|X|\\*`);U("XRANGEPLAIN",`[v=\\s]*(${R[P.XRANGEIDENTIFIER]})(?:\\.(${R[P.XRANGEIDENTIFIER]})(?:\\.(${R[P.XRANGEIDENTIFIER]})(?:${R[P.PRERELEASE]})?${R[P.BUILD]}?)?)?`);U("XRANGEPLAINLOOSE",`[v=\\s]*(${R[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[P.XRANGEIDENTIFIERLOOSE]})(?:${R[P.PRERELEASELOOSE]})?${R[P.BUILD]}?)?)?`);U("XRANGE",`^${R[P.GTLT]}\\s*${R[P.XRANGEPLAIN]}$`);U("XRANGELOOSE",`^${R[P.GTLT]}\\s*${R[P.XRANGEPLAINLOOSE]}$`);U("COERCEPLAIN",`(^|[^\\d])(\\d{1,${wd}})(?:\\.(\\d{1,${wd}}))?(?:\\.(\\d{1,${wd}}))?`);U("COERCE",`${R[P.COERCEPLAIN]}(?:$|[^\\d])`);U("COERCEFULL",R[P.COERCEPLAIN]+`(?:${R[P.PRERELEASE]})?(?:${R[P.BUILD]})?(?:$|[^\\d])`);U("COERCERTL",R[P.COERCE],!0);U("COERCERTLFULL",R[P.COERCEFULL],!0);U("LONETILDE","(?:~>?)");U("TILDETRIM",`(\\s*)${R[P.LONETILDE]}\\s+`,!0);Bt.tildeTrimReplace="$1~";U("TILDE",`^${R[P.LONETILDE]}${R[P.XRANGEPLAIN]}$`);U("TILDELOOSE",`^${R[P.LONETILDE]}${R[P.XRANGEPLAINLOOSE]}$`);U("LONECARET","(?:\\^)");U("CARETTRIM",`(\\s*)${R[P.LONECARET]}\\s+`,!0);Bt.caretTrimReplace="$1^";U("CARET",`^${R[P.LONECARET]}${R[P.XRANGEPLAIN]}$`);U("CARETLOOSE",`^${R[P.LONECARET]}${R[P.XRANGEPLAINLOOSE]}$`);U("COMPARATORLOOSE",`^${R[P.GTLT]}\\s*(${R[P.LOOSEPLAIN]})$|^$`);U("COMPARATOR",`^${R[P.GTLT]}\\s*(${R[P.FULLPLAIN]})$|^$`);U("COMPARATORTRIM",`(\\s*)${R[P.GTLT]}\\s*(${R[P.LOOSEPLAIN]}|${R[P.XRANGEPLAIN]})`,!0);Bt.comparatorTrimReplace="$1$2$3";U("HYPHENRANGE",`^\\s*(${R[P.XRANGEPLAIN]})\\s+-\\s+(${R[P.XRANGEPLAIN]})\\s*$`);U("HYPHENRANGELOOSE",`^\\s*(${R[P.XRANGEPLAINLOOSE]})\\s+-\\s+(${R[P.XRANGEPLAINLOOSE]})\\s*$`);U("STAR","(<|>)?=?\\s*\\*");U("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");U("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var sl=h((Qce,mC)=>{"use strict";var MX=Object.freeze({loose:!0}),xX=Object.freeze({}),LX=t=>t?typeof t!="object"?MX:t:xX;mC.exports=LX});var Dd=h((Zce,OC)=>{"use strict";var yC=/^[0-9]+$/,AC=(t,e)=>{let n=yC.test(t),i=yC.test(e);return n&&i&&(t=+t,e=+e),t===e?0:n&&!i?-1:i&&!n?1:t<e?-1:1},IX=(t,e)=>AC(e,t);OC.exports={compareIdentifiers:AC,rcompareIdentifiers:IX}});var Me=h((efe,PC)=>{"use strict";var ul=Ri(),{MAX_LENGTH:gC,MAX_SAFE_INTEGER:ll}=Ni(),{safeRe:NC,t:RC}=Xn(),CX=sl(),{compareIdentifiers:Jn}=Dd(),Vd=class t{constructor(e,n){if(n=CX(n),e instanceof t){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>gC)throw new TypeError(`version is longer than ${gC} characters`);ul("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let i=e.trim().match(n.loose?NC[RC.LOOSE]:NC[RC.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>ll||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ll||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ll||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let s=+a;if(s>=0&&s<ll)return s}return a}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(ul("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),Jn(this.major,e.major)||Jn(this.minor,e.minor)||Jn(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{let i=this.prerelease[n],a=e.prerelease[n];if(ul("prerelease compare",n,i,a),i===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(i===void 0)return-1;if(i===a)continue;return Jn(i,a)}while(++n)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let n=0;do{let i=this.build[n],a=e.build[n];if(ul("build compare",n,i,a),i===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(i===void 0)return-1;if(i===a)continue;return Jn(i,a)}while(++n)}inc(e,n,i){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,i),this.inc("pre",n,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,i),this.inc("pre",n,i);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let a=Number(i)?1:0;if(!n&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[a];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(n===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(n){let s=[n,a];i===!1&&(s=[n]),Jn(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};PC.exports=Vd});var Yr=h((tfe,MC)=>{"use strict";var bC=Me(),wX=(t,e,n=!1)=>{if(t instanceof bC)return t;try{return new bC(t,e)}catch(i){if(!n)return null;throw i}};MC.exports=wX});var LC=h((rfe,xC)=>{"use strict";var UX=Yr(),DX=(t,e)=>{let n=UX(t,e);return n?n.version:null};xC.exports=DX});var CC=h((nfe,IC)=>{"use strict";var VX=Yr(),BX=(t,e)=>{let n=VX(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};IC.exports=BX});var DC=h((ofe,UC)=>{"use strict";var wC=Me(),GX=(t,e,n,i,a)=>{typeof n=="string"&&(a=i,i=n,n=void 0);try{return new wC(t instanceof wC?t.version:t,n).inc(e,i,a).version}catch{return null}};UC.exports=GX});var GC=h((ife,BC)=>{"use strict";var VC=Yr(),kX=(t,e)=>{let n=VC(t,null,!0),i=VC(e,null,!0),a=n.compare(i);if(a===0)return null;let s=a>0,o=s?n:i,r=s?i:n,u=!!o.prerelease.length;if(!!r.prerelease.length&&!u)return!r.patch&&!r.minor?"major":o.patch?"patch":o.minor?"minor":"major";let c=u?"pre":"";return n.major!==i.major?c+"major":n.minor!==i.minor?c+"minor":n.patch!==i.patch?c+"patch":"prerelease"};BC.exports=kX});var HC=h((afe,kC)=>{"use strict";var HX=Me(),FX=(t,e)=>new HX(t,e).major;kC.exports=FX});var YC=h((sfe,FC)=>{"use strict";var YX=Me(),qX=(t,e)=>new YX(t,e).minor;FC.exports=qX});var jC=h((ufe,qC)=>{"use strict";var jX=Me(),$X=(t,e)=>new jX(t,e).patch;qC.exports=$X});var KC=h((lfe,$C)=>{"use strict";var KX=Yr(),WX=(t,e)=>{let n=KX(t,e);return n&&n.prerelease.length?n.prerelease:null};$C.exports=WX});var tt=h((cfe,zC)=>{"use strict";var WC=Me(),zX=(t,e,n)=>new WC(t,n).compare(new WC(e,n));zC.exports=zX});var JC=h((ffe,XC)=>{"use strict";var XX=tt(),JX=(t,e,n)=>XX(e,t,n);XC.exports=JX});var ZC=h((pfe,QC)=>{"use strict";var QX=tt(),ZX=(t,e)=>QX(t,e,!0);QC.exports=ZX});var cl=h((dfe,tw)=>{"use strict";var ew=Me(),eJ=(t,e,n)=>{let i=new ew(t,n),a=new ew(e,n);return i.compare(a)||i.compareBuild(a)};tw.exports=eJ});var nw=h((Efe,rw)=>{"use strict";var tJ=cl(),rJ=(t,e)=>t.sort((n,i)=>tJ(n,i,e));rw.exports=rJ});var iw=h((_fe,ow)=>{"use strict";var nJ=cl(),oJ=(t,e)=>t.sort((n,i)=>nJ(i,n,e));ow.exports=oJ});var Pi=h((Sfe,aw)=>{"use strict";var iJ=tt(),aJ=(t,e,n)=>iJ(t,e,n)>0;aw.exports=aJ});var fl=h((hfe,sw)=>{"use strict";var sJ=tt(),uJ=(t,e,n)=>sJ(t,e,n)<0;sw.exports=uJ});var Bd=h((Tfe,uw)=>{"use strict";var lJ=tt(),cJ=(t,e,n)=>lJ(t,e,n)===0;uw.exports=cJ});var Gd=h((vfe,lw)=>{"use strict";var fJ=tt(),pJ=(t,e,n)=>fJ(t,e,n)!==0;lw.exports=pJ});var pl=h((mfe,cw)=>{"use strict";var dJ=tt(),EJ=(t,e,n)=>dJ(t,e,n)>=0;cw.exports=EJ});var dl=h((yfe,fw)=>{"use strict";var _J=tt(),SJ=(t,e,n)=>_J(t,e,n)<=0;fw.exports=SJ});var kd=h((Afe,pw)=>{"use strict";var hJ=Bd(),TJ=Gd(),vJ=Pi(),mJ=pl(),yJ=fl(),AJ=dl(),OJ=(t,e,n,i)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return hJ(t,n,i);case"!=":return TJ(t,n,i);case">":return vJ(t,n,i);case">=":return mJ(t,n,i);case"<":return yJ(t,n,i);case"<=":return AJ(t,n,i);default:throw new TypeError(`Invalid operator: ${e}`)}};pw.exports=OJ});var Ew=h((Ofe,dw)=>{"use strict";var gJ=Me(),NJ=Yr(),{safeRe:El,t:_l}=Xn(),RJ=(t,e)=>{if(t instanceof gJ)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let n=null;if(!e.rtl)n=t.match(e.includePrerelease?El[_l.COERCEFULL]:El[_l.COERCE]);else{let u=e.includePrerelease?El[_l.COERCERTLFULL]:El[_l.COERCERTL],l;for(;(l=u.exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||l.index+l[0].length!==n.index+n[0].length)&&(n=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}if(n===null)return null;let i=n[2],a=n[3]||"0",s=n[4]||"0",o=e.includePrerelease&&n[5]?`-${n[5]}`:"",r=e.includePrerelease&&n[6]?`+${n[6]}`:"";return NJ(`${i}.${a}.${s}${o}${r}`,e)};dw.exports=RJ});var Sw=h((gfe,_w)=>{"use strict";var Hd=class{constructor(){this.max=1e3,this.map=new Map}get(e){let n=this.map.get(e);if(n!==void 0)return this.map.delete(e),this.map.set(e,n),n}delete(e){return this.map.delete(e)}set(e,n){if(!this.delete(e)&&n!==void 0){if(this.map.size>=this.max){let a=this.map.keys().next().value;this.delete(a)}this.map.set(e,n)}return this}};_w.exports=Hd});var rt=h((Nfe,mw)=>{"use strict";var Fd=class t{constructor(e,n){if(n=bJ(n),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof Yd)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(a=>!Tw(a[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let a of this.set)if(a.length===1&&UJ(a[0])){this.set=[a];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let i=((this.options.includePrerelease&&CJ)|(this.options.loose&&wJ))+":"+e,a=hw.get(i);if(a)return a;let s=this.options.loose,o=s?$e[Ve.HYPHENRANGELOOSE]:$e[Ve.HYPHENRANGE];e=e.replace(o,jJ(this.options.includePrerelease)),te("hyphen replace",e),e=e.replace($e[Ve.COMPARATORTRIM],xJ),te("comparator trim",e),e=e.replace($e[Ve.TILDETRIM],LJ),te("tilde trim",e),e=e.replace($e[Ve.CARETTRIM],IJ),te("caret trim",e);let r=e.split(" ").map(p=>DJ(p,this.options)).join(" ").split(/\s+/).map(p=>qJ(p,this.options));s&&(r=r.filter(p=>(te("loose invalid filter",p,this.options),!!p.match($e[Ve.COMPARATORLOOSE])))),te("range list",r);let u=new Map,l=r.map(p=>new Yd(p,this.options));for(let p of l){if(Tw(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let c=[...u.values()];return hw.set(i,c),c}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(i=>vw(i,n)&&e.set.some(a=>vw(a,n)&&i.every(s=>a.every(o=>s.intersects(o,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new MJ(e,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if($J(this.set[n],e,this.options))return!0;return!1}};mw.exports=Fd;var PJ=Sw(),hw=new PJ,bJ=sl(),Yd=bi(),te=Ri(),MJ=Me(),{safeRe:$e,t:Ve,comparatorTrimReplace:xJ,tildeTrimReplace:LJ,caretTrimReplace:IJ}=Xn(),{FLAG_INCLUDE_PRERELEASE:CJ,FLAG_LOOSE:wJ}=Ni(),Tw=t=>t.value==="<0.0.0-0",UJ=t=>t.value==="",vw=(t,e)=>{let n=!0,i=t.slice(),a=i.pop();for(;n&&i.length;)n=i.every(s=>a.intersects(s,e)),a=i.pop();return n},DJ=(t,e)=>(te("comp",t,e),t=GJ(t,e),te("caret",t),t=VJ(t,e),te("tildes",t),t=HJ(t,e),te("xrange",t),t=YJ(t,e),te("stars",t),t),Be=t=>!t||t.toLowerCase()==="x"||t==="*",VJ=(t,e)=>t.trim().split(/\s+/).map(n=>BJ(n,e)).join(" "),BJ=(t,e)=>{let n=e.loose?$e[Ve.TILDELOOSE]:$e[Ve.TILDE];return t.replace(n,(i,a,s,o,r)=>{te("tilde",t,i,a,s,o,r);let u;return Be(a)?u="":Be(s)?u=`>=${a}.0.0 <${+a+1}.0.0-0`:Be(o)?u=`>=${a}.${s}.0 <${a}.${+s+1}.0-0`:r?(te("replaceTilde pr",r),u=`>=${a}.${s}.${o}-${r} <${a}.${+s+1}.0-0`):u=`>=${a}.${s}.${o} <${a}.${+s+1}.0-0`,te("tilde return",u),u})},GJ=(t,e)=>t.trim().split(/\s+/).map(n=>kJ(n,e)).join(" "),kJ=(t,e)=>{te("caret",t,e);let n=e.loose?$e[Ve.CARETLOOSE]:$e[Ve.CARET],i=e.includePrerelease?"-0":"";return t.replace(n,(a,s,o,r,u)=>{te("caret",t,a,s,o,r,u);let l;return Be(s)?l="":Be(o)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:Be(r)?s==="0"?l=`>=${s}.${o}.0${i} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.0${i} <${+s+1}.0.0-0`:u?(te("replaceCaret pr",u),s==="0"?o==="0"?l=`>=${s}.${o}.${r}-${u} <${s}.${o}.${+r+1}-0`:l=`>=${s}.${o}.${r}-${u} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${r}-${u} <${+s+1}.0.0-0`):(te("no pr"),s==="0"?o==="0"?l=`>=${s}.${o}.${r}${i} <${s}.${o}.${+r+1}-0`:l=`>=${s}.${o}.${r}${i} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${r} <${+s+1}.0.0-0`),te("caret return",l),l})},HJ=(t,e)=>(te("replaceXRanges",t,e),t.split(/\s+/).map(n=>FJ(n,e)).join(" ")),FJ=(t,e)=>{t=t.trim();let n=e.loose?$e[Ve.XRANGELOOSE]:$e[Ve.XRANGE];return t.replace(n,(i,a,s,o,r,u)=>{te("xRange",t,i,a,s,o,r,u);let l=Be(s),c=l||Be(o),p=c||Be(r),_=p;return a==="="&&_&&(a=""),u=e.includePrerelease?"-0":"",l?a===">"||a==="<"?i="<0.0.0-0":i="*":a&&_?(c&&(o=0),r=0,a===">"?(a=">=",c?(s=+s+1,o=0,r=0):(o=+o+1,r=0)):a==="<="&&(a="<",c?s=+s+1:o=+o+1),a==="<"&&(u="-0"),i=`${a+s}.${o}.${r}${u}`):c?i=`>=${s}.0.0${u} <${+s+1}.0.0-0`:p&&(i=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),te("xRange return",i),i})},YJ=(t,e)=>(te("replaceStars",t,e),t.trim().replace($e[Ve.STAR],"")),qJ=(t,e)=>(te("replaceGTE0",t,e),t.trim().replace($e[e.includePrerelease?Ve.GTE0PRE:Ve.GTE0],"")),jJ=t=>(e,n,i,a,s,o,r,u,l,c,p,_)=>(Be(i)?n="":Be(a)?n=`>=${i}.0.0${t?"-0":""}`:Be(s)?n=`>=${i}.${a}.0${t?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,Be(l)?u="":Be(c)?u=`<${+l+1}.0.0-0`:Be(p)?u=`<${l}.${+c+1}.0-0`:_?u=`<=${l}.${c}.${p}-${_}`:t?u=`<${l}.${c}.${+p+1}-0`:u=`<=${u}`,`${n} ${u}`.trim()),$J=(t,e,n)=>{for(let i=0;i<t.length;i++)if(!t[i].test(e))return!1;if(e.prerelease.length&&!n.includePrerelease){for(let i=0;i<t.length;i++)if(te(t[i].semver),t[i].semver!==Yd.ANY&&t[i].semver.prerelease.length>0){let a=t[i].semver;if(a.major===e.major&&a.minor===e.minor&&a.patch===e.patch)return!0}return!1}return!0}});var bi=h((Rfe,Rw)=>{"use strict";var Mi=Symbol("SemVer ANY"),$d=class t{static get ANY(){return Mi}constructor(e,n){if(n=yw(n),e instanceof t){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),jd("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===Mi?this.value="":this.value=this.operator+this.semver.version,jd("comp",this)}parse(e){let n=this.options.loose?Aw[Ow.COMPARATORLOOSE]:Aw[Ow.COMPARATOR],i=e.match(n);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new gw(i[2],this.options.loose):this.semver=Mi}toString(){return this.value}test(e){if(jd("Comparator.test",e,this.options.loose),this.semver===Mi||e===Mi)return!0;if(typeof e=="string")try{e=new gw(e,this.options)}catch{return!1}return qd(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Nw(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new Nw(this.value,n).test(e.semver):(n=yw(n),n.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||qd(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||qd(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Rw.exports=$d;var yw=sl(),{safeRe:Aw,t:Ow}=Xn(),qd=kd(),jd=Ri(),gw=Me(),Nw=rt()});var xi=h((Pfe,Pw)=>{"use strict";var KJ=rt(),WJ=(t,e,n)=>{try{e=new KJ(e,n)}catch{return!1}return e.test(t)};Pw.exports=WJ});var Mw=h((bfe,bw)=>{"use strict";var zJ=rt(),XJ=(t,e)=>new zJ(t,e).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));bw.exports=XJ});var Lw=h((Mfe,xw)=>{"use strict";var JJ=Me(),QJ=rt(),ZJ=(t,e,n)=>{let i=null,a=null,s=null;try{s=new QJ(e,n)}catch{return null}return t.forEach(o=>{s.test(o)&&(!i||a.compare(o)===-1)&&(i=o,a=new JJ(i,n))}),i};xw.exports=ZJ});var Cw=h((xfe,Iw)=>{"use strict";var e9=Me(),t9=rt(),r9=(t,e,n)=>{let i=null,a=null,s=null;try{s=new t9(e,n)}catch{return null}return t.forEach(o=>{s.test(o)&&(!i||a.compare(o)===1)&&(i=o,a=new e9(i,n))}),i};Iw.exports=r9});var Dw=h((Lfe,Uw)=>{"use strict";var Kd=Me(),n9=rt(),ww=Pi(),o9=(t,e)=>{t=new n9(t,e);let n=new Kd("0.0.0");if(t.test(n)||(n=new Kd("0.0.0-0"),t.test(n)))return n;n=null;for(let i=0;i<t.set.length;++i){let a=t.set[i],s=null;a.forEach(o=>{let r=new Kd(o.semver.version);switch(o.operator){case">":r.prerelease.length===0?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":(!s||ww(r,s))&&(s=r);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!n||ww(n,s))&&(n=s)}return n&&t.test(n)?n:null};Uw.exports=o9});var Bw=h((Ife,Vw)=>{"use strict";var i9=rt(),a9=(t,e)=>{try{return new i9(t,e).range||"*"}catch{return null}};Vw.exports=a9});var Sl=h((Cfe,Fw)=>{"use strict";var s9=Me(),Hw=bi(),{ANY:u9}=Hw,l9=rt(),c9=xi(),Gw=Pi(),kw=fl(),f9=dl(),p9=pl(),d9=(t,e,n,i)=>{t=new s9(t,i),e=new l9(e,i);let a,s,o,r,u;switch(n){case">":a=Gw,s=f9,o=kw,r=">",u=">=";break;case"<":a=kw,s=p9,o=Gw,r="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(c9(t,e,i))return!1;for(let l=0;l<e.set.length;++l){let c=e.set[l],p=null,_=null;if(c.forEach(f=>{f.semver===u9&&(f=new Hw(">=0.0.0")),p=p||f,_=_||f,a(f.semver,p.semver,i)?p=f:o(f.semver,_.semver,i)&&(_=f)}),p.operator===r||p.operator===u||(!_.operator||_.operator===r)&&s(t,_.semver))return!1;if(_.operator===u&&o(t,_.semver))return!1}return!0};Fw.exports=d9});var qw=h((wfe,Yw)=>{"use strict";var E9=Sl(),_9=(t,e,n)=>E9(t,e,">",n);Yw.exports=_9});var $w=h((Ufe,jw)=>{"use strict";var S9=Sl(),h9=(t,e,n)=>S9(t,e,"<",n);jw.exports=h9});var zw=h((Dfe,Ww)=>{"use strict";var Kw=rt(),T9=(t,e,n)=>(t=new Kw(t,n),e=new Kw(e,n),t.intersects(e,n));Ww.exports=T9});var Jw=h((Vfe,Xw)=>{"use strict";var v9=xi(),m9=tt();Xw.exports=(t,e,n)=>{let i=[],a=null,s=null,o=t.sort((c,p)=>m9(c,p,n));for(let c of o)v9(c,e,n)?(s=c,a||(a=c)):(s&&i.push([a,s]),s=null,a=null);a&&i.push([a,null]);let r=[];for(let[c,p]of i)c===p?r.push(c):!p&&c===o[0]?r.push("*"):p?c===o[0]?r.push(`<=${p}`):r.push(`${c} - ${p}`):r.push(`>=${c}`);let u=r.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return u.length<l.length?u:e}});var nU=h((Bfe,rU)=>{"use strict";var Qw=rt(),zd=bi(),{ANY:Wd}=zd,Li=xi(),Xd=tt(),y9=(t,e,n={})=>{if(t===e)return!0;t=new Qw(t,n),e=new Qw(e,n);let i=!1;e:for(let a of t.set){for(let s of e.set){let o=O9(a,s,n);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},A9=[new zd(">=0.0.0-0")],Zw=[new zd(">=0.0.0")],O9=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Wd){if(e.length===1&&e[0].semver===Wd)return!0;n.includePrerelease?t=A9:t=Zw}if(e.length===1&&e[0].semver===Wd){if(n.includePrerelease)return!0;e=Zw}let i=new Set,a,s;for(let f of t)f.operator===">"||f.operator===">="?a=eU(a,f,n):f.operator==="<"||f.operator==="<="?s=tU(s,f,n):i.add(f.semver);if(i.size>1)return null;let o;if(a&&s){if(o=Xd(a.semver,s.semver,n),o>0)return null;if(o===0&&(a.operator!==">="||s.operator!=="<="))return null}for(let f of i){if(a&&!Li(f,String(a),n)||s&&!Li(f,String(s),n))return null;for(let S of e)if(!Li(f,String(S),n))return!1;return!0}let r,u,l,c,p=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1,_=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1;p&&p.prerelease.length===1&&s.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(c=c||f.operator===">"||f.operator===">=",l=l||f.operator==="<"||f.operator==="<=",a){if(_&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===_.major&&f.semver.minor===_.minor&&f.semver.patch===_.patch&&(_=!1),f.operator===">"||f.operator===">="){if(r=eU(a,f,n),r===f&&r!==a)return!1}else if(a.operator===">="&&!Li(a.semver,String(f),n))return!1}if(s){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(u=tU(s,f,n),u===f&&u!==s)return!1}else if(s.operator==="<="&&!Li(s.semver,String(f),n))return!1}if(!f.operator&&(s||a)&&o!==0)return!1}return!(a&&l&&!s&&o!==0||s&&c&&!a&&o!==0||_||p)},eU=(t,e,n)=>{if(!t)return e;let i=Xd(t.semver,e.semver,n);return i>0?t:i<0||e.operator===">"&&t.operator===">="?e:t},tU=(t,e,n)=>{if(!t)return e;let i=Xd(t.semver,e.semver,n);return i<0?t:i>0||e.operator==="<"&&t.operator==="<="?e:t};rU.exports=y9});var sU=h((Gfe,aU)=>{"use strict";var Jd=Xn(),oU=Ni(),g9=Me(),iU=Dd(),N9=Yr(),R9=LC(),P9=CC(),b9=DC(),M9=GC(),x9=HC(),L9=YC(),I9=jC(),C9=KC(),w9=tt(),U9=JC(),D9=ZC(),V9=cl(),B9=nw(),G9=iw(),k9=Pi(),H9=fl(),F9=Bd(),Y9=Gd(),q9=pl(),j9=dl(),$9=kd(),K9=Ew(),W9=bi(),z9=rt(),X9=xi(),J9=Mw(),Q9=Lw(),Z9=Cw(),e7=Dw(),t7=Bw(),r7=Sl(),n7=qw(),o7=$w(),i7=zw(),a7=Jw(),s7=nU();aU.exports={parse:N9,valid:R9,clean:P9,inc:b9,diff:M9,major:x9,minor:L9,patch:I9,prerelease:C9,compare:w9,rcompare:U9,compareLoose:D9,compareBuild:V9,sort:B9,rsort:G9,gt:k9,lt:H9,eq:F9,neq:Y9,gte:q9,lte:j9,cmp:$9,coerce:K9,Comparator:W9,Range:z9,satisfies:X9,toComparators:J9,maxSatisfying:Q9,minSatisfying:Z9,minVersion:e7,validRange:t7,outside:r7,gtr:n7,ltr:o7,intersects:i7,simplifyRange:a7,subset:s7,SemVer:g9,re:Jd.re,src:Jd.src,tokens:Jd.t,SEMVER_SPEC_VERSION:oU.SEMVER_SPEC_VERSION,RELEASE_TYPES:oU.RELEASE_TYPES,compareIdentifiers:iU.compareIdentifiers,rcompareIdentifiers:iU.rcompareIdentifiers}});function l7(t){var e=decodeURIComponent(t).split(":");if(e.length!==4)return null;var n=lU(e,4),i=n[0],a=n[1],s=n[3],o=i.padStart(32,"0"),r=a.padStart(16,"0"),u=u7.test(s)?parseInt(s,16)&1:1;return{traceId:o,spanId:r,isRemote:!0,traceFlags:u}}var uU,lU,Qd,hl,cU,u7,fU=m(()=>{"use strict";b();K();uU=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},lU=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Qd="uber-trace-id",hl="uberctx",cU=function(){function t(e){typeof e=="string"?(this._jaegerTraceHeader=e,this._jaegerBaggageHeaderPrefix=hl):(this._jaegerTraceHeader=e?.customTraceHeader||Qd,this._jaegerBaggageHeaderPrefix=e?.customBaggageHeaderPrefix||hl)}return t.prototype.inject=function(e,n,i){var a,s,o=X.getSpanContext(e),r=it.getBaggage(e);if(o&&be(e)===!1){var u="0"+(o.traceFlags||J.NONE).toString(16);i.set(n,this._jaegerTraceHeader,o.traceId+":"+o.spanId+":0:"+u)}if(r)try{for(var l=uU(r.getAllEntries()),c=l.next();!c.done;c=l.next()){var p=lU(c.value,2),_=p[0],f=p[1];i.set(n,this._jaegerBaggageHeaderPrefix+"-"+_,encodeURIComponent(f.value))}}catch(S){a={error:S}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}},t.prototype.extract=function(e,n,i){var a,s,o=this,r,u=i.get(n,this._jaegerTraceHeader),l=Array.isArray(u)?u[0]:u,c=i.keys(n).filter(function(A){return A.startsWith(o._jaegerBaggageHeaderPrefix+"-")}).map(function(A){var O=i.get(n,A);return{key:A.substring(o._jaegerBaggageHeaderPrefix.length+1),value:Array.isArray(O)?O[0]:O}}),p=e;if(typeof l=="string"){var _=l7(l);_&&(p=X.setSpanContext(p,_))}if(c.length===0)return p;var f=(r=it.getBaggage(e))!==null&&r!==void 0?r:it.createBaggage();try{for(var S=uU(c),v=S.next();!v.done;v=S.next()){var T=v.value;T.value!==void 0&&(f=f.setEntry(T.key,{value:decodeURIComponent(T.value)}))}}catch(A){a={error:A}}finally{try{v&&!v.done&&(s=S.return)&&s.call(S)}finally{if(a)throw a.error}}return p=it.setBaggage(p,f),p},t.prototype.fields=function(){return[this._jaegerTraceHeader]},t}(),u7=/^[0-9a-f]{1,2}$/i});var pU={};nt(pU,{JaegerPropagator:()=>cU,UBER_BAGGAGE_HEADER_PREFIX:()=>hl,UBER_TRACE_ID_HEADER:()=>Qd});var dU=m(()=>{"use strict";fU()});var SU=h(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.NodeTracerProvider=void 0;var EU=VI(),Tl=($I(),Y(jI)),_U=(gi(),Y(Cd)),c7=sU(),f7=(dU(),Y(pU)),vl=class extends _U.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){if(e.contextManager===void 0){let n=c7.gte(process.version,"14.8.0")?EU.AsyncLocalStorageContextManager:EU.AsyncHooksContextManager;e.contextManager=new n,e.contextManager.enable()}super.register(e)}};ml.NodeTracerProvider=vl;vl._registeredPropagators=new Map([..._U.BasicTracerProvider._registeredPropagators,["b3",()=>new Tl.B3Propagator({injectEncoding:Tl.B3InjectEncoding.SINGLE_HEADER})],["b3multi",()=>new Tl.B3Propagator({injectEncoding:Tl.B3InjectEncoding.MULTI_HEADER})],["jaeger",()=>new f7.JaegerPropagator]])});var hU=h(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.Tracer=q.TraceIdRatioBasedSampler=q.Span=q.SimpleSpanProcessor=q.SamplingDecision=q.RandomIdGenerator=q.ParentBasedSampler=q.NoopSpanProcessor=q.InMemorySpanExporter=q.ForceFlushState=q.ConsoleSpanExporter=q.BatchSpanProcessor=q.BasicTracerProvider=q.AlwaysOnSampler=q.AlwaysOffSampler=q.NodeTracerProvider=void 0;var p7=SU();Object.defineProperty(q,"NodeTracerProvider",{enumerable:!0,get:function(){return p7.NodeTracerProvider}});var Ge=(gi(),Y(Cd));Object.defineProperty(q,"AlwaysOffSampler",{enumerable:!0,get:function(){return Ge.AlwaysOffSampler}});Object.defineProperty(q,"AlwaysOnSampler",{enumerable:!0,get:function(){return Ge.AlwaysOnSampler}});Object.defineProperty(q,"BasicTracerProvider",{enumerable:!0,get:function(){return Ge.BasicTracerProvider}});Object.defineProperty(q,"BatchSpanProcessor",{enumerable:!0,get:function(){return Ge.BatchSpanProcessor}});Object.defineProperty(q,"ConsoleSpanExporter",{enumerable:!0,get:function(){return Ge.ConsoleSpanExporter}});Object.defineProperty(q,"ForceFlushState",{enumerable:!0,get:function(){return Ge.ForceFlushState}});Object.defineProperty(q,"InMemorySpanExporter",{enumerable:!0,get:function(){return Ge.InMemorySpanExporter}});Object.defineProperty(q,"NoopSpanProcessor",{enumerable:!0,get:function(){return Ge.NoopSpanProcessor}});Object.defineProperty(q,"ParentBasedSampler",{enumerable:!0,get:function(){return Ge.ParentBasedSampler}});Object.defineProperty(q,"RandomIdGenerator",{enumerable:!0,get:function(){return Ge.RandomIdGenerator}});Object.defineProperty(q,"SamplingDecision",{enumerable:!0,get:function(){return Ge.SamplingDecision}});Object.defineProperty(q,"SimpleSpanProcessor",{enumerable:!0,get:function(){return Ge.SimpleSpanProcessor}});Object.defineProperty(q,"Span",{enumerable:!0,get:function(){return Ge.Span}});Object.defineProperty(q,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return Ge.TraceIdRatioBasedSampler}});Object.defineProperty(q,"Tracer",{enumerable:!0,get:function(){return Ge.Tracer}})});var TU=h(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.OTLPTraceExporter=void 0;var d7=fd(),E7=(Cu(),Y(id)),Zd=class extends d7.OTLPGRPCExporterNodeBase{constructor(e={}){super(e,E7.ProtobufTraceSerializer,"TraceExportService","/opentelemetry.proto.collector.trace.v1.TraceService/Export","TRACES")}};yl.OTLPTraceExporter=Zd});var vU=h(qr=>{"use strict";var _7=qr&&qr.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),S7=qr&&qr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&_7(e,t,n)};Object.defineProperty(qr,"__esModule",{value:!0});S7(TU(),qr)});var NU=Ke(kl(),1),RU=Ke(Zn(),1),PU=Ke(_S(),1),bU=Ke(wU(),1),MU=Ke(UU(),1),xU=Ke(YO(),1);import T7 from"path";import v7 from"http";import{Session as m7}from"node:inspector/promises";import{createRequire as nY}from"module";var nc=Ke(kl(),1);import Qi from"path";import rc from"os";var oY=nY(import.meta.url);function qO(t){let e=oY.resolve(t),n=Qi.dirname(e);for(;!nc.default.existsSync(Qi.join(n,"package.json"));)n=Qi.dirname(n);let i=nc.default.readFileSync(Qi.join(n,"package.json"),"utf-8");return JSON.parse(i)}var Zi=class{constructor(e){this.instance=e;let n=qO("@sentio/sdk"),i=qO("@sentio/runtime");console.log("Runtime version:",i.version,"SDK version:",n.version);let a=n.version.split(".");this.sdkMinorVersion=parseInt(a[1])}instance;sdkMinorVersion;async getConfig(e,n){let i=await this.instance.getConfig(e,n);if(i.executionConfig=rE.fromPartial(Nl.execution),i.contractConfigs)for(let a of i.contractConfigs)a.aptosCallConfigs&&(a.moveCallConfigs=a.aptosCallConfigs),a.aptosEventConfigs&&(a.moveEventConfigs=a.aptosEventConfigs);return i}async start(e,n){return await this.instance.start(e,n)}async stop(e,n){return await this.instance.stop(e,n)}async processBindings(e,n){Nl.execution.sequential&&(e.bindings=e.bindings.sort(iY));for(let i of e.bindings)this.adjustDataBinding(i);try{let i=await this.instance.processBindings(e,n);return this.adjustResult(i.result),!i.configUpdated&&i.result?.states?.configUpdated&&(i.configUpdated=i.result?.states?.configUpdated),i}catch(i){throw this.sdkMinorVersion<=16&&(i.code===rc.constants.errno.ECONNRESET||i.code===rc.constants.errno.ECONNREFUSED||i.code===rc.constants.errno.ECONNABORTED)&&process.exit(1),i}}async*adjustBindingsStream(e){for await(let n of e)this.adjustDataBinding(n.binding),yield n}async*processBindingsStream(e,n){yield*this.instance.processBindingsStream(this.adjustBindingsStream(e),n)}async*preprocessBindingsStream(e,n){yield*this.instance.preprocessBindingsStream(this.adjustBindingsStream(e),n)}adjustResult(e){}adjustDataBinding(e){if(e)switch(e.handlerType){case 6:e.data?.aptEvent&&e.data.aptEvent.rawTransaction&&!e.data.aptEvent.transaction&&(e.data.aptEvent.transaction=JSON.parse(e.data.aptEvent.rawTransaction));break;case 7:e.data?.aptCall&&e.data.aptCall.rawTransaction&&!e.data.aptCall.transaction&&(e.data.aptCall.transaction=JSON.parse(e.data.aptCall.rawTransaction));break;case 8:e.data?.aptResource?.resources&&e.data.aptResource.rawResources&&e.data.aptResource.rawResources.length>0&&(e.data.aptResource.resources=e.data.aptResource.rawResources.map(n=>JSON.parse(n)));break;case 0:e.data?.ethBlock&&e.data.raw.length===0&&(e.data.raw=new TextEncoder().encode(JSON.stringify(e.data.ethBlock.block)));break;default:break}}};function iY(t,e){let n=jO(t)||new Date(0),i=jO(e)||new Date(0),a=n.getTime()-i.getTime();return a!==0?a:$O(t)-$O(e)}function jO(t){return t.data?.ethLog?.timestamp||t.data?.ethTransaction?.timestamp||(t.data?.ethBlock?.block?.timestamp?new Date(Number(t.data.ethBlock.block.timestamp)*1e3):void 0)||t.data?.ethTrace?.timestamp||(t.data?.aptCall?.transaction?new Date(Number(t.data.aptCall.transaction.timestamp)/1e3):void 0)||(t.data?.aptEvent?.transaction?new Date(Number(t.data.aptEvent.transaction.timestamp)/1e3):void 0)||(t.data?.aptResource?.timestampMicros?new Date(Number(t.data.aptResource.timestampMicros)/1e3):void 0)||t.data?.fuelCall?.timestamp}function $O(t){return t.data?.ethLog?.log?.logIndex||t.data?.ethTransaction?.transaction?.transactionIndex||t.data?.ethBlock?.block?.number||t.data?.ethTrace?.trace?.transactionPosition}import("node:process").then(t=>t.stdout.write(""));var At=Ke(a0(),1);function s0(t){let e=[],n=JSON.stringify(t,function(i,a){if(typeof a=="object"&&a!==null){if(e.indexOf(a)!==-1)return;e.push(a)}return a});return e=[],n}function u0(t,e){let n={transform:a=>{let s=[];typeof a.message=="object"?s.push(s0(a.message)):s.push(a.message);let o=a[Symbol.for("splat")];if(o)for(let r in o){let u=o[r];typeof u=="object"?s.push(s0(u)):s.push(u)}return a.message=s.join(" "),a}},i=(0,At.createLogger)({format:At.format.combine(At.format.timestamp({format:"YYYY-MM-DDTHH:mm:ss.SSSZ"}),n,At.format.errors({stack:!0}),t?At.format.json():At.format.simple()),level:e?"debug":"info",transports:[new At.transports.Console]});console.log=(...a)=>i.info.call(i,...a),console.info=(...a)=>i.info.call(i,...a),console.warn=(...a)=>i.warn.call(i,...a),console.error=(...a)=>i.error.call(i,...a),console.debug=(...a)=>i.debug.call(i,...a)}import("node:process").then(t=>t.stdout.write(""));Us();xn();var mU=Ke(xI(),1),yU=Ke(wI(),1),eE=Ke(hU(),1),AU=Ke(vU(),1);gi();b();async function OU(t){t&&g.setLogger(new sE,ot.DEBUG);let e=await ws.detect(),n=new pi({resource:e,readers:[new Js({exporter:new mU.OTLPMetricExporter}),new yU.PrometheusExporter({port:4041})]}),i=new eE.NodeTracerProvider({resource:e}),a=new AU.OTLPTraceExporter,s=new Sr(a);i.addSpanProcessor(s),Ci.setGlobalMeterProvider(n),X.setGlobalTracerProvider(i),["SIGINT","SIGTERM"].forEach(o=>{process.on(o,()=>h7())}),Ci.getMeter("processor").createGauge("up").record(1)}async function h7(){let t=X.getTracerProvider();if(t instanceof cE){let n=t.getDelegate();n instanceof eE.NodeTracerProvider&&n.shutdown().catch(console.error)}let e=Ci.getMeterProvider();e instanceof pi&&e.shutdown().catch(console.error)}import("node:process").then(t=>t.stdout.write(""));var Al=class{constructor(e){this.loader=e}async listen(e){let n=Ol.INSTANCE;await this.loader(),await n.configure(tE.create()),console.log("Starting Action Server at:",e),await n.startServer(e)}forceShutdown(){Ol.INSTANCE.shutdown()}};import("node:process").then(t=>t.stdout.write(""));var y7=[{name:"target",type:String,defaultOption:!0},{name:"port",alias:"p",type:String,defaultValue:"4000"},{name:"concurrency",type:Number,defaultValue:4},{name:"batch-count",type:Number,defaultValue:1},{name:"chains-config",alias:"c",type:String,defaultValue:"chains-config.json"},{name:"chainquery-server",type:String,defaultValue:""},{name:"pricefeed-server",type:String,defaultValue:""},{name:"log-format",type:String,defaultValue:"console"},{name:"debug",type:Boolean,defaultValue:!1},{name:"start-action-server",type:Boolean,defaultValue:!1}],ke=(0,PU.default)(y7,{partial:!0}),A7=process.env.LOG_LEVEL?.toUpperCase();u0(ke["log-format"]==="json",A7==="debug"?!0:ke.debug);console.debug("Starting with",ke.target);await OU(ke.debug);Error.stackTraceLimit=20;var O7=T7.resolve(ke["chains-config"]),g7=NU.default.readJsonSync(O7),N7=process.env.OVERRIDE_CONCURRENCY?parseInt(process.env.OVERRIDE_CONCURRENCY):void 0,R7=process.env.OVERRIDE_BATCH_COUNT?parseInt(process.env.OVERRIDE_BATCH_COUNT):void 0;hr.INSTANCE.concurrency=N7??ke.concurrency;hr.INSTANCE.batchCount=R7??ke["batch-count"];hr.INSTANCE.chainQueryAPI=ke["chainquery-server"];hr.INSTANCE.priceFeedAPI=ke["pricefeed-server"];for(let[t,e]of Object.entries(g7)){let n=e;if(n.ChainServer)hr.INSTANCE.chainServer.set(t,n.ChainServer);else{let i=n.Https?.[0];i?hr.INSTANCE.chainServer.set(t,i):console.error("not valid config for chain",t)}}console.debug("Starting Server",ke);var jr,Qn,gU=async()=>{let t=await import(ke.target);return console.debug("Module loaded",t),t};if(ke["start-action-server"])jr=new Al(gU),jr.listen(ke.port);else{jr=(0,bU.createServer)({"grpc.max_send_message_length":384*1024*1024,"grpc.max_receive_message_length":384*1024*1024,"grpc.default_compression_algorithm":RU.compressionAlgorithms.gzip}).use((0,xU.openTelemetryServerMiddleware)()).use(MU.errorDetailsServerMiddleware),Qn=new dE(gU,jr.shutdown);let t=new Zi(Qn);jr.add(nE,t),jr.listen("0.0.0.0:"+ke.port),console.log("Processor Server Started at:",ke.port)}var LU=4040,P7=v7.createServer(async function(t,e){if(t.url){let n=new URL(t.url,`http://${t.headers.host}`),i=n.searchParams;switch(n.pathname){case"/profile":{try{let a=parseInt(i.get("t")||"1000",10)||1e3,s=new m7;s.connect(),await s.post("Profiler.enable"),await s.post("Profiler.start"),await new Promise(r=>setTimeout(r,a));let{profile:o}=await s.post("Profiler.stop");e.writeHead(200,{"Content-Type":"application/json"}),e.write(JSON.stringify(o)),s.disconnect()}catch{e.writeHead(500)}break}default:e.writeHead(404)}}else e.writeHead(404);e.end()}).listen(LU);console.log("Metric Server Started at:",LU);process.on("SIGINT",function(){b7(0)}).on("uncaughtException",t=>{console.error("Uncaught Exception, please checking if await is properly used",t),Qn&&(Qn.unhandled=t)}).on("unhandledRejection",(t,e)=>{t?.message.startsWith('invalid ENS name (disallowed character: "*"')||(console.error("Unhandled Rejection, please checking if await is properly",t),Qn&&(Qn.unhandled=t))});function b7(t){jr?.forceShutdown(),console.log("RPC server shut down"),P7.close(function(){console.log("Http server shut down"),process.exit(t)})}import("node:process").then(t=>t.stdout.write(""));
|
59
|
+
`}};Xu.PrometheusSerializer=Ad});var HI=h(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.PrometheusExporter=void 0;var Ai=(b(),Y(Pe)),Dz=(K(),Y(Bs)),gd=(Ln(),Y(zp)),Vz=L("http"),Bz=Od(),Gz=L("url"),Ju=class t extends gd.MetricReader{constructor(e={},n=()=>{}){super({aggregationSelector:i=>gd.Aggregation.Default(),aggregationTemporalitySelector:i=>gd.AggregationTemporality.CUMULATIVE,metricProducers:e.metricProducers}),this._requestHandler=(i,a)=>{i.url!=null&&new Gz.URL(i.url,this._baseUrl).pathname===this._endpoint?this._exportMetrics(a):this._notFound(a)},this._exportMetrics=i=>{i.statusCode=200,i.setHeader("content-type","text/plain"),this.collect().then(a=>{let{resourceMetrics:s,errors:o}=a;o.length&&Ai.diag.error("PrometheusExporter: metrics collection errors",...o),i.end(this._serializer.serialize(s))},a=>{i.end(`# failed to export metrics: ${a}`)})},this._notFound=i=>{i.statusCode=404,i.end()},this._host=e.host||process.env.OTEL_EXPORTER_PROMETHEUS_HOST||t.DEFAULT_OPTIONS.host,this._port=e.port||Number(process.env.OTEL_EXPORTER_PROMETHEUS_PORT)||t.DEFAULT_OPTIONS.port,this._prefix=e.prefix||t.DEFAULT_OPTIONS.prefix,this._appendTimestamp=typeof e.appendTimestamp=="boolean"?e.appendTimestamp:t.DEFAULT_OPTIONS.appendTimestamp,this._server=(0,Vz.createServer)(this._requestHandler).unref(),this._serializer=new Bz.PrometheusSerializer(this._prefix,this._appendTimestamp),this._baseUrl=`http://${this._host}:${this._port}/`,this._endpoint=(e.endpoint||t.DEFAULT_OPTIONS.endpoint).replace(/^([^/])/,"/$1"),e.preventServerStart!==!0?this.startServer().then(n,i=>{Ai.diag.error(i),n(i)}):n&&queueMicrotask(n)}async onForceFlush(){}onShutdown(){return this.stopServer()}stopServer(){return this._server?new Promise(e=>{this._server.close(n=>{n?n.code!=="ERR_SERVER_NOT_RUNNING"&&(0,Dz.globalErrorHandler)(n):Ai.diag.debug("Prometheus exporter was stopped"),e()})}):(Ai.diag.debug("Prometheus stopServer() was called but server was never started."),Promise.resolve())}startServer(){var e;return(e=this._startServerPromise)!==null&&e!==void 0||(this._startServerPromise=new Promise((n,i)=>{this._server.once("error",i),this._server.listen({port:this._port,host:this._host},()=>{Ai.diag.debug(`Prometheus exporter server started: ${this._host}:${this._port}/${this._endpoint}`),n()})})),this._startServerPromise}getMetricsRequestHandler(e,n){this._exportMetrics(n)}};Qu.PrometheusExporter=Ju;Ju.DEFAULT_OPTIONS={host:void 0,port:9464,endpoint:"/metrics",prefix:"",appendTimestamp:!1}});var FI=h(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.PrometheusSerializer=kn.PrometheusExporter=void 0;var kz=HI();Object.defineProperty(kn,"PrometheusExporter",{enumerable:!0,get:function(){return kz.PrometheusExporter}});var Hz=Od();Object.defineProperty(kn,"PrometheusSerializer",{enumerable:!0,get:function(){return Hz.PrometheusSerializer}})});var Rd=h(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.AbstractAsyncHooksContextManager=void 0;var Fz=L("events"),Yz=["addListener","on","once","prependListener","prependOnceListener"],Nd=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1}bind(e,n){return n instanceof Fz.EventEmitter?this._bindEventEmitter(e,n):typeof n=="function"?this._bindFunction(e,n):n}_bindFunction(e,n){let i=this,a=function(...s){return i.with(e,()=>n.apply(this,s))};return Object.defineProperty(a,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),a}_bindEventEmitter(e,n){return this._getPatchMap(n)!==void 0||(this._createPatchMap(n),Yz.forEach(a=>{n[a]!==void 0&&(n[a]=this._patchAddListener(n,n[a],e))}),typeof n.removeListener=="function"&&(n.removeListener=this._patchRemoveListener(n,n.removeListener)),typeof n.off=="function"&&(n.off=this._patchRemoveListener(n,n.off)),typeof n.removeAllListeners=="function"&&(n.removeAllListeners=this._patchRemoveAllListeners(n,n.removeAllListeners))),n}_patchRemoveListener(e,n){let i=this;return function(a,s){var o;let r=(o=i._getPatchMap(e))===null||o===void 0?void 0:o[a];if(r===void 0)return n.call(this,a,s);let u=r.get(s);return n.call(this,a,u||s)}}_patchRemoveAllListeners(e,n){let i=this;return function(a){let s=i._getPatchMap(e);return s!==void 0&&(arguments.length===0?i._createPatchMap(e):s[a]!==void 0&&delete s[a]),n.apply(this,arguments)}}_patchAddListener(e,n,i){let a=this;return function(s,o){if(a._wrapped)return n.call(this,s,o);let r=a._getPatchMap(e);r===void 0&&(r=a._createPatchMap(e));let u=r[s];u===void 0&&(u=new WeakMap,r[s]=u);let l=a.bind(i,o);u.set(o,l),a._wrapped=!0;try{return n.call(this,s,l)}finally{a._wrapped=!1}}}_createPatchMap(e){let n=Object.create(null);return e[this._kOtListeners]=n,n}_getPatchMap(e){return e[this._kOtListeners]}};Zu.AbstractAsyncHooksContextManager=Nd});var YI=h(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.AsyncHooksContextManager=void 0;var qz=(b(),Y(Pe)),jz=L("async_hooks"),$z=Rd(),Pd=class extends $z.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=jz.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){var e;return(e=this._stack[this._stack.length-1])!==null&&e!==void 0?e:qz.ROOT_CONTEXT}with(e,n,i,...a){this._enterContext(e);try{return n.call(i,...a)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(e,n){if(n==="TIMERWRAP")return;let i=this._stack[this._stack.length-1];i!==void 0&&this._contexts.set(e,i)}_destroy(e){this._contexts.delete(e)}_before(e){let n=this._contexts.get(e);n!==void 0&&this._enterContext(n)}_after(){this._exitContext()}_enterContext(e){this._stack.push(e)}_exitContext(){this._stack.pop()}};el.AsyncHooksContextManager=Pd});var qI=h(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.AsyncLocalStorageContextManager=void 0;var Kz=(b(),Y(Pe)),Wz=L("async_hooks"),zz=Rd(),bd=class extends zz.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new Wz.AsyncLocalStorage}active(){var e;return(e=this._asyncLocalStorage.getStore())!==null&&e!==void 0?e:Kz.ROOT_CONTEXT}with(e,n,i,...a){let s=i==null?n:n.bind(i);return this._asyncLocalStorage.run(e,s,...a)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};tl.AsyncLocalStorageContextManager=bd});var jI=h(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.AsyncLocalStorageContextManager=Hn.AsyncHooksContextManager=void 0;var Xz=YI();Object.defineProperty(Hn,"AsyncHooksContextManager",{enumerable:!0,get:function(){return Xz.AsyncHooksContextManager}});var Jz=qI();Object.defineProperty(Hn,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return Jz.AsyncLocalStorageContextManager}})});var Fn,xd=m(()=>{"use strict";b();Fn=Kr("OpenTelemetry Context Key B3 Debug Flag")});var _r,Yn,qn,jn,rl,$n,Oi=m(()=>{"use strict";_r="b3",Yn="x-b3-traceid",qn="x-b3-spanid",jn="x-b3-sampled",rl="x-b3-parentspanid",$n="x-b3-flags"});function eX(t){return t===J.SAMPLED||t===J.NONE}function tX(t){return Array.isArray(t)?t[0]:t}function nl(t,e,n){var i=e.get(t,n);return tX(i)}function rX(t,e){var n=nl(t,e,Yn);return typeof n=="string"?n.padStart(32,"0"):""}function nX(t,e){var n=nl(t,e,qn);return typeof n=="string"?n:""}function $I(t,e){var n=nl(t,e,$n);return n==="1"?"1":void 0}function oX(t,e){var n=nl(t,e,jn),i=$I(t,e);if(i==="1"||Qz.has(n))return J.SAMPLED;if(n===void 0||Zz.has(n))return J.NONE}var Qz,Zz,KI,WI=m(()=>{"use strict";b();K();xd();Oi();Qz=new Set([!0,"true","True","1",1]),Zz=new Set([!1,"false","False","0",0]);KI=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=X.getSpanContext(e);if(!(!a||!dt(a)||xe(e))){var s=e.getValue(Fn);i.set(n,Yn,a.traceId),i.set(n,qn,a.spanId),s==="1"?i.set(n,$n,s):a.traceFlags!==void 0&&i.set(n,jn,(J.SAMPLED&a.traceFlags)===J.SAMPLED?"1":"0")}},t.prototype.extract=function(e,n,i){var a=rX(n,i),s=nX(n,i),o=oX(n,i),r=$I(n,i);return kt(a)&&wi(s)&&eX(o)?(e=e.setValue(Fn,r),X.setSpanContext(e,{traceId:a,spanId:s,isRemote:!0,traceFlags:o})):e},t.prototype.fields=function(){return[Yn,qn,$n,jn,rl]},t}()});function cX(t){return t.length===32?t:""+sX+t}function fX(t){return t&&uX.has(t)?J.SAMPLED:J.NONE}var iX,aX,sX,uX,lX,zI,XI=m(()=>{"use strict";b();K();xd();Oi();iX=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},aX=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,sX="0".repeat(16),uX=new Set(["d","1"]),lX="d";zI=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=X.getSpanContext(e);if(!(!a||!dt(a)||xe(e))){var s=e.getValue(Fn)||a.traceFlags&1,o=a.traceId+"-"+a.spanId+"-"+s;i.set(n,_r,o)}},t.prototype.extract=function(e,n,i){var a=i.get(n,_r),s=Array.isArray(a)?a[0]:a;if(typeof s!="string")return e;var o=s.match(aX);if(!o)return e;var r=iX(o,4),u=r[1],l=r[2],c=r[3],p=cX(u);if(!kt(p)||!wi(l))return e;var _=fX(c);return c===lX&&(e=e.setValue(Fn,c)),X.setSpanContext(e,{traceId:p,spanId:l,isRemote:!0,traceFlags:_})},t.prototype.fields=function(){return[_r]},t}()});var Kn,Md=m(()=>{"use strict";(function(t){t[t.SINGLE_HEADER=0]="SINGLE_HEADER",t[t.MULTI_HEADER=1]="MULTI_HEADER"})(Kn||(Kn={}))});var JI,QI=m(()=>{"use strict";K();WI();XI();Oi();Md();JI=function(){function t(e){e===void 0&&(e={}),this._b3MultiPropagator=new KI,this._b3SinglePropagator=new zI,e.injectEncoding===Kn.MULTI_HEADER?(this._inject=this._b3MultiPropagator.inject,this._fields=this._b3MultiPropagator.fields()):(this._inject=this._b3SinglePropagator.inject,this._fields=this._b3SinglePropagator.fields())}return t.prototype.inject=function(e,n,i){xe(e)||this._inject(e,n,i)},t.prototype.extract=function(e,n,i){var a=i.get(n,_r),s=Array.isArray(a)?a[0]:a;return s?this._b3SinglePropagator.extract(e,n,i):this._b3MultiPropagator.extract(e,n,i)},t.prototype.fields=function(){return this._fields},t}()});var ZI={};nt(ZI,{B3InjectEncoding:()=>Kn,B3Propagator:()=>JI,B3_CONTEXT_HEADER:()=>_r,X_B3_FLAGS:()=>$n,X_B3_PARENT_SPAN_ID:()=>rl,X_B3_SAMPLED:()=>jn,X_B3_SPAN_ID:()=>qn,X_B3_TRACE_ID:()=>Yn});var eC=m(()=>{"use strict";QI();Oi();Md()});var tC,rC=m(()=>{"use strict";tC="exception"});var Ld,pX,nC,dX,ol,Id=m(()=>{"use strict";b();K();Ko();rC();Ld=function(){return Ld=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Ld.apply(this,arguments)},pX=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},nC=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},dX=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},ol=function(){function t(e,n,i,a,s,o,r,u,l,c){r===void 0&&(r=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:vE.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=i,this._spanContext=a,this.parentSpanId=o,this.kind=s,this.links=r;var p=Date.now();this._performanceStartTime=Ze.now(),this._performanceOffset=p-(this._performanceStartTime+An()),this._startTimeProvided=u!=null,this.startTime=this._getTime(u??p),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,c!=null&&this.setAttributes(c),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,n)}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,n){return n==null||this._isSpanEnded()?this:e.length===0?(g.warn("Invalid attribute key: "+e),this):Xo(n)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(n),this):(g.warn("Invalid attribute value set for key: "+e),this)},t.prototype.setAttributes=function(e){var n,i;try{for(var a=pX(Object.entries(e)),s=a.next();!s.done;s=a.next()){var o=nC(s.value,2),r=o[0],u=o[1];this.setAttribute(r,u)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return this},t.prototype.addEvent=function(e,n,i){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return g.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&g.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),ei(n)&&(ei(i)||(i=n),n=void 0);var a=ir(n);return this.events.push({name:e,attributes:a,time:this._getTime(i),droppedAttributesCount:0}),this},t.prototype.addLink=function(e){return this.links.push(e),this},t.prototype.addLinks=function(e){var n;return(n=this.links).push.apply(n,dX([],nC(e),!1)),this},t.prototype.setStatus=function(e){return this._isSpanEnded()?this:(this.status=Ld({},e),this.status.message!=null&&typeof e.message!="string"&&(g.warn("Dropping invalid status.message of type '"+typeof e.message+"', expected 'string'"),delete this.status.message),this)},t.prototype.updateName=function(e){return this._isSpanEnded()?this:(this.name=e,this)},t.prototype.end=function(e){if(this._isSpanEnded()){g.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once.");return}this._ended=!0,this.endTime=this._getTime(e),this._duration=xs(this.startTime,this.endTime),this._duration[0]<0&&(g.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&&g.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},t.prototype._getTime=function(e){if(typeof e=="number"&&e<Ze.now())return Zo(e+this._performanceOffset);if(typeof e=="number")return ge(e);if(e instanceof Date)return ge(e.getTime());if(On(e))return e;if(this._startTimeProvided)return ge(Date.now());var n=Ze.now()-this._performanceStartTime;return ti(this.startTime,ge(n))},t.prototype.isRecording=function(){return this._ended===!1},t.prototype.recordException=function(e,n){var i={};typeof e=="string"?i[_s]=e:e&&(e.code?i[Es]=e.code.toString():e.name&&(i[Es]=e.name),e.message&&(i[_s]=e.message),e.stack&&(i[h0]=e.stack)),i[Es]||i[_s]?this.addEvent(tC,i,n):g.warn("Failed to record an exception "+e)},Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),t.prototype._isSpanEnded=function(){return this._ended&&g.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},t.prototype._truncateToLimitUtil=function(e,n){return e.length<=n?e:e.substr(0,n)},t.prototype._truncateToSize=function(e){var n=this,i=this._attributeValueLengthLimit;return i<=0?(g.warn("Attribute value limit must be positive, got "+i),e):typeof e=="string"?this._truncateToLimitUtil(e,i):Array.isArray(e)?e.map(function(a){return typeof a=="string"?n._truncateToLimitUtil(a,i):a}):e},t}()});var ft,gi=m(()=>{"use strict";(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(ft||(ft={}))});var Sr,il=m(()=>{"use strict";gi();Sr=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:ft.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var xt,al=m(()=>{"use strict";gi();xt=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:ft.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var Wn,Cd=m(()=>{"use strict";b();K();il();al();Wn=function(){function t(e){var n,i,a,s;this._root=e.root,this._root||(Te(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new xt),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new xt,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new Sr,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new xt,this._localParentNotSampled=(s=e.localParentNotSampled)!==null&&s!==void 0?s:new Sr}return t.prototype.shouldSample=function(e,n,i,a,s,o){var r=X.getSpanContext(e);return!r||!dt(r)?this._root.shouldSample(e,n,i,a,s,o):r.isRemote?r.traceFlags&J.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,s,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,s,o):r.traceFlags&J.SAMPLED?this._localParentSampled.shouldSample(e,n,i,a,s,o):this._localParentNotSampled.shouldSample(e,n,i,a,s,o)},t.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},t}()});var Ni,wd=m(()=>{"use strict";b();gi();Ni=function(){function t(e){e===void 0&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}return t.prototype.shouldSample=function(e,n){return{decision:kt(n)&&this._accumulate(n)<this._upperBound?ft.RECORD_AND_SAMPLED:ft.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e},t.prototype._accumulate=function(e){for(var n=0,i=0;i<e.length/8;i++){var a=i*8,s=parseInt(e.slice(a,a+8),16);n=(n^s)>>>0}return n},t}()});function sl(){var t=Oe();return{sampler:Ud(EX),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:t.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:t.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:t.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:t.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function Ud(t){switch(t===void 0&&(t=Oe()),t.OTEL_TRACES_SAMPLER){case Ke.AlwaysOn:return new xt;case Ke.AlwaysOff:return new Sr;case Ke.ParentBasedAlwaysOn:return new Wn({root:new xt});case Ke.ParentBasedAlwaysOff:return new Wn({root:new Sr});case Ke.TraceIdRatio:return new Ni(oC(t));case Ke.ParentBasedTraceIdRatio:return new Wn({root:new Ni(oC(t))});default:return g.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+_X+'".'),new xt}}function oC(t){if(t.OTEL_TRACES_SAMPLER_ARG===void 0||t.OTEL_TRACES_SAMPLER_ARG==="")return g.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+zn+"."),zn;var e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(g.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+zn+"."),zn):e<0||e>1?(g.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+zn+"."),zn):e}var EX,_X,zn,Dd=m(()=>{"use strict";b();K();il();al();Cd();wd();EX=Oe(),_X=Ke.AlwaysOn,zn=1});function iC(t){var e={sampler:Ud()},n=sl(),i=Object.assign({},n,e,t);return i.generalLimits=Object.assign({},n.generalLimits,t.generalLimits||{}),i.spanLimits=Object.assign({},n.spanLimits,t.spanLimits||{}),i}function aC(t){var e,n,i,a,s,o,r,u,l,c,p,_,f=Object.assign({},t.spanLimits),S=mn();return f.attributeCountLimit=(o=(s=(a=(n=(e=t.spanLimits)===null||e===void 0?void 0:e.attributeCountLimit)!==null&&n!==void 0?n:(i=t.generalLimits)===null||i===void 0?void 0:i.attributeCountLimit)!==null&&a!==void 0?a:S.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&s!==void 0?s:S.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&o!==void 0?o:Dr,f.attributeValueLengthLimit=(_=(p=(c=(u=(r=t.spanLimits)===null||r===void 0?void 0:r.attributeValueLengthLimit)!==null&&u!==void 0?u:(l=t.generalLimits)===null||l===void 0?void 0:l.attributeValueLengthLimit)!==null&&c!==void 0?c:S.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&p!==void 0?p:S.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&_!==void 0?_:Ur,Object.assign({},t,{spanLimits:f})}var Vd=m(()=>{"use strict";Dd();K()});var sC,uC=m(()=>{"use strict";b();K();sC=function(){function t(e,n){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var i=Oe();this._maxExportBatchSize=typeof n?.maxExportBatchSize=="number"?n.maxExportBatchSize:i.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof n?.maxQueueSize=="number"?n.maxQueueSize:i.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof n?.scheduledDelayMillis=="number"?n.scheduledDelayMillis:i.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof n?.exportTimeoutMillis=="number"?n.exportTimeoutMillis:i.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new lr(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(g.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return t.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&J.SAMPLED&&this._addToBuffer(e)},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){var e=this;return Promise.resolve().then(function(){return e.onShutdown()}).then(function(){return e._flushAll()}).then(function(){return e._exporter.shutdown()})},t.prototype._addToBuffer=function(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&g.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(g.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()},t.prototype._flushAll=function(){var e=this;return new Promise(function(n,i){for(var a=[],s=Math.ceil(e._finishedSpans.length/e._maxExportBatchSize),o=0,r=s;o<r;o++)a.push(e._flushOneBatch());Promise.all(a).then(function(){n()}).catch(i)})},t.prototype._flushOneBatch=function(){var e=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(n,i){var a=setTimeout(function(){i(new Error("Timeout"))},e._exportTimeoutMillis);Ye.with(Tn(Ye.active()),function(){var s;e._finishedSpans.length<=e._maxExportBatchSize?(s=e._finishedSpans,e._finishedSpans=[]):s=e._finishedSpans.splice(0,e._maxExportBatchSize);for(var o=function(){return e._exporter.export(s,function(p){var _;clearTimeout(a),p.code===ee.SUCCESS?n():i((_=p.error)!==null&&_!==void 0?_:new Error("BatchSpanProcessor: span export failed"))})},r=null,u=0,l=s.length;u<l;u++){var c=s[u];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(r??(r=[]),r.push(c.resource.waitForAsyncAttributes()))}r===null?o():Promise.all(r).then(o,function(p){Te(p),i(p)})})})},t.prototype._maybeStartTimer=function(){var e=this;if(!this._isExporting){var n=function(){e._isExporting=!0,e._flushOneBatch().finally(function(){e._isExporting=!1,e._finishedSpans.length>0&&(e._clearTimer(),e._maybeStartTimer())}).catch(function(i){e._isExporting=!1,Te(i)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return n();this._timer===void 0&&(this._timer=setTimeout(function(){return n()},this._scheduledDelayMillis),ur(this._timer))}},t.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},t}()});var SX,hr,lC=m(()=>{"use strict";uC();SX=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),hr=function(t){SX(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onShutdown=function(){},e}(sC)});function cC(t){return function(){for(var n=0;n<t/4;n++)ul.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(ul[n]>0);n++)n===t-1&&(ul[t-1]=1);return ul.toString("hex",0,t)}}var hX,fC,Xn,ul,pC=m(()=>{"use strict";hX=8,fC=16,Xn=function(){function t(){this.generateTraceId=cC(fC),this.generateSpanId=cC(hX)}return t}(),ul=Buffer.allocUnsafe(fC)});var dC=m(()=>{"use strict";lC();pC()});var ll=m(()=>{"use strict";dC()});var cl,EC=m(()=>{"use strict";b();K();Id();Vd();ll();cl=function(){function t(e,n,i){this._tracerProvider=i;var a=iC(n);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=n.idGenerator||new Xn,this.resource=i.resource,this.instrumentationLibrary=e}return t.prototype.startSpan=function(e,n,i){var a,s,o;n===void 0&&(n={}),i===void 0&&(i=Ye.active()),n.root&&(i=X.deleteSpan(i));var r=X.getSpan(i);if(xe(i)){g.debug("Instrumentation suppressed, returning Noop Span");var u=X.wrapSpanContext(SE);return u}var l=r?.spanContext(),c=this._idGenerator.generateSpanId(),p,_,f;!l||!X.isSpanContextValid(l)?p=this._idGenerator.generateTraceId():(p=l.traceId,_=l.traceState,f=l.spanId);var S=(a=n.kind)!==null&&a!==void 0?a:TE.INTERNAL,v=((s=n.links)!==null&&s!==void 0?s:[]).map(function(F){return{context:F.context,attributes:ir(F.attributes)}}),T=ir(n.attributes),A=this._sampler.shouldSample(i,p,e,S,T,v);_=(o=A.traceState)!==null&&o!==void 0?o:_;var O=A.decision===Et.RECORD_AND_SAMPLED?J.SAMPLED:J.NONE,N={traceId:p,spanId:c,traceFlags:O,traceState:_};if(A.decision===Et.NOT_RECORD){g.debug("Recording is off, propagating context in a non-recording span");var u=X.wrapSpanContext(N);return u}var D=ir(Object.assign(T,A.attributes)),G=new ol(this,i,e,N,S,f,v,n.startTime,void 0,D);return G},t.prototype.startActiveSpan=function(e,n,i,a){var s,o,r;if(!(arguments.length<2)){arguments.length===2?r=n:arguments.length===3?(s=n,r=i):(s=n,o=i,r=a);var u=o??Ye.active(),l=this.startSpan(e,s,u),c=X.setSpan(u,l);return Ye.with(c,r,void 0,l)}},t.prototype.getGeneralLimits=function(){return this._generalLimits},t.prototype.getSpanLimits=function(){return this._spanLimits},t.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},t}()});var fl,_C,SC=m(()=>{"use strict";K();fl=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},_C=function(){function t(e){this._spanProcessors=e}return t.prototype.forceFlush=function(){var e,n,i=[];try{for(var a=fl(this._spanProcessors),s=a.next();!s.done;s=a.next()){var o=s.value;i.push(o.forceFlush())}}catch(r){e={error:r}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return new Promise(function(r){Promise.all(i).then(function(){r()}).catch(function(u){Te(u||new Error("MultiSpanProcessor: forceFlush failed")),r()})})},t.prototype.onStart=function(e,n){var i,a;try{for(var s=fl(this._spanProcessors),o=s.next();!o.done;o=s.next()){var r=o.value;r.onStart(e,n)}}catch(u){i={error:u}}finally{try{o&&!o.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}},t.prototype.onEnd=function(e){var n,i;try{for(var a=fl(this._spanProcessors),s=a.next();!s.done;s=a.next()){var o=s.value;o.onEnd(e)}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}},t.prototype.shutdown=function(){var e,n,i=[];try{for(var a=fl(this._spanProcessors),s=a.next();!s.done;s=a.next()){var o=s.value;i.push(o.shutdown())}}catch(r){e={error:r}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return new Promise(function(r,u){Promise.all(i).then(function(){r()},u)})},t}()});var pl,Bd=m(()=>{"use strict";pl=function(){function t(){}return t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){},t.prototype.shutdown=function(){return Promise.resolve()},t.prototype.forceFlush=function(){return Promise.resolve()},t}()});var Bt,hC,TC=m(()=>{"use strict";b();K();Hs();Ri();Dd();SC();Bd();ll();Vd();(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(Bt||(Bt={}));hC=function(){function t(e){e===void 0&&(e={});var n;this._registeredSpanProcessors=[],this._tracers=new Map;var i=Vs({},sl(),aC(e));this.resource=(n=i.resource)!==null&&n!==void 0?n:Dt.empty(),this.resource=Dt.default().merge(this.resource),this._config=Object.assign({},i,{resource:this.resource});var a=this._buildExporterFromEnv();if(a!==void 0){var s=new hr(a);this.activeSpanProcessor=s}else this.activeSpanProcessor=new pl}return t.prototype.getTracer=function(e,n,i){var a=e+"@"+(n||"")+":"+(i?.schemaUrl||"");return this._tracers.has(a)||this._tracers.set(a,new cl({name:e,version:n,schemaUrl:i?.schemaUrl},this._config,this)),this._tracers.get(a)},t.prototype.addSpanProcessor=function(e){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(n){return g.error("Error while trying to shutdown current span processor",n)}),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new _C(this._registeredSpanProcessors)},t.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},t.prototype.register=function(e){e===void 0&&(e={}),X.setGlobalTracerProvider(this),e.propagator===void 0&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&Ye.setGlobalContextManager(e.contextManager),e.propagator&&it.setGlobalPropagator(e.propagator)},t.prototype.forceFlush=function(){var e=this._config.forceFlushTimeoutMillis,n=this._registeredSpanProcessors.map(function(i){return new Promise(function(a){var s,o=setTimeout(function(){a(new Error("Span processor did not completed within timeout period of "+e+" ms")),s=Bt.timeout},e);i.forceFlush().then(function(){clearTimeout(o),s!==Bt.timeout&&(s=Bt.resolved,a(s))}).catch(function(r){clearTimeout(o),s=Bt.error,a(r)})})});return new Promise(function(i,a){Promise.all(n).then(function(s){var o=s.filter(function(r){return r!==Bt.resolved});o.length>0?a(o):i()}).catch(function(s){return a([s])})})},t.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},t.prototype._getPropagator=function(e){var n;return(n=this.constructor._registeredPropagators.get(e))===null||n===void 0?void 0:n()},t.prototype._getSpanExporter=function(e){var n;return(n=this.constructor._registeredExporters.get(e))===null||n===void 0?void 0:n()},t.prototype._buildPropagatorFromEnv=function(){var e=this,n=Array.from(new Set(Oe().OTEL_PROPAGATORS)),i=n.map(function(s){var o=e._getPropagator(s);return o||g.warn('Propagator "'+s+'" requested through environment variable is unavailable.'),o}),a=i.reduce(function(s,o){return o&&s.push(o),s},[]);if(a.length!==0)return n.length===1?a[0]:new Ls({propagators:a})},t.prototype._buildExporterFromEnv=function(){var e=Oe().OTEL_TRACES_EXPORTER;if(!(e==="none"||e==="")){var n=this._getSpanExporter(e);return n||g.error('Exporter "'+e+'" requested through environment variable is unavailable.'),n}},t._registeredPropagators=new Map([["tracecontext",function(){return new Cs}],["baggage",function(){return new ys}]]),t._registeredExporters=new Map,t}()});var TX,vC,mC=m(()=>{"use strict";K();TX=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},vC=function(){function t(){}return t.prototype.export=function(e,n){return this._sendSpans(e,n)},t.prototype.shutdown=function(){return this._sendSpans([]),this.forceFlush()},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype._exportInfo=function(e){var n;return{resource:{attributes:e.resource.attributes},instrumentationScope:e.instrumentationLibrary,traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:(n=e.spanContext().traceState)===null||n===void 0?void 0:n.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:Ot(e.startTime),duration:Ot(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}},t.prototype._sendSpans=function(e,n){var i,a;try{for(var s=TX(e),o=s.next();!o.done;o=s.next()){var r=o.value;console.dir(this._exportInfo(r),{depth:3})}}catch(u){i={error:u}}finally{try{o&&!o.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}if(n)return n({code:ee.SUCCESS})},t}()});var vX,mX,yC,AC=m(()=>{"use strict";K();vX=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},mX=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},yC=function(){function t(){this._finishedSpans=[],this._stopped=!1}return t.prototype.export=function(e,n){var i;if(this._stopped)return n({code:ee.FAILED,error:new Error("Exporter has been stopped")});(i=this._finishedSpans).push.apply(i,mX([],vX(e),!1)),setTimeout(function(){return n({code:ee.SUCCESS})},0)},t.prototype.shutdown=function(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.reset=function(){this._finishedSpans=[]},t.prototype.getFinishedSpans=function(){return this._finishedSpans},t}()});var yX,AX,OC,gC=m(()=>{"use strict";b();K();yX=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},AX=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},OC=function(){function t(e){this._exporter=e,this._shutdownOnce=new lr(this._shutdown,this),this._unresolvedExports=new Set}return t.prototype.forceFlush=function(){return yX(this,void 0,void 0,function(){return AX(this,function(e){switch(e.label){case 0:return[4,Promise.all(Array.from(this._unresolvedExports))];case 1:return e.sent(),this._exporter.forceFlush?[4,this._exporter.forceFlush()]:[3,3];case 2:e.sent(),e.label=3;case 3:return[2]}})})},t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){var n=this,i,a;if(!this._shutdownOnce.isCalled&&e.spanContext().traceFlags&J.SAMPLED){var s=function(){return ai._export(n._exporter,[e]).then(function(r){var u;r.code!==ee.SUCCESS&&Te((u=r.error)!==null&&u!==void 0?u:new Error("SimpleSpanProcessor: span export failed (status "+r+")"))}).catch(function(r){Te(r)})};if(e.resource.asyncAttributesPending){var o=(a=(i=e.resource).waitForAsyncAttributes)===null||a===void 0?void 0:a.call(i).then(function(){return o!=null&&n._unresolvedExports.delete(o),s()},function(r){return Te(r)});o!=null&&this._unresolvedExports.add(o)}else s()}},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){return this._exporter.shutdown()},t}()});var Gd={};nt(Gd,{AlwaysOffSampler:()=>Sr,AlwaysOnSampler:()=>xt,BasicTracerProvider:()=>hC,BatchSpanProcessor:()=>hr,ConsoleSpanExporter:()=>vC,ForceFlushState:()=>Bt,InMemorySpanExporter:()=>yC,NoopSpanProcessor:()=>pl,ParentBasedSampler:()=>Wn,RandomIdGenerator:()=>Xn,SamplingDecision:()=>ft,SimpleSpanProcessor:()=>OC,Span:()=>ol,TraceIdRatioBasedSampler:()=>Ni,Tracer:()=>cl});var Ri=m(()=>{"use strict";EC();TC();ll();mC();AC();gC();Bd();il();al();Cd();wd();gi();Id()});var Pi=h((Ufe,NC)=>{"use strict";var OX="2.0.0",gX=Number.MAX_SAFE_INTEGER||9007199254740991,NX=16,RX=250,PX=["major","premajor","minor","preminor","patch","prepatch","prerelease"];NC.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:NX,MAX_SAFE_BUILD_LENGTH:RX,MAX_SAFE_INTEGER:gX,RELEASE_TYPES:PX,SEMVER_SPEC_VERSION:OX,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var bi=h((Dfe,RC)=>{"use strict";var bX=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};RC.exports=bX});var Jn=h((Gt,PC)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:kd,MAX_SAFE_BUILD_LENGTH:xX,MAX_LENGTH:MX}=Pi(),LX=bi();Gt=PC.exports={};var IX=Gt.re=[],CX=Gt.safeRe=[],R=Gt.src=[],P=Gt.t={},wX=0,Hd="[a-zA-Z0-9-]",UX=[["\\s",1],["\\d",MX],[Hd,xX]],DX=t=>{for(let[e,n]of UX)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},U=(t,e,n)=>{let i=DX(e),a=wX++;LX(t,a,e),P[t]=a,R[a]=e,IX[a]=new RegExp(e,n?"g":void 0),CX[a]=new RegExp(i,n?"g":void 0)};U("NUMERICIDENTIFIER","0|[1-9]\\d*");U("NUMERICIDENTIFIERLOOSE","\\d+");U("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Hd}*`);U("MAINVERSION",`(${R[P.NUMERICIDENTIFIER]})\\.(${R[P.NUMERICIDENTIFIER]})\\.(${R[P.NUMERICIDENTIFIER]})`);U("MAINVERSIONLOOSE",`(${R[P.NUMERICIDENTIFIERLOOSE]})\\.(${R[P.NUMERICIDENTIFIERLOOSE]})\\.(${R[P.NUMERICIDENTIFIERLOOSE]})`);U("PRERELEASEIDENTIFIER",`(?:${R[P.NUMERICIDENTIFIER]}|${R[P.NONNUMERICIDENTIFIER]})`);U("PRERELEASEIDENTIFIERLOOSE",`(?:${R[P.NUMERICIDENTIFIERLOOSE]}|${R[P.NONNUMERICIDENTIFIER]})`);U("PRERELEASE",`(?:-(${R[P.PRERELEASEIDENTIFIER]}(?:\\.${R[P.PRERELEASEIDENTIFIER]})*))`);U("PRERELEASELOOSE",`(?:-?(${R[P.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${R[P.PRERELEASEIDENTIFIERLOOSE]})*))`);U("BUILDIDENTIFIER",`${Hd}+`);U("BUILD",`(?:\\+(${R[P.BUILDIDENTIFIER]}(?:\\.${R[P.BUILDIDENTIFIER]})*))`);U("FULLPLAIN",`v?${R[P.MAINVERSION]}${R[P.PRERELEASE]}?${R[P.BUILD]}?`);U("FULL",`^${R[P.FULLPLAIN]}$`);U("LOOSEPLAIN",`[v=\\s]*${R[P.MAINVERSIONLOOSE]}${R[P.PRERELEASELOOSE]}?${R[P.BUILD]}?`);U("LOOSE",`^${R[P.LOOSEPLAIN]}$`);U("GTLT","((?:<|>)?=?)");U("XRANGEIDENTIFIERLOOSE",`${R[P.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);U("XRANGEIDENTIFIER",`${R[P.NUMERICIDENTIFIER]}|x|X|\\*`);U("XRANGEPLAIN",`[v=\\s]*(${R[P.XRANGEIDENTIFIER]})(?:\\.(${R[P.XRANGEIDENTIFIER]})(?:\\.(${R[P.XRANGEIDENTIFIER]})(?:${R[P.PRERELEASE]})?${R[P.BUILD]}?)?)?`);U("XRANGEPLAINLOOSE",`[v=\\s]*(${R[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[P.XRANGEIDENTIFIERLOOSE]})(?:${R[P.PRERELEASELOOSE]})?${R[P.BUILD]}?)?)?`);U("XRANGE",`^${R[P.GTLT]}\\s*${R[P.XRANGEPLAIN]}$`);U("XRANGELOOSE",`^${R[P.GTLT]}\\s*${R[P.XRANGEPLAINLOOSE]}$`);U("COERCEPLAIN",`(^|[^\\d])(\\d{1,${kd}})(?:\\.(\\d{1,${kd}}))?(?:\\.(\\d{1,${kd}}))?`);U("COERCE",`${R[P.COERCEPLAIN]}(?:$|[^\\d])`);U("COERCEFULL",R[P.COERCEPLAIN]+`(?:${R[P.PRERELEASE]})?(?:${R[P.BUILD]})?(?:$|[^\\d])`);U("COERCERTL",R[P.COERCE],!0);U("COERCERTLFULL",R[P.COERCEFULL],!0);U("LONETILDE","(?:~>?)");U("TILDETRIM",`(\\s*)${R[P.LONETILDE]}\\s+`,!0);Gt.tildeTrimReplace="$1~";U("TILDE",`^${R[P.LONETILDE]}${R[P.XRANGEPLAIN]}$`);U("TILDELOOSE",`^${R[P.LONETILDE]}${R[P.XRANGEPLAINLOOSE]}$`);U("LONECARET","(?:\\^)");U("CARETTRIM",`(\\s*)${R[P.LONECARET]}\\s+`,!0);Gt.caretTrimReplace="$1^";U("CARET",`^${R[P.LONECARET]}${R[P.XRANGEPLAIN]}$`);U("CARETLOOSE",`^${R[P.LONECARET]}${R[P.XRANGEPLAINLOOSE]}$`);U("COMPARATORLOOSE",`^${R[P.GTLT]}\\s*(${R[P.LOOSEPLAIN]})$|^$`);U("COMPARATOR",`^${R[P.GTLT]}\\s*(${R[P.FULLPLAIN]})$|^$`);U("COMPARATORTRIM",`(\\s*)${R[P.GTLT]}\\s*(${R[P.LOOSEPLAIN]}|${R[P.XRANGEPLAIN]})`,!0);Gt.comparatorTrimReplace="$1$2$3";U("HYPHENRANGE",`^\\s*(${R[P.XRANGEPLAIN]})\\s+-\\s+(${R[P.XRANGEPLAIN]})\\s*$`);U("HYPHENRANGELOOSE",`^\\s*(${R[P.XRANGEPLAINLOOSE]})\\s+-\\s+(${R[P.XRANGEPLAINLOOSE]})\\s*$`);U("STAR","(<|>)?=?\\s*\\*");U("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");U("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var dl=h((Vfe,bC)=>{"use strict";var VX=Object.freeze({loose:!0}),BX=Object.freeze({}),GX=t=>t?typeof t!="object"?VX:t:BX;bC.exports=GX});var Fd=h((Bfe,LC)=>{"use strict";var xC=/^[0-9]+$/,MC=(t,e)=>{let n=xC.test(t),i=xC.test(e);return n&&i&&(t=+t,e=+e),t===e?0:n&&!i?-1:i&&!n?1:t<e?-1:1},kX=(t,e)=>MC(e,t);LC.exports={compareIdentifiers:MC,rcompareIdentifiers:kX}});var Me=h((Gfe,UC)=>{"use strict";var El=bi(),{MAX_LENGTH:IC,MAX_SAFE_INTEGER:_l}=Pi(),{safeRe:CC,t:wC}=Jn(),HX=dl(),{compareIdentifiers:Qn}=Fd(),Yd=class t{constructor(e,n){if(n=HX(n),e instanceof t){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>IC)throw new TypeError(`version is longer than ${IC} characters`);El("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let i=e.trim().match(n.loose?CC[wC.LOOSE]:CC[wC.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>_l||this.major<0)throw new TypeError("Invalid major version");if(this.minor>_l||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>_l||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let s=+a;if(s>=0&&s<_l)return s}return a}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(El("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),Qn(this.major,e.major)||Qn(this.minor,e.minor)||Qn(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{let i=this.prerelease[n],a=e.prerelease[n];if(El("prerelease compare",n,i,a),i===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(i===void 0)return-1;if(i===a)continue;return Qn(i,a)}while(++n)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let n=0;do{let i=this.build[n],a=e.build[n];if(El("build compare",n,i,a),i===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(i===void 0)return-1;if(i===a)continue;return Qn(i,a)}while(++n)}inc(e,n,i){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,i),this.inc("pre",n,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,i),this.inc("pre",n,i);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let a=Number(i)?1:0;if(!n&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[a];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(n===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(n){let s=[n,a];i===!1&&(s=[n]),Qn(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};UC.exports=Yd});var qr=h((kfe,VC)=>{"use strict";var DC=Me(),FX=(t,e,n=!1)=>{if(t instanceof DC)return t;try{return new DC(t,e)}catch(i){if(!n)return null;throw i}};VC.exports=FX});var GC=h((Hfe,BC)=>{"use strict";var YX=qr(),qX=(t,e)=>{let n=YX(t,e);return n?n.version:null};BC.exports=qX});var HC=h((Ffe,kC)=>{"use strict";var jX=qr(),$X=(t,e)=>{let n=jX(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};kC.exports=$X});var qC=h((Yfe,YC)=>{"use strict";var FC=Me(),KX=(t,e,n,i,a)=>{typeof n=="string"&&(a=i,i=n,n=void 0);try{return new FC(t instanceof FC?t.version:t,n).inc(e,i,a).version}catch{return null}};YC.exports=KX});var KC=h((qfe,$C)=>{"use strict";var jC=qr(),WX=(t,e)=>{let n=jC(t,null,!0),i=jC(e,null,!0),a=n.compare(i);if(a===0)return null;let s=a>0,o=s?n:i,r=s?i:n,u=!!o.prerelease.length;if(!!r.prerelease.length&&!u)return!r.patch&&!r.minor?"major":o.patch?"patch":o.minor?"minor":"major";let c=u?"pre":"";return n.major!==i.major?c+"major":n.minor!==i.minor?c+"minor":n.patch!==i.patch?c+"patch":"prerelease"};$C.exports=WX});var zC=h((jfe,WC)=>{"use strict";var zX=Me(),XX=(t,e)=>new zX(t,e).major;WC.exports=XX});var JC=h(($fe,XC)=>{"use strict";var JX=Me(),QX=(t,e)=>new JX(t,e).minor;XC.exports=QX});var ZC=h((Kfe,QC)=>{"use strict";var ZX=Me(),eJ=(t,e)=>new ZX(t,e).patch;QC.exports=eJ});var tw=h((Wfe,ew)=>{"use strict";var tJ=qr(),rJ=(t,e)=>{let n=tJ(t,e);return n&&n.prerelease.length?n.prerelease:null};ew.exports=rJ});var tt=h((zfe,nw)=>{"use strict";var rw=Me(),nJ=(t,e,n)=>new rw(t,n).compare(new rw(e,n));nw.exports=nJ});var iw=h((Xfe,ow)=>{"use strict";var oJ=tt(),iJ=(t,e,n)=>oJ(e,t,n);ow.exports=iJ});var sw=h((Jfe,aw)=>{"use strict";var aJ=tt(),sJ=(t,e)=>aJ(t,e,!0);aw.exports=sJ});var Sl=h((Qfe,lw)=>{"use strict";var uw=Me(),uJ=(t,e,n)=>{let i=new uw(t,n),a=new uw(e,n);return i.compare(a)||i.compareBuild(a)};lw.exports=uJ});var fw=h((Zfe,cw)=>{"use strict";var lJ=Sl(),cJ=(t,e)=>t.sort((n,i)=>lJ(n,i,e));cw.exports=cJ});var dw=h((epe,pw)=>{"use strict";var fJ=Sl(),pJ=(t,e)=>t.sort((n,i)=>fJ(i,n,e));pw.exports=pJ});var xi=h((tpe,Ew)=>{"use strict";var dJ=tt(),EJ=(t,e,n)=>dJ(t,e,n)>0;Ew.exports=EJ});var hl=h((rpe,_w)=>{"use strict";var _J=tt(),SJ=(t,e,n)=>_J(t,e,n)<0;_w.exports=SJ});var qd=h((npe,Sw)=>{"use strict";var hJ=tt(),TJ=(t,e,n)=>hJ(t,e,n)===0;Sw.exports=TJ});var jd=h((ope,hw)=>{"use strict";var vJ=tt(),mJ=(t,e,n)=>vJ(t,e,n)!==0;hw.exports=mJ});var Tl=h((ipe,Tw)=>{"use strict";var yJ=tt(),AJ=(t,e,n)=>yJ(t,e,n)>=0;Tw.exports=AJ});var vl=h((ape,vw)=>{"use strict";var OJ=tt(),gJ=(t,e,n)=>OJ(t,e,n)<=0;vw.exports=gJ});var $d=h((spe,mw)=>{"use strict";var NJ=qd(),RJ=jd(),PJ=xi(),bJ=Tl(),xJ=hl(),MJ=vl(),LJ=(t,e,n,i)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return NJ(t,n,i);case"!=":return RJ(t,n,i);case">":return PJ(t,n,i);case">=":return bJ(t,n,i);case"<":return xJ(t,n,i);case"<=":return MJ(t,n,i);default:throw new TypeError(`Invalid operator: ${e}`)}};mw.exports=LJ});var Aw=h((upe,yw)=>{"use strict";var IJ=Me(),CJ=qr(),{safeRe:ml,t:yl}=Jn(),wJ=(t,e)=>{if(t instanceof IJ)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let n=null;if(!e.rtl)n=t.match(e.includePrerelease?ml[yl.COERCEFULL]:ml[yl.COERCE]);else{let u=e.includePrerelease?ml[yl.COERCERTLFULL]:ml[yl.COERCERTL],l;for(;(l=u.exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||l.index+l[0].length!==n.index+n[0].length)&&(n=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}if(n===null)return null;let i=n[2],a=n[3]||"0",s=n[4]||"0",o=e.includePrerelease&&n[5]?`-${n[5]}`:"",r=e.includePrerelease&&n[6]?`+${n[6]}`:"";return CJ(`${i}.${a}.${s}${o}${r}`,e)};yw.exports=wJ});var gw=h((lpe,Ow)=>{"use strict";var Kd=class{constructor(){this.max=1e3,this.map=new Map}get(e){let n=this.map.get(e);if(n!==void 0)return this.map.delete(e),this.map.set(e,n),n}delete(e){return this.map.delete(e)}set(e,n){if(!this.delete(e)&&n!==void 0){if(this.map.size>=this.max){let a=this.map.keys().next().value;this.delete(a)}this.map.set(e,n)}return this}};Ow.exports=Kd});var rt=h((cpe,bw)=>{"use strict";var Wd=class t{constructor(e,n){if(n=DJ(n),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof zd)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(a=>!Rw(a[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let a of this.set)if(a.length===1&&YJ(a[0])){this.set=[a];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let i=((this.options.includePrerelease&&HJ)|(this.options.loose&&FJ))+":"+e,a=Nw.get(i);if(a)return a;let s=this.options.loose,o=s?We[Be.HYPHENRANGELOOSE]:We[Be.HYPHENRANGE];e=e.replace(o,ZJ(this.options.includePrerelease)),te("hyphen replace",e),e=e.replace(We[Be.COMPARATORTRIM],BJ),te("comparator trim",e),e=e.replace(We[Be.TILDETRIM],GJ),te("tilde trim",e),e=e.replace(We[Be.CARETTRIM],kJ),te("caret trim",e);let r=e.split(" ").map(p=>qJ(p,this.options)).join(" ").split(/\s+/).map(p=>QJ(p,this.options));s&&(r=r.filter(p=>(te("loose invalid filter",p,this.options),!!p.match(We[Be.COMPARATORLOOSE])))),te("range list",r);let u=new Map,l=r.map(p=>new zd(p,this.options));for(let p of l){if(Rw(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let c=[...u.values()];return Nw.set(i,c),c}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(i=>Pw(i,n)&&e.set.some(a=>Pw(a,n)&&i.every(s=>a.every(o=>s.intersects(o,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new VJ(e,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(e9(this.set[n],e,this.options))return!0;return!1}};bw.exports=Wd;var UJ=gw(),Nw=new UJ,DJ=dl(),zd=Mi(),te=bi(),VJ=Me(),{safeRe:We,t:Be,comparatorTrimReplace:BJ,tildeTrimReplace:GJ,caretTrimReplace:kJ}=Jn(),{FLAG_INCLUDE_PRERELEASE:HJ,FLAG_LOOSE:FJ}=Pi(),Rw=t=>t.value==="<0.0.0-0",YJ=t=>t.value==="",Pw=(t,e)=>{let n=!0,i=t.slice(),a=i.pop();for(;n&&i.length;)n=i.every(s=>a.intersects(s,e)),a=i.pop();return n},qJ=(t,e)=>(te("comp",t,e),t=KJ(t,e),te("caret",t),t=jJ(t,e),te("tildes",t),t=zJ(t,e),te("xrange",t),t=JJ(t,e),te("stars",t),t),Ge=t=>!t||t.toLowerCase()==="x"||t==="*",jJ=(t,e)=>t.trim().split(/\s+/).map(n=>$J(n,e)).join(" "),$J=(t,e)=>{let n=e.loose?We[Be.TILDELOOSE]:We[Be.TILDE];return t.replace(n,(i,a,s,o,r)=>{te("tilde",t,i,a,s,o,r);let u;return Ge(a)?u="":Ge(s)?u=`>=${a}.0.0 <${+a+1}.0.0-0`:Ge(o)?u=`>=${a}.${s}.0 <${a}.${+s+1}.0-0`:r?(te("replaceTilde pr",r),u=`>=${a}.${s}.${o}-${r} <${a}.${+s+1}.0-0`):u=`>=${a}.${s}.${o} <${a}.${+s+1}.0-0`,te("tilde return",u),u})},KJ=(t,e)=>t.trim().split(/\s+/).map(n=>WJ(n,e)).join(" "),WJ=(t,e)=>{te("caret",t,e);let n=e.loose?We[Be.CARETLOOSE]:We[Be.CARET],i=e.includePrerelease?"-0":"";return t.replace(n,(a,s,o,r,u)=>{te("caret",t,a,s,o,r,u);let l;return Ge(s)?l="":Ge(o)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:Ge(r)?s==="0"?l=`>=${s}.${o}.0${i} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.0${i} <${+s+1}.0.0-0`:u?(te("replaceCaret pr",u),s==="0"?o==="0"?l=`>=${s}.${o}.${r}-${u} <${s}.${o}.${+r+1}-0`:l=`>=${s}.${o}.${r}-${u} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${r}-${u} <${+s+1}.0.0-0`):(te("no pr"),s==="0"?o==="0"?l=`>=${s}.${o}.${r}${i} <${s}.${o}.${+r+1}-0`:l=`>=${s}.${o}.${r}${i} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${r} <${+s+1}.0.0-0`),te("caret return",l),l})},zJ=(t,e)=>(te("replaceXRanges",t,e),t.split(/\s+/).map(n=>XJ(n,e)).join(" ")),XJ=(t,e)=>{t=t.trim();let n=e.loose?We[Be.XRANGELOOSE]:We[Be.XRANGE];return t.replace(n,(i,a,s,o,r,u)=>{te("xRange",t,i,a,s,o,r,u);let l=Ge(s),c=l||Ge(o),p=c||Ge(r),_=p;return a==="="&&_&&(a=""),u=e.includePrerelease?"-0":"",l?a===">"||a==="<"?i="<0.0.0-0":i="*":a&&_?(c&&(o=0),r=0,a===">"?(a=">=",c?(s=+s+1,o=0,r=0):(o=+o+1,r=0)):a==="<="&&(a="<",c?s=+s+1:o=+o+1),a==="<"&&(u="-0"),i=`${a+s}.${o}.${r}${u}`):c?i=`>=${s}.0.0${u} <${+s+1}.0.0-0`:p&&(i=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),te("xRange return",i),i})},JJ=(t,e)=>(te("replaceStars",t,e),t.trim().replace(We[Be.STAR],"")),QJ=(t,e)=>(te("replaceGTE0",t,e),t.trim().replace(We[e.includePrerelease?Be.GTE0PRE:Be.GTE0],"")),ZJ=t=>(e,n,i,a,s,o,r,u,l,c,p,_)=>(Ge(i)?n="":Ge(a)?n=`>=${i}.0.0${t?"-0":""}`:Ge(s)?n=`>=${i}.${a}.0${t?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,Ge(l)?u="":Ge(c)?u=`<${+l+1}.0.0-0`:Ge(p)?u=`<${l}.${+c+1}.0-0`:_?u=`<=${l}.${c}.${p}-${_}`:t?u=`<${l}.${c}.${+p+1}-0`:u=`<=${u}`,`${n} ${u}`.trim()),e9=(t,e,n)=>{for(let i=0;i<t.length;i++)if(!t[i].test(e))return!1;if(e.prerelease.length&&!n.includePrerelease){for(let i=0;i<t.length;i++)if(te(t[i].semver),t[i].semver!==zd.ANY&&t[i].semver.prerelease.length>0){let a=t[i].semver;if(a.major===e.major&&a.minor===e.minor&&a.patch===e.patch)return!0}return!1}return!0}});var Mi=h((fpe,ww)=>{"use strict";var Li=Symbol("SemVer ANY"),Qd=class t{static get ANY(){return Li}constructor(e,n){if(n=xw(n),e instanceof t){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Jd("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===Li?this.value="":this.value=this.operator+this.semver.version,Jd("comp",this)}parse(e){let n=this.options.loose?Mw[Lw.COMPARATORLOOSE]:Mw[Lw.COMPARATOR],i=e.match(n);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new Iw(i[2],this.options.loose):this.semver=Li}toString(){return this.value}test(e){if(Jd("Comparator.test",e,this.options.loose),this.semver===Li||e===Li)return!0;if(typeof e=="string")try{e=new Iw(e,this.options)}catch{return!1}return Xd(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Cw(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new Cw(this.value,n).test(e.semver):(n=xw(n),n.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Xd(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Xd(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};ww.exports=Qd;var xw=dl(),{safeRe:Mw,t:Lw}=Jn(),Xd=$d(),Jd=bi(),Iw=Me(),Cw=rt()});var Ii=h((ppe,Uw)=>{"use strict";var t9=rt(),r9=(t,e,n)=>{try{e=new t9(e,n)}catch{return!1}return e.test(t)};Uw.exports=r9});var Vw=h((dpe,Dw)=>{"use strict";var n9=rt(),o9=(t,e)=>new n9(t,e).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));Dw.exports=o9});var Gw=h((Epe,Bw)=>{"use strict";var i9=Me(),a9=rt(),s9=(t,e,n)=>{let i=null,a=null,s=null;try{s=new a9(e,n)}catch{return null}return t.forEach(o=>{s.test(o)&&(!i||a.compare(o)===-1)&&(i=o,a=new i9(i,n))}),i};Bw.exports=s9});var Hw=h((_pe,kw)=>{"use strict";var u9=Me(),l9=rt(),c9=(t,e,n)=>{let i=null,a=null,s=null;try{s=new l9(e,n)}catch{return null}return t.forEach(o=>{s.test(o)&&(!i||a.compare(o)===1)&&(i=o,a=new u9(i,n))}),i};kw.exports=c9});var qw=h((Spe,Yw)=>{"use strict";var Zd=Me(),f9=rt(),Fw=xi(),p9=(t,e)=>{t=new f9(t,e);let n=new Zd("0.0.0");if(t.test(n)||(n=new Zd("0.0.0-0"),t.test(n)))return n;n=null;for(let i=0;i<t.set.length;++i){let a=t.set[i],s=null;a.forEach(o=>{let r=new Zd(o.semver.version);switch(o.operator){case">":r.prerelease.length===0?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":(!s||Fw(r,s))&&(s=r);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!n||Fw(n,s))&&(n=s)}return n&&t.test(n)?n:null};Yw.exports=p9});var $w=h((hpe,jw)=>{"use strict";var d9=rt(),E9=(t,e)=>{try{return new d9(t,e).range||"*"}catch{return null}};jw.exports=E9});var Al=h((Tpe,Xw)=>{"use strict";var _9=Me(),zw=Mi(),{ANY:S9}=zw,h9=rt(),T9=Ii(),Kw=xi(),Ww=hl(),v9=vl(),m9=Tl(),y9=(t,e,n,i)=>{t=new _9(t,i),e=new h9(e,i);let a,s,o,r,u;switch(n){case">":a=Kw,s=v9,o=Ww,r=">",u=">=";break;case"<":a=Ww,s=m9,o=Kw,r="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(T9(t,e,i))return!1;for(let l=0;l<e.set.length;++l){let c=e.set[l],p=null,_=null;if(c.forEach(f=>{f.semver===S9&&(f=new zw(">=0.0.0")),p=p||f,_=_||f,a(f.semver,p.semver,i)?p=f:o(f.semver,_.semver,i)&&(_=f)}),p.operator===r||p.operator===u||(!_.operator||_.operator===r)&&s(t,_.semver))return!1;if(_.operator===u&&o(t,_.semver))return!1}return!0};Xw.exports=y9});var Qw=h((vpe,Jw)=>{"use strict";var A9=Al(),O9=(t,e,n)=>A9(t,e,">",n);Jw.exports=O9});var eU=h((mpe,Zw)=>{"use strict";var g9=Al(),N9=(t,e,n)=>g9(t,e,"<",n);Zw.exports=N9});var nU=h((ype,rU)=>{"use strict";var tU=rt(),R9=(t,e,n)=>(t=new tU(t,n),e=new tU(e,n),t.intersects(e,n));rU.exports=R9});var iU=h((Ape,oU)=>{"use strict";var P9=Ii(),b9=tt();oU.exports=(t,e,n)=>{let i=[],a=null,s=null,o=t.sort((c,p)=>b9(c,p,n));for(let c of o)P9(c,e,n)?(s=c,a||(a=c)):(s&&i.push([a,s]),s=null,a=null);a&&i.push([a,null]);let r=[];for(let[c,p]of i)c===p?r.push(c):!p&&c===o[0]?r.push("*"):p?c===o[0]?r.push(`<=${p}`):r.push(`${c} - ${p}`):r.push(`>=${c}`);let u=r.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return u.length<l.length?u:e}});var fU=h((Ope,cU)=>{"use strict";var aU=rt(),tE=Mi(),{ANY:eE}=tE,Ci=Ii(),rE=tt(),x9=(t,e,n={})=>{if(t===e)return!0;t=new aU(t,n),e=new aU(e,n);let i=!1;e:for(let a of t.set){for(let s of e.set){let o=L9(a,s,n);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},M9=[new tE(">=0.0.0-0")],sU=[new tE(">=0.0.0")],L9=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===eE){if(e.length===1&&e[0].semver===eE)return!0;n.includePrerelease?t=M9:t=sU}if(e.length===1&&e[0].semver===eE){if(n.includePrerelease)return!0;e=sU}let i=new Set,a,s;for(let f of t)f.operator===">"||f.operator===">="?a=uU(a,f,n):f.operator==="<"||f.operator==="<="?s=lU(s,f,n):i.add(f.semver);if(i.size>1)return null;let o;if(a&&s){if(o=rE(a.semver,s.semver,n),o>0)return null;if(o===0&&(a.operator!==">="||s.operator!=="<="))return null}for(let f of i){if(a&&!Ci(f,String(a),n)||s&&!Ci(f,String(s),n))return null;for(let S of e)if(!Ci(f,String(S),n))return!1;return!0}let r,u,l,c,p=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1,_=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1;p&&p.prerelease.length===1&&s.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(c=c||f.operator===">"||f.operator===">=",l=l||f.operator==="<"||f.operator==="<=",a){if(_&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===_.major&&f.semver.minor===_.minor&&f.semver.patch===_.patch&&(_=!1),f.operator===">"||f.operator===">="){if(r=uU(a,f,n),r===f&&r!==a)return!1}else if(a.operator===">="&&!Ci(a.semver,String(f),n))return!1}if(s){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(u=lU(s,f,n),u===f&&u!==s)return!1}else if(s.operator==="<="&&!Ci(s.semver,String(f),n))return!1}if(!f.operator&&(s||a)&&o!==0)return!1}return!(a&&l&&!s&&o!==0||s&&c&&!a&&o!==0||_||p)},uU=(t,e,n)=>{if(!t)return e;let i=rE(t.semver,e.semver,n);return i>0?t:i<0||e.operator===">"&&t.operator===">="?e:t},lU=(t,e,n)=>{if(!t)return e;let i=rE(t.semver,e.semver,n);return i<0?t:i>0||e.operator==="<"&&t.operator==="<="?e:t};cU.exports=x9});var _U=h((gpe,EU)=>{"use strict";var nE=Jn(),pU=Pi(),I9=Me(),dU=Fd(),C9=qr(),w9=GC(),U9=HC(),D9=qC(),V9=KC(),B9=zC(),G9=JC(),k9=ZC(),H9=tw(),F9=tt(),Y9=iw(),q9=sw(),j9=Sl(),$9=fw(),K9=dw(),W9=xi(),z9=hl(),X9=qd(),J9=jd(),Q9=Tl(),Z9=vl(),e7=$d(),t7=Aw(),r7=Mi(),n7=rt(),o7=Ii(),i7=Vw(),a7=Gw(),s7=Hw(),u7=qw(),l7=$w(),c7=Al(),f7=Qw(),p7=eU(),d7=nU(),E7=iU(),_7=fU();EU.exports={parse:C9,valid:w9,clean:U9,inc:D9,diff:V9,major:B9,minor:G9,patch:k9,prerelease:H9,compare:F9,rcompare:Y9,compareLoose:q9,compareBuild:j9,sort:$9,rsort:K9,gt:W9,lt:z9,eq:X9,neq:J9,gte:Q9,lte:Z9,cmp:e7,coerce:t7,Comparator:r7,Range:n7,satisfies:o7,toComparators:i7,maxSatisfying:a7,minSatisfying:s7,minVersion:u7,validRange:l7,outside:c7,gtr:f7,ltr:p7,intersects:d7,simplifyRange:E7,subset:_7,SemVer:I9,re:nE.re,src:nE.src,tokens:nE.t,SEMVER_SPEC_VERSION:pU.SEMVER_SPEC_VERSION,RELEASE_TYPES:pU.RELEASE_TYPES,compareIdentifiers:dU.compareIdentifiers,rcompareIdentifiers:dU.rcompareIdentifiers}});function h7(t){var e=decodeURIComponent(t).split(":");if(e.length!==4)return null;var n=hU(e,4),i=n[0],a=n[1],s=n[3],o=i.padStart(32,"0"),r=a.padStart(16,"0"),u=S7.test(s)?parseInt(s,16)&1:1;return{traceId:o,spanId:r,isRemote:!0,traceFlags:u}}var SU,hU,oE,Ol,TU,S7,vU=m(()=>{"use strict";b();K();SU=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},hU=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},oE="uber-trace-id",Ol="uberctx",TU=function(){function t(e){typeof e=="string"?(this._jaegerTraceHeader=e,this._jaegerBaggageHeaderPrefix=Ol):(this._jaegerTraceHeader=e?.customTraceHeader||oE,this._jaegerBaggageHeaderPrefix=e?.customBaggageHeaderPrefix||Ol)}return t.prototype.inject=function(e,n,i){var a,s,o=X.getSpanContext(e),r=it.getBaggage(e);if(o&&xe(e)===!1){var u="0"+(o.traceFlags||J.NONE).toString(16);i.set(n,this._jaegerTraceHeader,o.traceId+":"+o.spanId+":0:"+u)}if(r)try{for(var l=SU(r.getAllEntries()),c=l.next();!c.done;c=l.next()){var p=hU(c.value,2),_=p[0],f=p[1];i.set(n,this._jaegerBaggageHeaderPrefix+"-"+_,encodeURIComponent(f.value))}}catch(S){a={error:S}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}},t.prototype.extract=function(e,n,i){var a,s,o=this,r,u=i.get(n,this._jaegerTraceHeader),l=Array.isArray(u)?u[0]:u,c=i.keys(n).filter(function(A){return A.startsWith(o._jaegerBaggageHeaderPrefix+"-")}).map(function(A){var O=i.get(n,A);return{key:A.substring(o._jaegerBaggageHeaderPrefix.length+1),value:Array.isArray(O)?O[0]:O}}),p=e;if(typeof l=="string"){var _=h7(l);_&&(p=X.setSpanContext(p,_))}if(c.length===0)return p;var f=(r=it.getBaggage(e))!==null&&r!==void 0?r:it.createBaggage();try{for(var S=SU(c),v=S.next();!v.done;v=S.next()){var T=v.value;T.value!==void 0&&(f=f.setEntry(T.key,{value:decodeURIComponent(T.value)}))}}catch(A){a={error:A}}finally{try{v&&!v.done&&(s=S.return)&&s.call(S)}finally{if(a)throw a.error}}return p=it.setBaggage(p,f),p},t.prototype.fields=function(){return[this._jaegerTraceHeader]},t}(),S7=/^[0-9a-f]{1,2}$/i});var mU={};nt(mU,{JaegerPropagator:()=>TU,UBER_BAGGAGE_HEADER_PREFIX:()=>Ol,UBER_TRACE_ID_HEADER:()=>oE});var yU=m(()=>{"use strict";vU()});var gU=h(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.NodeTracerProvider=void 0;var AU=jI(),gl=(eC(),Y(ZI)),OU=(Ri(),Y(Gd)),T7=_U(),v7=(yU(),Y(mU)),Nl=class extends OU.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){if(e.contextManager===void 0){let n=T7.gte(process.version,"14.8.0")?AU.AsyncLocalStorageContextManager:AU.AsyncHooksContextManager;e.contextManager=new n,e.contextManager.enable()}super.register(e)}};Rl.NodeTracerProvider=Nl;Nl._registeredPropagators=new Map([...OU.BasicTracerProvider._registeredPropagators,["b3",()=>new gl.B3Propagator({injectEncoding:gl.B3InjectEncoding.SINGLE_HEADER})],["b3multi",()=>new gl.B3Propagator({injectEncoding:gl.B3InjectEncoding.MULTI_HEADER})],["jaeger",()=>new v7.JaegerPropagator]])});var NU=h(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.Tracer=q.TraceIdRatioBasedSampler=q.Span=q.SimpleSpanProcessor=q.SamplingDecision=q.RandomIdGenerator=q.ParentBasedSampler=q.NoopSpanProcessor=q.InMemorySpanExporter=q.ForceFlushState=q.ConsoleSpanExporter=q.BatchSpanProcessor=q.BasicTracerProvider=q.AlwaysOnSampler=q.AlwaysOffSampler=q.NodeTracerProvider=void 0;var m7=gU();Object.defineProperty(q,"NodeTracerProvider",{enumerable:!0,get:function(){return m7.NodeTracerProvider}});var ke=(Ri(),Y(Gd));Object.defineProperty(q,"AlwaysOffSampler",{enumerable:!0,get:function(){return ke.AlwaysOffSampler}});Object.defineProperty(q,"AlwaysOnSampler",{enumerable:!0,get:function(){return ke.AlwaysOnSampler}});Object.defineProperty(q,"BasicTracerProvider",{enumerable:!0,get:function(){return ke.BasicTracerProvider}});Object.defineProperty(q,"BatchSpanProcessor",{enumerable:!0,get:function(){return ke.BatchSpanProcessor}});Object.defineProperty(q,"ConsoleSpanExporter",{enumerable:!0,get:function(){return ke.ConsoleSpanExporter}});Object.defineProperty(q,"ForceFlushState",{enumerable:!0,get:function(){return ke.ForceFlushState}});Object.defineProperty(q,"InMemorySpanExporter",{enumerable:!0,get:function(){return ke.InMemorySpanExporter}});Object.defineProperty(q,"NoopSpanProcessor",{enumerable:!0,get:function(){return ke.NoopSpanProcessor}});Object.defineProperty(q,"ParentBasedSampler",{enumerable:!0,get:function(){return ke.ParentBasedSampler}});Object.defineProperty(q,"RandomIdGenerator",{enumerable:!0,get:function(){return ke.RandomIdGenerator}});Object.defineProperty(q,"SamplingDecision",{enumerable:!0,get:function(){return ke.SamplingDecision}});Object.defineProperty(q,"SimpleSpanProcessor",{enumerable:!0,get:function(){return ke.SimpleSpanProcessor}});Object.defineProperty(q,"Span",{enumerable:!0,get:function(){return ke.Span}});Object.defineProperty(q,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return ke.TraceIdRatioBasedSampler}});Object.defineProperty(q,"Tracer",{enumerable:!0,get:function(){return ke.Tracer}})});var RU=h(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.OTLPTraceExporter=void 0;var y7=hd(),A7=(Gu(),Y(fd)),iE=class extends y7.OTLPGRPCExporterNodeBase{constructor(e={}){super(e,A7.ProtobufTraceSerializer,"TraceExportService","/opentelemetry.proto.collector.trace.v1.TraceService/Export","TRACES")}};Pl.OTLPTraceExporter=iE});var PU=h(jr=>{"use strict";var O7=jr&&jr.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),g7=jr&&jr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&O7(e,t,n)};Object.defineProperty(jr,"__esModule",{value:!0});g7(RU(),jr)});var CU=Fe($l(),1),wU=Fe(eo(),1);import R7 from"path";function Y1(t){return typeof t=="object"&&t!==null}function q1(t){return Y1(t)&&typeof t.length=="number"}function j1(t){return Array.isArray(t)?t:t===void 0?[]:q1(t)||t instanceof Set?Array.from(t):[t]}var It=j1;function $1(t,e,...n){let i=[];if(!Array.isArray(t))throw new Error("Input must be an array");for(let[a,s]of t.entries()){let o=[];n.forEach(r=>{typeof r=="function"?o=o.concat(r(s)):o.push(r)}),e(s)&&i.push({index:a,replaceWithValue:o})}for(let a of i.reverse()){let s=[a.index,1].concat(a.replaceWithValue);t.splice.apply(t,s)}return t}var $i=$1;var ce={short:/^-([^\d-])$/,long:/^--(\S+)/,combinedShort:/^-[^\d-]{2,}$/,optEquals:/^(--\S+?)=(.*)/},Ki=class extends Array{load(e){if(this.clear(),e&&e!==process.argv)e=It(e);else{e=process.argv.slice(0);let n=process.execArgv.some(z1)?1:2;e.splice(0,n)}e.forEach(n=>this.push(String(n)))}clear(){this.length=0}expandOptionEqualsNotation(){if(this.some(e=>ce.optEquals.test(e))){let e=[];this.forEach(n=>{let i=n.match(ce.optEquals);i?e.push(i[1],i[2]):e.push(n)}),this.clear(),this.load(e)}}expandGetoptNotation(){this.hasCombinedShortOptions()&&$i(this,ce.combinedShort,K1)}hasCombinedShortOptions(){return this.some(e=>ce.combinedShort.test(e))}static from(e){let n=new this;return n.load(e),n}};function K1(t){return t=t.slice(1),t.split("").map(e=>"-"+e)}function Wi(t){return ce.optEquals.test(t)}function uo(t){return(ce.short.test(t)||ce.long.test(t))&&!ce.optEquals.test(t)}function W1(t){return ce.long.test(t)&&!Wi(t)}function Kl(t){return ce.short.test(t)?t.match(ce.short)[1]:W1(t)?t.match(ce.long)[1]:Wi(t)?t.match(ce.optEquals)[1].replace(/^--/,""):null}function ES(t){return!(uo(t)||ce.combinedShort.test(t)||ce.optEquals.test(t))}function z1(t){return["--eval","-e"].indexOf(t)>-1||t.startsWith("--eval=")}function X1(t){return!isNaN(parseFloat(t))}function J1(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Q1(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function Z1(t){return SS(t)&&typeof t.length=="number"}function SS(t){return typeof t=="object"&&t!==null}function lo(t){return typeof t<"u"}function eV(t){return!lo(t)}function hS(t){return t===null}function tV(t){return lo(t)&&!hS(t)&&!Number.isNaN(t)}function rV(t){return typeof t=="function"?/^class /.test(Function.prototype.toString.call(t)):!1}function nV(t){if(t===null)return!0;switch(typeof t){case"string":case"number":case"symbol":case"undefined":case"boolean":return!0;default:return!1}}function oV(t){if(t){let e=lo(Promise)&&t instanceof Promise,n=t.then&&typeof t.then=="function";return!!(e||n)}else return!1}function iV(t){return t===null||!lo(t)?!1:typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function"}function aV(t){return typeof t=="string"}function sV(t){return typeof t=="function"}function uV(t){return typeof t=="function"&&t.constructor.name==="AsyncFunction"}var Se={isNumber:X1,isFiniteNumber:J1,isPlainObject:Q1,isArrayLike:Z1,isObject:SS,isDefined:lo,isUndefined:eV,isNull:hS,isDefinedValue:tV,isClass:rV,isPrimitive:nV,isPromise:oV,isIterable:iV,isString:aV,isFunction:sV,isAsyncFunction:uV};var Wl=class{constructor(e){this.name=e.name,this.type=e.type||String,this.alias=e.alias,this.multiple=e.multiple,this.lazyMultiple=e.lazyMultiple,this.defaultOption=e.defaultOption,this.defaultValue=e.defaultValue,this.group=e.group;for(let n in e)this[n]||(this[n]=e[n])}isBoolean(){return this.type===Boolean||Se.isFunction(this.type)&&this.type.name==="Boolean"}isMultiple(){return this.multiple||this.lazyMultiple}static create(e){return new this(e)}},co=Wl;var zl=class extends Array{validate(e){this.some(_=>!_.name)&&Ct("INVALID_DEFINITIONS","Invalid option definitions: the `name` property is required on each definition"),this.some(_=>_.type&&typeof _.type!="function")&&Ct("INVALID_DEFINITIONS","Invalid option definitions: the `type` property must be a setter fuction (default: `Boolean`)");let a;this.some(_=>(a=_,Se.isDefined(_.alias)&&Se.isNumber(_.alias)))&&Ct("INVALID_DEFINITIONS","Invalid option definition: to avoid ambiguity an alias cannot be numeric [--"+a.name+" alias is -"+a.alias+"]"),this.some(_=>(a=_,Se.isDefined(_.alias)&&_.alias.length!==1))&&Ct("INVALID_DEFINITIONS","Invalid option definition: an alias must be a single character"),this.some(_=>(a=_,_.alias==="-"))&&Ct("INVALID_DEFINITIONS",'Invalid option definition: an alias cannot be "-"'),vS(this.map(_=>e?_.name.toLowerCase():_.name))&&Ct("INVALID_DEFINITIONS","Two or more option definitions have the same name"),vS(this.map(_=>e&&Se.isDefined(_.alias)?_.alias.toLowerCase():_.alias))&&Ct("INVALID_DEFINITIONS","Two or more option definitions have the same alias"),this.filter(_=>_.defaultOption===!0).length>1&&Ct("INVALID_DEFINITIONS","Only one option definition can be the defaultOption"),this.some(_=>(a=_,_.isBoolean()&&_.defaultOption))&&Ct("INVALID_DEFINITIONS",`A boolean option ["${a.name}"] can not also be the defaultOption.`)}get(e,n){if(uo(e))if(ce.short.test(e)){let i=Kl(e);if(n){let a=i.toLowerCase();return this.find(s=>Se.isDefined(s.alias)&&s.alias.toLowerCase()===a)}else return this.find(a=>a.alias===i)}else{let i=Kl(e);if(n){let a=i.toLowerCase();return this.find(s=>s.name.toLowerCase()===a)}else return this.find(a=>a.name===i)}else return this.find(i=>i.name===e)}getDefault(){return this.find(e=>e.defaultOption===!0)}isGrouped(){return this.some(e=>e.group)}whereGrouped(){return this.filter(TS)}whereNotGrouped(){return this.filter(e=>!TS(e))}whereDefaultValueSet(){return this.filter(e=>Se.isDefined(e.defaultValue))}static from(e,n){if(e instanceof this)return e;let i=super.from(It(e),a=>co.create(a));return i.validate(n),i}};function Ct(t,e){let n=new Error(e);throw n.name=t,n}function TS(t){return It(t.group).some(e=>e)}function vS(t){let e={};for(let n=0;n<t.length;n++){let i=t[n];if(e[i])return!0;Se.isDefined(i)&&(e[i]=!0)}}var Zr=zl;var Xl=class{constructor(e,n){this.options=Object.assign({},n),this.definitions=Zr.from(e,this.options.caseInsensitive),this.argv=Ki.from(this.options.argv),this.argv.hasCombinedShortOptions()&&$i(this.argv,ce.combinedShort.test.bind(ce.combinedShort),i=>(i=i.slice(1),i.split("").map(a=>({origArg:`-${i}`,arg:"-"+a}))))}*[Symbol.iterator](){let e=this.definitions,n,i,a,s,o=!1,r=!1,u;for(let l of this.argv){if(Se.isPlainObject(l)&&(u=l.origArg,l=l.arg),r&&this.options.stopAtFirstUnknown){yield{event:"unknown_value",arg:l,name:"_unknown",value:void 0};continue}if(uo(l))n=e.get(l,this.options.caseInsensitive),i=void 0,n?(i=n.isBoolean()?!0:null,s="set"):s="unknown_option";else if(Wi(l)){let p=l.match(ce.optEquals);n=e.get(p[1],this.options.caseInsensitive),n?n.isBoolean()?(yield{event:"unknown_value",arg:l,name:"_unknown",value:i,def:n},s="set",i=!0):(s="set",i=p[2]):s="unknown_option"}else ES(l)&&(n?(i=l,s="set"):(n=this.definitions.getDefault(),n&&!o?(i=l,s="set"):(s="unknown_value",n=void 0)));a=n?n.name:"_unknown";let c={event:s,arg:l,name:a,value:i,def:n};u&&(c.subArg=l,c.arg=u),yield c,a==="_unknown"&&(r=!0),n&&n.defaultOption&&!n.isMultiple()&&s==="set"&&(o=!0),n&&n.isBoolean()&&(n=void 0),n&&!n.multiple&&Se.isDefined(i)&&i!==null&&(n=void 0),i=void 0,s=void 0,a=void 0,u=void 0}}},mS=Xl;var yr=new WeakMap,zi=class{constructor(e){this.definition=new co(e),this.state=null,this.resetToDefault()}get(){return yr.get(this)}set(e){this._set(e,"set")}_set(e,n){let i=this.definition;if(i.isMultiple()){if(e!=null){let a=this.get();this.state==="default"&&(a.length=0),a.push(i.type(e)),this.state=n}}else if(!i.isMultiple()&&this.state==="set"){let a=new Error(`Singular option already set [${this.definition.name}=${this.get()}]`);throw a.name="ALREADY_SET",a.value=e,a.optionName=i.name,a}else e==null?yr.set(this,e):(yr.set(this,i.type(e)),this.state=n)}resetToDefault(){Se.isDefined(this.definition.defaultValue)?this.definition.isMultiple()?yr.set(this,It(this.definition.defaultValue).slice()):yr.set(this,this.definition.defaultValue):this.definition.isMultiple()?yr.set(this,[]):yr.set(this,null),this.state="default"}static create(e){return e=new co(e),e.isBoolean()?Jl.create(e):new this(e)}},Jl=class extends zi{set(e){super.set(!0)}static create(e){return new this(e)}},fo=zi;var yS=Fe(cE(),1),Ql=class extends Map{constructor(e){super(),this.definitions=Zr.from(e),this.set("_unknown",fo.create({name:"_unknown",multiple:!0}));for(let n of this.definitions.whereDefaultValueSet())this.set(n.name,fo.create(n))}toObject(e){e=e||{};let n={};for(let i of this){let a=e.camelCase&&i[0]!=="_unknown"?(0,yS.default)(i[0]):i[0],s=i[1];a==="_unknown"&&!s.get().length||(n[a]=s.get())}return e.skipUnknown&&delete n._unknown,n}},Xi=Ql;var Zl=Fe(cE(),1),ec=class extends Xi{toObject(e){let n=super.toObject({skipUnknown:e.skipUnknown}),i=super.toObject(e),a=i._unknown;delete i._unknown;let s={_all:i};return a&&a.length&&(s._unknown=a),this.definitions.whereGrouped().forEach(o=>{let r=e.camelCase?(0,Zl.default)(o.name):o.name,u=n[o.name];for(let l of It(o.group))s[l]=s[l]||{},Se.isDefined(u)&&(s[l][r]=u)}),this.definitions.whereNotGrouped().forEach(o=>{let r=e.camelCase?(0,Zl.default)(o.name):o.name,u=n[o.name];Se.isDefined(u)&&(s._none||(s._none={}),s._none[r]=u)}),s}},AS=ec;function lV(t,e){e=e||{},e.stopAtFirstUnknown&&(e.partial=!0),t=Zr.from(t,e.caseInsensitive);let n=new mS(t,{argv:e.argv,stopAtFirstUnknown:e.stopAtFirstUnknown,caseInsensitive:e.caseInsensitive}),i=t.isGrouped()?AS:Xi,a=new i(t);for(let s of n){let o=s.subArg||s.arg;if(!e.partial){if(s.event==="unknown_value"){let u=new Error(`Unknown value: ${o}`);throw u.name="UNKNOWN_VALUE",u.value=o,u}else if(s.event==="unknown_option"){let u=new Error(`Unknown option: ${o}`);throw u.name="UNKNOWN_OPTION",u.optionName=o,u}}let r;a.has(s.name)?r=a.get(s.name):(r=fo.create(s.def),a.set(s.name,r)),s.name==="_unknown"?r.set(o):r.set(s.value)}return a.toObject({skipUnknown:!e.partial,camelCase:e.camelCase})}var OS=lV;var UU=Fe(kU(),1),DU=Fe(HU(),1),VU=Fe(JO(),1);import P7 from"http";import{Session as b7}from"node:inspector/promises";import{createRequire as fY}from"module";var lc=Fe($l(),1);import oa from"path";import uc from"os";var pY=fY(import.meta.url);function QO(t){let e=pY.resolve(t),n=oa.dirname(e);for(;!lc.default.existsSync(oa.join(n,"package.json"));)n=oa.dirname(n);let i=lc.default.readFileSync(oa.join(n,"package.json"),"utf-8");return JSON.parse(i)}var ia=class{constructor(e){this.instance=e;let n=QO("@sentio/sdk"),i=QO("@sentio/runtime");console.log("Runtime version:",i.version,"SDK version:",n.version);let a=n.version.split(".");this.sdkMinorVersion=parseInt(a[1])}instance;sdkMinorVersion;async getConfig(e,n){let i=await this.instance.getConfig(e,n);if(i.executionConfig=uE.fromPartial(Ll.execution),i.contractConfigs)for(let a of i.contractConfigs)a.aptosCallConfigs&&(a.moveCallConfigs=a.aptosCallConfigs),a.aptosEventConfigs&&(a.moveEventConfigs=a.aptosEventConfigs);return i}async start(e,n){return await this.instance.start(e,n)}async stop(e,n){return await this.instance.stop(e,n)}async processBindings(e,n){Ll.execution.sequential&&(e.bindings=e.bindings.sort(dY));for(let i of e.bindings)this.adjustDataBinding(i);try{let i=await this.instance.processBindings(e,n);return this.adjustResult(i.result),!i.configUpdated&&i.result?.states?.configUpdated&&(i.configUpdated=i.result?.states?.configUpdated),i}catch(i){throw this.sdkMinorVersion<=16&&(i.code===uc.constants.errno.ECONNRESET||i.code===uc.constants.errno.ECONNREFUSED||i.code===uc.constants.errno.ECONNABORTED)&&process.exit(1),i}}async*adjustBindingsStream(e){for await(let n of e)this.adjustDataBinding(n.binding),yield n}async*processBindingsStream(e,n){yield*this.instance.processBindingsStream(this.adjustBindingsStream(e),n)}async*preprocessBindingsStream(e,n){yield*this.instance.preprocessBindingsStream(this.adjustBindingsStream(e),n)}adjustResult(e){}adjustDataBinding(e){if(e)switch(e.handlerType){case 6:e.data?.aptEvent&&e.data.aptEvent.rawTransaction&&!e.data.aptEvent.transaction&&(e.data.aptEvent.transaction=JSON.parse(e.data.aptEvent.rawTransaction));break;case 7:e.data?.aptCall&&e.data.aptCall.rawTransaction&&!e.data.aptCall.transaction&&(e.data.aptCall.transaction=JSON.parse(e.data.aptCall.rawTransaction));break;case 8:e.data?.aptResource?.resources&&e.data.aptResource.rawResources&&e.data.aptResource.rawResources.length>0&&(e.data.aptResource.resources=e.data.aptResource.rawResources.map(n=>JSON.parse(n)));break;case 0:e.data?.ethBlock&&e.data.raw.length===0&&(e.data.raw=new TextEncoder().encode(JSON.stringify(e.data.ethBlock.block)));break;default:break}}};function dY(t,e){let n=ZO(t)||new Date(0),i=ZO(e)||new Date(0),a=n.getTime()-i.getTime();return a!==0?a:eg(t)-eg(e)}function ZO(t){return t.data?.ethLog?.timestamp||t.data?.ethTransaction?.timestamp||(t.data?.ethBlock?.block?.timestamp?new Date(Number(t.data.ethBlock.block.timestamp)*1e3):void 0)||t.data?.ethTrace?.timestamp||(t.data?.aptCall?.transaction?new Date(Number(t.data.aptCall.transaction.timestamp)/1e3):void 0)||(t.data?.aptEvent?.transaction?new Date(Number(t.data.aptEvent.transaction.timestamp)/1e3):void 0)||(t.data?.aptResource?.timestampMicros?new Date(Number(t.data.aptResource.timestampMicros)/1e3):void 0)||t.data?.fuelCall?.timestamp}function eg(t){return t.data?.ethLog?.log?.logIndex||t.data?.ethTransaction?.transaction?.transactionIndex||t.data?.ethBlock?.block?.number||t.data?.ethTrace?.trace?.transactionPosition}import("node:process").then(t=>t.stdout.write(""));var At=Fe(E0(),1);function _0(t){let e=[],n=JSON.stringify(t,function(i,a){if(typeof a=="object"&&a!==null){if(e.indexOf(a)!==-1)return;e.push(a)}return a});return e=[],n}function S0(t,e){let n={transform:a=>{let s=[];typeof a.message=="object"?s.push(_0(a.message)):s.push(a.message);let o=a[Symbol.for("splat")];if(o)for(let r in o){let u=o[r];typeof u=="object"?s.push(_0(u)):s.push(u)}return a.message=s.join(" "),a}},i=(0,At.createLogger)({format:At.format.combine(At.format.timestamp({format:"YYYY-MM-DDTHH:mm:ss.SSSZ"}),n,At.format.errors({stack:!0}),t?At.format.json():At.format.simple()),level:e?"debug":"info",transports:[new At.transports.Console]});console.log=(...a)=>i.info.call(i,...a),console.info=(...a)=>i.info.call(i,...a),console.warn=(...a)=>i.warn.call(i,...a),console.error=(...a)=>i.error.call(i,...a),console.debug=(...a)=>i.debug.call(i,...a)}import("node:process").then(t=>t.stdout.write(""));Hs();Ln();var bU=Fe(BI(),1),xU=Fe(FI(),1),aE=Fe(NU(),1),MU=Fe(PU(),1);Ri();b();async function LU(t){t&&g.setLogger(new EE,ot.DEBUG);let e=await ks.detect(),n=new Ei({resource:e,readers:[new nu({exporter:new bU.OTLPMetricExporter}),new xU.PrometheusExporter({port:4041})]}),i=new aE.NodeTracerProvider({resource:e}),a=new MU.OTLPTraceExporter,s=new hr(a);i.addSpanProcessor(s),Ui.setGlobalMeterProvider(n),X.setGlobalTracerProvider(i),["SIGINT","SIGTERM"].forEach(o=>{process.on(o,()=>N7())}),Ui.getMeter("processor").createGauge("up").record(1)}async function N7(){let t=X.getTracerProvider();if(t instanceof hE){let n=t.getDelegate();n instanceof aE.NodeTracerProvider&&n.shutdown().catch(console.error)}let e=Ui.getMeterProvider();e instanceof Ei&&e.shutdown().catch(console.error)}import("node:process").then(t=>t.stdout.write(""));var bl=class{constructor(e){this.loader=e}async listen(e){let n=xl.INSTANCE;await this.loader(),await n.configure(sE.create()),console.log("Starting Action Server at:",e),await n.startServer(e)}forceShutdown(){xl.INSTANCE.shutdown()}};import("node:process").then(t=>t.stdout.write(""));var x7=[{name:"target",type:String,defaultOption:!0},{name:"port",alias:"p",type:String,defaultValue:"4000"},{name:"concurrency",type:Number,defaultValue:4},{name:"batch-count",type:Number,defaultValue:1},{name:"chains-config",alias:"c",type:String,defaultValue:"chains-config.json"},{name:"chainquery-server",type:String,defaultValue:""},{name:"pricefeed-server",type:String,defaultValue:""},{name:"log-format",type:String,defaultValue:"console"},{name:"debug",type:Boolean,defaultValue:!1},{name:"start-action-server",type:Boolean,defaultValue:!1}],He=OS(x7,{partial:!0}),M7=process.env.LOG_LEVEL?.toUpperCase();S0(He["log-format"]==="json",M7==="debug"?!0:He.debug);console.debug("Starting with",He.target);await LU(He.debug);Error.stackTraceLimit=20;var L7=R7.resolve(He["chains-config"]),I7=CU.default.readJsonSync(L7),C7=process.env.OVERRIDE_CONCURRENCY?parseInt(process.env.OVERRIDE_CONCURRENCY):void 0,w7=process.env.OVERRIDE_BATCH_COUNT?parseInt(process.env.OVERRIDE_BATCH_COUNT):void 0;Tr.INSTANCE.concurrency=C7??He.concurrency;Tr.INSTANCE.batchCount=w7??He["batch-count"];Tr.INSTANCE.chainQueryAPI=He["chainquery-server"];Tr.INSTANCE.priceFeedAPI=He["pricefeed-server"];for(let[t,e]of Object.entries(I7)){let n=e;if(n.ChainServer)Tr.INSTANCE.chainServer.set(t,n.ChainServer);else{let i=n.Https?.[0];i?Tr.INSTANCE.chainServer.set(t,i):console.error("not valid config for chain",t)}}console.debug("Starting Server",He);var $r,Zn,IU=async()=>{let t=await import(He.target);return console.debug("Module loaded",t),t};if(He["start-action-server"])$r=new bl(IU),$r.listen(He.port);else{$r=(0,UU.createServer)({"grpc.max_send_message_length":384*1024*1024,"grpc.max_receive_message_length":384*1024*1024,"grpc.default_compression_algorithm":wU.compressionAlgorithms.gzip}).use((0,VU.openTelemetryServerMiddleware)()).use(DU.errorDetailsServerMiddleware),Zn=new mE(IU,$r.shutdown);let t=new ia(Zn);$r.add(lE,t),$r.listen("0.0.0.0:"+He.port),console.log("Processor Server Started at:",He.port)}var BU=4040,U7=P7.createServer(async function(t,e){if(t.url){let n=new URL(t.url,`http://${t.headers.host}`),i=n.searchParams;switch(n.pathname){case"/profile":{try{let a=parseInt(i.get("t")||"1000",10)||1e3,s=new b7;s.connect(),await s.post("Profiler.enable"),await s.post("Profiler.start"),await new Promise(r=>setTimeout(r,a));let{profile:o}=await s.post("Profiler.stop");e.writeHead(200,{"Content-Type":"application/json"}),e.write(JSON.stringify(o)),s.disconnect()}catch{e.writeHead(500)}break}default:e.writeHead(404)}}else e.writeHead(404);e.end()}).listen(BU);console.log("Metric Server Started at:",BU);process.on("SIGINT",function(){D7(0)}).on("uncaughtException",t=>{console.error("Uncaught Exception, please checking if await is properly used",t),Zn&&(Zn.unhandled=t)}).on("unhandledRejection",(t,e)=>{t?.message.startsWith('invalid ENS name (disallowed character: "*"')||(console.error("Unhandled Rejection, please checking if await is properly",t),Zn&&(Zn.unhandled=t))});function D7(t){$r?.forceShutdown(),console.log("RPC server shut down"),U7.close(function(){console.log("Http server shut down"),process.exit(t)})}import("node:process").then(t=>t.stdout.write(""));
|
60
60
|
/*! Bundled license information:
|
61
61
|
|
62
62
|
safe-buffer/index.js:
|