dd-trace
Version:
Datadog APM tracing client for JavaScript
1 lines • 116 kB
JavaScript
(()=>{var e={"./protobufjs/src/util sync recursive"(e){function webpackEmptyContext(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./protobufjs/src/util sync recursive",e.exports=webpackEmptyContext},fs(e){"use strict";e.exports=require("fs")},"./long/umd/index.js"(e,t){!function(r,i){function preferDefault(e){return e.default||e}"function"==typeof define&&define.amd?define([],function(){var e={};return i(e),preferDefault(e)}):(i(t),e.exports=preferDefault(t))}("u">typeof globalThis?globalThis:"u">typeof self&&self,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function Long(e,t,r){this.low=0|e,this.high=0|t,this.unsigned=!!r}function isLong(e){return!0===(e&&e.__isLong__)}function ctz32(e){var t=Math.clz32(e&-e);return e?31-t:t}Long.prototype.__isLong__,Object.defineProperty(Long.prototype,"__isLong__",{value:!0}),Long.isLong=isLong;var r={},i={};function fromInt(e,t){var o,s,n;if(t)return(e>>>=0,(n=0<=e&&e<256)&&(s=i[e]))?s:(o=fromBits(e,0,!0),n&&(i[e]=o),o);return(e|=0,(n=-128<=e&&e<128)&&(s=r[e]))?s:(o=fromBits(e,e<0?-1:0,!1),n&&(r[e]=o),o)}function fromNumber(e,t){if(isNaN(e))return t?l:f;if(t){if(e<0)return l;if(e>=n)return m}else{if(e<=-a)return y;if(e+1>=a)return d}return e<0?fromNumber(-e,t).neg():fromBits(e%s|0,e/s|0,t)}function fromBits(e,t,r){return new Long(e,t,r)}Long.fromInt=fromInt,Long.fromNumber=fromNumber,Long.fromBits=fromBits;var o=Math.pow;function fromString(e,t,r){if(0===e.length)throw Error("empty string");if("number"==typeof t?(r=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?l:f;if((r=r||10)<2||36<r)throw RangeError("radix");if((i=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===i)return fromString(e.substring(1),t,r).neg();for(var i,s=fromNumber(o(r,8)),n=f,a=0;a<e.length;a+=8){var u=Math.min(8,e.length-a),p=parseInt(e.substring(a,a+u),r);if(u<8){var c=fromNumber(o(r,u));n=n.mul(c).add(fromNumber(p))}else n=(n=n.mul(s)).add(fromNumber(p))}return n.unsigned=t,n}function fromValue(e,t){return"number"==typeof e?fromNumber(e,t):"string"==typeof e?fromString(e,t):fromBits(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}Long.fromString=fromString,Long.fromValue=fromValue;var s=0x100000000,n=0xffffffffffffffff,a=0x8000000000000000,u=fromInt(0x1000000),f=fromInt(0);Long.ZERO=f;var l=fromInt(0,!0);Long.UZERO=l;var p=fromInt(1);Long.ONE=p;var c=fromInt(1,!0);Long.UONE=c;var h=fromInt(-1);Long.NEG_ONE=h;var d=fromBits(-1,0x7fffffff,!1);Long.MAX_VALUE=d;var m=fromBits(-1,-1,!0);Long.MAX_UNSIGNED_VALUE=m;var y=fromBits(0,-0x80000000,!1);Long.MIN_VALUE=y;var g=Long.prototype;g.toInt=function(){return this.unsigned?this.low>>>0:this.low},g.toNumber=function(){return this.unsigned?(this.high>>>0)*s+(this.low>>>0):this.high*s+(this.low>>>0)},g.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())if(!this.eq(y))return"-"+this.neg().toString(e);else{var t=fromNumber(e),r=this.div(t),i=r.mul(t).sub(this);return r.toString(e)+i.toInt().toString(e)}for(var s=fromNumber(o(e,6),this.unsigned),n=this,a="";;){var u=n.div(s),f=(n.sub(u.mul(s)).toInt()>>>0).toString(e);if((n=u).isZero())return f+a;for(;f.length<6;)f="0"+f;a=""+f+a}},g.getHighBits=function(){return this.high},g.getHighBitsUnsigned=function(){return this.high>>>0},g.getLowBits=function(){return this.low},g.getLowBitsUnsigned=function(){return this.low>>>0},g.getNumBitsAbs=function(){if(this.isNegative())return this.eq(y)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&(e&1<<t)==0;t--);return 0!=this.high?t+33:t+1},g.isSafeInteger=function(){var e=this.high>>21;return!e||!this.unsigned&&-1===e&&(0!==this.low||-2097152!==this.high)},g.isZero=function(){return 0===this.high&&0===this.low},g.eqz=g.isZero,g.isNegative=function(){return!this.unsigned&&this.high<0},g.isPositive=function(){return this.unsigned||this.high>=0},g.isOdd=function(){return(1&this.low)==1},g.isEven=function(){return(1&this.low)==0},g.equals=function(e){return isLong(e)||(e=fromValue(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},g.eq=g.equals,g.notEquals=function(e){return!this.eq(e)},g.neq=g.notEquals,g.ne=g.notEquals,g.lessThan=function(e){return 0>this.comp(e)},g.lt=g.lessThan,g.lessThanOrEqual=function(e){return 0>=this.comp(e)},g.lte=g.lessThanOrEqual,g.le=g.lessThanOrEqual,g.greaterThan=function(e){return this.comp(e)>0},g.gt=g.greaterThan,g.greaterThanOrEqual=function(e){return this.comp(e)>=0},g.gte=g.greaterThanOrEqual,g.ge=g.greaterThanOrEqual,g.compare=function(e){if(isLong(e)||(e=fromValue(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},g.comp=g.compare,g.negate=function(){return!this.unsigned&&this.eq(y)?y:this.not().add(p)},g.neg=g.negate,g.add=function(e){isLong(e)||(e=fromValue(e));var t,r,i=this.high>>>16,o=65535&this.high,s=this.low>>>16,n=65535&this.low,a=e.high>>>16,u=65535&e.high,f=e.low>>>16,l=65535&e.low,p=0,c=0;return t=0+((r=0+(n+l))>>>16),r&=65535,t+=s+f,c+=t>>>16,t&=65535,c+=o+u,p+=c>>>16,c&=65535,p+=i+a,fromBits(t<<16|r,(p&=65535)<<16|c,this.unsigned)},g.subtract=function(e){return isLong(e)||(e=fromValue(e)),this.add(e.neg())},g.sub=g.subtract,g.multiply=function(e){if(this.isZero())return this;if(isLong(e)||(e=fromValue(e)),t)return fromBits(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return this.unsigned?l:f;if(this.eq(y))return e.isOdd()?y:f;if(e.eq(y))return this.isOdd()?y:f;if(this.isNegative())if(e.isNegative())return this.neg().mul(e.neg());else return this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(u)&&e.lt(u))return fromNumber(this.toNumber()*e.toNumber(),this.unsigned);var r,i,o=this.high>>>16,s=65535&this.high,n=this.low>>>16,a=65535&this.low,p=e.high>>>16,c=65535&e.high,h=e.low>>>16,d=65535&e.low,m=0,g=0;return r=0+((i=0+a*d)>>>16),i&=65535,r+=n*d,g+=r>>>16,r&=65535,r+=a*h,g+=r>>>16,r&=65535,g+=s*d,m+=g>>>16,g&=65535,g+=n*h,m+=g>>>16,g&=65535,g+=a*c,m+=g>>>16,g&=65535,m+=o*d+s*h+n*c+a*p,fromBits(r<<16|i,(m&=65535)<<16|g,this.unsigned)},g.mul=g.multiply,g.divide=function(e){if(isLong(e)||(e=fromValue(e)),e.isZero())throw Error("division by zero");if(t){var r,i,s;return this.unsigned||-0x80000000!==this.high||-1!==e.low||-1!==e.high?fromBits((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this}if(this.isZero())return this.unsigned?l:f;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return l;if(e.gt(this.shru(1)))return c;s=l}else{if(this.eq(y))if(e.eq(p)||e.eq(h))return y;else return e.eq(y)?p:(r=this.shr(1).div(e).shl(1)).eq(f)?e.isNegative()?p:h:(i=this.sub(e.mul(r)),s=r.add(i.div(e)));if(e.eq(y))return this.unsigned?l:f;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();s=f}for(i=this;i.gte(e);){for(var n=Math.ceil(Math.log(r=Math.max(1,Math.floor(i.toNumber()/e.toNumber())))/Math.LN2),a=n<=48?1:o(2,n-48),u=fromNumber(r),d=u.mul(e);d.isNegative()||d.gt(i);)r-=a,d=(u=fromNumber(r,this.unsigned)).mul(e);u.isZero()&&(u=p),s=s.add(u),i=i.sub(d)}return s},g.div=g.divide,g.modulo=function(e){return(isLong(e)||(e=fromValue(e)),t)?fromBits((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},g.mod=g.modulo,g.rem=g.modulo,g.not=function(){return fromBits(~this.low,~this.high,this.unsigned)},g.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},g.clz=g.countLeadingZeros,g.countTrailingZeros=function(){return this.low?ctz32(this.low):ctz32(this.high)+32},g.ctz=g.countTrailingZeros,g.and=function(e){return isLong(e)||(e=fromValue(e)),fromBits(this.low&e.low,this.high&e.high,this.unsigned)},g.or=function(e){return isLong(e)||(e=fromValue(e)),fromBits(this.low|e.low,this.high|e.high,this.unsigned)},g.xor=function(e){return isLong(e)||(e=fromValue(e)),fromBits(this.low^e.low,this.high^e.high,this.unsigned)},g.shiftLeft=function(e){return(isLong(e)&&(e=e.toInt()),0==(e&=63))?this:e<32?fromBits(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):fromBits(0,this.low<<e-32,this.unsigned)},g.shl=g.shiftLeft,g.shiftRight=function(e){return(isLong(e)&&(e=e.toInt()),0==(e&=63))?this:e<32?fromBits(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):fromBits(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},g.shr=g.shiftRight,g.shiftRightUnsigned=function(e){return(isLong(e)&&(e=e.toInt()),0==(e&=63))?this:e<32?fromBits(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):32===e?fromBits(this.high,0,this.unsigned):fromBits(this.high>>>e-32,0,this.unsigned)},g.shru=g.shiftRightUnsigned,g.shr_u=g.shiftRightUnsigned,g.rotateLeft=function(e){var t;return(isLong(e)&&(e=e.toInt()),0==(e&=63))?this:32===e?fromBits(this.high,this.low,this.unsigned):e<32?(t=32-e,fromBits(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(e-=32,t=32-e,fromBits(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},g.rotl=g.rotateLeft,g.rotateRight=function(e){var t;return(isLong(e)&&(e=e.toInt()),0==(e&=63))?this:32===e?fromBits(this.high,this.low,this.unsigned):e<32?(t=32-e,fromBits(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(e-=32,t=32-e,fromBits(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},g.rotr=g.rotateRight,g.toSigned=function(){return this.unsigned?fromBits(this.low,this.high,!1):this},g.toUnsigned=function(){return this.unsigned?this:fromBits(this.low,this.high,!0)},g.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},g.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},g.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},Long.fromBytes=function(e,t,r){return r?Long.fromBytesLE(e,t):Long.fromBytesBE(e,t)},Long.fromBytesLE=function(e,t){return new Long(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},Long.fromBytesBE=function(e,t){return new Long(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)},"function"==typeof BigInt&&(Long.fromBigInt=function(e,t){return fromBits(Number(BigInt.asIntN(32,e)),Number(BigInt.asIntN(32,e>>BigInt(32))),t)},Long.fromValue=function(e,t){return"bigint"==typeof e?Long.fromBigInt(e,t):fromValue(e,t)},g.toBigInt=function(){var e=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|e}),e.default=Long})},"./protobufjs/index.js"(e,t,r){"use strict";e.exports=r("./protobufjs/src/index.js")},"./protobufjs/src/common.js"(e){"use strict";e.exports=common;var t,r=/\/|\./;function common(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),common[e]=t}common("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),common("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),common("timestamp",{Timestamp:t}),common("empty",{Empty:{fields:{}}}),common("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),common("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),common("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),common.get=function(e){return common[e]||null}},"./protobufjs/src/converter.js"(e,t,r){"use strict";var i=r("./protobufjs/src/enum.js"),o=r("./protobufjs/src/types.js"),s=r("./protobufjs/src/util.js");function genValuePartial_fromObject(e,t,r,o){var s=!1;if(t.resolvedType)if(t.resolvedType instanceof i){e("switch(d%s){",o);for(var n=t.resolvedType.values,a=Object.keys(n),u=0;u<a.length;++u)n[a[u]]!==t.typeDefault||s||(e("default:")('if(typeof d%s==="number"){m%s=d%s;break}',o,o,o),t.repeated||e("break"),s=!0),e("case%j:",a[u])("case %i:",n[a[u]])("m%s=%j",o,n[a[u]])("break");e("}")}else e('if(typeof d%s!=="object")',o)("throw TypeError(%j)",t.fullName+": object expected")("m%s=types[%i].fromObject(d%s,q+1)",o,r,o);else{var f=!1;switch(t.type){case"double":case"float":e("m%s=Number(d%s)",o,o);break;case"uint32":case"fixed32":e("m%s=d%s>>>0",o,o);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",o,o);break;case"uint64":case"fixed64":f=!0;case"int64":case"sint64":case"sfixed64":e("if(util.Long)")("m%s=util.Long.fromValue(d%s,%j)",o,o,f)('else if(typeof d%s==="string")',o)("m%s=parseInt(d%s,10)",o,o)('else if(typeof d%s==="number")',o)("m%s=d%s",o,o)('else if(typeof d%s==="object")',o)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",o,o,o,f?"true":"");break;case"bytes":e('if(typeof d%s==="string")',o)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",o,o,o)("else if(d%s.length>=0)",o)("m%s=d%s",o,o);break;case"string":e("m%s=String(d%s)",o,o);break;case"bool":e("m%s=Boolean(d%s)",o,o)}}return e}function genValuePartial_toObject(e,t,r,o,s){if(s||(s=o),t.resolvedType)t.resolvedType instanceof i?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",o,r,s,s,r,s,s):e("d%s=types[%i].toObject(m%s,o,q+1)",o,r,s);else{var n=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",o,s,s,s);break;case"uint64":case"fixed64":n=!0;case"int64":case"sint64":case"sfixed64":e('if(typeof BigInt!=="undefined"&&o.longs===BigInt)')('d%s=typeof m%s==="number"?BigInt(m%s):util.Long.fromBits(m%s.low>>>0,m%s.high>>>0,%j).toBigInt()',o,s,s,s,s,n)('else if(typeof m%s==="number")',s)("d%s=o.longs===String?String(m%s):m%s",o,s,s)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",o,s,s,s,n?"true":"",s);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",o,s,s,s,s);break;default:e("d%s=m%s",o,s)}}return e}t.fromObject=function(e){var t=e.fieldsArray,r=s.codegen(["d","q"],e.name+"$fromObject")("if(d instanceof C)")("return d")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")');if(!t.length)return r("return new C");r("var m=new C");for(var n=0;n<t.length;++n){var a=t[n].resolve(),u=s.safeProp(a.name),f=!a.hasPresence&&!a.repeated&&!a.map&&(a.resolvedType instanceof i||void 0!==o.basic[a.type]);a.map?(r("if(d%s){",u)('if(typeof d%s!=="object")',u)("throw TypeError(%j)",a.fullName+": object expected")("m%s={}",u)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",u),r('if(ks[i]==="__proto__")')("util.makeProp(m%s,ks[i])",u),genValuePartial_fromObject(r,a,n,u+"[ks[i]]")("}")("}")):a.repeated?(r("if(d%s){",u)("if(!Array.isArray(d%s))",u)("throw TypeError(%j)",a.fullName+": array expected")("m%s=Array(d%s.length)",u,u)("for(var i=0;i<d%s.length;++i){",u),genValuePartial_fromObject(r,a,n,u+"[i]")("}")("}")):(a.resolvedType instanceof i||r("if(d%s!=null){",u),f&&(a.resolvedType instanceof i?r('if(d%s!==%j&&(typeof d%s!=="string"||types[%i].values[d%s]!==%j)){',u,a.typeDefault,u,n,u,a.typeDefault):"string"===a.type?r('if(typeof d%s!=="string"||d%s.length){',u,u):"bytes"===a.type?r("if(d%s.length){",u):"bool"===a.type?r("if(d%s){",u):void 0!==o.long[a.type]?r('if(typeof d%s==="object"?d%s.low||d%s.high:Number(d%s)!==0){',u,u,u,u):r("if(Number(d%s)!==0){",u)),genValuePartial_fromObject(r,a,n,u),f&&r("}"),a.resolvedType instanceof i||r("}"))}return r("return m")},t.toObject=function(e){var t=e.fieldsArray.slice().sort(s.compareFieldsById);if(!t.length)return s.codegen()("return {}");for(var r=s.codegen(["m","o","q"],e.name+"$toObject")("if(!o)")("o={}")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")')("var d={}"),n=[],a=[],u=[],f=0;f<t.length;++f)t[f].partOf||(t[f].resolve().repeated?n:t[f].map?a:u).push(t[f]);if(n.length){for(r("if(o.arrays||o.defaults){"),f=0;f<n.length;++f)r("d%s=[]",s.safeProp(n[f].name));r("}")}if(a.length){for(r("if(o.objects||o.defaults){"),f=0;f<a.length;++f)r("d%s={}",s.safeProp(a[f].name));r("}")}if(u.length){for(r("if(o.defaults){"),f=0;f<u.length;++f){var l=u[f],p=s.safeProp(l.name);if(l.resolvedType instanceof i)r("d%s=o.enums===String?%j:%j",p,l.resolvedType.valuesById[l.typeDefault],l.typeDefault);else if(l.long)r("if(util.Long){")("var n=new util.Long(%i,%i,%j)",l.typeDefault.low,l.typeDefault.high,l.typeDefault.unsigned)('d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():typeof BigInt!=="undefined"&&o.longs===BigInt?n.toBigInt():n',p)("}else")('d%s=o.longs===String?%j:typeof BigInt!=="undefined"&&o.longs===BigInt?BigInt(%j):%i',p,l.typeDefault.toString(),l.typeDefault.toString(),l.typeDefault.toNumber());else if(l.bytes){var c=Array.prototype.slice.call(l.typeDefault);r("if(o.bytes===String)d%s=%j",p,String.fromCharCode.apply(String,l.typeDefault))("else{")("d%s=%j",p,c)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",p,p)("}")}else r("d%s=%j",p,l.typeDefault)}r("}")}var h=!1;for(f=0;f<t.length;++f){var l=t[f],d=e._fieldsArray.indexOf(l),p=s.safeProp(l.name);if(l.map){h||(h=!0,r("var ks2")),r("if(m%s&&(ks2=Object.keys(m%s)).length){",p,p)("d%s={}",p);var m=void 0!==o.long[l.keyType],y=p+"[ks2[j]]";r("for(var j=0;j<ks2.length;++j){"),m&&r("var k2=util.longFromKey(ks2[j],%j).toString()","uint64"===l.keyType||"fixed64"===l.keyType),r('if(ks2[j]==="__proto__")')("util.makeProp(d%s,ks2[j])",p),genValuePartial_toObject(r,l,d,m?p+"[k2]":y,y)("}")}else l.repeated?(r("if(m%s&&m%s.length){",p,p)("d%s=Array(m%s.length)",p,p)("for(var j=0;j<m%s.length;++j){",p),genValuePartial_toObject(r,l,d,p+"[j]")("}")):(r("if(m%s!=null&&m.hasOwnProperty(%j)){",p,l.name),genValuePartial_toObject(r,l,d,p),l.partOf&&!l.partOf.isProto3Optional&&r("if(o.oneofs)")("d%s=%j",s.safeProp(l.partOf.name),l.name));r("}")}return r("return d")}},"./protobufjs/src/decoder.js"(e,t,r){"use strict";e.exports=decoder;var i=r("./protobufjs/src/enum.js"),o=r("./protobufjs/src/types.js"),s=r("./protobufjs/src/util.js");function missing(e){return"missing required '"+e.name+"'"}function decoder(e){for(var t=!1,r=!1,n=0;n<e.fieldsArray.length;++n){var a=e._fieldsArray[n];a.map&&(t=!0),a.repeated||a.map||a.hasPresence||(r=!0)}var u=s.codegen(["r","l","z","q","g"],e.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("if(q===undefined)q=0")("if(q>Reader.recursionLimit)")('throw Error("max depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=g||new C"+(t?",k,v":r?",v":""))("while(r.pos<c){")("var s=r.pos")("var t=r.tag()")("if(t===z){")("z=undefined")("break")("}");for(e.fieldsArray.length&&u("var u=t&7")("switch(t>>>=3){"),n=0;n<e.fieldsArray.length;++n){var f=e._fieldsArray[n].resolve(),l=f.resolvedType instanceof i?"int32":f.type,p="m"+s.safeProp(f.name);if(f.map){u("case %i:{",f.id)("if(u!==2)")("break")("if(%s===util.emptyObject)",p)("%s={}",p)("var c2=r.uint32()+r.pos"),void 0!==o.defaults[f.keyType]?u("k=%j",o.defaults[f.keyType]):u("k=null"),void 0!==o.long[l]?u("v=util.Long?util.Long.fromNumber(0,%j):0","uint64"===l||"fixed64"===l):void 0!==o.defaults[l]?u("v=%j",o.defaults[l]):u("v=null"),u("while(r.pos<c2){")("var t2=r.tag()")("u=t2&7")("switch(t2>>>=3){")("case 1:")("if(u!==%i)",o.mapKey[f.keyType])("break")("k=r.%s()",f.keyType)("continue")("case 2:")("if(u!==%i)",void 0===o.basic[l]?2:o.basic[l])("break"),void 0===o.basic[l]?u("v=types[%i].decode(r,r.uint32(),undefined,q+1)",n):u("v=r.%s()",l),u("continue")("}")("r.skipType(u,q,t2)")("}");var c=void 0===o.basic[l]?"v||new types["+n+"].ctor":"v";void 0!==o.long[f.keyType]?u('%s[typeof k==="object"?util.longToHash(k):k]=%s',p,c):("string"===f.keyType&&u('if(k==="__proto__")')("util.makeProp(%s,k)",p),u("%s[k]=%s",p,c))}else f.repeated?(u("case %i:",f.id)("{"),void 0!==o.packed[l]&&u("if(u===2){")("if(!(%s&&%s.length))",p,p)("%s=[]",p)("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",p,l)("continue")("}"),u("if(u!==%i)",void 0===o.basic[l]?f.delimited?3:2:o.basic[l])("break")("if(!(%s&&%s.length))",p,p)("%s=[]",p),void 0===o.basic[l]?f.delimited?u("%s.push(types[%i].decode(r,undefined,%i,q+1))",p,n,8*f.id+4):u("%s.push(types[%i].decode(r,r.uint32(),undefined,q+1))",p,n):u("%s.push(r.%s())",p,l)):void 0===o.basic[l]?(u("case %i:{",f.id)("if(u!==%i)",f.delimited?3:2)("break"),f.delimited?u("%s=types[%i].decode(r,undefined,%i,q+1,%s)",p,n,8*f.id+4,p):u("%s=types[%i].decode(r,r.uint32(),undefined,q+1,%s)",p,n,p)):f.hasPresence?u("case %i:{",f.id)("if(u!==%i)",o.basic[l])("break")("%s=r.%s()",p,l):(u("case %i:{",f.id)("if(u!==%i)",o.basic[l])("break"),f.resolvedType instanceof i&&0!==f.typeDefault?u("if((v=r.%s())!==%j)",l,f.typeDefault):"string"===l||"bytes"===l?u("if((v=r.%s()).length)",l):void 0!==o.long[l]?u('if(typeof(v=r.%s())==="object"?v.low||v.high:v!==0)',l):u("double"===l||"float"===l?"if((v=r.%s())!==0)":"if(v=r.%s())",l),u("%s=v",p)("else")("delete %s",p));f.partOf&&u("m%s=%j",s.safeProp(f.partOf.name),f.name),u("continue")("}")}for(n&&u("}"),u("r.skipType(%s,q,t)",n?"u":"t&7")('util.makeProp(m,"$unknowns",false);')("(m.$unknowns||(m.$unknowns=[])).push(r.raw(s,r.pos))")("}")("if(z!==undefined)")('throw Error("missing end group")'),n=0;n<e._fieldsArray.length;++n){var h=e._fieldsArray[n];h.required&&u("if(!m.hasOwnProperty(%j))",h.name)("throw util.ProtocolError(%j,{instance:m})",missing(h))}return u("return m")}},"./protobufjs/src/encoder.js"(e,t,r){"use strict";e.exports=encoder;var i=r("./protobufjs/src/enum.js"),o=r("./protobufjs/src/types.js"),s=r("./protobufjs/src/util.js");function genTypePartial(e,t,r,i){return t.delimited?e("types[%i].encode(%s,w.uint32(%i),q+1).uint32(%i)",r,i,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork(),q+1).ldelim()",r,i,(t.id<<3|2)>>>0)}function encoder(e){for(var t,r,n=s.codegen(["m","w","q"],e.name+"$encode")("if(!w)")("w=Writer.create()")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")'),a=e.fieldsArray.slice().sort(s.compareFieldsById),t=0;t<a.length;++t){var u=a[t].resolve(),f=e._fieldsArray.indexOf(u),l=u.resolvedType instanceof i?"int32":u.type,p=o.basic[l];r="m"+s.safeProp(u.name),u.map?(n("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",r,u.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",r),"bool"===u.keyType?n("w.uint32(%i).fork().uint32(%i).bool(util.boolFromKey(ks[i]))",(u.id<<3|2)>>>0,8|o.mapKey[u.keyType]):void 0!==o.long[u.keyType]?n("w.uint32(%i).fork().uint32(%i).%s(util.longFromKey(ks[i],%j))",(u.id<<3|2)>>>0,8|o.mapKey[u.keyType],u.keyType,"uint64"===u.keyType||"fixed64"===u.keyType):n("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(u.id<<3|2)>>>0,8|o.mapKey[u.keyType],u.keyType),void 0===p?n("types[%i].encode(%s[ks[i]],w.uint32(18).fork(),q+1).ldelim().ldelim()",f,r):n(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,l,r),n("}")("}")):u.repeated?(n("if(%s!=null&&%s.length){",r,r),u.packed&&void 0!==o.packed[l]?n("w.uint32(%i).fork()",(u.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",r)("w.%s(%s[i])",l,r)("w.ldelim()"):(n("for(var i=0;i<%s.length;++i)",r),void 0===p?genTypePartial(n,u,f,r+"[i]"):n("w.uint32(%i).%s(%s[i])",(u.id<<3|p)>>>0,l,r)),n("}")):(u.required||n("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",r,u.name),void 0===p?genTypePartial(n,u,f,r):n("w.uint32(%i).%s(%s)",(u.id<<3|p)>>>0,l,r))}return n('if(m.$unknowns!=null&&Object.hasOwnProperty.call(m,"$unknowns"))')("for(var i=0;i<m.$unknowns.length;++i)")("w.raw(m.$unknowns[i])")("return w")}},"./protobufjs/src/enum.js"(e,t,r){"use strict";e.exports=Enum;var i=r("./protobufjs/src/object.js");((Enum.prototype=Object.create(i.prototype)).constructor=Enum).className="Enum";var o=r("./protobufjs/src/namespace.js"),s=r("./protobufjs/src/util.js");function Enum(e,t,r,o,s,n){if(i.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=s||{},this.valuesOptions=n,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u<a.length;++u)"__proto__"!==a[u]&&"number"==typeof t[a[u]]&&(this.valuesById[this.values[a[u]]=t[a[u]]]=a[u])}Enum.prototype._resolveFeatures=function(e){return e=this._edition||e,i.prototype._resolveFeatures.call(this,e),Object.keys(this.values).forEach(e=>{var t=s.merge({},this._features);this._valuesFeatures[e]=s.merge(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features||{})}),this},Enum.fromJSON=function(e,t){var r=new Enum(e,t.values,t.options,t.comment,t.comments,t.valuesOptions);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Enum.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return s.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},Enum.prototype.add=function(e,t,r,i){if(!s.isString(e))throw TypeError("name must be a string");if(!s.isInteger(t))throw TypeError("id must be an integer");if("__proto__"===e)return this;if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return i&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=i||null),this.comments[e]=r||null,this},Enum.prototype.remove=function(e){if(!s.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},Enum.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},Enum.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},"./protobufjs/src/field.js"(e,t,r){"use strict";e.exports=Field;var i,o=r("./protobufjs/src/object.js");((Field.prototype=Object.create(o.prototype)).constructor=Field).className="Field";var s=r("./protobufjs/src/enum.js"),n=r("./protobufjs/src/types.js"),a=r("./protobufjs/src/util.js"),u=/^(?:required|optional|repeated)$/;function Field(e,t,r,i,s,f,l){if(a.isObject(i)?(l=s,f=i,i=s=void 0):a.isObject(s)&&(l=f,f=s,s=void 0),o.call(this,e,f),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==i&&!u.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==s&&!a.isString(s))throw TypeError("extend must be a string");this.rule=i&&"optional"!==i?i:void 0,this.type=r,this.id=t,this.extend=s||void 0,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==n.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}Field.fromJSON=function(e,t){var r=new Field(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(Field.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(Field.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(Field.prototype,"delimited",{get:function(){return this.resolvedType instanceof i&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(Field.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(Field.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),Field.prototype.setOption=function(e,t,r){return o.prototype.setOption.call(this,e,t,r)},Field.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},Field.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=n.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof i?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof s&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof s||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"uint64"===this.type||"fixed64"===this.type),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof i&&this.parent._ctor&&(this.parent._ctor.prototype[this.name]=this.defaultValue),o.prototype.resolve.call(this)},Field.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===n.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof i&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},Field.prototype._resolveFeatures=function(e){return o.prototype._resolveFeatures.call(this,this._edition||e)},Field.d=function(e,t,r,i){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,s){a.decorateType(o.constructor).add(new Field(s,e,t,r,{default:i}))}},Field._configure=function(e){i=e}},"./protobufjs/src/index-light.js"(e,t,r){"use strict";var i=e.exports=r("./protobufjs/src/index-minimal.js");function load(e,t,r){return"function"==typeof t?(r=t,t=new i.Root):t||(t=new i.Root),t.load(e,r)}function loadSync(e,t){return t||(t=new i.Root),t.loadSync(e)}i.build="light",i.load=load,i.loadSync=loadSync,i.encoder=r("./protobufjs/src/encoder.js"),i.decoder=r("./protobufjs/src/decoder.js"),i.verifier=r("./protobufjs/src/verifier.js"),i.converter=r("./protobufjs/src/converter.js"),i.ReflectionObject=r("./protobufjs/src/object.js"),i.Namespace=r("./protobufjs/src/namespace.js"),i.Root=r("./protobufjs/src/root.js"),i.Enum=r("./protobufjs/src/enum.js"),i.Type=r("./protobufjs/src/type.js"),i.Field=r("./protobufjs/src/field.js"),i.OneOf=r("./protobufjs/src/oneof.js"),i.MapField=r("./protobufjs/src/mapfield.js"),i.Service=r("./protobufjs/src/service.js"),i.Method=r("./protobufjs/src/method.js"),i.Message=r("./protobufjs/src/message.js"),i.wrappers=r("./protobufjs/src/wrappers.js"),i.types=r("./protobufjs/src/types.js"),i.util=r("./protobufjs/src/util.js"),i.ReflectionObject._configure(i.Root),i.Namespace._configure(i.Type,i.Service,i.Enum),i.Root._configure(i.Type,void 0,{}),i.Field._configure(i.Type)},"./protobufjs/src/index-minimal.js"(e,t,r){"use strict";function configure(){t.util._configure(),t.Writer._configure(t.BufferWriter),t.Reader._configure(t.BufferReader)}t.build="minimal",t.Writer=r("./protobufjs/src/writer.js"),t.BufferWriter=r("./protobufjs/src/writer_buffer.js"),t.Reader=r("./protobufjs/src/reader.js"),t.BufferReader=r("./protobufjs/src/reader_buffer.js"),t.util=r("./protobufjs/src/util/minimal.js"),t.rpc=r("./protobufjs/src/rpc.js"),t.roots=r("./protobufjs/src/roots.js"),t.configure=configure,configure()},"./protobufjs/src/index.js"(e,t,r){"use strict";var i=e.exports=r("./protobufjs/src/index-light.js");i.build="full",i.tokenize=r("./protobufjs/src/tokenize.js"),i.parse=r("./protobufjs/src/parse.js"),i.common=r("./protobufjs/src/common.js"),i.Root._configure(i.Type,i.parse,i.common)},"./protobufjs/src/mapfield.js"(e,t,r){"use strict";e.exports=MapField;var i=r("./protobufjs/src/field.js");((MapField.prototype=Object.create(i.prototype)).constructor=MapField).className="MapField";var o=r("./protobufjs/src/types.js"),s=r("./protobufjs/src/util.js");function MapField(e,t,r,o,n,a){if(i.call(this,e,t,o,void 0,void 0,n,a),!s.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}MapField.fromJSON=function(e,t){return new MapField(e,t.id,t.keyType,t.type,t.options,t.comment)},MapField.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return s.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},MapField.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return i.prototype.resolve.call(this)},MapField.d=function(e,t,r){return"function"==typeof r?r=s.decorateType(r).name:r&&"object"==typeof r&&(r=s.decorateEnum(r).name),function(i,o){s.decorateType(i.constructor).add(new MapField(o,e,t,r))}}},"./protobufjs/src/message.js"(e,t,r){"use strict";e.exports=Message;var i=r("./protobufjs/src/util/minimal.js");function Message(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&"__proto__"!==t[r]&&(this[t[r]]=e[t[r]])}Message.create=function(e){return this.$type.create(e)},Message.encode=function(e,t){return this.$type.encode(e,t)},Message.encodeDelimited=function(e,t){return this.$type.encodeDelimited(e,t)},Message.decode=function(e){return this.$type.decode(e)},Message.decodeDelimited=function(e){return this.$type.decodeDelimited(e)},Message.verify=function(e){return this.$type.verify(e)},Message.fromObject=function(e){return this.$type.fromObject(e)},Message.toObject=function(e,t){return this.$type.toObject(e,t)},Message.prototype.toJSON=function(){return this.$type.toObject(this,i.toJSONOptions)}},"./protobufjs/src/method.js"(e,t,r){"use strict";e.exports=Method;var i=r("./protobufjs/src/object.js");((Method.prototype=Object.create(i.prototype)).constructor=Method).className="Method";var o=r("./protobufjs/src/util.js");function Method(e,t,r,s,n,a,u,f,l){if(o.isObject(n)?(u=n,n=a=void 0):o.isObject(a)&&(u=a,a=void 0),!(void 0===t||o.isString(t)))throw TypeError("type must be a string");if(!o.isString(r))throw TypeError("requestType must be a string");if(!o.isString(s))throw TypeError("responseType must be a string");i.call(this,e,u),this.type=t||"rpc",this.requestType=r,this.requestStream=!!n||void 0,this.responseType=s,this.responseStream=!!a||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=f,this.parsedOptions=l}Method.fromJSON=function(e,t){return new Method(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},Method.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return o.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0,"parsedOptions",this.parsedOptions])},Method.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),i.prototype.resolve.call(this))}},"./protobufjs/src/namespace.js"(e,t,r){"use strict";e.exports=Namespace;var i,o,s,n=r("./protobufjs/src/object.js");((Namespace.prototype=Object.create(n.prototype)).constructor=Namespace).className="Namespace";var a=r("./protobufjs/src/field.js"),u=r("./protobufjs/src/util.js"),f=r("./protobufjs/src/oneof.js");function arrayToJSON(e,t){if(e&&e.length){for(var r={},i=0;i<e.length;++i)r[e[i].name]=e[i].toJSON(t);return r}}function Namespace(e,t){n.call(this,e,t),this.nested=void 0,this._nestedArray=null,this._lookupCache=Object.create(null),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}function clearCache(e){e._nestedArray=null,e._lookupCache=Object.create(null);for(var t=e;t=t.parent;)t._lookupCache=Object.create(null);return e}Namespace.fromJSON=function(e,t,r){if(void 0===r&&(r=0),r>u.recursionLimit)throw Error("max depth exceeded");return new Namespace(e,t.options).addJSON(t.nested,r)},Namespace.arrayToJSON=arrayToJSON,Namespace.isReservedId=function(e,t){if(e){for(var r=0;r<e.length;++r)if("string"!=typeof e[r]&&e[r][0]<=t&&e[r][1]>=t)return!0}return!1},Namespace.isReservedName=function(e,t){if(e){for(var r=0;r<e.length;++r)if(e[r]===t)return!0}return!1},Object.defineProperty(Namespace.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=u.toArray(this.nested))}}),Namespace.prototype.toJSON=function(e){return u.toObject(["options",this.options,"nested",arrayToJSON(this.nestedArray,e)])},Namespace.prototype.addJSON=function(e,t){if(void 0===t&&(t=0),t>u.recursionLimit)throw Error("max depth exceeded");if(e)for(var r,n=Object.keys(e),f=0;f<n.length;++f)r=e[n[f]],this.add((void 0!==r.fields?i.fromJSON:void 0!==r.values?s.fromJSON:void 0!==r.methods?o.fromJSON:void 0!==r.id?a.fromJSON:Namespace.fromJSON)(n[f],r,t+1));return this},Namespace.prototype.get=function(e){return this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},Namespace.prototype.getEnum=function(e){if(this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)&&this.nested[e]instanceof s)return this.nested[e].values;throw Error("no such enum: "+e)},Namespace.prototype.add=function(e){if(!(e instanceof a&&void 0!==e.extend||e instanceof i||e instanceof f||e instanceof s||e instanceof o||e instanceof Namespace))throw TypeError("object must be a valid nested object");if("__proto__"===e.name)return this;if(this.nested){var t=this.get(e.name);if(t)if(t instanceof Namespace&&e instanceof Namespace&&!(t instanceof i||t instanceof o)){for(var r=t.nestedArray,n=0;n<r.length;++n)e.add(r[n]);this.remove(t),this.nested||(this.nested={}),e.setOptions(t.options,!0)}else throw Error("duplicate name '"+e.name+"' in "+this)}else this.nested={};this.nested[e.name]=e,this instanceof i||this instanceof o||this instanceof s||this instanceof a||e._edition||(e._edition=e._defaultEdition),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;for(var u=this;u=u.parent;)u._needsRecursiveFeatureResolution=!0,u._needsRecursiveResolve=!0;return e.onAdd(this),clearCache(this)},Namespace.prototype.remove=function(e){if(!(e instanceof n))throw TypeError("object must be a ReflectionObject");if(e.parent!==this)throw Error(e+" is not a member of "+this);return delete this.nested[e.name],Object.keys(this.nested).length||(this.nested=void 0),e.onRemove(this),clearCache(this)},Namespace.prototype.define=function(e,t){if(u.isString(e))e=e.split(".");else if(!Array.isArray(e))throw TypeError("illegal path");if(e&&e.length&&""===e[0])throw Error("path must be relative");if(e.length>u.recursionLimit)throw Error("max depth exceeded");for(var r=this;e.length>0;){var i=e.shift();if(r.nested&&r.nested[i]){if(!((r=r.nested[i])instanceof Namespace))throw Error("path conflicts with non-namespace objects")}else r.add(r=new Namespace(i))}return t&&r.addJSON(t),r},Namespace.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._needsRecursiveFeatureResolution&&this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t<e.length;)e[t]instanceof Namespace?e[t++].resolveAll():e[t++].resolve();return this._needsRecursiveResolve=!1,this},Namespace.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(this._needsRecursiveFeatureResolution=!1,e=this._edition||e,n.prototype._resolveFeaturesRecursive.call(this,e),this.nestedArray.forEach(t=>{t._resolveFeaturesRecursive(e)})),this},Namespace.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var i=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+i];if(o&&(!t||t.indexOf(o.constructor)>-1)||(o=this._lookupImpl(e,i))&&(!t||t.indexOf(o.constructor)>-1))return o;if(r)return null;for(var s=this;s.parent;){if((o=s.parent._lookupImpl(e,i))&&(!t||t.indexOf(o.constructor)>-1))return o;s=s.parent}return null},Namespace.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),i=null;if(r)1===e.length?i=r:r instanceof Namespace&&(e=e.slice(1),i=r._lookupImpl(e,e.join(".")));else for(var o=0;o<this.nestedArray.length;++o)if(this._nestedArray[o]instanceof Namespace&&(r=this._nestedArray[o]._lookupImpl(e,t))){i=r;break}return this._lookupCache[t]=i,i},Namespace.prototype.lookupType=function(e){var t=this.lookup(e,[i]);if(!t)throw Error("no such type: "+e);return t},Namespace.prototype.lookupEnum=function(e){var t=this.lookup(e,[s]);if(!t)throw Error("no such Enum '"+e+"' in "+this);return t},Namespace.prototype.lookupTypeOrEnum=function(e){var t=this.lookup(e,[i,s]);if(!t)throw Error("no such Type or Enum '"+e+"' in "+this);return t},Namespace.prototype.lookupService=function(e){var t=this.lookup(e,[o]);if(!t)throw Error("no such Service '"+e+"' in "+this);return t},Namespace._configure=function(e,t,r){i=e,o=t,s=r}},"./protobufjs/src/object.js"(e,t,r){"use strict";e.exports=ReflectionObject,ReflectionObject.className="ReflectionObject";let i=r("./protobufjs/src/oneof.js");var o,s=r("./protobufjs/src/util.js"),n={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE2024",default_symbol_visibility:"EXPORT_TOP_LEVEL"},a={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"},u={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"},f={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"};function ReflectionObject(e,t){if(!s.isString(e))throw TypeError("name must be a string");if(t&&!s.isObject(t))throw TypeError("options must be an object");this.options=t,this.parsedOptions=null,this.name=e,this._edition=null,this._defaultEdition="proto2",this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(ReflectionObject.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),ReflectionObject.prototype.toJSON=function(){throw Error()},ReflectionObject.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof o&&t._handleAdd(this)},ReflectionObject.prototype.onRemove=function(e){var t=e.root;t instanceof o&&t._handleRemove(this),this.parent=null,this.resolved=!1},ReflectionObject.prototype.resolve=function(){return this.resolved||this.root instanceof o&&(this.resolved=!0),this},ReflectionObject.prototype._resolveFeaturesRecursive=function(e){return this._resolveFeatures(this._edition||e)},ReflectionObject.prototype._resolveFeatures=function(e){if(!this._featuresResolved){var t={};if(!e)throw Error("Unknown edition for "+this.fullName);var r=s.merge({},this.options&&this.options.features,this._inferLegacyProtoFeatures(e));if(this._edition){if("proto2"===e)t=Object.assign({},u);else if("proto3"===e)t=Object.assign({},f);else if("2023"===e)t=Object.assign({},a);else if("2024"===e)t=Object.assign({},n);else throw Error("Unknown edition: "+e);this._features=s.merge(t,r)}else if(this.partOf instanceof i){var o=s.merge({},this.partOf._features);this._features=s.merge(o,r)}else if(this.declaringField);else if(this.parent){var l=s.merge({},this.parent._features);this._features=s.merge(l,r)}else throw Error("Unable to find a parent for "+this.fullName);this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},ReflectionObject.prototype._inferLegacyProtoFeatures=function(){return{}},ReflectionObject.prototype.getOption=function(e){if(this.options)return this.options[e]},ReflectionObject.prototype.setOption=function(e,t,r){return"__proto__"===e||(this.options||(this.options={}),/^features\./.test(e)?s.setProperty(this.options,e,t,r):r&&void 0!==this.options[e]||(this.getOption(e)!==t&&(this.resolved=!1),this.options[e]=t)),this},ReflectionObject.prototype.setParsedOption=function(e,t,r){if("__proto__"===e)return this;this.parsedOptions||(this.parsedOptions=[]);var i=this.parsedOptions;if(r){var o=i.find(function(t){return Object.prototype.hasOwnProperty.call(t,e)});if(o){var n=o[e];s.setProperty(n,r,t)}else(o={})[e]=s.setProperty({},r,t),i.push(o)}else{var a={};a[e]=t,i.push(a)}return this},ReflectionObject.prototype.setOptions=function(e,t){if(e)for(var r=Object.keys(e),i=0;i<r.length;++i)this.setOption(r[i],e[r[i]],t);return this},ReflectionObject.prototype.toString=function(){var e=this.constructor.className,t=this.fullName;return t.length?e+" "+t:e},ReflectionObject.prototype._editionToJSON=function(){if(this._edition&&"proto3"!==this._edition)return this._edition},ReflectionObject._configure=function(e){o=e}},"./protobufjs/src/oneof.js"(e,t,r){"use strict";e.exports=OneOf;var i=r("./protobufjs/src/object.js");((OneOf.prototype=Object.create(i.prototype)).constructor=OneOf).className="OneOf";var o=r("./protobufjs/src/field.js"),s=r("./protobufjs/src/util.js");function OneOf(e,t,r,o){if(Array.isArray(t)||(r=t,t=void 0),i.call(this,e,r),!(void 0===t||Array.isArray(t)))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=o}function addFieldsToParent(e){if(e.parent)for(var t=0;t<e.fieldsArray.length;++t)e.fieldsArray[t].parent||e.parent.add(e.fieldsArray[t])}OneOf.fromJSON=function(e,t){return new OneOf(e,t.oneof,t.options,t.comment)},OneOf.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return s.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:void 0])},OneOf.prototype.add=function(e){if(!(e instanceof o))throw TypeError("field must be a Field");return