dd-trace 5.107.0 → 5.108.0
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/package.json +5 -5
- package/packages/dd-trace/src/appsec/downstream_requests.js +3 -2
- package/packages/dd-trace/src/appsec/iast/index.js +3 -2
- package/packages/dd-trace/src/appsec/rasp/ssrf.js +2 -1
- package/packages/dd-trace/src/appsec/reporter.js +1 -1
- package/packages/dd-trace/src/config/generated-config-types.d.ts +1 -0
- package/packages/dd-trace/src/config/supported-configurations.json +7 -0
- package/packages/dd-trace/src/profiling/config.js +2 -0
- package/packages/dd-trace/src/profiling/profilers/events.js +26 -4
- package/packages/dd-trace/src/profiling/profilers/space.js +3 -1
- package/vendor/dist/@datadog/sketches-js/index.js +1 -1
- package/vendor/dist/protobufjs/index.js +1 -1
- package/vendor/dist/protobufjs/minimal/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{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 e.parent&&e.parent!==this.parent&&e.parent.remove(e),this.oneof.push(e.name),this.fieldsArray.push(e),e.partOf=this,addFieldsToParent(this),this},OneOf.prototype.remove=function(e){if(!(e instanceof o))throw TypeError("field must be a Field");var t=this.fieldsArray.indexOf(e);if(t<0)throw Error(e+" is not a member of "+this);return this.fieldsArray.splice(t,1),(t=this.oneof.indexOf(e.name))>-1&&this.oneof.splice(t,1),e.partOf=null,this},OneOf.prototype.onAdd=function(e){i.prototype.onAdd.call(this,e);for(var t=0;t<this.oneof.length;++t){var r=e.get(this.oneof[t]);r&&!r.partOf&&(r.partOf=this,this.fieldsArray.push(r))}addFieldsToParent(this)},OneOf.prototype.onRemove=function(e){for(var t,r=0;r<this.fieldsArray.length;++r)(t=this.fieldsArray[r]).parent&&t.parent.remove(t);i.prototype.onRemove.call(this,e)},Object.defineProperty(OneOf.prototype,"isProto3Optional",{get:function(){if(null==this.fieldsArray||1!==this.fieldsArray.length)return!1;var e=this.fieldsArray[0];return null!=e.options&&!0===e.options.proto3_optional}}),OneOf.d=function(){for(var e=Array(arguments.length),t=0;t<arguments.length;)e[t]=arguments[t++];return function(t,r){s.decorateType(t.constructor).add(new OneOf(r,e)),Object.defineProperty(t,r,{get:s.oneOfGetter(e),set:s.oneOfSetter(e)})}}},"./protobufjs/src/parse.js"(e,t,r){"use strict";e.exports=parse,parse.filename=null,parse.defaults={keepCase:!1};var i=r("./protobufjs/src/tokenize.js"),o=r("./protobufjs/src/root.js"),s=r("./protobufjs/src/type.js"),n=r("./protobufjs/src/field.js"),a=r("./protobufjs/src/mapfield.js"),u=r("./protobufjs/src/oneof.js"),f=r("./protobufjs/src/enum.js"),l=r("./protobufjs/src/service.js"),p=r("./protobufjs/src/method.js"),c=r("./protobufjs/src/object.js"),h=r("./protobufjs/src/types.js"),d=r("./protobufjs/src/util.js"),m=/^[1-9][0-9]*$/,y=/^-?[1-9][0-9]*$/,g=/^0[x][0-9a-fA-F]+$/,v=/^-?0[x][0-9a-fA-F]+$/,b=/^0[0-7]+$/,j=/^-?0[0-7]+$/,w=d.patterns.numberRe,_=/^[a-zA-Z_][a-zA-Z_0-9]*$/,O=d.patterns.typeRefRe;function parse(e,t,r){t instanceof o||(r=t,t=new o),r||(r=parse.defaults);var E,k,x,A,N=r.preferTrailingComment||!1,R=i(e,r.alternateCommentMode||!1),S=R.next,T=R.push,B=R.peek,L=R.skip,F=R.cmnt,I=!0,P="proto2",C=t,D=[],q={},V=r.keepCase?function(e){return e}:d.camelCase;function resolveFileFeatures(){D.forEach(e=>{e._edition=P,Object.keys(q).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,q[t],!0)})})}function illegal(e,t,r){var i=parse.filename;return r||(parse.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(i?i+", ":"")+"line "+R.line+")")}function readString(){var e,t=[];do{if('"'!==(e=S())&&"'"!==e)throw illegal(e);t.push(S()),L(e),e=B()}while('"'===e||"'"===e);return t.join("")}function readValue(e){var t=S();switch(t){case"'":case'"':return T(t),readString();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return parseNumber(t,!0)}catch(r){if(e&&O.test(t))return t;throw illegal(t,"value")}}function readRanges(e,t,r,i){do if(t&&('"'===(o=B())||"'"===o)){var o,s,n=readString();if(e.push(n),P>=2023)throw illegal(n,"id")}else try{e.push([s=parseId(S(),i,r),L("to",!0)?parseId(S(),i,r):s])}catch(r){if(t&&O.test(o)&&P>=2023)e.push(o);else throw r}while(L(",",!0));var a={options:void 0};a.setOption=function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t},ifBlock(a,function(e){if("option"===e)parseOption(a,e),L(";");else throw illegal(e)},function(){parseInlineOptions(a)})}function parseNumber(e,t){var r=1;switch("-"===e.charAt(0)&&(r=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return 1/0*r;case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(m.test(e))return r*parseInt(e,10);if(g.test(e))return r*parseInt(e,16);if(b.test(e))return r*parseInt(e,8);if(w.test(e))return r*parseFloat(e);throw illegal(e,"number",t)}function parseId(e,t,r){switch(e){case"max":case"MAX":case"Max":return r||0x1fffffff;case"0":return 0}if(!t&&"-"===e.charAt(0))throw illegal(e,"id");if(y.test(e))return parseInt(e,10);if(v.test(e))return parseInt(e,16);if(j.test(e))return parseInt(e,8);throw illegal(e,"id")}function parsePackage(){if(void 0!==k)throw illegal("package");if(k=S(),!O.test(k))throw illegal(k,"name");C=C.define(k),L(";")}function parseImport(){var e,t=B();switch(t){case"option":if(P<"2024")throw illegal("option");S(),readString(),L(";");return;case"weak":e=A||(A=[]),S();break;case"public":S();default:e=x||(x=[])}t=readString(),L(";"),e.push(t)}function parseSyntax(){if(L("="),(P=readString())<2023)throw illegal(P,"syntax");L(";")}function parseEdition(){if(L("="),!["2023","2024"].includes(P=readString()))throw illegal(P,"edition");L(";")}function parseCommon(e,t,r){switch(void 0===r&&(r=0),t){case"option":return parseOption(e,t),L(";"),!0;case"message":return parseType(e,t,r+1),!0;case"enum":return parseEnum(e,t),!0;case"export":case"local":if(P<"2024"||"export"===(t=S())||"local"===t||"message"!==t&&"enum"!==t)break;return parseCommon(e,t,r);case"service":return parseService(e,t,r+1),!0;case"extend":return parseExtension(e,t,r),!0}return!1}function ifBlock(e,t,r){var i,o=R.line;if(e&&("string"!=typeof e.comment&&(e.comment=F()),e.filename=parse.filename),L("{",!0)){for(;"}"!==(i=S());)t(i);L(";",!0)}else r&&r(),L(";"),e&&("string"!=typeof e.comment||N)&&(e.comment=F(o)||e.comment)}function parseType(e,t,r){if(void 0===r&&(r=0),r>d.nestingLimit)throw Error("max depth exceeded");if(!_.test(t=S()))throw illegal(t,"type name");var i=new s(t);ifBlock(i,function(e){if(!parseCommon(i,e,r))switch(e){case";":break;case"map":parseMapField(i,e);break;case"required":if("proto2"!==P)throw illegal(e);case"repeated":parseField(i,e,void 0,r+1);break;case"optional":if("proto3"===P)parseField(i,"proto3_optional",void 0,r+1);else if("proto2"!==P)throw illegal(e);else parseField(i,"optional",void 0,r+1);break;case"oneof":parseOneOf(i,e,r+1);break;case"extensions":readRanges(i.extensions||(i.extensions=[]));break;case"reserved":readRanges(i.reserved||(i.reserved=[]),!0);break;default:if("proto2"===P||!O.test(e))throw illegal(e);T(e),parseField(i,"optional",void 0,r+1)}}),e.add(i),e===C&&D.push(i)}function parseField(e,t,r,i){var o=S();if("group"===o)return void parseGroup(e,t,r,i);for(;o.endsWith(".")||B().startsWith(".");)o+=S();if(!O.test(o))throw illegal(o,"type");var s=S();if(!_.test(s))throw illegal(s,"name");s=V(s),L("=");var a=new n(s,parseId(S()),o,"proto3_optional"===t?"optional":t,r);if(ifBlock(a,function(e){if("option"===e)parseOption(a,e),L(";");else throw illegal(e)},function(){parseInlineOptions(a)}),"proto3_optional"===t){var f=new u("_"+s);a.setOption("proto3_optional",!0),f.add(a),e.add(f)}else e.add(a);e===C&&D.push(a)}function parseGroup(e,t,r,i){if(void 0===i&&(i=0),i>d.nestingLimit)throw Error("max depth exceeded");if(P>=2023)throw illegal("group");var o=S();if(!_.test(o))throw illegal(o,"name");var a=d.lcFirst(o);o===a&&(o=d.ucFirst(o)),L("=");var u=parseId(S()),f=new s(o);f.group=!0;var l=new n(a,u,o,t,r);l.filename=parse.filename,ifBlock(f,function(e){switch(e){case";":break;case"option":parseOption(f,e),L(";");break;case"required":case"repeated":parseField(f,e,void 0,i+1);break;case"optional":"proto3"===P?parseField(f,"proto3_optional",void 0,i+1):parseField(f,"optional",void 0,i+1);break;case"message":parseType(f,e,i+1);break;case"enum":parseEnum(f,e);break;case"reserved":readRanges(f.reserved||(f.reserved=[]),!0);break;case"export":case"local":if(P<"2024")throw illegal(e);switch(e=S()){case"message":case"enum":parseType(f,e,i+1);break;default:throw illegal(e)}break;default:throw illegal(e)}}),e.add(f).add(l),e===C&&(D.push(f),D.push(l))}function parseMapField(e){L("<");var t=S();if(void 0===h.mapKey[t])throw illegal(t,"type");L(",");var r=S();if(!O.test(r))throw illegal(r,"type");L(">");var i=S();if(!_.test(i))throw illegal(i,"name");L("=");var o=new a(V(i),parseId(S()),t,r);ifBlock(o,function(e){if("option"===e)parseOption(o,e),L(";");else throw illegal(e)},function(){parseInlineOptions(o)}),e.add(o)}function parseOneOf(e,t,r){if(!_.test(t=S()))throw illegal(t,"name");var i=new u(V(t));ifBlock(i,function(e){"option"===e?(parseOption(i,e),L(";")):(T(e),parseField(i,"optional",void 0,r))}),e.add(i)}function parseEnum(e,t){if(!_.test(t=S()))throw illegal(t,"name");var r=new f(t);ifBlock(r,function(e){switch(e){case";":break;case"option":parseOption(r,e),L(";");break;case"reserved":readRanges(r.reserved||(r.reserved=[]),!0,0x7fffffff,!0),void 0===r.reserved&&(r.reserved=[]);break;default:parseEnumValue(r,e)}}),e.add(r),e===C&&D.push(r)}function parseEnumValue(e,t){if(!_.test(t))throw illegal(t,"name");L("=");var r=parseId(S(),!0),i={options:void 0};i.getOption=function(e){return this.options[e]},i.setOption=function(e,t){c.prototype.setOption.call(i,e,t)},i.setParsedOption=function(){},ifBlock(i,function(e){if("option"===e)parseOption(i,e),L(";");else throw illegal(e)},function(){parseInlineOptions(i)}),e.add(t,r,i.comment,i.parsedOptions||i.options)}function parseOption(e,t){var r,i,o=!0;for("option"===t&&(t=S());"="!==t;){if("("===t){var s=S();L(")"),t="("+s+")"}if(o){if(o=!1,t.includes(".")&&!t.includes("(")){var n=t.split(".");r=n[0]+".",t=n[1];continue}r=t}else i=i?i+=t:t;t=S()}var a=parseOptionValue(e,i?r.concat(i):r);i=i&&"."===i[0]?i.slice(1):i,setParsedOption(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,i)}function parseOptionValue(e,t,r){if(void 0===r&&(r=0),r>d.recursionLimit)throw Error("max depth exceeded");if(L("{",!0)){for(var i={};!L("}",!0);){if(!_.test(E=S()))throw illegal(E,"name");if(null===E)throw illegal(E,"end of input");var o,s,n=E;if(L(":",!0),"{"===B())o=parseOptionValue(e,t+"."+E,r+1);else if("["===B()){if(o=[],L("[",!0)&&!L("]",!0)){do s=readValue(!0),o.push(s);while(L(",",!0));L("]"),void 0!==s&&setOption(e,t+"."+E,s)}}else o=readValue(!0),setOption(e,t+"."+E,o);var a=i[n];a&&(o=[].concat(a).concat(o)),"__proto__"!==n&&(i[n]=o),L(",",!0),L(";",!0)}return i}var u=readValue(!0);return setOption(e,t,u),u}function setOption(e,t,r){if(C===e&&/^features\./.test(t)){q[t]=r;return}e.setOption&&e.setOption(t,r)}function setParsedOption(e,t,r,i){e.setParsedOption&&e.setParsedOption(t,r,i)}function parseInlineOptions(e){if(L("[",!0)){do parseOption(e,"option");while(L(",",!0));L("]")}return e}function parseService(e,t,r){if(void 0===r&&(r=0),r>d.recursionLimit)throw Error("max depth exceeded");if(!_.test(t=S()))throw illegal(t,"service name");var i=new l(t);ifBlock(i,function(e){if(!parseCommon(i,e,r)&&";"!==e)if("rpc"===e)parseMethod(i,e);else throw illegal(e)}),e.add(i),e===C&&D.push(i)}function parseMethod(e,t){var r=F(),i=t;if(!_.test(t=S()))throw illegal(t,"name");var o,s,n,a,u=t;if(L("("),L("stream",!0)&&(s=!0),!O.test(t=S())||(o=t,L(")"),L("returns"),L("("),L("stream",!0)&&(a=!0),!O.test(t=S())))throw illegal(t);n=t,L(")");var f=new p(u,i,o,n,s,a);f.comment=r,ifBlock(f,function(e){if(";"!==e)if("option"===e)parseOption(f,e),L(";");else throw illegal(e)}),e.add(f)}function parseExtension(e,t,r){if(!O.test(t=S()))throw illegal(t,"reference");var i=t;ifBlock(null,function(t){switch(t){case"required":case"repeated":parseField(e,t,i,r+1);break;case"optional":"proto3"===P?parseField(e,"proto3_optional",i,r+1):parseField(e,"optional",i,r+1);break;default:if("proto2"===P||!O.test(t))throw illegal(t);T(t),parseField(e,"optional",i,r+1)}})}for(;null!==(E=S());)switch(E){case";":break;case"package":if(!I)throw illegal(E);parsePackage();break;case"import":parseImport();break;case"syntax":if(!I)throw illegal(E);parseSyntax();break;case"edition":if(!I)throw illegal(E);parseEdition();break;case"option":parseOption(C,E),L(";",!0);break;default:if(parseCommon(C,E,0)){I=!1;continue}throw illegal(E)}return resolveFileFeatures(),parse.filename=null,{package:k,imports:x,weakImports:A,root:t}}},"./protobufjs/src/reader.js"(e,t,r){"use strict";e.exports=Reader;var i,o=r("./protobufjs/src/util/minimal.js"),s=o.LongBits,n=o.utf8;function indexOutOfRange(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function Reader(e){this.buf=e,this.pos=0,this.len=e.length}var a="u">typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new Reader(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new Reader(e);throw Error("illegal buffer")},create=function(){return o.Buffer?function(e){return(Reader.create=function(e){return o.Buffer.isBuffer(e)?new i(e):a(e)})(e)}:a};function readLongVarint(){var e=new s(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw indexOutOfRange(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw indexOutOfRange(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function readFixed32_end(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new s(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader.create=create(),Reader.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,Reader.prototype.raw=function(e,t){return Array.isArray(this.buf)?this.buf.slice(e,t):e===t?new this.buf.constructor(0):this._slice.call(this.buf,e,t)},Reader.prototype.uint32=function(){var e=this.buf,t=this.pos,r=(127&e[t])>>>0;if(e[t++]<128||(r=(r|(127&e[t])<<7)>>>0,e[t++]<128)||(r=(r|(127&e[t])<<14)>>>0,e[t++]<128)||(r=(r|(127&e[t])<<21)>>>0,e[t++]<128)||(r=(r|(15&e[t])<<28)>>>0,e[t++]<128))return this.pos=t,r;for(var i=0;i<5;++i){if(t>=this.len)throw this.pos=t,indexOutOfRange(this);if(e[t++]<128)return this.pos=t,r}throw this.pos=t,Error("invalid varint encoding")},Reader.prototype.tag=function(){var e=this.buf,t=this.pos,r=(127&e[t])>>>0;if(e[t++]<128||(r=(r|(127&e[t])<<7)>>>0,e[t++]<128)||(r=(r|(127&e[t])<<14)>>>0,e[t++]<128)||(r=(r|(127&e[t])<<21)>>>0,e[t++]<128))return this.pos=t,r;if(r=(r|(15&e[t])<<28)>>>0,e[t]<128&&(112&e[t])==0)return this.pos=t+1,r;throw this.pos=t+1,Error("invalid tag encoding")},Reader.prototype.int32=function(){return 0|this.uint32()},Reader.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},Reader.prototype.bool=function(){for(var e,t=!1,r=0;r<10;++r){if(this.pos>=this.len)throw indexOutOfRange(this);if(127&(e=this.buf[this.pos++])&&(t=!0),e<128)return t}throw Error("invalid varint encoding")},Reader.prototype.fixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.sfixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return 0|readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.float=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},Reader.prototype.double=function(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},Reader.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw indexOutOfRange(this,e);return this.pos=r,this.raw(t,r)},Reader.prototype.string=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw indexOutOfRange(this,e);return this.pos=r,n.read(this.buf,t,r)},Reader.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw indexOutOfRange(this,e);this.pos+=e}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(128&this.buf[this.pos++]);return this},Reader.recursionLimit=o.recursionLimit,Reader.prototype.skipType=function(e,t,r){if(void 0===t&&(t=0),t>Reader.recursionLimit)throw Error("max depth exceeded");if(0===r)throw Error("illegal tag: field number 0");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;;){var i=this.tag(),o=i>>>3;if(e=7&i,!o)throw Error("illegal tag: field number 0");if(4===e){if(void 0!==r&&o!==r)throw Error("invalid end group tag");break}this.skipType(e,t+1,o)}break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},Reader._configure=function(e){i=e,Reader.create=create(),i._configure();var t=o.Long?"toLong":"toNumber";o.merge(Reader.prototype,{int64:function(){return readLongVarint.call(this)[t](!1)},uint64:function(){return readLongVarint.call(this)[t](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[t](!1)},fixed64:function(){return readFixed64.call(this)[t](!0)},sfixed64:function(){return readFixed64.call(this)[t](!1)}})}},"./protobufjs/src/reader_buffer.js"(e,t,r){"use strict";e.exports=BufferReader;var i=r("./protobufjs/src/reader.js");(BufferReader.prototype=Object.create(i.prototype)).constructor=BufferReader;var o=r("./protobufjs/src/util/minimal.js");function BufferReader(e){i.call(this,e)}BufferReader._configure=function(){o.Buffer&&(BufferReader.prototype._slice=o.Buffer.prototype.slice)},BufferReader.prototype.raw=function(e,t){return e===t?o.Buffer.alloc(0):this._slice.call(this.buf,e,t)},BufferReader.prototype.string=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw RangeError("index out of range: "+this.pos+" + "+e+" > "+this.len);return this.pos=r,this.buf.utf8Slice?this.buf.utf8Slice(t,r):this.buf.toString("utf-8",t,r)},BufferReader._configure()},"./protobufjs/src/root.js"(e,t,r){"use strict";e.exports=Root;var i,o,s,n=r("./protobufjs/src/namespace.js");((Root.prototype=Object.create(n.prototype)).constructor=Root).className="Root";var a=r("./protobufjs/src/field.js"),u=r("./protobufjs/src/enum.js"),f=r("./protobufjs/src/oneof.js"),l=r("./protobufjs/src/util.js");function Root(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function SYNC(){}Root.fromJSON=function(e,t,r){if(void 0===r&&(r=0),r>l.recursionLimit)throw Error("max depth exceeded");return t||(t=new Root),e.options&&t.setOptions(e.options),t.addJSON(e.nested,r).resolveAll()},Root.prototype.resolvePath=l.path.resolve,Root.prototype.fetch=l.fetch,Root.prototype.load=function load(e,t,r){"function"==typeof t&&(r=t,t=void 0);var i=this;if(!r)return l.asPromise(load,i,e,t);var n=r===SYNC;function finish(e,t){if(r){if(n)throw e;t&&t.resolveAll();var i=r;r=null,i(e,t)}}function getBundledFileName(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(Object.prototype.hasOwnProperty.call(s,r))return r}return Object.prototype.hasOwnProperty.call(s,e)?e:null}function process(e,r,s){void 0===s&&(s=0);try{if(s>l.recursionLimit)throw Error("max depth exceeded");if(l.isString(r)&&"{"===r.charAt(0)&&(r=JSON.parse(r)),l.isString(r)){o.filename=e;var u,f=o(r,i,t),p=0;if(f.imports)for(;p<f.imports.length;++p)(u=getBundledFileName(f.imports[p])||i.resolvePath(e,f.imports[p]))&&fetch(u,!1,s+1);if(f.weakImports)for(p=0;p<f.weakImports.length;++p)(u=getBundledFileName(f.weakImports[p])||i.resolvePath(e,f.weakImports[p]))&&fetch(u,!0,s+1)}else i.setOptions(r.options).addJSON(r.nested)}catch(e){finish(e)}n||a||finish(null,i)}function fetch(e,t,o){if(void 0===o&&(o=0),e=getBundledFileName(e)||e,!(i.files.indexOf(e)>-1)){if(i.files.push(e),Object.prototype.hasOwnProperty.call(s,e))return void(n?process(e,s[e],o):(++a,setTimeout(function(){--a,process(e,s[e],o)})));if(n){var u;try{u=l.fs.readFileSync(e).toString("utf8")}catch(e){t||finish(e);return}process(e,u,o)}else++a,i.fetch(e,function(s,n){if(--a,r){if(s)return void(t?a||finish(null,i):finish(s));process(e,n,o)}})}}var a=0;l.isString(e)&&(e=[e]);for(var u,f=0;f<e.length;++f)(u=i.resolvePath("",e[f]))&&fetch(u);return n?i.resolveAll():a||finish(null,i),i},Root.prototype.loadSync=function(e,t){if(!l.isNode)throw Error("not supported");return this.load(e,t,SYNC)},Root.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(e){return"'extend "+e.extend+"' in "+e.parent.fullName}).join(", "));return n.prototype.resolveAll.call(this)};var p=/^[A-Z]/;function tryHandleExtension(e,t){var r=t.parent.lookup(t.extend);if(r){var i=new a(t.fullName,t.id,t.type,t.rule,void 0,t.options);return!!r.get(i.name)||(i.declaringField=t,t.extensionField=i,r.add(i),!0)}return!1}Root.prototype._handleAdd=function(e){if(e instanceof a)void 0===e.extend||e.extensionField||tryHandleExtension(this,e)||this.deferred.push(e);else if(e instanceof u)p.test(e.name)&&(e.parent[e.name]=e.values);else if(!(e instanceof f)){if(e instanceof i)for(var t=0;t<this.deferred.length;)tryHandleExtension(this,this.deferred[t])?this.deferred.splice(t,1):++t;for(var r=0;r<e.nestedArray.length;++r)this._handleAdd(e._nestedArray[r]);p.test(e.name)&&(e.parent[e.name]=e)}(e instanceof i||e instanceof u||e instanceof a)&&(this._fullyQualifiedObjects[e.fullName]=e)},Root.prototype._handleRemove=function(e){if(e instanceof a){if(void 0!==e.extend)if(e.extensionField)e.extensionField.parent.remove(e.extensionField),e.extensionField=null;else{var t=this.deferred.indexOf(e);t>-1&&this.deferred.splice(t,1)}}else if(e instanceof u)p.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r<e.nestedArray.length;++r)this._handleRemove(e._nestedArray[r]);p.test(e.name)&&delete e.parent[e.name]}delete this._fullyQualifiedObjects[e.fullName]},Root._configure=function(e,t,r){i=e,o=t,s=r}},"./protobufjs/src/roots.js"(e){"use strict";e.exports={}},"./protobufjs/src/rpc.js"(e,t,r){"use strict";t.Service=r("./protobufjs/src/rpc/service.js")},"./protobufjs/src/rpc/service.js"(e,t,r){"use strict";e.exports=Service;var i=r("./protobufjs/src/util/minimal.js");function Service(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!r}(Service.prototype=Object.create(i.EventEmitter.prototype)).constructor=Service,Service.prototype.rpcCall=function rpcCall(e,t,r,o,s){if(!o)throw TypeError("request must be specified");var n=this;if(!s)return i.asPromise(rpcCall,n,e,t,r,o);if(!n.rpcImpl)return void setTimeout(function(){s(Error("already ended"))},0);try{return n.rpcImpl(e,t[n.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(t,i){if(t)return n.emit("error",t,e),s(t);if(null===i)return void n.end(!0);if(!(i instanceof r))try{i=r[n.responseDelimited?"decodeDelimited":"decode"](i)}catch(t){return n.emit("error",t,e),s(t)}return n.emit("data",i,e),s(null,i)})}catch(t){n.emit("error",t,e),setTimeout(function(){s(t)},0);return}},Service.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},"./protobufjs/src/service.js"(e,t,r){"use strict";e.exports=Service;var i=r("./protobufjs/src/namespace.js");((Service.prototype=Object.create(i.prototype)).constructor=Service).className="Service";var o=r("./protobufjs/src/method.js"),s=r("./protobufjs/src/util.js"),n=r("./protobufjs/src/rpc.js"),a=s.patterns.reservedRe;function Service(e,t){i.call(this,e,t),this.methods={},this._methodsArray=null}function clearCache(e){return e._methodsArray=null,e}Service.fromJSON=function(e,t,r){if(void 0===r&&(r=0),r>s.recursionLimit)throw Error("max depth exceeded");var i=new Service(e,t.options);if(t.methods)for(var n=Object.keys(t.methods),a=0;a<n.length;++a)i.add(o.fromJSON(n[a],t.methods[n[a]]));return t.nested&&i.addJSON(t.nested,r),t.edition&&(i._edition=t.edition),i.comment=t.comment,i._defaultEdition="proto3",i},Service.prototype.toJSON=function(e){var t=i.prototype.toJSON.call(this,e),r=!!e&&!!e.keepComments;return s.toObject(["edition",this._editionToJSON(),"options",t&&t.options||void 0,"methods",i.arrayToJSON(this.methodsArray,e)||{},"nested",t&&t.nested||void 0,"comment",r?this.comment:void 0])},Object.defineProperty(Service.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=s.toArray(this.methods))}}),Service.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.methods,e)?this.methods[e]:i.prototype.get.call(this,e)},Service.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;i.prototype.resolve.call(this);for(var e=this.methodsArray,t=0;t<e.length;++t)e[t].resolve();return this},Service.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(e=this._edition||e,i.prototype._resolveFeaturesRecursive.call(this,e),this.methodsArray.forEach(t=>{t._resolveFeaturesRecursive(e)})),this},Service.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?"__proto__"===e.name?this:(this.methods[e.name]=e,e.parent=this,clearCache(this)):i.prototype.add.call(this,e)},Service.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,clearCache(this)}return i.prototype.remove.call(this,e)},Service.prototype.create=function(e,t,r){for(var i,o=new n.Service(e,t,r),u=0;u<this.methodsArray.length;++u){var f=s.lcFirst((i=this._methodsArray[u]).resolve().name).replace(/[^$\w_]/g,"");o[f]=s.codegen(["r","c"],a.test(f)?f+"_":f)("return this.rpcCall(m,q,s,r,c)")({m:i,q:i.resolvedRequestType.ctor,s:i.resolvedResponseType.ctor})}return o}},"./protobufjs/src/tokenize.js"(e){"use strict";e.exports=tokenize;var t=/[\s{}=;:[\],'"()<>]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,i=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,s=/^\s*\*?\/*/,n=/\n/g,a=/\s/,u=/\\(.?)/g,f={0:"\0",r:"\r",n:"\n",t:" "};function unescape(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return f[t]||""}})}function tokenize(e,u){e=e.toString();var f=0,l=e.length,p=1,c=0,h={},d=[],m=null;function illegal(e){return Error("illegal "+e+" (line "+p+")")}function readString(){var t="'"===m?i:r;t.lastIndex=f-1;var o=t.exec(e);if(!o)throw illegal("string");return f=t.lastIndex,push(m),m=null,unescape(o[1])}function charAt(t){return e.charAt(t)}function setComment(t,r,i){var a,f={type:e.charAt(t++),lineEmpty:!1,leading:i},l=t-(u?2:3);do if(--l<0||"\n"===(a=e.charAt(l))){f.lineEmpty=!0;break}while(" "===a||" "===a);for(var d=e.substring(t,r).split(n),m=0;m<d.length;++m)d[m]=d[m].replace(u?s:o,"").trim();f.text=d.join("\n").trim(),h[p]=f,c=p}function isDoubleSlashCommentLine(t){var r=findEndOfLine(t),i=e.substring(t,r);return/^\s*\/\//.test(i)}function findEndOfLine(e){for(var t=e;t<l&&"\n"!==charAt(t);)t++;return t}function next(){if(d.length>0)return d.shift();if(m)return readString();var r,i,o,s,n,c,h=0===f;do{if(f===l)return null;for(r=!1;a.test(o=charAt(f));)if("\n"===o&&(h=!0,++p),++f===l)return null;if("/"===charAt(f)){if(++f===l)throw illegal("comment");if("/"===charAt(f))if(u){if(s=f,n=!1,isDoubleSlashCommentLine(f-1)){n=!0;do{if((f=findEndOfLine(f))===l||(f++,!h))break;(c=isDoubleSlashCommentLine(f))&&p++}while(c)}else f=Math.min(l,findEndOfLine(f)+1);n&&(setComment(s,f,h),h=!0),p++,r=!0}else{for(n="/"===charAt(s=f+1);"\n"!==charAt(++f);)if(f===l)return null;++f,n&&(setComment(s,f-1,h),h=!0),++p,r=!0}else{if("*"!==(o=charAt(f)))return"/";s=f+1,n=u||"*"===charAt(s);do{if("\n"===o&&++p,++f===l)throw illegal("comment");i=o,o=charAt(f)}while("*"!==i||"/"!==o);++f,n&&(setComment(s,f-2,h),h=!0),r=!0}}}while(r);var y=f;if(t.lastIndex=0,!t.test(charAt(y++)))for(;y<l&&!t.test(charAt(y));)++y;var g=e.substring(f,f=y);return('"'===g||"'"===g)&&(m=g),g}function push(e){d.push(e)}function peek(){if(!d.length){var e=next();if(null===e)return null;push(e)}return d[0]}function skip(e,t){var r=peek();if(r===e)return next(),!0;if(!t)throw illegal("token '"+r+"', '"+e+"' expected");return!1}function cmnt(e){var t,r=null;return void 0===e?(t=h[p-1],delete h[p-1],t&&(u||"*"===t.type||t.lineEmpty)&&(r=t.leading?t.text:null)):(c<e&&peek(),t=h[e],delete h[e],t&&!t.lineEmpty&&(u||"/"===t.type)&&(r=t.leading?null:t.text)),r}return Object.defineProperty({next:next,peek:peek,push:push,skip:skip,cmnt:cmnt},"line",{get:function(){return p}})}tokenize.unescape=unescape},"./protobufjs/src/type.js"(e,t,r){"use strict";e.exports=Type;var i=r("./protobufjs/src/namespace.js");((Type.prototype=Object.create(i.prototype)).constructor=Type).className="Type";var o=r("./protobufjs/src/enum.js"),s=r("./protobufjs/src/oneof.js"),n=r("./protobufjs/src/field.js"),a=r("./protobufjs/src/mapfield.js"),u=r("./protobufjs/src/service.js"),f=r("./protobufjs/src/message.js"),l=r("./protobufjs/src/reader.js"),p=r("./protobufjs/src/writer.js"),c=r("./protobufjs/src/util.js"),h=r("./protobufjs/src/encoder.js"),d=r("./protobufjs/src/decoder.js"),m=r("./protobufjs/src/verifier.js"),y=r("./protobufjs/src/converter.js"),g=r("./protobufjs/src/wrappers.js");function Type(e,t){e=e.replace(/\W/g,""),i.call(this,e,t),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function clearCache(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(Type.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t<e.length;++t){var r=this.fields[e[t]],i=r.id;if(this._fieldsById[i])throw Error("duplicate id "+i+" in "+this);this._fieldsById[i]=r}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=c.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=c.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=Type.generateConstructor(this)())},set:function(e){var t,r=e.prototype;r instanceof f||((e.prototype=new f).constructor=e,c.merge(e.prototype,r)),e.$type=e.prototype.$type=this,c.merge(e,f,!0),this._ctor=e,delete this.decode,delete this.fromObject;for(var i=0;i<this.fieldsArray.length;++i)t=this._fieldsArray[i].resolve(),e.prototype[t.name]=t.defaultValue;var o={};for(i=0;i<this.oneofsArray.length;++i)o[this._oneofsArray[i].resolve().name]={get:c.oneOfGetter(this._oneofsArray[i].oneof),set:c.oneOfSetter(this._oneofsArray[i].oneof)};i&&Object.defineProperties(e.prototype,o)}}}),Type.generateConstructor=function(e){for(var t,r=c.codegen(["p"],e.name),i=0;i<e.fieldsArray.length;++i)(t=e._fieldsArray[i]).map?r("this%s={}",c.safeProp(t.name)):t.repeated&&r("this%s=[]",c.safeProp(t.name));return r('if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null&&ks[i]!=="__proto__")')("this[ks[i]]=p[ks[i]]")},Type.fromJSON=function(e,t,r){if(void 0===r&&(r=0),r>c.nestingLimit)throw Error("max depth exceeded");var f=new Type(e,t.options);f.extensions=t.extensions,f.reserved=t.reserved;for(var l=Object.keys(t.fields),p=0;p<l.length;++p)f.add((void 0!==t.fields[l[p]].keyType?a.fromJSON:n.fromJSON)(l[p],t.fields[l[p]]));if(t.oneofs)for(l=Object.keys(t.oneofs),p=0;p<l.length;++p)f.add(s.fromJSON(l[p],t.oneofs[l[p]]));if(t.nested)for(l=Object.keys(t.nested),p=0;p<l.length;++p){var h=t.nested[l[p]];f.add((void 0!==h.id?n.fromJSON:void 0!==h.fields?Type.fromJSON:void 0!==h.values?o.fromJSON:void 0!==h.methods?u.fromJSON:i.fromJSON)(l[p],h,r+1))}return t.extensions&&t.extensions.length&&(f.extensions=t.extensions),t.reserved&&t.reserved.length&&(f.reserved=t.reserved),t.group&&(f.group=!0),t.comment&&(f.comment=t.comment),t.edition&&(f._edition=t.edition),f._defaultEdition="proto3",f},Type.prototype.toJSON=function(e){var t=i.prototype.toJSON.call(this,e),r=!!e&&!!e.keepComments;return c.toObject(["edition",this._editionToJSON(),"options",t&&t.options||void 0,"oneofs",i.arrayToJSON(this.oneofsArray,e),"fields",i.arrayToJSON(this.fieldsArray.filter(function(e){return!e.declaringField}),e)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",t&&t.nested||void 0,"comment",r?this.comment:void 0])},Type.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;i.prototype.resolveAll.call(this);var e=this.oneofsArray;for(r=0;r<e.length;)e[r++].resolve();for(var t=this.fieldsArray,r=0;r<t.length;)t[r++].resolve();return this},Type.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(e=this._edition||e,i.prototype._resolveFeaturesRecursive.call(this,e),this.oneofsArray.forEach(t=>{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)})),this},Type.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},Type.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof n&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),clearCache(this))}return e instanceof s?"__proto__"===e.name?this:(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),clearCache(this)):i.prototype.add.call(this,e)},Type.prototype.remove=function(e){if(e instanceof n&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),clearCache(this)}if(e instanceof s){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),clearCache(this)}return i.prototype.remove.call(this,e)},Type.prototype.isReservedId=function(e){return i.isReservedId(this.reserved,e)},Type.prototype.isReservedName=function(e){return i.isReservedName(this.reserved,e)},Type.prototype.create=function(e){return new this.ctor(e)},Type.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r<this.fieldsArray.length;++r)t.push(this._fieldsArray[r].resolve().resolvedType);this.encode=h(this)({Writer:p,types:t,util:c}),this.decode=d(this)({Reader:l,types:t,util:c,C:this.ctor}),this.verify=m(this)({types:t,util:c}),this.fromObject=y.fromObject(this)({types:t,util:c,C:this.ctor}),this.toObject=y.toObject(this)({types:t,util:c});var i=g[e];if(i){var o=Object.create(this);o._ctor=this.ctor,o.fromObject=this.fromObject,this.fromObject=i.fromObject.bind(o),o.toObject=this.toObject,this.toObject=i.toObject.bind(o)}return this},Type.prototype.encode=function(e,t){return this.setup().encode.apply(this,arguments)},Type.prototype.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Type.prototype.decode=function(e,t){return this.setup().decode.apply(this,arguments)},Type.prototype.decodeDelimited=function(e){return e instanceof l||(e=l.create(e)),this.decode(e,e.uint32())},Type.prototype.verify=function(e){return this.setup().verify.apply(this,arguments)},Type.prototype.fromObject=function(e){return this.setup().fromObject.apply(this,arguments)},Type.prototype.toObject=function(e,t){return this.setup().toObject.apply(this,arguments)},Type.prototype.getTypeUrl=function(e){void 0===e&&(e="type.googleapis.com");var t=this.fullName;return e+"/"+("."===t.charAt(0)?t.substring(1):t)},Type.d=function(e){return function(t){c.decorateType(t,e)}}},"./protobufjs/src/types.js"(e,t,r){"use strict";var i=r("./protobufjs/src/util.js"),o=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function bake(e,t){var r=0,i=Object.create(null);for(t|=0;r<e.length;)i[o[r+t]]=e[r++];return i}t.basic=bake([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),t.defaults=bake([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",i.emptyArray,null]),t.long=bake([0,0,0,1,1],7),t.mapKey=bake([0,0,0,5,5,0,0,0,1,1,0,2],2),t.packed=bake([1,5,0,0,0,5,5,0,0,0,1,1,0])},"./protobufjs/src/util.js"(e,t,r){"use strict";var i,o,s=e.exports=r("./protobufjs/src/util/minimal.js"),n=r("./protobufjs/src/roots.js");s.codegen=r("./protobufjs/src/util/codegen.js"),s.fetch=r("./protobufjs/src/util/fetch.js"),s.path=r("./protobufjs/src/util/path.js"),s.patterns=r("./protobufjs/src/util/patterns.js");var a=s.patterns.reservedRe;s.fs=r("./protobufjs/src/util/fs.js"),s.toArray=function(e){if(e){for(var t=Object.keys(e),r=Array(t.length),i=0;i<t.length;)r[i]=e[t[i++]];return r}return[]},s.toObject=function(e){for(var t={},r=0;r<e.length;){var i=e[r++],o=e[r++];void 0!==o&&(t[i]=o)}return t},s.isReserved=function(e){return a.test(e)},s.safeProp=function(e){return!/^[$\w_]+$/.test(e)||a.test(e)?"["+JSON.stringify(e)+"]":"."+e},s.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.substring(1)};var u=/_([a-z])/g;s.camelCase=function(e){return e.substring(0,1)+e.substring(1).replace(u,function(e,t){return t.toUpperCase()})},s.compareFieldsById=function(e,t){return e.id-t.id},s.decorateType=function(e,t){if(e.$type)return t&&e.$type.name!==t&&(s.decorateRoot.remove(e.$type),e.$type.name=t,s.decorateRoot.add(e.$type)),e.$type;i||(i=r("./protobufjs/src/type.js"));var o=new i(t||e.name);return s.decorateRoot.add(o),o.ctor=e,Object.defineProperty(e,"$type",{value:o,enumerable:!1}),Object.defineProperty(e.prototype,"$type",{value:o,enumerable:!1}),o};var f=0;s.decorateEnum=function(e){if(e.$type)return e.$type;o||(o=r("./protobufjs/src/enum.js"));var t=new o("Enum"+f++,e);return s.decorateRoot.add(t),Object.defineProperty(e,"$type",{value:t,enumerable:!1}),t},s.setProperty=function(e,t,r,i){function setProp(e,t,r){var o=t.shift();if(s.isUnsafeProperty(o))return e;if(t.length>0)e[o]=setProp(e[o]||{},t,r);else{var n=e[o];if(n&&i)return e;n&&(r=[].concat(n).concat(r)),e[o]=r}return e}if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");if((t=t.split(".")).length>s.recursionLimit)throw Error("max depth exceeded");return setProp(e,t,r)},Object.defineProperty(s,"decorateRoot",{get:function(){return n.decorated||(n.decorated=new(r("./protobufjs/src/root.js")))}})},"./protobufjs/src/util/aspromise.js"(e){"use strict";e.exports=function asPromise(e,t){for(var r=Array(arguments.length-1),i=0,o=2,s=!0;o<arguments.length;)r[i++]=arguments[o++];return new Promise(function(o,n){r[i]=function(e){if(s)if(s=!1,e)n(e);else{for(var t=Array(arguments.length-1),r=0;r<t.length;)t[r++]=arguments[r];o.apply(null,t)}};try{e.apply(t||null,r)}catch(e){s&&(s=!1,n(e))}})}},"./protobufjs/src/util/base64.js"(e,t){"use strict";t.length=function(e){var t=e.length;if(!t)return 0;for(;t>0&&"="===e.charAt(t-1);)--t;return Math.floor(3*t/4)};for(var r=Array(64),i=Array(123),o=0;o<64;)i[r[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;i[45]=62,i[95]=63,t.encode=function(e,t,i){for(var o,s=null,n=[],a=0,u=0;t<i;){var f=e[t++];switch(u){case 0:n[a++]=r[f>>2],o=(3&f)<<4,u=1;break;case 1:n[a++]=r[o|f>>4],o=(15&f)<<2,u=2;break;case 2:n[a++]=r[o|f>>6],n[a++]=r[63&f],u=0}a>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,n)),a=0)}return(u&&(n[a++]=r[o],n[a++]=61,1===u&&(n[a++]=61)),s)?(a&&s.push(String.fromCharCode.apply(String,n.slice(0,a))),s.join("")):String.fromCharCode.apply(String,n.slice(0,a))};var s="invalid encoding";t.decode=function(e,t,r){for(var o,n=r,a=0,u=0;u<e.length;){var f=e.charCodeAt(u++);if(61===f&&a>1)break;if(void 0===(f=i[f]))throw Error(s);switch(a){case 0:o=f,a=1;break;case 1:t[r++]=o<<2|(48&f)>>4,o=f,a=2;break;case 2:t[r++]=(15&o)<<4|(60&f)>>2,o=f,a=3;break;case 3:t[r++]=(3&o)<<6|f,a=0}}if(1===a)throw Error(s);return r-n};var n=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,a=/[-_]/,u=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2}(?:==)?|[A-Za-z0-9_-]{3}=?)?$/;t.test=function(e){return n.test(e)||a.test(e)&&u.test(e)}},"./protobufjs/src/util/codegen.js"(e,t,r){"use strict";e.exports=codegen;var i=r("./protobufjs/src/util/patterns.js").reservedRe;function codegen(e,t){"string"==typeof e&&(t=e,e=void 0);var r=[];function Codegen(e){if("string"!=typeof e){var t=toString();if(codegen.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var i=Object.keys(e),o=Array(i.length+1),s=Array(i.length),n=0;n<i.length;)o[n]=i[n],s[n]=e[i[n++]];return o[n]=t,Function.apply(null,o).apply(null,s)}return Function(t)()}for(var a=Array(arguments.length-1),u=0;u<a.length;)a[u]=arguments[++u];if(u=0,e=e.replace(/%([%dfijs])/g,function(e,t){var r=a[u++];switch(t){case"d":case"f":return String(Number(r));case"i":return String(Math.floor(r));case"j":return JSON.stringify(r);case"s":return String(r)}return"%"}),u!==a.length)throw Error("parameter count mismatch");return r.push(e),Codegen}function toString(i){return"function "+safeFunctionName(i||t)+"("+(e&&e.join(",")||"")+"){\n "+r.join("\n ")+"\n}"}return Codegen.toString=toString,Codegen}function safeFunctionName(e){return e&&(e=String(e).replace(/[^\w$]/g,""))?(/^\d/.test(e)&&(e="_"+e),i.test(e)?e+"_":e):""}codegen.verbose=!1},"./protobufjs/src/util/eventemitter.js"(e){"use strict";function EventEmitter(){this._listeners=Object.create(null)}e.exports=EventEmitter,EventEmitter.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},EventEmitter.prototype.off=function(e,t){if(void 0===e)this._listeners=Object.create(null);else if(void 0===t)this._listeners[e]=[];else{var r=this._listeners[e];if(!r)return this;for(var i=0;i<r.length;)r[i].fn===t?r.splice(i,1):++i}return this},EventEmitter.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var r=[],i=1;i<arguments.length;)r.push(arguments[i++]);for(i=0;i<t.length;)t[i].fn.apply(t[i++].ctx,r)}return this}},"./protobufjs/src/util/fetch.js"(e,t,r){"use strict";e.exports=fetch;var i=r("./protobufjs/src/util/aspromise.js"),o=r("./protobufjs/src/util/fs.js");function fetch(e,t,r){return("function"==typeof t?(r=t,t={}):t||(t={}),r)?!t.xhr&&o&&o.readFile?o.readFile(e,function(i,o){return i&&"u">typeof XMLHttpRequest?fetch.xhr(e,t,r):i?r(i):r(null,t.binary?o:o.toString("utf8"))}):fetch.xhr(e,t,r):i(fetch,this,e,t)}fetch.xhr=function(e,t,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){if(4===i.readyState){if(0!==i.status&&200!==i.status)return r(Error("status "+i.status));if(t.binary){var e=i.response;if(!e){e=[];for(var o=0;o<i.responseText.length;++o)e.push(255&i.responseText.charCodeAt(o))}return r(null,"u">typeof Uint8Array?new Uint8Array(e):e)}return r(null,i.responseText)}},t.binary&&("overrideMimeType"in i&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.responseType="arraybuffer"),i.open("GET",e),i.send()}},"./protobufjs/src/util/float.js"(e){"use strict";function factory(e){if("u">typeof Float32Array)!function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),i=128===r[3];function writeFloat_f32_cpy(e,i,o){t[0]=e,i[o]=r[0],i[o+1]=r[1],i[o+2]=r[2],i[o+3]=r[3]}function writeFloat_f32_rev(e,i,o){t[0]=e,i[o]=r[3],i[o+1]=r[2],i[o+2]=r[1],i[o+3]=r[0]}function readFloat_f32_cpy(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],t[0]}function readFloat_f32_rev(e,i){return r[3]=e[i],r[2]=e[i+1],r[1]=e[i+2],r[0]=e[i+3],t[0]}e.writeFloatLE=i?writeFloat_f32_cpy:writeFloat_f32_rev,e.writeFloatBE=i?writeFloat_f32_rev:writeFloat_f32_cpy,e.readFloatLE=i?readFloat_f32_cpy:readFloat_f32_rev,e.readFloatBE=i?readFloat_f32_rev:readFloat_f32_cpy}();else{function writeFloat_ieee754(e,t,r,i){var o=+(t<0);if(o&&(t=-t),0===t)e(1/t>0?0:0x80000000,r,i);else if(isNaN(t))e(0x7fc00000,r,i);else if(t>34028234663852886e22)e((o<<31|0x7f800000)>>>0,r,i);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,i);else{var s=Math.floor(Math.log(t)/Math.LN2),n=8388607&Math.round(t*Math.pow(2,-s)*8388608);e((o<<31|s+127<<23|n)>>>0,r,i)}}function readFloat_ieee754(e,t,r){var i=e(t,r),o=(i>>31)*2+1,s=i>>>23&255,n=8388607&i;return 255===s?n?NaN:1/0*o:0===s?1401298464324817e-60*o*n:o*Math.pow(2,s-150)*(n+8388608)}e.writeFloatLE=writeFloat_ieee754.bind(null,writeUintLE),e.writeFloatBE=writeFloat_ieee754.bind(null,writeUintBE),e.readFloatLE=readFloat_ieee754.bind(null,readUintLE),e.readFloatBE=readFloat_ieee754.bind(null,readUintBE)}if("u">typeof Float64Array)!function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),i=128===r[7];function writeDouble_f64_cpy(e,i,o){t[0]=e,i[o]=r[0],i[o+1]=r[1],i[o+2]=r[2],i[o+3]=r[3],i[o+4]=r[4],i[o+5]=r[5],i[o+6]=r[6],i[o+7]=r[7]}function writeDouble_f64_rev(e,i,o){t[0]=e,i[o]=r[7],i[o+1]=r[6],i[o+2]=r[5],i[o+3]=r[4],i[o+4]=r[3],i[o+5]=r[2],i[o+6]=r[1],i[o+7]=r[0]}function readDouble_f64_cpy(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],r[4]=e[i+4],r[5]=e[i+5],r[6]=e[i+6],r[7]=e[i+7],t[0]}function readDouble_f64_rev(e,i){return r[7]=e[i],r[6]=e[i+1],r[5]=e[i+2],r[4]=e[i+3],r[3]=e[i+4],r[2]=e[i+5],r[1]=e[i+6],r[0]=e[i+7],t[0]}e.writeDoubleLE=i?writeDouble_f64_cpy:writeDouble_f64_rev,e.writeDoubleBE=i?writeDouble_f64_rev:writeDouble_f64_cpy,e.readDoubleLE=i?readDouble_f64_cpy:readDouble_f64_rev,e.readDoubleBE=i?readDouble_f64_rev:readDouble_f64_cpy}();else{function writeDouble_ieee754(e,t,r,i,o,s){var n,a=+(i<0);if(a&&(i=-i),0===i)e(0,o,s+t),e(1/i>0?0:0x80000000,o,s+r);else if(isNaN(i))e(0,o,s+t),e(0x7ff80000,o,s+r);else if(i>17976931348623157e292)e(0,o,s+t),e((a<<31|0x7ff00000)>>>0,o,s+r);else if(i<22250738585072014e-324)e((n=i/5e-324)>>>0,o,s+t),e((a<<31|n/0x100000000)>>>0,o,s+r);else{var u=Math.floor(Math.log(i)/Math.LN2);1024===u&&(u=1023),e(0x10000000000000*(n=i*Math.pow(2,-u))>>>0,o,s+t),e((a<<31|u+1023<<20|1048576*n&1048575)>>>0,o,s+r)}}function readDouble_ieee754(e,t,r,i,o){var s=e(i,o+t),n=e(i,o+r),a=(n>>31)*2+1,u=n>>>20&2047,f=0x100000000*(1048575&n)+s;return 2047===u?f?NaN:1/0*a:0===u?5e-324*a*f:a*Math.pow(2,u-1075)*(f+0x10000000000000)}e.writeDoubleLE=writeDouble_ieee754.bind(null,writeUintLE,0,4),e.writeDoubleBE=writeDouble_ieee754.bind(null,writeUintBE,4,0),e.readDoubleLE=readDouble_ieee754.bind(null,readUintLE,0,4),e.readDoubleBE=readDouble_ieee754.bind(null,readUintBE,4,0)}return e}function writeUintLE(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function writeUintBE(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function readUintLE(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function readUintBE(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=factory(factory)},"./protobufjs/src/util/fs.js"(e,t,r){"use strict";var i=null;try{(i=r("fs"))&&i.readFile&&i.readFileSync||(i=null)}catch(e){}e.exports=i},"./protobufjs/src/util/inquire.js"(e,t,r){"use strict";e.exports=function inquire(e){try{var t=r("./protobufjs/src/util sync recursive")(e);if(t&&(t.length||Object.keys(t).length))return t;return null}catch(e){return null}}},"./protobufjs/src/util/longbits.js"(e,t,r){"use strict";e.exports=LongBits;var i=r("./protobufjs/src/util/minimal.js");function LongBits(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=LongBits.zero=new LongBits(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=LongBits.zeroHash="\0\0\0\0\0\0\0\0";LongBits.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var r=e>>>0,i=(e-r)/0x100000000>>>0;return t&&(i=~i>>>0,r=~r>>>0,++r>0xffffffff&&(r=0,++i>0xffffffff&&(i=0))),new LongBits(r,i)},LongBits.from=function(e){if("number"==typeof e)return LongBits.fromNumber(e);if(i.isString(e))if(!i.Long)return LongBits.fromNumber(parseInt(e,10));else e=i.Long.fromString(e);return e.low||e.high?new LongBits(e.low>>>0,e.high>>>0):o},LongBits.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+0x100000000*r)}return this.lo+0x100000000*this.hi},LongBits.prototype.toLong=function(e){return i.Long?new i.Long(0|this.lo,0|this.hi,!!e):{low:0|this.lo,high:0|this.hi,unsigned:!!e}};var n=String.prototype.charCodeAt;LongBits.fromHash=function(e){return e===s?o:new LongBits((n.call(e,0)|n.call(e,1)<<8|n.call(e,2)<<16|n.call(e,3)<<24)>>>0,(n.call(e,4)|n.call(e,5)<<8|n.call(e,6)<<16|n.call(e,7)<<24)>>>0)},LongBits.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},LongBits.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},LongBits.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},LongBits.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},"./protobufjs/src/util/minimal.js"(e,t,r){"use strict";function isUnsafeProperty(e){return"__proto__"===e||"prototype"===e||"constructor"===e}function merge(e){var t="boolean"==typeof arguments[arguments.length-1],r=t?arguments.length-1:arguments.length;t=t&&arguments[arguments.length-1];for(var i=1;i<r;++i){var o=arguments[i];if(o)for(var s=Object.keys(o),n=0;n<s.length;++n)isUnsafeProperty(s[n])||void 0!==e[s[n]]&&t||(e[s[n]]=o[s[n]])}return e}function newError(e){function CustomError(e,t){if(!(this instanceof CustomError))return new CustomError(e,t);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,CustomError):Object.defineProperty(this,"stack",{value:Error().stack||""}),t&&merge(this,t)}return CustomError.prototype=Object.create(Error.prototype,{constructor:{value:CustomError,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),CustomError}t.asPromise=r("./protobufjs/src/util/aspromise.js"),t.base64=r("./protobufjs/src/util/base64.js"),t.EventEmitter=r("./protobufjs/src/util/eventemitter.js"),t.float=r("./protobufjs/src/util/float.js"),t.inquire=r("./protobufjs/src/util/inquire.js"),t.utf8=r("./protobufjs/src/util/utf8.js"),t.pool=r("./protobufjs/src/util/pool.js"),t.LongBits=r("./protobufjs/src/util/longbits.js"),t.isUnsafeProperty=isUnsafeProperty,t.isNode=!!("u">typeof global&&global&&global.process&&global.process.versions&&global.process.versions.node),t.global=t.isNode&&global||"u">typeof window&&window||"u">typeof self&&self||this,t.emptyArray=Object.freeze?Object.freeze([]):[],t.emptyObject=Object.freeze?Object.freeze({}):{},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.isString=function(e){return"string"==typeof e||e instanceof String},t.isObject=function(e){return e&&"object"==typeof e},t.isset=t.isSet=function(e,t){var r=e[t];return!!(null!=r&&e.hasOwnProperty(t))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},t.Buffer=function(){try{var e=t.global.Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),t._Buffer_from=null,t._Buffer_allocUnsafe=null,t.newBuffer=function(e){return"number"==typeof e?t.Buffer?t._Buffer_allocUnsafe(e):new t.Array(e):t.Buffer?t._Buffer_from(e):"u"<typeof Uint8Array?e:new Uint8Array(e)},t.Array="u">typeof Uint8Array?Uint8Array:Array,t.Long=t.global.dcodeIO&&t.global.dcodeIO.Long||t.global.Long||function(){try{var e=r("./long/umd/index.js");return e&&e.isLong?e:null}catch(e){return null}}(),t.key2Re=/^(?:true|false|0|1)$/,t.key32Re=/^-?(?:0|[1-9][0-9]*)$/,t.key64Re=/^(?:[\x00-\xff]{8}|-?(?:0|[1-9][0-9]*))$/,t.longToHash=function(e){return e?t.LongBits.from(e).toHash():t.LongBits.zeroHash},t.longFromHash=function(e,r){var i=t.LongBits.fromHash(e);return t.Long?t.Long.fromBits(i.lo,i.hi,r):i.toNumber(!!r)},t.longFromKey=function(e,r){return t.key64Re.test(e)&&!t.key32Re.test(e)?t.longFromHash(e,r):e},t.boolFromKey=function(e){return"true"===e||"1"===e},t.merge=merge,t.nestingLimit=32,t.recursionLimit=100,t.makeProp=function(e,t,r){Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:void 0===r||r,configurable:!0,writable:!0})},t.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},t.newError=newError,t.ProtocolError=newError("ProtocolError"),t.oneOfGetter=function(e){for(var t={},r=0;r<e.length;++r)t[e[r]]=1;return function(){for(var e=Object.keys(this),r=e.length-1;r>-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},t.oneOfSetter=function(e){return function(t){for(var r=0;r<e.length;++r)e[r]!==t&&delete this[e[r]]}},t.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},t._configure=function(){var e=t.Buffer;if(!e){t._Buffer_from=t._Buffer_allocUnsafe=null;return}t._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,r){return new e(t,r)},t._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}}},"./protobufjs/src/util/path.js"(e,t){"use strict";var r=t.isAbsolute=function(e){return/^(?:\/|\w+:|\\\\\w+)/.test(e)},i=t.normalize=function(e){var t=e.substring(0,2),i="";"\\\\"===t&&(i=t,e=e.substring(2));var o=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),s=r(e),n="";s&&(n=o.shift()+"/");for(var a=0;a<o.length;)".."===o[a]?a>0&&".."!==o[a-1]?o.splice(--a,2):s?o.splice(a,1):++a:"."===o[a]?o.splice(a,1):++a;return i+n+o.join("/")};t.resolve=function(e,t,o){return(o||(t=i(t)),r(t))?t:(o||(e=i(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?i(e+"/"+t):t)}},"./protobufjs/src/util/patterns.js"(e,t){"use strict";t.numberRe=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,t.typeRefRe=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,t.reservedRe=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/},"./protobufjs/src/util/pool.js"(e){"use strict";e.exports=function pool(e,t,r){var i=r||8192,o=i>>>1,s=null,n=i;return function(r){if(r<1||r>o)return e(r);n+r>i&&(s=e(i),n=0);var a=t.call(s,n,n+=r);return 7&n&&(n=(7|n)+1),a}}},"./protobufjs/src/util/utf8.js"(e,t){"use strict";function utf8_read_js(e,t,r,i){for(var o=t;o<r;){var s=e[o++];if(s<=127)i+=String.fromCharCode(s);else if(s>=192&&s<224){var n=(31&s)<<6|63&e[o++];i+=n>=128?String.fromCharCode(n):"�"}else if(s>=224&&s<240){var a=(15&s)<<12|(63&e[o++])<<6|63&e[o++];i+=a>=2048?String.fromCharCode(a):"�"}else if(s>=240){var u=(7&s)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++];u<65536||u>1114111?i+="�":(u-=65536,i+=String.fromCharCode(55296+(u>>10)),i+=String.fromCharCode(56320+(1023&u)))}}return i}t.length=function(e){for(var t=0,r=0,i=0;i<e.length;++i)(r=e.charCodeAt(i))<128?t+=1:r<2048?t+=2:(64512&r)==55296&&(64512&e.charCodeAt(i+1))==56320?(++i,t+=4):t+=3;return t},t.read=function(e,t,r){if(r-t<1)return"";for(var i,o,s,n,a,u,f,l,p="",c=t;c+7<r;c+=8){if(i=e[c],o=e[c+1],s=e[c+2],n=e[c+3],a=e[c+4],u=e[c+5],(i|o|s|n|a|u|(f=e[c+6])|(l=e[c+7]))&128)return utf8_read_js(e,c,r,p);p+=String.fromCharCode(i,o,s,n,a,u,f,l)}for(;c<r;++c){if(128&(i=e[c]))return utf8_read_js(e,c,r,p);p+=String.fromCharCode(i)}return p},t.write=function(e,t,r){for(var i,o,s=r,n=0;n<e.length;++n)(i=e.charCodeAt(n))<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)==55296&&(64512&(o=e.charCodeAt(n+1)))==56320?(i=65536+((1023&i)<<10)+(1023&o),++n,t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128);return r-s}},"./protobufjs/src/verifier.js"(e,t,r){"use strict";e.exports=verifier;var i=r("./protobufjs/src/enum.js"),o=r("./protobufjs/src/util.js");function invalid(e,t){return e.name+": "+t+(e.repeated&&"array"!==t?"[]":e.map&&"object"!==t?"{k:"+e.keyType+"}":"")+" expected"}function genVerifyValue(e,t,r,o){if(t.resolvedType)if(t.resolvedType instanceof i){e("switch(%s){",o)("default:")("return%j",invalid(t,"enum value"));for(var s=Object.keys(t.resolvedType.values),n=0;n<s.length;++n)e("case %i:",t.resolvedType.values[s[n]]);e("break")("}")}else e("{")("var e=types[%i].verify(%s,q+1);",r,o)("if(e)")("return%j+e",t.name+".")("}");else switch(t.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.isInteger(%s))",o)("return%j",invalid(t,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",o,o,o,o)("return%j",invalid(t,"integer|Long"));break;case"float":case"double":e('if(typeof %s!=="number")',o)("return%j",invalid(t,"number"));break;case"bool":e('if(typeof %s!=="boolean")',o)("return%j",invalid(t,"boolean"));break;case"string":e("if(!util.isString(%s))",o)("return%j",invalid(t,"string"));break;case"bytes":e('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',o,o,o)("return%j",invalid(t,"buffer"))}return e}function genVerifyKey(e,t,r){switch(t.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.key32Re.test(%s))",r)("return%j",invalid(t,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.key64Re.test(%s))",r)("return%j",invalid(t,"integer|Long key"));break;case"bool":e("if(!util.key2Re.test(%s))",r)("return%j",invalid(t,"boolean key"))}return e}function verifier(e){var t=o.codegen(["m","q"],e.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected")("if(q===undefined)q=0")("if(q>util.recursionLimit)")("return%j","max depth exceeded"),r=e.oneofsArray,i={};r.length&&t("var p={}");for(var s=0;s<e.fieldsArray.length;++s){var n=e._fieldsArray[s].resolve(),a="m"+o.safeProp(n.name);if(n.optional&&t("if(%s!=null&&m.hasOwnProperty(%j)){",a,n.name),n.map)t("if(!util.isObject(%s))",a)("return%j",invalid(n,"object"))("var k=Object.keys(%s)",a)("for(var i=0;i<k.length;++i){"),genVerifyKey(t,n,"k[i]"),genVerifyValue(t,n,s,a+"[k[i]]")("}");else if(n.repeated)t("if(!Array.isArray(%s))",a)("return%j",invalid(n,"array"))("for(var i=0;i<%s.length;++i){",a),genVerifyValue(t,n,s,a+"[i]")("}");else{if(n.partOf){var u=o.safeProp(n.partOf.name);1===i[n.partOf.name]&&t("if(p%s===1)",u)("return%j",n.partOf.name+": multiple values"),i[n.partOf.name]=1,t("p%s=1",u)}genVerifyValue(t,n,s,a)}n.optional&&t("}")}return t("return null")}},"./protobufjs/src/wrappers.js"(e,t,r){"use strict";var i=r("./protobufjs/src/message.js"),o=r("./protobufjs/src/util/minimal.js");t[".google.protobuf.Any"]={fromObject:function(e,t){if(e&&e["@type"]){var r=e["@type"].substring(e["@type"].lastIndexOf("/")+1),i=this.lookup(r);if(i){var o="."===e["@type"].charAt(0)?e["@type"].slice(1):e["@type"];return -1===o.indexOf("/")&&(o="/"+o),this.create({type_url:o,value:i.encode(i.fromObject(e,void 0===t?1:t+1)).finish()})}}return this.fromObject(e,t)},toObject:function(e,t,r){if(void 0===r&&(r=0),r>o.recursionLimit)throw Error("max depth exceeded");var s="",n="";if(t&&t.json&&e.type_url&&e.value){n=e.type_url.substring(e.type_url.lastIndexOf("/")+1),s=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var a=this.lookup(n);a&&(e=a.decode(e.value,void 0,void 0,r+1))}if(!(e instanceof this.ctor)&&e instanceof i){var u=e.$type.toObject(e,t,r+1);return""===s&&(s="type.googleapis.com/"),n=s+("."===e.$type.fullName[0]?e.$type.fullName.slice(1):e.$type.fullName),u["@type"]=n,u}return this.toObject(e,t,r)}}},"./protobufjs/src/writer.js"(e,t,r){"use strict";e.exports=Writer;var i,o=r("./protobufjs/src/util/minimal.js"),s=o.LongBits,n=o.base64,a=o.utf8;function Op(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function noop(){}function State(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function Writer(){this.len=0,this.head=new Op(noop,0,0),this.tail=this.head,this.states=null}var create=function(){return o.Buffer?function(){return(Writer.create=function(){return new i})()}:function(){return new Writer}};function writeByte(e,t,r){t[r]=255&e}function writeStringAscii(e,t,r){for(var i=0;i<e.length;)t[r++]=e.charCodeAt(i++)}function writeVarint32(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e}function VarintOp(e,t){this.len=e,this.next=void 0,this.val=t}function writeVarint64(e,t,r){for(var i=e.lo,o=e.hi;o;)t[r++]=127&i|128,i=(i>>>7|o<<25)>>>0,o>>>=7;for(;i>127;)t[r++]=127&i|128,i>>>=7;t[r++]=i}function writeFixed32(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}Writer.create=create(),Writer.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(Writer.alloc=o.pool(Writer.alloc,o.Array.prototype.subarray)),Writer.prototype._push=function(e,t,r){return this.tail=this.tail.next=new Op(e,t,r),this.len+=t,this},VarintOp.prototype=Object.create(Op.prototype),VarintOp.prototype.fn=writeVarint32,Writer.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new VarintOp((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this},Writer.prototype.int32=function(e){return(e|=0)<0?this._push(writeVarint64,10,s.fromNumber(e)):this.uint32(e)},Writer.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},Writer.prototype.uint64=function(e){var t=s.from(e);return this._push(writeVarint64,t.length(),t)},Writer.prototype.int64=Writer.prototype.uint64,Writer.prototype.sint64=function(e){var t=s.from(e).zzEncode();return this._push(writeVarint64,t.length(),t)},Writer.prototype.bool=function(e){return this._push(writeByte,1,+!!e)},Writer.prototype.fixed32=function(e){return this._push(writeFixed32,4,e>>>0)},Writer.prototype.sfixed32=Writer.prototype.fixed32,Writer.prototype.fixed64=function(e){var t=s.from(e);return this._push(writeFixed32,4,t.lo)._push(writeFixed32,4,t.hi)},Writer.prototype.sfixed64=Writer.prototype.fixed64,Writer.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},Writer.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var u=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var i=0;i<e.length;++i)t[r+i]=e[i]};Writer.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(writeByte,1,0);if(o.isString(e)){var r=Writer.alloc(t=n.length(e));n.decode(e,r,0),e=r}return this.uint32(t)._push(u,t,e)},Writer.prototype.raw=function(e){var t=e.length>>>0;return t?this._push(u,t,e):this},Writer.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(t===e.length?writeStringAscii:a.write,t,e):this._push(writeByte,1,0)},Writer.prototype.fork=function(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this},Writer.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this},Writer.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},Writer.prototype.finish=function(){return this.finishInto(this.constructor.alloc(this.len),0)},Writer.prototype.finishInto=function(e,t){void 0===t&&(t=0);for(var r=this.head.next,i=t;r;)r.fn(r.val,e,i),i+=r.len,r=r.next;return e},Writer._configure=function(e){i=e,Writer.create=create(),i._configure()}},"./protobufjs/src/writer_buffer.js"(e,t,r){"use strict";e.exports=BufferWriter;var i=r("./protobufjs/src/writer.js");(BufferWriter.prototype=Object.create(i.prototype)).constructor=BufferWriter;var o=r("./protobufjs/src/util/minimal.js");function BufferWriter(){i.call(this)}function writeStringBufferAscii(e,t,r){for(var i=0;i<e.length;)t[r++]=e.charCodeAt(i++)}function writeStringBuffer(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}BufferWriter._configure=function(){BufferWriter.alloc=o._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var i=0;i<e.length;)t[r++]=e[i++]}},BufferWriter.prototype.bytes=function(e){o.isString(e)&&(e=o._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(BufferWriter.writeBytesBuffer,t,e),this},BufferWriter.prototype.raw=function(e){var t=e.length>>>0;return t?this._push(BufferWriter.writeBytesBuffer,t,e):this},BufferWriter.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(t===e.length&&t<40?writeStringBufferAscii:writeStringBuffer,t,e),this},BufferWriter._configure()}},t={};function __webpack_require__(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,__webpack_require__),o.exports}__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r=__webpack_require__("./protobufjs/index.js");module.exports=r})();
|
|
1
|
+
(()=>{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(!util.isObject(d%s))",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"])("if(d instanceof C)")("return d")("if(!util.isObject(d))")("throw TypeError(%j)",e.fullName+": object expected")("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(!util.isObject(d%s))",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"])("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&&Object.hasOwnProperty.call(m,%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"])("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")("if(!r.discardUnknown){")('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(!Object.hasOwnProperty.call(m,%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"])("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,this.protoName=void 0,this.jsonName=void 0}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),t.protoName&&(r.protoName=t.protoName),void 0!==t.jsonName?r.jsonName=t.jsonName:t.options&&void 0!==t.options.json_name&&(r.jsonName=t.options.json_name),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,"protoName",this.protoName!==this.name?this.protoName:void 0,"jsonName",this.jsonName!==a.jsonName(this.protoName||this.name)?this.jsonName:void 0,"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),void 0===this.protoName&&(this.protoName=this.name),void 0===this.jsonName&&(this.jsonName=a.jsonName(this.protoName)),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){var r=new MapField(e,t.id,t.keyType,t.type,t.options,t.comment);return t.protoName&&(r.protoName=t.protoName),void 0!==t.jsonName?r.jsonName=t.jsonName:t.options&&void 0!==t.options.json_name&&(r.jsonName=t.options.json_name),r},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,"protoName",this.protoName!==this.name?this.protoName:void 0,"jsonName",this.jsonName!==s.jsonName(this.protoName||this.name)?this.jsonName:void 0,"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.path="/"+this.name,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(){if(this.resolved)return this;if(this.parent){var e=this.parent.fullName;"."===e.charAt(0)&&(e=e.substring(1)),this.path="/"+e+"/"+this.name}else this.path="/"+this.name;return 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._lookupImpl(e,i);if(o&&(!t||t.indexOf(o.constructor)>-1)||(o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+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 e.parent&&e.parent!==this.parent&&e.parent.remove(e),this.oneof.push(e.name),this.fieldsArray.push(e),e.partOf=this,addFieldsToParent(this),this},OneOf.prototype.remove=function(e){if(!(e instanceof o))throw TypeError("field must be a Field");var t=this.fieldsArray.indexOf(e);if(t<0)throw Error(e+" is not a member of "+this);return this.fieldsArray.splice(t,1),(t=this.oneof.indexOf(e.name))>-1&&this.oneof.splice(t,1),e.partOf=null,this},OneOf.prototype.onAdd=function(e){i.prototype.onAdd.call(this,e);for(var t=0;t<this.oneof.length;++t){var r=e.get(this.oneof[t]);r&&!r.partOf&&(r.partOf=this,this.fieldsArray.push(r))}addFieldsToParent(this)},OneOf.prototype.onRemove=function(e){for(var t,r=0;r<this.fieldsArray.length;++r)(t=this.fieldsArray[r]).parent&&t.parent.remove(t);i.prototype.onRemove.call(this,e)},Object.defineProperty(OneOf.prototype,"isProto3Optional",{get:function(){if(null==this.fieldsArray||1!==this.fieldsArray.length)return!1;var e=this.fieldsArray[0];return null!=e.options&&!0===e.options.proto3_optional}}),OneOf.d=function(){for(var e=Array(arguments.length),t=0;t<arguments.length;)e[t]=arguments[t++];return function(t,r){s.decorateType(t.constructor).add(new OneOf(r,e)),Object.defineProperty(t,r,{get:s.oneOfGetter(e),set:s.oneOfSetter(e)})}}},"./protobufjs/src/parse.js"(e,t,r){"use strict";e.exports=parse,parse.filename=null,parse.defaults={keepCase:!1};var i=r("./protobufjs/src/tokenize.js"),o=r("./protobufjs/src/root.js"),s=r("./protobufjs/src/type.js"),n=r("./protobufjs/src/field.js"),a=r("./protobufjs/src/mapfield.js"),u=r("./protobufjs/src/oneof.js"),f=r("./protobufjs/src/enum.js"),l=r("./protobufjs/src/service.js"),p=r("./protobufjs/src/method.js"),c=r("./protobufjs/src/object.js"),h=r("./protobufjs/src/types.js"),d=r("./protobufjs/src/util.js"),m=/^[1-9][0-9]*$/,y=/^-?[1-9][0-9]*$/,g=/^0[x][0-9a-fA-F]+$/,v=/^-?0[x][0-9a-fA-F]+$/,b=/^0[0-7]+$/,j=/^-?0[0-7]+$/,w=d.patterns.numberRe,_=/^[a-zA-Z_][a-zA-Z_0-9]*$/,O=d.patterns.typeRefRe;function parse(e,t,r){t instanceof o||(r=t,t=new o),r||(r=parse.defaults);var E,k,x,N,A=r.preferTrailingComment||!1,R=i(e,r.alternateCommentMode||!1),S=R.next,T=R.push,B=R.peek,L=R.skip,F=R.cmnt,I=!0,P="proto2",C=t,D=[],V={},q=r.keepCase?function(e){return e}:d.camelCase;function resolveFileFeatures(){D.forEach(e=>{e._edition=P,Object.keys(V).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,V[t],!0)})})}function illegal(e,t,r){var i=parse.filename;return r||(parse.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(i?i+", ":"")+"line "+R.line+")")}function readString(){var e,t=[];do{if('"'!==(e=S())&&"'"!==e)throw illegal(e);t.push(S()),L(e),e=B()}while('"'===e||"'"===e);return t.join("")}function readValue(e){var t=S();switch(t){case"'":case'"':return T(t),readString();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return parseNumber(t,!0)}catch(r){if(e&&O.test(t))return t;throw illegal(t,"value")}}function readRanges(e,t,r,i){do if(t&&('"'===(o=B())||"'"===o)){var o,s,n=readString();if(e.push(n),P>=2023)throw illegal(n,"id")}else try{e.push([s=parseId(S(),i,r),L("to",!0)?parseId(S(),i,r):s])}catch(r){if(t&&O.test(o)&&P>=2023)e.push(o);else throw r}while(L(",",!0));var a={options:void 0};a.setOption=function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t},ifBlock(a,function(e){if("option"===e)parseOption(a,e),L(";");else throw illegal(e)},function(){parseInlineOptions(a)})}function parseNumber(e,t){var r=1;switch("-"===e.charAt(0)&&(r=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return 1/0*r;case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(m.test(e))return r*parseInt(e,10);if(g.test(e))return r*parseInt(e,16);if(b.test(e))return r*parseInt(e,8);if(w.test(e))return r*parseFloat(e);throw illegal(e,"number",t)}function parseId(e,t,r){switch(e){case"max":case"MAX":case"Max":return r||0x1fffffff;case"0":return 0}if(!t&&"-"===e.charAt(0))throw illegal(e,"id");if(y.test(e))return parseInt(e,10);if(v.test(e))return parseInt(e,16);if(j.test(e))return parseInt(e,8);throw illegal(e,"id")}function parsePackage(){if(void 0!==k)throw illegal("package");if(k=S(),!O.test(k))throw illegal(k,"name");C=C.define(k),L(";")}function parseImport(){var e,t=B();switch(t){case"option":if(P<"2024")throw illegal("option");S(),readString(),L(";");return;case"weak":e=N||(N=[]),S();break;case"public":S();default:e=x||(x=[])}t=readString(),L(";"),e.push(t)}function parseSyntax(){if(L("="),(P=readString())<2023)throw illegal(P,"syntax");L(";")}function parseEdition(){if(L("="),!["2023","2024"].includes(P=readString()))throw illegal(P,"edition");L(";")}function parseCommon(e,t,r){switch(void 0===r&&(r=0),t){case"option":return parseOption(e,t),L(";"),!0;case"message":return parseType(e,t,r+1),!0;case"enum":return parseEnum(e,t),!0;case"export":case"local":if(P<"2024"||"export"===(t=S())||"local"===t||"message"!==t&&"enum"!==t)break;return parseCommon(e,t,r);case"service":return parseService(e,t,r+1),!0;case"extend":return parseExtension(e,t,r),!0}return!1}function ifBlock(e,t,r){var i,o=R.line;if(e&&("string"!=typeof e.comment&&(e.comment=F()),e.filename=parse.filename),L("{",!0)){for(;"}"!==(i=S());)t(i);L(";",!0)}else r&&r(),L(";"),e&&("string"!=typeof e.comment||A)&&(e.comment=F(o)||e.comment)}function parseType(e,t,r){if(void 0===r&&(r=0),r>d.nestingLimit)throw Error("max depth exceeded");if(!_.test(t=S()))throw illegal(t,"type name");var i=new s(t);ifBlock(i,function(e){if(!parseCommon(i,e,r))switch(e){case";":break;case"map":parseMapField(i,e);break;case"required":if("proto2"!==P)throw illegal(e);case"repeated":parseField(i,e,void 0,r+1);break;case"optional":if("proto3"===P)parseField(i,"proto3_optional",void 0,r+1);else if("proto2"!==P)throw illegal(e);else parseField(i,"optional",void 0,r+1);break;case"oneof":parseOneOf(i,e,r+1);break;case"extensions":readRanges(i.extensions||(i.extensions=[]));break;case"reserved":readRanges(i.reserved||(i.reserved=[]),!0);break;default:if("proto2"===P||!O.test(e))throw illegal(e);T(e),parseField(i,"optional",void 0,r+1)}}),e.add(i),e===C&&D.push(i)}function parseField(e,t,r,i){var o=S();if("group"===o)return void parseGroup(e,t,r,i);for(;o.endsWith(".")||B().startsWith(".");)o+=S();if(!O.test(o))throw illegal(o,"type");var s=S();if(!_.test(s))throw illegal(s,"name");var a=s;s=q(s),L("=");var f=new n(s,parseId(S()),o,"proto3_optional"===t?"optional":t,r);if(a!==s&&(f.protoName=a),ifBlock(f,function(e){if("option"===e)parseOption(f,e),L(";");else throw illegal(e)},function(){parseInlineOptions(f)}),"proto3_optional"===t){var l=new u("_"+s);f.setOption("proto3_optional",!0),l.add(f),e.add(l)}else e.add(f);e===C&&D.push(f)}function parseGroup(e,t,r,i){if(void 0===i&&(i=0),i>d.nestingLimit)throw Error("max depth exceeded");if(P>=2023)throw illegal("group");var o=S();if(!_.test(o))throw illegal(o,"name");var a=d.lcFirst(o);o===a&&(o=d.ucFirst(o)),L("=");var u=parseId(S()),f=new s(o);f.group=!0;var l=new n(a,u,o,t,r);l.filename=parse.filename,ifBlock(f,function(e){switch(e){case";":break;case"option":parseOption(f,e),L(";");break;case"required":case"repeated":parseField(f,e,void 0,i+1);break;case"optional":"proto3"===P?parseField(f,"proto3_optional",void 0,i+1):parseField(f,"optional",void 0,i+1);break;case"message":parseType(f,e,i+1);break;case"enum":parseEnum(f,e);break;case"reserved":readRanges(f.reserved||(f.reserved=[]),!0);break;case"export":case"local":if(P<"2024")throw illegal(e);switch(e=S()){case"message":case"enum":parseType(f,e,i+1);break;default:throw illegal(e)}break;default:throw illegal(e)}}),e.add(f).add(l),e===C&&(D.push(f),D.push(l))}function parseMapField(e){L("<");var t=S();if(void 0===h.mapKey[t])throw illegal(t,"type");L(",");var r=S();if(!O.test(r))throw illegal(r,"type");L(">");var i=S();if(!_.test(i))throw illegal(i,"name");L("=");var o=i,s=new a(i=q(i),parseId(S()),t,r);o!==i&&(s.protoName=o),ifBlock(s,function(e){if("option"===e)parseOption(s,e),L(";");else throw illegal(e)},function(){parseInlineOptions(s)}),e.add(s)}function parseOneOf(e,t,r){if(!_.test(t=S()))throw illegal(t,"name");var i=new u(q(t));ifBlock(i,function(e){"option"===e?(parseOption(i,e),L(";")):(T(e),parseField(i,"optional",void 0,r))}),e.add(i)}function parseEnum(e,t){if(!_.test(t=S()))throw illegal(t,"name");var r=new f(t);ifBlock(r,function(e){switch(e){case";":break;case"option":parseOption(r,e),L(";");break;case"reserved":readRanges(r.reserved||(r.reserved=[]),!0,0x7fffffff,!0),void 0===r.reserved&&(r.reserved=[]);break;default:parseEnumValue(r,e)}}),e.add(r),e===C&&D.push(r)}function parseEnumValue(e,t){if(!_.test(t))throw illegal(t,"name");L("=");var r=parseId(S(),!0),i={options:void 0};i.getOption=function(e){return this.options[e]},i.setOption=function(e,t){c.prototype.setOption.call(i,e,t)},i.setParsedOption=function(){},ifBlock(i,function(e){if("option"===e)parseOption(i,e),L(";");else throw illegal(e)},function(){parseInlineOptions(i)}),e.add(t,r,i.comment,i.parsedOptions||i.options)}function parseOption(e,t){var r,i,o=!0;for("option"===t&&(t=S());"="!==t;){if("("===t){var s=S();L(")"),t="("+s+")"}if(o){if(o=!1,t.includes(".")&&!t.includes("(")){var n=t.split(".");r=n[0]+".",t=n[1];continue}r=t}else i=i?i+=t:t;t=S()}var a=parseOptionValue(e,i?r.concat(i):r);i=i&&"."===i[0]?i.slice(1):i,setParsedOption(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,i)}function parseOptionValue(e,t,r){if(void 0===r&&(r=0),r>d.recursionLimit)throw Error("max depth exceeded");if(L("{",!0)){for(var i={};!L("}",!0);){if(!_.test(E=S()))throw illegal(E,"name");if(null===E)throw illegal(E,"end of input");var o,s,n=E;if(L(":",!0),"{"===B())o=parseOptionValue(e,t+"."+E,r+1);else if("["===B()){if(o=[],L("[",!0)&&!L("]",!0)){do s=readValue(!0),o.push(s);while(L(",",!0));L("]"),void 0!==s&&setOption(e,t+"."+E,s)}}else o=readValue(!0),setOption(e,t+"."+E,o);var a=i[n];a&&(o=[].concat(a).concat(o)),"__proto__"!==n&&(i[n]=o),L(",",!0),L(";",!0)}return i}var u=readValue(!0);return setOption(e,t,u),u}function setOption(e,t,r){if(C===e&&/^features\./.test(t)){V[t]=r;return}if("json_name"===t&&e instanceof n){e.jsonName=r;return}e.setOption&&e.setOption(t,r)}function setParsedOption(e,t,r,i){"json_name"===t&&e instanceof n||e.setParsedOption&&e.setParsedOption(t,r,i)}function parseInlineOptions(e){if(L("[",!0)){do parseOption(e,"option");while(L(",",!0));L("]")}return e}function parseService(e,t,r){if(void 0===r&&(r=0),r>d.recursionLimit)throw Error("max depth exceeded");if(!_.test(t=S()))throw illegal(t,"service name");var i=new l(t);ifBlock(i,function(e){if(!parseCommon(i,e,r)&&";"!==e)if("rpc"===e)parseMethod(i,e);else throw illegal(e)}),e.add(i),e===C&&D.push(i)}function parseMethod(e,t){var r=F(),i=t;if(!_.test(t=S()))throw illegal(t,"name");var o,s,n,a,u=t;if(L("("),L("stream",!0)&&(s=!0),!O.test(t=S())||(o=t,L(")"),L("returns"),L("("),L("stream",!0)&&(a=!0),!O.test(t=S())))throw illegal(t);n=t,L(")");var f=new p(u,i,o,n,s,a);f.comment=r,ifBlock(f,function(e){if(";"!==e)if("option"===e)parseOption(f,e),L(";");else throw illegal(e)}),e.add(f)}function parseExtension(e,t,r){if(!O.test(t=S()))throw illegal(t,"reference");var i=t;ifBlock(null,function(t){switch(t){case"required":case"repeated":parseField(e,t,i,r+1);break;case"optional":"proto3"===P?parseField(e,"proto3_optional",i,r+1):parseField(e,"optional",i,r+1);break;default:if("proto2"===P||!O.test(t))throw illegal(t);T(t),parseField(e,"optional",i,r+1)}})}for(;null!==(E=S());)switch(E){case";":break;case"package":if(!I)throw illegal(E);parsePackage();break;case"import":parseImport();break;case"syntax":if(!I)throw illegal(E);parseSyntax();break;case"edition":if(!I)throw illegal(E);parseEdition();break;case"option":parseOption(C,E),L(";",!0);break;default:if(parseCommon(C,E,0)){I=!1;continue}throw illegal(E)}return resolveFileFeatures(),parse.filename=null,{package:k,imports:x,weakImports:N,root:t}}},"./protobufjs/src/reader.js"(e,t,r){"use strict";e.exports=Reader;var i,o=r("./protobufjs/src/util/minimal.js"),s=o.LongBits,n=o.utf8;function indexOutOfRange(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function Reader(e){this.buf=e,this.pos=0,this.len=e.length,this.discardUnknown=Reader.discardUnknown}var a="u">typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new Reader(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new Reader(e);throw Error("illegal buffer")},create=function(){return o.Buffer?function(e){return(Reader.create=function(e){return o.Buffer.isBuffer(e)?new i(e):a(e)})(e)}:a};function readLongVarint(){var e=new s(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw indexOutOfRange(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw indexOutOfRange(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function readFixed32_end(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new s(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader.create=create(),Reader.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,Reader.prototype.raw=function(e,t){return Array.isArray(this.buf)?this.buf.slice(e,t):e===t?new this.buf.constructor(0):this._slice.call(this.buf,e,t)},Reader.prototype.uint32=function(){var e=this.buf,t=this.pos,r=(127&e[t])>>>0;if(e[t++]<128||(r=(r|(127&e[t])<<7)>>>0,e[t++]<128)||(r=(r|(127&e[t])<<14)>>>0,e[t++]<128)||(r=(r|(127&e[t])<<21)>>>0,e[t++]<128)||(r=(r|(15&e[t])<<28)>>>0,e[t++]<128))return this.pos=t,r;for(var i=0;i<5;++i){if(t>=this.len)throw this.pos=t,indexOutOfRange(this);if(e[t++]<128)return this.pos=t,r}throw this.pos=t,Error("invalid varint encoding")},Reader.prototype.tag=function(){var e=this.buf,t=this.pos,r=(127&e[t])>>>0;if(e[t++]<128||(r=(r|(127&e[t])<<7)>>>0,e[t++]<128)||(r=(r|(127&e[t])<<14)>>>0,e[t++]<128)||(r=(r|(127&e[t])<<21)>>>0,e[t++]<128))return this.pos=t,r;if(r=(r|(15&e[t])<<28)>>>0,e[t]<128&&(112&e[t])==0)return this.pos=t+1,r;throw this.pos=t+1,Error("invalid tag encoding")},Reader.prototype.int32=function(){return 0|this.uint32()},Reader.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},Reader.prototype.bool=function(){for(var e,t=!1,r=0;r<10;++r){if(this.pos>=this.len)throw indexOutOfRange(this);if(127&(e=this.buf[this.pos++])&&(t=!0),e<128)return t}throw Error("invalid varint encoding")},Reader.prototype.fixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.sfixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return 0|readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.float=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},Reader.prototype.double=function(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},Reader.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw indexOutOfRange(this,e);return this.pos=r,this.raw(t,r)},Reader.prototype.string=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw indexOutOfRange(this,e);return this.pos=r,n.read(this.buf,t,r)},Reader.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw indexOutOfRange(this,e);this.pos+=e}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(128&this.buf[this.pos++]);return this},Reader.recursionLimit=o.recursionLimit,Reader.discardUnknown=!1,Reader.prototype.skipType=function(e,t,r){if(void 0===t&&(t=0),t>Reader.recursionLimit)throw Error("max depth exceeded");if(0===r)throw Error("illegal tag: field number 0");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;;){var i=this.tag(),o=i>>>3;if(e=7&i,!o)throw Error("illegal tag: field number 0");if(4===e){if(void 0!==r&&o!==r)throw Error("invalid end group tag");break}this.skipType(e,t+1,o)}break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},Reader._configure=function(e){i=e,Reader.create=create(),i._configure();var t=o.Long?"toLong":"toNumber";o.merge(Reader.prototype,{int64:function(){return readLongVarint.call(this)[t](!1)},uint64:function(){return readLongVarint.call(this)[t](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[t](!1)},fixed64:function(){return readFixed64.call(this)[t](!0)},sfixed64:function(){return readFixed64.call(this)[t](!1)}})}},"./protobufjs/src/reader_buffer.js"(e,t,r){"use strict";e.exports=BufferReader;var i=r("./protobufjs/src/reader.js");(BufferReader.prototype=Object.create(i.prototype)).constructor=BufferReader;var o=r("./protobufjs/src/util/minimal.js");function BufferReader(e){i.call(this,e)}BufferReader._configure=function(){o.Buffer&&(BufferReader.prototype._slice=o.Buffer.prototype.slice)},BufferReader.prototype.raw=function(e,t){return e===t?o.Buffer.alloc(0):this._slice.call(this.buf,e,t)},BufferReader.prototype.string=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw RangeError("index out of range: "+this.pos+" + "+e+" > "+this.len);return this.pos=r,this.buf.utf8Slice?this.buf.utf8Slice(t,r):this.buf.toString("utf-8",t,r)},BufferReader._configure()},"./protobufjs/src/root.js"(e,t,r){"use strict";e.exports=Root;var i,o,s,n=r("./protobufjs/src/namespace.js");((Root.prototype=Object.create(n.prototype)).constructor=Root).className="Root";var a=r("./protobufjs/src/field.js"),u=r("./protobufjs/src/enum.js"),f=r("./protobufjs/src/oneof.js"),l=r("./protobufjs/src/util.js");function Root(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function SYNC(){}Root.fromJSON=function(e,t,r){if(void 0===r&&(r=0),r>l.recursionLimit)throw Error("max depth exceeded");return t||(t=new Root),e.options&&t.setOptions(e.options),t.addJSON(e.nested,r).resolveAll()},Root.prototype.resolvePath=l.path.resolve,Root.prototype.fetch=l.fetch,Root.prototype.load=function load(e,t,r){"function"==typeof t&&(r=t,t=void 0);var i=this;if(!r)return l.asPromise(load,i,e,t);var n=r===SYNC;function finish(e,t){if(r){if(n)throw e;t&&t.resolveAll();var i=r;r=null,i(e,t)}}function getBundledFileName(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(Object.prototype.hasOwnProperty.call(s,r))return r}return Object.prototype.hasOwnProperty.call(s,e)?e:null}function process(e,r,s){void 0===s&&(s=0);try{if(s>l.recursionLimit)throw Error("max depth exceeded");if(l.isString(r)&&"{"===r.charAt(0)&&(r=JSON.parse(r)),l.isString(r)){o.filename=e;var u,f=o(r,i,t),p=0;if(f.imports)for(;p<f.imports.length;++p)(u=getBundledFileName(f.imports[p])||i.resolvePath(e,f.imports[p]))&&fetch(u,!1,s+1);if(f.weakImports)for(p=0;p<f.weakImports.length;++p)(u=getBundledFileName(f.weakImports[p])||i.resolvePath(e,f.weakImports[p]))&&fetch(u,!0,s+1)}else i.setOptions(r.options).addJSON(r.nested)}catch(e){finish(e)}n||a||finish(null,i)}function fetch(e,t,o){if(void 0===o&&(o=0),e=getBundledFileName(e)||e,!(i.files.indexOf(e)>-1)){if(i.files.push(e),Object.prototype.hasOwnProperty.call(s,e))return void(n?process(e,s[e],o):(++a,setTimeout(function(){--a,process(e,s[e],o)})));if(n){var u;try{u=l.fs.readFileSync(e).toString("utf8")}catch(e){t||finish(e);return}process(e,u,o)}else++a,i.fetch(e,function(s,n){if(--a,r){if(s)return void(t?a||finish(null,i):finish(s));process(e,n,o)}})}}var a=0;l.isString(e)&&(e=[e]);for(var u,f=0;f<e.length;++f)(u=i.resolvePath("",e[f]))&&fetch(u);return n?i.resolveAll():a||finish(null,i),i},Root.prototype.loadSync=function(e,t){if(!l.isNode)throw Error("not supported");return this.load(e,t,SYNC)},Root.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(e){return"'extend "+e.extend+"' in "+e.parent.fullName}).join(", "));return n.prototype.resolveAll.call(this)};var p=/^[A-Z]/;function tryHandleExtension(e,t){var r=t.parent.lookup(t.extend);if(r){var i=new a(t.fullName,t.id,t.type,t.rule,void 0,t.options);return!!r.get(i.name)||(i.declaringField=t,t.extensionField=i,r.add(i),!0)}return!1}Root.prototype._handleAdd=function(e){if(e instanceof a)void 0===e.extend||e.extensionField||tryHandleExtension(this,e)||this.deferred.push(e);else if(e instanceof u)p.test(e.name)&&(e.parent[e.name]=e.values);else if(!(e instanceof f)){if(e instanceof i)for(var t=0;t<this.deferred.length;)tryHandleExtension(this,this.deferred[t])?this.deferred.splice(t,1):++t;for(var r=0;r<e.nestedArray.length;++r)this._handleAdd(e._nestedArray[r]);p.test(e.name)&&(e.parent[e.name]=e)}(e instanceof i||e instanceof u||e instanceof a)&&(this._fullyQualifiedObjects[e.fullName]=e)},Root.prototype._handleRemove=function(e){if(e instanceof a){if(void 0!==e.extend)if(e.extensionField)e.extensionField.parent.remove(e.extensionField),e.extensionField=null;else{var t=this.deferred.indexOf(e);t>-1&&this.deferred.splice(t,1)}}else if(e instanceof u)p.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r<e.nestedArray.length;++r)this._handleRemove(e._nestedArray[r]);p.test(e.name)&&delete e.parent[e.name]}delete this._fullyQualifiedObjects[e.fullName]},Root._configure=function(e,t,r){i=e,o=t,s=r}},"./protobufjs/src/roots.js"(e){"use strict";e.exports=Object.create(null)},"./protobufjs/src/rpc.js"(e,t,r){"use strict";t.Service=r("./protobufjs/src/rpc/service.js")},"./protobufjs/src/rpc/service.js"(e,t,r){"use strict";e.exports=Service;var i=r("./protobufjs/src/util/minimal.js");function Service(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!r}(Service.prototype=Object.create(i.EventEmitter.prototype)).constructor=Service,Service.prototype.rpcCall=function rpcCall(e,t,r,o,s){if(!o)throw TypeError("request must be specified");var n=this;if(!s)return i.asPromise(rpcCall,n,e,t,r,o);if(!n.rpcImpl)return void setTimeout(function(){s(Error("already ended"))},0);try{return n.rpcImpl(e,t[n.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(t,i){if(t)return n.emit("error",t,e),s(t);if(null===i)return void n.end(!0);if(!(i instanceof r))try{i=r[n.responseDelimited?"decodeDelimited":"decode"](i)}catch(t){return n.emit("error",t,e),s(t)}return n.emit("data",i,e),s(null,i)})}catch(t){n.emit("error",t,e),setTimeout(function(){s(t)},0);return}},Service.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},"./protobufjs/src/service.js"(e,t,r){"use strict";e.exports=Service;var i=r("./protobufjs/src/namespace.js");((Service.prototype=Object.create(i.prototype)).constructor=Service).className="Service";var o=r("./protobufjs/src/method.js"),s=r("./protobufjs/src/util.js"),n=r("./protobufjs/src/rpc.js");function Service(e,t){i.call(this,e,t),this.methods={},this._methodsArray=null}function clearCache(e){return e._methodsArray=null,e}Service.fromJSON=function(e,t,r){if(void 0===r&&(r=0),r>s.recursionLimit)throw Error("max depth exceeded");var i=new Service(e,t.options);if(t.methods)for(var n=Object.keys(t.methods),a=0;a<n.length;++a)i.add(o.fromJSON(n[a],t.methods[n[a]]));return t.nested&&i.addJSON(t.nested,r),t.edition&&(i._edition=t.edition),i.comment=t.comment,i._defaultEdition="proto3",i},Service.prototype.toJSON=function(e){var t=i.prototype.toJSON.call(this,e),r=!!e&&!!e.keepComments;return s.toObject(["edition",this._editionToJSON(),"options",t&&t.options||void 0,"methods",i.arrayToJSON(this.methodsArray,e)||{},"nested",t&&t.nested||void 0,"comment",r?this.comment:void 0])},Object.defineProperty(Service.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=s.toArray(this.methods))}}),Service.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.methods,e)?this.methods[e]:i.prototype.get.call(this,e)},Service.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;i.prototype.resolve.call(this);for(var e=this.methodsArray,t=0;t<e.length;++t)e[t].resolve();return this},Service.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(e=this._edition||e,i.prototype._resolveFeaturesRecursive.call(this,e),this.methodsArray.forEach(t=>{t._resolveFeaturesRecursive(e)})),this},Service.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?"__proto__"===e.name?this:(this.methods[e.name]=e,e.parent=this,clearCache(this)):i.prototype.add.call(this,e)},Service.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,clearCache(this)}return i.prototype.remove.call(this,e)},Service.prototype.create=function(e,t,r){for(var i,o=new n.Service(e,t,r),a=0;a<this.methodsArray.length;++a)o[s.lcFirst((i=this._methodsArray[a]).resolve().name).replace(/[^$\w_]/g,"")]=function(e,t,r){return function(i,o){return n.Service.prototype.rpcCall.call(this,e,t,r,i,o)}}(i,i.resolvedRequestType.ctor,i.resolvedResponseType.ctor);return o}},"./protobufjs/src/tokenize.js"(e){"use strict";e.exports=tokenize;var t=/[\s{}=;:[\],'"()<>]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,i=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,s=/^\s*\*?\/*/,n=/\n/g,a=/\s/,u=/\\(.?)/g,f={0:"\0",r:"\r",n:"\n",t:" "};function unescape(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return f[t]||""}})}function tokenize(e,u){e=e.toString();var f=0,l=e.length,p=1,c=0,h={},d=[],m=null;function illegal(e){return Error("illegal "+e+" (line "+p+")")}function readString(){var t="'"===m?i:r;t.lastIndex=f-1;var o=t.exec(e);if(!o)throw illegal("string");return f=t.lastIndex,push(m),m=null,unescape(o[1])}function charAt(t){return e.charAt(t)}function setComment(t,r,i){var a,f={type:e.charAt(t++),lineEmpty:!1,leading:i},l=t-(u?2:3);do if(--l<0||"\n"===(a=e.charAt(l))){f.lineEmpty=!0;break}while(" "===a||" "===a);for(var d=e.substring(t,r).split(n),m=0;m<d.length;++m)d[m]=d[m].replace(u?s:o,"").trim();f.text=d.join("\n").trim(),h[p]=f,c=p}function isDoubleSlashCommentLine(t){var r=findEndOfLine(t),i=e.substring(t,r);return/^\s*\/\//.test(i)}function findEndOfLine(e){for(var t=e;t<l&&"\n"!==charAt(t);)t++;return t}function next(){if(d.length>0)return d.shift();if(m)return readString();var r,i,o,s,n,c,h=0===f;do{if(f===l)return null;for(r=!1;a.test(o=charAt(f));)if("\n"===o&&(h=!0,++p),++f===l)return null;if("/"===charAt(f)){if(++f===l)throw illegal("comment");if("/"===charAt(f))if(u){if(s=f,n=!1,isDoubleSlashCommentLine(f-1)){n=!0;do{if((f=findEndOfLine(f))===l||(f++,!h))break;(c=isDoubleSlashCommentLine(f))&&p++}while(c)}else f=Math.min(l,findEndOfLine(f)+1);n&&(setComment(s,f,h),h=!0),p++,r=!0}else{for(n="/"===charAt(s=f+1);"\n"!==charAt(++f);)if(f===l)return null;++f,n&&(setComment(s,f-1,h),h=!0),++p,r=!0}else{if("*"!==(o=charAt(f)))return"/";s=f+1,n=u||"*"===charAt(s);do{if("\n"===o&&++p,++f===l)throw illegal("comment");i=o,o=charAt(f)}while("*"!==i||"/"!==o);++f,n&&(setComment(s,f-2,h),h=!0),r=!0}}}while(r);var y=f;if(t.lastIndex=0,!t.test(charAt(y++)))for(;y<l&&!t.test(charAt(y));)++y;var g=e.substring(f,f=y);return('"'===g||"'"===g)&&(m=g),g}function push(e){d.push(e)}function peek(){if(!d.length){var e=next();if(null===e)return null;push(e)}return d[0]}function skip(e,t){var r=peek();if(r===e)return next(),!0;if(!t)throw illegal("token '"+r+"', '"+e+"' expected");return!1}function cmnt(e){var t,r=null;return void 0===e?(t=h[p-1],delete h[p-1],t&&(u||"*"===t.type||t.lineEmpty)&&(r=t.leading?t.text:null)):(c<e&&peek(),t=h[e],delete h[e],t&&!t.lineEmpty&&(u||"/"===t.type)&&(r=t.leading?null:t.text)),r}return Object.defineProperty({next:next,peek:peek,push:push,skip:skip,cmnt:cmnt},"line",{get:function(){return p}})}tokenize.unescape=unescape},"./protobufjs/src/type.js"(e,t,r){"use strict";e.exports=Type;var i=r("./protobufjs/src/namespace.js");((Type.prototype=Object.create(i.prototype)).constructor=Type).className="Type";var o=r("./protobufjs/src/enum.js"),s=r("./protobufjs/src/oneof.js"),n=r("./protobufjs/src/field.js"),a=r("./protobufjs/src/mapfield.js"),u=r("./protobufjs/src/service.js"),f=r("./protobufjs/src/message.js"),l=r("./protobufjs/src/reader.js"),p=r("./protobufjs/src/writer.js"),c=r("./protobufjs/src/util.js"),h=r("./protobufjs/src/encoder.js"),d=r("./protobufjs/src/decoder.js"),m=r("./protobufjs/src/verifier.js"),y=r("./protobufjs/src/converter.js"),g=r("./protobufjs/src/wrappers.js");function Type(e,t){e=e.replace(/\W/g,""),i.call(this,e,t),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null,this._fieldsByJsonName=null}function clearCache(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=e._fieldsByJsonName=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(Type.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t<e.length;++t){var r=this.fields[e[t]],i=r.id;if(this._fieldsById[i])throw Error("duplicate id "+i+" in "+this);this._fieldsById[i]=r}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=c.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=c.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=Type.generateConstructor(this)())},set:function(e){var t,r=e.prototype;r instanceof f||((e.prototype=new f).constructor=e,c.merge(e.prototype,r)),e.$type=e.prototype.$type=this,c.merge(e,f,!0),this._ctor=e,delete this.decode,delete this.fromObject;for(var i=0;i<this.fieldsArray.length;++i)t=this._fieldsArray[i].resolve(),e.prototype[t.name]=t.defaultValue;var o={};for(i=0;i<this.oneofsArray.length;++i)o[this._oneofsArray[i].resolve().name]={get:c.oneOfGetter(this._oneofsArray[i].oneof),set:c.oneOfSetter(this._oneofsArray[i].oneof)};i&&Object.defineProperties(e.prototype,o)}}}),Type.generateConstructor=function(e){for(var t,r=c.codegen(["p"]),i=0;i<e.fieldsArray.length;++i)(t=e._fieldsArray[i]).map?r("this%s={}",c.safeProp(t.name)):t.repeated&&r("this%s=[]",c.safeProp(t.name));return r('if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null&&ks[i]!=="__proto__")')("this[ks[i]]=p[ks[i]]")},Type.fromJSON=function(e,t,r){if(void 0===r&&(r=0),r>c.nestingLimit)throw Error("max depth exceeded");var f=new Type(e,t.options);f.extensions=t.extensions,f.reserved=t.reserved;for(var l=Object.keys(t.fields),p=0;p<l.length;++p)f.add((void 0!==t.fields[l[p]].keyType?a.fromJSON:n.fromJSON)(l[p],t.fields[l[p]]));if(t.oneofs)for(l=Object.keys(t.oneofs),p=0;p<l.length;++p)f.add(s.fromJSON(l[p],t.oneofs[l[p]]));if(t.nested)for(l=Object.keys(t.nested),p=0;p<l.length;++p){var h=t.nested[l[p]];f.add((void 0!==h.id?n.fromJSON:void 0!==h.fields?Type.fromJSON:void 0!==h.values?o.fromJSON:void 0!==h.methods?u.fromJSON:i.fromJSON)(l[p],h,r+1))}return t.extensions&&t.extensions.length&&(f.extensions=t.extensions),t.reserved&&t.reserved.length&&(f.reserved=t.reserved),t.group&&(f.group=!0),t.comment&&(f.comment=t.comment),t.edition&&(f._edition=t.edition),f._defaultEdition="proto3",f},Type.prototype.toJSON=function(e){var t=i.prototype.toJSON.call(this,e),r=!!e&&!!e.keepComments;return c.toObject(["edition",this._editionToJSON(),"options",t&&t.options||void 0,"oneofs",i.arrayToJSON(this.oneofsArray,e),"fields",i.arrayToJSON(this.fieldsArray.filter(function(e){return!e.declaringField}),e)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",t&&t.nested||void 0,"comment",r?this.comment:void 0])},Type.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;i.prototype.resolveAll.call(this);var e=this.oneofsArray;for(r=0;r<e.length;)e[r++].resolve();for(var t=this.fieldsArray,r=0;r<t.length;)t[r++].resolve();return this},Type.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(e=this._edition||e,i.prototype._resolveFeaturesRecursive.call(this,e),this.oneofsArray.forEach(t=>{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)})),this},Type.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},Type.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof n&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name)||"$"===e.name.charAt(0))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),clearCache(this))}if(e instanceof s){if("$"===e.name.charAt(0))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),clearCache(this))}return i.prototype.add.call(this,e)},Type.prototype.remove=function(e){if(e instanceof n&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),clearCache(this)}if(e instanceof s){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),clearCache(this)}return i.prototype.remove.call(this,e)},Type.prototype.isReservedId=function(e){return i.isReservedId(this.reserved,e)},Type.prototype.isReservedName=function(e){return i.isReservedName(this.reserved,e)},Type.prototype.create=function(e){return new this.ctor(e)},Type.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r<this.fieldsArray.length;++r)t.push(this._fieldsArray[r].resolve().resolvedType);this.encode=h(this)({Writer:p,types:t,util:c}),this.decode=d(this)({Reader:l,types:t,util:c,C:this.ctor}),this.verify=m(this)({types:t,util:c}),this.fromObject=y.fromObject(this)({types:t,util:c,C:this.ctor}),this.toObject=y.toObject(this)({types:t,util:c});var i=g[e];if(i){var o=Object.create(this);o._ctor=this.ctor,o.fromObject=this.fromObject,this.fromObject=i.fromObject.bind(o),o.toObject=this.toObject,this.toObject=i.toObject.bind(o)}return this},Type.prototype.encode=function(e,t){return this.setup().encode.apply(this,arguments)},Type.prototype.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Type.prototype.decode=function(e,t){return this.setup().decode.apply(this,arguments)},Type.prototype.decodeDelimited=function(e){return e instanceof l||(e=l.create(e)),this.decode(e,e.uint32())},Type.prototype.verify=function(e){return this.setup().verify.apply(this,arguments)},Type.prototype.fromObject=function(e){return this.setup().fromObject.apply(this,arguments)},Type.prototype.toObject=function(e,t){return this.setup().toObject.apply(this,arguments)},Type.prototype.getTypeUrl=function(e){void 0===e&&(e="type.googleapis.com");var t=this.fullName;return e+"/"+("."===t.charAt(0)?t.substring(1):t)},Type.d=function(e){return function(t){c.decorateType(t,e)}}},"./protobufjs/src/types.js"(e,t,r){"use strict";var i=r("./protobufjs/src/util.js"),o=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function bake(e,t){var r=0,i=Object.create(null);for(t|=0;r<e.length;)i[o[r+t]]=e[r++];return i}t.basic=bake([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),t.defaults=bake([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",i.emptyArray,null]),t.long=bake([0,0,0,1,1],7),t.mapKey=bake([0,0,0,5,5,0,0,0,1,1,0,2],2),t.packed=bake([1,5,0,0,0,5,5,0,0,0,1,1,0])},"./protobufjs/src/util.js"(e,t,r){"use strict";var i,o,s=e.exports=r("./protobufjs/src/util/minimal.js"),n=r("./protobufjs/src/roots.js");s.codegen=r("./protobufjs/src/util/codegen.js"),s.fetch=r("./protobufjs/src/util/fetch.js"),s.path=r("./protobufjs/src/util/path.js"),s.patterns=r("./protobufjs/src/util/patterns.js");var a=s.patterns.reservedRe;s.fs=r("./protobufjs/src/util/fs.js"),s.toArray=function(e){if(e){for(var t=Object.keys(e),r=Array(t.length),i=0;i<t.length;)r[i]=e[t[i++]];return r}return[]},s.toObject=function(e){for(var t={},r=0;r<e.length;){var i=e[r++],o=e[r++];void 0!==o&&(t[i]=o)}return t},s.isReserved=function(e){return a.test(e)},s.safeProp=function(e){return!/^[$\w_]+$/.test(e)||a.test(e)?"["+JSON.stringify(e)+"]":"."+e},s.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.substring(1)};var u=/_([a-z])/g;s.camelCase=function(e){return e.substring(0,1)+e.substring(1).replace(u,function(e,t){return t.toUpperCase()})},s.jsonName=function(e){for(var t="",r=!1,i=0;i<e.length;++i){var o=e.charAt(i);"_"===o?r=!0:r?(t+=o.toUpperCase(),r=!1):t+=o}return t},s.compareFieldsById=function(e,t){return e.id-t.id},s.decorateType=function(e,t){if(e.$type)return t&&e.$type.name!==t&&(s.decorateRoot.remove(e.$type),e.$type.name=t,s.decorateRoot.add(e.$type)),e.$type;i||(i=r("./protobufjs/src/type.js"));var o=new i(t||e.name);return s.decorateRoot.add(o),o.ctor=e,Object.defineProperty(e,"$type",{value:o,enumerable:!1}),Object.defineProperty(e.prototype,"$type",{value:o,enumerable:!1}),o};var f=0;s.decorateEnum=function(e){if(e.$type)return e.$type;o||(o=r("./protobufjs/src/enum.js"));var t=new o("Enum"+f++,e);return s.decorateRoot.add(t),Object.defineProperty(e,"$type",{value:t,enumerable:!1}),t},s.setProperty=function(e,t,r,i){function setProp(e,t,r){var o=t.shift();if(s.isUnsafeProperty(o))return e;if(t.length>0)e[o]=setProp(e[o]||{},t,r);else{var n=e[o];if(n&&i)return e;n&&(r=[].concat(n).concat(r)),e[o]=r}return e}if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");if((t=t.split(".")).length>s.recursionLimit)throw Error("max depth exceeded");return setProp(e,t,r)},Object.defineProperty(s,"decorateRoot",{get:function(){return n.decorated||(n.decorated=new(r("./protobufjs/src/root.js")))}})},"./protobufjs/src/util/aspromise.js"(e){"use strict";e.exports=function asPromise(e,t){for(var r=Array(arguments.length-1),i=0,o=2,s=!0;o<arguments.length;)r[i++]=arguments[o++];return new Promise(function(o,n){r[i]=function(e){if(s)if(s=!1,e)n(e);else{for(var t=Array(arguments.length-1),r=0;r<t.length;)t[r++]=arguments[r];o.apply(null,t)}};try{e.apply(t||null,r)}catch(e){s&&(s=!1,n(e))}})}},"./protobufjs/src/util/base64.js"(e,t){"use strict";t.length=function(e){var t=e.length;if(!t)return 0;for(;t>0&&"="===e.charAt(t-1);)--t;return Math.floor(3*t/4)};for(var r=Array(64),i=Array(123),o=0;o<64;)i[r[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;i[45]=62,i[95]=63,t.encode=function(e,t,i){for(var o,s=null,n=[],a=0,u=0;t<i;){var f=e[t++];switch(u){case 0:n[a++]=r[f>>2],o=(3&f)<<4,u=1;break;case 1:n[a++]=r[o|f>>4],o=(15&f)<<2,u=2;break;case 2:n[a++]=r[o|f>>6],n[a++]=r[63&f],u=0}a>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,n)),a=0)}return(u&&(n[a++]=r[o],n[a++]=61,1===u&&(n[a++]=61)),s)?(a&&s.push(String.fromCharCode.apply(String,n.slice(0,a))),s.join("")):String.fromCharCode.apply(String,n.slice(0,a))};var s="invalid encoding";t.decode=function(e,t,r){for(var o,n=r,a=0,u=0;u<e.length;){var f=e.charCodeAt(u++);if(61===f&&a>1)break;if(void 0===(f=i[f]))throw Error(s);switch(a){case 0:o=f,a=1;break;case 1:t[r++]=o<<2|(48&f)>>4,o=f,a=2;break;case 2:t[r++]=(15&o)<<4|(60&f)>>2,o=f,a=3;break;case 3:t[r++]=(3&o)<<6|f,a=0}}if(1===a)throw Error(s);return r-n};var n=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,a=/[-_]/,u=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2}(?:==)?|[A-Za-z0-9_-]{3}=?)?$/;t.test=function(e){return n.test(e)||a.test(e)&&u.test(e)}},"./protobufjs/src/util/codegen.js"(e,t,r){"use strict";e.exports=codegen;var i=r("./protobufjs/src/util/patterns.js").reservedRe;function codegen(e,t){"string"==typeof e&&(t=e,e=void 0);var r=[];function Codegen(e){if("string"!=typeof e){var t=toString();if(codegen.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var i=Object.keys(e),o=Array(i.length+1),s=Array(i.length),n=0;n<i.length;)o[n]=i[n],s[n]=e[i[n++]];return o[n]=t,Function.apply(null,o).apply(null,s)}return Function(t)()}for(var a=Array(arguments.length-1),u=0;u<a.length;)a[u]=arguments[++u];if(u=0,e=e.replace(/%([%dfijs])/g,function(e,t){var r=a[u++];switch(t){case"d":case"f":return String(Number(r));case"i":return String(Math.floor(r));case"j":return JSON.stringify(r);case"s":return String(r)}return"%"}),u!==a.length)throw Error("parameter count mismatch");return r.push(e),Codegen}function toString(i){return"function "+safeFunctionName(i||t)+"("+(e&&e.join(",")||"")+"){\n "+r.join("\n ")+"\n}"}return Codegen.toString=toString,Codegen}function safeFunctionName(e){return e&&(e=String(e).replace(/[^\w$]/g,""))?(/^\d/.test(e)&&(e="_"+e),i.test(e)?e+"_":e):""}codegen.verbose=!1},"./protobufjs/src/util/eventemitter.js"(e){"use strict";function EventEmitter(){this._listeners=Object.create(null)}e.exports=EventEmitter,EventEmitter.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},EventEmitter.prototype.off=function(e,t){if(void 0===e)this._listeners=Object.create(null);else if(void 0===t)this._listeners[e]=[];else{var r=this._listeners[e];if(!r)return this;for(var i=0;i<r.length;)r[i].fn===t?r.splice(i,1):++i}return this},EventEmitter.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var r=[],i=1;i<arguments.length;)r.push(arguments[i++]);for(i=0;i<t.length;)t[i].fn.apply(t[i++].ctx,r)}return this}},"./protobufjs/src/util/fetch.js"(e,t,r){"use strict";e.exports=fetch;var i=r("./protobufjs/src/util/aspromise.js"),o=r("./protobufjs/src/util/fs.js");function fetch(e,t,r){return("function"==typeof t?(r=t,t={}):t||(t={}),r)?!t.xhr&&o&&o.readFile?o.readFile(e,function(i,o){return i&&"u">typeof XMLHttpRequest?fetch.xhr(e,t,r):i?r(i):r(null,t.binary?o:o.toString("utf8"))}):fetch.xhr(e,t,r):i(fetch,this,e,t)}fetch.xhr=function(e,t,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){if(4===i.readyState){if(0!==i.status&&200!==i.status)return r(Error("status "+i.status));if(t.binary){var e=i.response;if(!e){e=[];for(var o=0;o<i.responseText.length;++o)e.push(255&i.responseText.charCodeAt(o))}return r(null,"u">typeof Uint8Array?new Uint8Array(e):e)}return r(null,i.responseText)}},t.binary&&("overrideMimeType"in i&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.responseType="arraybuffer"),i.open("GET",e),i.send()}},"./protobufjs/src/util/float.js"(e){"use strict";function factory(e){if("u">typeof Float32Array)!function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),i=128===r[3];function writeFloat_f32_cpy(e,i,o){t[0]=e,i[o]=r[0],i[o+1]=r[1],i[o+2]=r[2],i[o+3]=r[3]}function writeFloat_f32_rev(e,i,o){t[0]=e,i[o]=r[3],i[o+1]=r[2],i[o+2]=r[1],i[o+3]=r[0]}function readFloat_f32_cpy(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],t[0]}function readFloat_f32_rev(e,i){return r[3]=e[i],r[2]=e[i+1],r[1]=e[i+2],r[0]=e[i+3],t[0]}e.writeFloatLE=i?writeFloat_f32_cpy:writeFloat_f32_rev,e.writeFloatBE=i?writeFloat_f32_rev:writeFloat_f32_cpy,e.readFloatLE=i?readFloat_f32_cpy:readFloat_f32_rev,e.readFloatBE=i?readFloat_f32_rev:readFloat_f32_cpy}();else{function writeFloat_ieee754(e,t,r,i){var o=+(t<0);if(o&&(t=-t),0===t)e(1/t>0?0:0x80000000,r,i);else if(isNaN(t))e(0x7fc00000,r,i);else if(t>34028234663852886e22)e((o<<31|0x7f800000)>>>0,r,i);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,i);else{var s=Math.floor(Math.log(t)/Math.LN2),n=8388607&Math.round(t*Math.pow(2,-s)*8388608);e((o<<31|s+127<<23|n)>>>0,r,i)}}function readFloat_ieee754(e,t,r){var i=e(t,r),o=(i>>31)*2+1,s=i>>>23&255,n=8388607&i;return 255===s?n?NaN:1/0*o:0===s?1401298464324817e-60*o*n:o*Math.pow(2,s-150)*(n+8388608)}e.writeFloatLE=writeFloat_ieee754.bind(null,writeUintLE),e.writeFloatBE=writeFloat_ieee754.bind(null,writeUintBE),e.readFloatLE=readFloat_ieee754.bind(null,readUintLE),e.readFloatBE=readFloat_ieee754.bind(null,readUintBE)}if("u">typeof Float64Array)!function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),i=128===r[7];function writeDouble_f64_cpy(e,i,o){t[0]=e,i[o]=r[0],i[o+1]=r[1],i[o+2]=r[2],i[o+3]=r[3],i[o+4]=r[4],i[o+5]=r[5],i[o+6]=r[6],i[o+7]=r[7]}function writeDouble_f64_rev(e,i,o){t[0]=e,i[o]=r[7],i[o+1]=r[6],i[o+2]=r[5],i[o+3]=r[4],i[o+4]=r[3],i[o+5]=r[2],i[o+6]=r[1],i[o+7]=r[0]}function readDouble_f64_cpy(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],r[4]=e[i+4],r[5]=e[i+5],r[6]=e[i+6],r[7]=e[i+7],t[0]}function readDouble_f64_rev(e,i){return r[7]=e[i],r[6]=e[i+1],r[5]=e[i+2],r[4]=e[i+3],r[3]=e[i+4],r[2]=e[i+5],r[1]=e[i+6],r[0]=e[i+7],t[0]}e.writeDoubleLE=i?writeDouble_f64_cpy:writeDouble_f64_rev,e.writeDoubleBE=i?writeDouble_f64_rev:writeDouble_f64_cpy,e.readDoubleLE=i?readDouble_f64_cpy:readDouble_f64_rev,e.readDoubleBE=i?readDouble_f64_rev:readDouble_f64_cpy}();else{function writeDouble_ieee754(e,t,r,i,o,s){var n,a=+(i<0);if(a&&(i=-i),0===i)e(0,o,s+t),e(1/i>0?0:0x80000000,o,s+r);else if(isNaN(i))e(0,o,s+t),e(0x7ff80000,o,s+r);else if(i>17976931348623157e292)e(0,o,s+t),e((a<<31|0x7ff00000)>>>0,o,s+r);else if(i<22250738585072014e-324)e((n=i/5e-324)>>>0,o,s+t),e((a<<31|n/0x100000000)>>>0,o,s+r);else{var u=Math.floor(Math.log(i)/Math.LN2);1024===u&&(u=1023),e(0x10000000000000*(n=i*Math.pow(2,-u))>>>0,o,s+t),e((a<<31|u+1023<<20|1048576*n&1048575)>>>0,o,s+r)}}function readDouble_ieee754(e,t,r,i,o){var s=e(i,o+t),n=e(i,o+r),a=(n>>31)*2+1,u=n>>>20&2047,f=0x100000000*(1048575&n)+s;return 2047===u?f?NaN:1/0*a:0===u?5e-324*a*f:a*Math.pow(2,u-1075)*(f+0x10000000000000)}e.writeDoubleLE=writeDouble_ieee754.bind(null,writeUintLE,0,4),e.writeDoubleBE=writeDouble_ieee754.bind(null,writeUintBE,4,0),e.readDoubleLE=readDouble_ieee754.bind(null,readUintLE,0,4),e.readDoubleBE=readDouble_ieee754.bind(null,readUintBE,4,0)}return e}function writeUintLE(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function writeUintBE(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function readUintLE(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function readUintBE(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=factory(factory)},"./protobufjs/src/util/fs.js"(e,t,r){"use strict";var i=null;try{(i=r("fs"))&&i.readFile&&i.readFileSync||(i=null)}catch(e){}e.exports=i},"./protobufjs/src/util/inquire.js"(e,t,r){"use strict";e.exports=function inquire(e){try{var t=r("./protobufjs/src/util sync recursive")(e);if(t&&(t.length||Object.keys(t).length))return t;return null}catch(e){return null}}},"./protobufjs/src/util/longbits.js"(e,t,r){"use strict";e.exports=LongBits;var i=r("./protobufjs/src/util/minimal.js");function LongBits(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=LongBits.zero=new LongBits(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=LongBits.zeroHash="\0\0\0\0\0\0\0\0";LongBits.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var r=e>>>0,i=(e-r)/0x100000000>>>0;return t&&(i=~i>>>0,r=~r>>>0,++r>0xffffffff&&(r=0,++i>0xffffffff&&(i=0))),new LongBits(r,i)},LongBits.from=function(e){if("number"==typeof e)return LongBits.fromNumber(e);if(i.isString(e))if(!i.Long)return LongBits.fromNumber(parseInt(e,10));else e=i.Long.fromString(e);return e.low||e.high?new LongBits(e.low>>>0,e.high>>>0):o},LongBits.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+0x100000000*r)}return this.lo+0x100000000*this.hi},LongBits.prototype.toLong=function(e){return i.Long?new i.Long(0|this.lo,0|this.hi,!!e):{low:0|this.lo,high:0|this.hi,unsigned:!!e}};var n=String.prototype.charCodeAt;LongBits.fromHash=function(e){return e===s?o:new LongBits((n.call(e,0)|n.call(e,1)<<8|n.call(e,2)<<16|n.call(e,3)<<24)>>>0,(n.call(e,4)|n.call(e,5)<<8|n.call(e,6)<<16|n.call(e,7)<<24)>>>0)},LongBits.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},LongBits.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},LongBits.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},LongBits.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},"./protobufjs/src/util/minimal.js"(e,t,r){"use strict";function isUnsafeProperty(e){return"__proto__"===e||"prototype"===e||"constructor"===e}function merge(e){var t="boolean"==typeof arguments[arguments.length-1],r=t?arguments.length-1:arguments.length;t=t&&arguments[arguments.length-1];for(var i=1;i<r;++i){var o=arguments[i];if(o)for(var s=Object.keys(o),n=0;n<s.length;++n)isUnsafeProperty(s[n])||void 0!==e[s[n]]&&t||(e[s[n]]=o[s[n]])}return e}function newError(e){function CustomError(e,t){if(!(this instanceof CustomError))return new CustomError(e,t);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,CustomError):Object.defineProperty(this,"stack",{value:Error().stack||""}),t&&merge(this,t)}return CustomError.prototype=Object.create(Error.prototype,{constructor:{value:CustomError,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),CustomError}t.asPromise=r("./protobufjs/src/util/aspromise.js"),t.base64=r("./protobufjs/src/util/base64.js"),t.EventEmitter=r("./protobufjs/src/util/eventemitter.js"),t.float=r("./protobufjs/src/util/float.js"),t.inquire=r("./protobufjs/src/util/inquire.js"),t.utf8=r("./protobufjs/src/util/utf8.js"),t.pool=r("./protobufjs/src/util/pool.js"),t.LongBits=r("./protobufjs/src/util/longbits.js"),t.isUnsafeProperty=isUnsafeProperty,t.isNode=!!("u">typeof global&&global&&global.process&&global.process.versions&&global.process.versions.node),t.global=t.isNode&&global||"u">typeof window&&window||"u">typeof self&&self||this,t.emptyArray=Object.freeze?Object.freeze([]):[],t.emptyObject=Object.freeze?Object.freeze({}):{},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.isString=function(e){return"string"==typeof e||e instanceof String},t.isObject=function(e){return e&&"object"==typeof e},t.isset=t.isSet=function(e,t){var r=e[t];return!!(null!=r&&Object.hasOwnProperty.call(e,t))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},t.Buffer=function(){try{var e=t.global.Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),t._Buffer_from=null,t._Buffer_allocUnsafe=null,t.newBuffer=function(e){return"number"==typeof e?t.Buffer?t._Buffer_allocUnsafe(e):new t.Array(e):t.Buffer?t._Buffer_from(e):"u"<typeof Uint8Array?e:new Uint8Array(e)},t.Array="u">typeof Uint8Array?Uint8Array:Array,t.Long=t.global.dcodeIO&&t.global.dcodeIO.Long||t.global.Long||function(){try{var e=r("./long/umd/index.js");return e&&e.isLong?e:null}catch(e){return null}}(),t.key2Re=/^(?:true|false|0|1)$/,t.key32Re=/^-?(?:0|[1-9][0-9]*)$/,t.key64Re=/^(?:[\x00-\xff]{8}|-?(?:0|[1-9][0-9]*))$/,t.longToHash=function(e){return e?t.LongBits.from(e).toHash():t.LongBits.zeroHash},t.longFromHash=function(e,r){var i=t.LongBits.fromHash(e);return t.Long?t.Long.fromBits(i.lo,i.hi,r):i.toNumber(!!r)},t.longFromKey=function(e,r){return t.key64Re.test(e)&&!t.key32Re.test(e)?t.longFromHash(e,r):e},t.boolFromKey=function(e){return"true"===e||"1"===e},t.merge=merge,t.nestingLimit=32,t.recursionLimit=100,t.makeProp=function(e,t,r){Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:void 0===r||r,configurable:!0,writable:!0})},t.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},t.newError=newError,t.ProtocolError=newError("ProtocolError"),t.oneOfGetter=function(e){for(var t={},r=0;r<e.length;++r)t[e[r]]=1;return function(){for(var e=Object.keys(this),r=e.length-1;r>-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},t.oneOfSetter=function(e){return function(t){for(var r=0;r<e.length;++r)e[r]!==t&&delete this[e[r]]}},t.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},t._configure=function(){var e=t.Buffer;if(!e){t._Buffer_from=t._Buffer_allocUnsafe=null;return}t._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,r){return new e(t,r)},t._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}}},"./protobufjs/src/util/path.js"(e,t){"use strict";var r=t.isAbsolute=function(e){return/^(?:\/|\w+:|\\\\\w+)/.test(e)},i=t.normalize=function(e){var t=e.substring(0,2),i="";"\\\\"===t&&(i=t,e=e.substring(2));var o=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),s=r(e),n="";s&&(n=o.shift()+"/");for(var a=0;a<o.length;)".."===o[a]?a>0&&".."!==o[a-1]?o.splice(--a,2):s?o.splice(a,1):++a:"."===o[a]?o.splice(a,1):++a;return i+n+o.join("/")};t.resolve=function(e,t,o){return(o||(t=i(t)),r(t))?t:(o||(e=i(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?i(e+"/"+t):t)}},"./protobufjs/src/util/patterns.js"(e,t){"use strict";t.numberRe=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,t.typeRefRe=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,t.reservedRe=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/},"./protobufjs/src/util/pool.js"(e){"use strict";e.exports=function pool(e,t,r){var i=r||8192,o=i>>>1,s=null,n=i;return function(r){if(r<1||r>o)return e(r);n+r>i&&(s=e(i),n=0);var a=t.call(s,n,n+=r);return 7&n&&(n=(7|n)+1),a}}},"./protobufjs/src/util/utf8.js"(e,t){"use strict";function utf8_read_js(e,t,r,i){for(var o=t;o<r;){var s=e[o++];if(s<=127)i+=String.fromCharCode(s);else if(s>=192&&s<224){var n=(31&s)<<6|63&e[o++];i+=n>=128?String.fromCharCode(n):"�"}else if(s>=224&&s<240){var a=(15&s)<<12|(63&e[o++])<<6|63&e[o++];i+=a>=2048?String.fromCharCode(a):"�"}else if(s>=240){var u=(7&s)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++];u<65536||u>1114111?i+="�":(u-=65536,i+=String.fromCharCode(55296+(u>>10)),i+=String.fromCharCode(56320+(1023&u)))}}return i}t.length=function(e){for(var t=0,r=0,i=0;i<e.length;++i)(r=e.charCodeAt(i))<128?t+=1:r<2048?t+=2:(64512&r)==55296&&(64512&e.charCodeAt(i+1))==56320?(++i,t+=4):t+=3;return t},t.read=function(e,t,r){if(r-t<1)return"";for(var i,o,s,n,a,u,f,l,p="",c=t;c+7<r;c+=8){if(i=e[c],o=e[c+1],s=e[c+2],n=e[c+3],a=e[c+4],u=e[c+5],(i|o|s|n|a|u|(f=e[c+6])|(l=e[c+7]))&128)return utf8_read_js(e,c,r,p);p+=String.fromCharCode(i,o,s,n,a,u,f,l)}for(;c<r;++c){if(128&(i=e[c]))return utf8_read_js(e,c,r,p);p+=String.fromCharCode(i)}return p},t.write=function(e,t,r){for(var i,o,s=r,n=0;n<e.length;++n)(i=e.charCodeAt(n))<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)==55296&&(64512&(o=e.charCodeAt(n+1)))==56320?(i=65536+((1023&i)<<10)+(1023&o),++n,t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128);return r-s}},"./protobufjs/src/verifier.js"(e,t,r){"use strict";e.exports=verifier;var i=r("./protobufjs/src/enum.js"),o=r("./protobufjs/src/util.js");function invalid(e,t){return e.name+": "+t+(e.repeated&&"array"!==t?"[]":e.map&&"object"!==t?"{k:"+e.keyType+"}":"")+" expected"}function genVerifyValue(e,t,r,o){if(t.resolvedType)if(t.resolvedType instanceof i){e("switch(%s){",o)("default:")("return%j",invalid(t,"enum value"));for(var s=Object.keys(t.resolvedType.values),n=0;n<s.length;++n)e("case %i:",t.resolvedType.values[s[n]]);e("break")("}")}else e("{")("var e=types[%i].verify(%s,q+1);",r,o)("if(e)")("return%j+e",t.name+".")("}");else switch(t.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.isInteger(%s))",o)("return%j",invalid(t,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",o,o,o,o)("return%j",invalid(t,"integer|Long"));break;case"float":case"double":e('if(typeof %s!=="number")',o)("return%j",invalid(t,"number"));break;case"bool":e('if(typeof %s!=="boolean")',o)("return%j",invalid(t,"boolean"));break;case"string":e("if(!util.isString(%s))",o)("return%j",invalid(t,"string"));break;case"bytes":e('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',o,o,o)("return%j",invalid(t,"buffer"))}return e}function genVerifyKey(e,t,r){switch(t.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.key32Re.test(%s))",r)("return%j",invalid(t,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.key64Re.test(%s))",r)("return%j",invalid(t,"integer|Long key"));break;case"bool":e("if(!util.key2Re.test(%s))",r)("return%j",invalid(t,"boolean key"))}return e}function verifier(e){var t=o.codegen(["m","q"])('if(typeof m!=="object"||m===null)')("return%j","object expected")("if(q===undefined)q=0")("if(q>util.recursionLimit)")("return%j","max depth exceeded"),r=e.oneofsArray,i={};r.length&&t("var p={}");for(var s=0;s<e.fieldsArray.length;++s){var n=e._fieldsArray[s].resolve(),a="m"+o.safeProp(n.name);if(n.optional&&t("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",a,n.name),n.map)t("if(!util.isObject(%s))",a)("return%j",invalid(n,"object"))("var k=Object.keys(%s)",a)("for(var i=0;i<k.length;++i){"),genVerifyKey(t,n,"k[i]"),genVerifyValue(t,n,s,a+"[k[i]]")("}");else if(n.repeated)t("if(!Array.isArray(%s))",a)("return%j",invalid(n,"array"))("for(var i=0;i<%s.length;++i){",a),genVerifyValue(t,n,s,a+"[i]")("}");else{if(n.partOf){var u=o.safeProp(n.partOf.name);1===i[n.partOf.name]&&t("if(p%s===1)",u)("return%j",n.partOf.name+": multiple values"),i[n.partOf.name]=1,t("p%s=1",u)}genVerifyValue(t,n,s,a)}n.optional&&t("}")}return t("return null")}},"./protobufjs/src/wrappers.js"(e,t,r){"use strict";var i=r("./protobufjs/src/message.js"),o=r("./protobufjs/src/util/minimal.js");t[".google.protobuf.Any"]={fromObject:function(e,t){if(e&&e["@type"]){var r=e["@type"].substring(e["@type"].lastIndexOf("/")+1),i=this.lookup(r);if(i){var o="."===e["@type"].charAt(0)?e["@type"].slice(1):e["@type"];return -1===o.indexOf("/")&&(o="/"+o),this.create({type_url:o,value:i.encode(i.fromObject(e,void 0===t?1:t+1)).finish()})}}return this.fromObject(e,t)},toObject:function(e,t,r){if(void 0===r&&(r=0),r>o.recursionLimit)throw Error("max depth exceeded");var s="",n="";if(t&&t.json&&e.type_url&&e.value){n=e.type_url.substring(e.type_url.lastIndexOf("/")+1),s=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var a=this.lookup(n);a&&(e=a.decode(e.value,void 0,void 0,r+1))}if(!(e instanceof this.ctor)&&e instanceof i){var u=e.$type.toObject(e,t,r+1);return""===s&&(s="type.googleapis.com/"),n=s+("."===e.$type.fullName[0]?e.$type.fullName.slice(1):e.$type.fullName),u["@type"]=n,u}return this.toObject(e,t,r)}}},"./protobufjs/src/writer.js"(e,t,r){"use strict";e.exports=Writer;var i,o=r("./protobufjs/src/util/minimal.js"),s=o.LongBits,n=o.base64,a=o.utf8;function Op(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function noop(){}function State(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function Writer(){this.len=0,this.head=new Op(noop,0,0),this.tail=this.head,this.states=null}var create=function(){return o.Buffer?function(){return(Writer.create=function(){return new i})()}:function(){return new Writer}};function writeByte(e,t,r){t[r]=255&e}function writeStringAscii(e,t,r){for(var i=0;i<e.length;)t[r++]=e.charCodeAt(i++)}function writeVarint32(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e}function VarintOp(e,t){this.len=e,this.next=void 0,this.val=t}function writeVarint64(e,t,r){for(var i=e.lo,o=e.hi;o;)t[r++]=127&i|128,i=(i>>>7|o<<25)>>>0,o>>>=7;for(;i>127;)t[r++]=127&i|128,i>>>=7;t[r++]=i}function writeFixed32(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}Writer.create=create(),Writer.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(Writer.alloc=o.pool(Writer.alloc,o.Array.prototype.subarray)),Writer.prototype._push=function(e,t,r){return this.tail=this.tail.next=new Op(e,t,r),this.len+=t,this},VarintOp.prototype=Object.create(Op.prototype),VarintOp.prototype.fn=writeVarint32,Writer.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new VarintOp((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this},Writer.prototype.int32=function(e){return(e|=0)<0?this._push(writeVarint64,10,s.fromNumber(e)):this.uint32(e)},Writer.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},Writer.prototype.uint64=function(e){var t=s.from(e);return this._push(writeVarint64,t.length(),t)},Writer.prototype.int64=Writer.prototype.uint64,Writer.prototype.sint64=function(e){var t=s.from(e).zzEncode();return this._push(writeVarint64,t.length(),t)},Writer.prototype.bool=function(e){return this._push(writeByte,1,+!!e)},Writer.prototype.fixed32=function(e){return this._push(writeFixed32,4,e>>>0)},Writer.prototype.sfixed32=Writer.prototype.fixed32,Writer.prototype.fixed64=function(e){var t=s.from(e);return this._push(writeFixed32,4,t.lo)._push(writeFixed32,4,t.hi)},Writer.prototype.sfixed64=Writer.prototype.fixed64,Writer.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},Writer.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var u=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var i=0;i<e.length;++i)t[r+i]=e[i]};Writer.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(writeByte,1,0);if(o.isString(e)){var r=Writer.alloc(t=n.length(e));n.decode(e,r,0),e=r}return this.uint32(t)._push(u,t,e)},Writer.prototype.raw=function(e){var t=e.length>>>0;return t?this._push(u,t,e):this},Writer.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(t===e.length?writeStringAscii:a.write,t,e):this._push(writeByte,1,0)},Writer.prototype.fork=function(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this},Writer.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this},Writer.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},Writer.prototype.finish=function(){return this.finishInto(this.constructor.alloc(this.len),0)},Writer.prototype.finishInto=function(e,t){void 0===t&&(t=0);for(var r=this.head.next,i=t;r;)r.fn(r.val,e,i),i+=r.len,r=r.next;return e},Writer._configure=function(e){i=e,Writer.create=create(),i._configure()}},"./protobufjs/src/writer_buffer.js"(e,t,r){"use strict";e.exports=BufferWriter;var i=r("./protobufjs/src/writer.js");(BufferWriter.prototype=Object.create(i.prototype)).constructor=BufferWriter;var o=r("./protobufjs/src/util/minimal.js");function BufferWriter(){i.call(this)}function writeStringBufferAscii(e,t,r){for(var i=0;i<e.length;)t[r++]=e.charCodeAt(i++)}function writeStringBuffer(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}BufferWriter._configure=function(){BufferWriter.alloc=o._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var i=0;i<e.length;)t[r++]=e[i++]}},BufferWriter.prototype.bytes=function(e){o.isString(e)&&(e=o._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(BufferWriter.writeBytesBuffer,t,e),this},BufferWriter.prototype.raw=function(e){var t=e.length>>>0;return t?this._push(BufferWriter.writeBytesBuffer,t,e):this},BufferWriter.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(t===e.length&&t<40?writeStringBufferAscii:writeStringBuffer,t,e),this},BufferWriter._configure()}},t={};function __webpack_require__(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,__webpack_require__),o.exports}__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r=__webpack_require__("./protobufjs/index.js");module.exports=r})();
|