protobufjs 8.6.5 → 8.7.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.
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * protobuf.js v8.6.5 (c) 2016, daniel wirtz
3
- * compiled tue, 23 jun 2026 14:36:36 utc
2
+ * protobuf.js v8.7.0 (c) 2016, daniel wirtz
3
+ * compiled mon, 06 jul 2026 13:50:00 utc
4
4
  * licensed under the bsd-3-clause license
5
5
  * see: https://github.com/dcodeio/protobuf.js for details
6
6
  */
7
- !function(g){"use strict";var r,e,i;r={1:[function(t,i,n){},{}],2:[function(t,i,n){var b=t(5),v=t(23),p=t(24);function u(t,i,n,r,e){if(i.resolvedType)if(i.resolvedType instanceof b){var s=e?"m"+e+"[m"+e+".length]":"m"+r;t("switch(d%s){",r);for(var o=i.resolvedType.values,u=Object.keys(o),f=0;f<u.length;++f)t("case%j:",u[f])("case %i:",o[u[f]])("%s=%j",s,o[u[f]])("break");t("default:"),"CLOSED"!==i.resolvedType.t.enum_type&&t('if(typeof d%s==="number"&&(d%s|0)===d%s)',r,r,r)("%s=d%s",s,r),t("}")}else t("if(!util.isObject(d%s))",r)("throw TypeError(%j)",i.fullName+": object expected")("m%s=types[%i].fromObject(d%s,q+1)",r,n,r);else{var h=!1;switch(i.type){case"double":case"float":t("m%s=Number(d%s)",r,r);break;case"uint32":case"fixed32":t("m%s=d%s>>>0",r,r);break;case"int32":case"sint32":case"sfixed32":t("m%s=d%s|0",r,r);break;case"uint64":case"fixed64":h=!0;case"int64":case"sint64":case"sfixed64":t("if(util.Long)")("m%s=util.Long.fromValue(d%s,%j)",r,r,h)('else if(typeof d%s==="string")',r)("m%s=parseInt(d%s,10)",r,r)('else if(typeof d%s==="number")',r)("m%s=d%s",r,r)('else if(typeof d%s==="object")',r)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",r,r,r,h?"true":"");break;case"bytes":t('if(typeof d%s==="string")',r)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",r,r,r)("else if(d%s.length>=0)",r)("m%s=d%s",r,r);break;case"string":t("m%s=String(d%s)",r,r);break;case"bool":t("m%s=Boolean(d%s)",r,r)}}return t}function m(t,i,n,r,e){if(e=e||r,i.resolvedType)i.resolvedType instanceof b?t("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",r,n,e,e,n,e,e):t("d%s=types[%i].toObject(m%s,o,q+1)",r,n,e);else{var s=!1;switch(i.type){case"double":case"float":t("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",r,e,e,e);break;case"uint64":case"fixed64":s=!0;case"int64":case"sint64":case"sfixed64":t('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()',r,e,e,e,e,s)('else if(typeof m%s==="number")',e)("d%s=o.longs===String?String(m%s):m%s",r,e,e)("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",r,e,e,e,s?"true":"",e);break;case"bytes":t("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",r,e,e,e,e);break;default:t("d%s=m%s",r,e)}}return t}n.fromObject=function(t){var i=t.fieldsArray,n=p.codegen(["d","q"])("if(d instanceof C)")("return d")("if(!util.isObject(d))")("throw TypeError(%j)",t.fullName+": object expected")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")');if(!i.length)return n("return new C");n("var m=new C");for(var r=0;r<i.length;++r){var e=i[r].resolve(),s=p.safeProp(e.name),o=!e.hasPresence&&!e.repeated&&!e.map&&(e.resolvedType instanceof b||v.basic[e.type]!==g);e.map?(n("if(d%s){",s)("if(!util.isObject(d%s))",s)("throw TypeError(%j)",e.fullName+": object expected")("m%s={}",s)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",s),n('if(ks[i]==="__proto__")')("util.makeProp(m%s,ks[i])",s),u(n,e,r,s+"[ks[i]]")("}")("}")):e.repeated?(n("if(d%s){",s)("if(!Array.isArray(d%s))",s)("throw TypeError(%j)",e.fullName+": array expected"),e.resolvedType instanceof b?n("m%s=[]",s):n("m%s=Array(d%s.length)",s,s),n("for(var i=0;i<d%s.length;++i){",s),u(n,e,r,s+"[i]",e.resolvedType instanceof b?s:g)("}")("}")):(e.resolvedType instanceof b||n("if(d%s!=null){",s),o&&(e.resolvedType instanceof b?n('if(d%s!==%j&&(typeof d%s!=="string"||types[%i].values[d%s]!==%j)){',s,e.typeDefault,s,r,s,e.typeDefault):"string"===e.type?n('if(typeof d%s!=="string"||d%s.length){',s,s):"bytes"===e.type?n("if(d%s.length){",s):"bool"===e.type?n("if(d%s){",s):"double"===e.type||"float"===e.type?n("if(!Object.is(Number(d%s),0)){",s):v.long[e.type]!==g?n('if(typeof d%s==="object"?d%s.low||d%s.high:Number(d%s)!==0){',s,s,s,s):n("if(Number(d%s)!==0){",s)),u(n,e,r,s),o&&n("}"),e.resolvedType instanceof b||n("}"))}return n("return m")},n.toObject=function(t){var i=t.fieldsArray.slice().sort(p.compareFieldsById);if(!i.length)return p.codegen()("return {}");for(var n=p.codegen(["m","o","q"])("if(!o)")("o={}")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")')("var d={}"),r=[],e=[],s=[],o=0;o<i.length;++o)i[o].partOf||(i[o].resolve().repeated?r:i[o].map?e:s).push(i[o]);if(r.length){for(n("if(o.arrays||o.defaults){"),o=0;o<r.length;++o)n("d%s=[]",p.safeProp(r[o].name));n("}")}if(e.length){for(n("if(o.objects||o.defaults){"),o=0;o<e.length;++o)n("d%s={}",p.safeProp(e[o].name));n("}")}if(s.length){for(n("if(o.defaults){"),o=0;o<s.length;++o){var u,f=s[o],h=p.safeProp(f.name);f.resolvedType instanceof b?n("d%s=o.enums===String?%j:%j",h,f.resolvedType.valuesById[f.typeDefault],f.typeDefault):f.long?n("if(util.Long){")("var n=new util.Long(%i,%i,%j)",f.typeDefault.low,f.typeDefault.high,f.typeDefault.unsigned)('d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():typeof BigInt!=="undefined"&&o.longs===BigInt?n.toBigInt():n',h)("}else")('d%s=o.longs===String?%j:typeof BigInt!=="undefined"&&o.longs===BigInt?BigInt(%j):%i',h,f.typeDefault.toString(),f.typeDefault.toString(),f.typeDefault.toNumber()):f.bytes?(u=Array.prototype.slice.call(f.typeDefault),n("if(o.bytes===String)d%s=%j",h,String.fromCharCode.apply(String,f.typeDefault))("else{")("d%s=%j",h,u)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",h,h)("}")):n("d%s=%j",h,f.typeDefault)}n("}")}for(var c=!1,o=0;o<i.length;++o){var a,l,f=i[o],d=t.i.indexOf(f),h=p.safeProp(f.name);f.map?(c||(c=!0,n("var ks2")),n("if(m%s&&(ks2=Object.keys(m%s)).length){",h,h)("d%s={}",h),a=v.long[f.keyType]!==g,l=h+"[ks2[j]]",n("for(var j=0;j<ks2.length;++j){"),a&&n("var k2=util.longFromKey(ks2[j],%j).toString()","uint64"===f.keyType||"fixed64"===f.keyType),n('if(ks2[j]==="__proto__")')("util.makeProp(d%s,ks2[j])",h),m(n,f,d,a?h+"[k2]":l,l)("}")):f.repeated?(n("if(m%s&&m%s.length){",h,h)("d%s=Array(m%s.length)",h,h)("for(var j=0;j<m%s.length;++j){",h),m(n,f,d,h+"[j]")("}")):(n("if(m%s!=null&&Object.hasOwnProperty.call(m,%j)){",h,f.name),m(n,f,d,h),f.partOf&&!f.partOf.isProto3Optional&&n("if(o.oneofs)")("d%s=%j",p.safeProp(f.partOf.name),f.name)),n("}")}return n("return d")}},{23:23,24:24,5:5}],3:[function(t,i,n){i.exports=function(t){for(var i=!1,n=!1,r=0;r<t.fieldsArray.length;++r){var e=t.i[r];e.map&&(i=!0),(e.resolvedType instanceof l||!e.repeated&&!e.map&&!e.hasPresence)&&(n=!0)}var s=b.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"+(i?",k,v":n?",v":""))("while(r.pos<c){")("var s=r.pos")("var t=r.tag()")("if(t===z){")("z=undefined")("break")("}");t.fieldsArray.length&&s("var u=t&7")("switch(t>>>=3){");for(r=0;r<t.fieldsArray.length;++r){var o,u=t.i[r].resolve(),f=u.resolvedType instanceof l?"int32":u.type,h="m"+b.safeProp(u.name),c=u.resolvedType instanceof l&&"CLOSED"===u.resolvedType.t.enum_type;u.map?(s("case %i:{",u.id)("if(u!==2)")("break"),c||s("if(%s===util.emptyObject)",h)("%s={}",h),s("var c2=r.uint32()+r.pos"),d.defaults[u.keyType]!==g?s("k=%j",d.defaults[u.keyType]):s("k=null"),d.long[f]!==g?s("v=util.Long?util.Long.fromNumber(0,%j):0","uint64"===f||"fixed64"===f):d.defaults[f]!==g?s("v=%j",d.defaults[f]):s("v=null"),s("while(r.pos<c2){")("var t2=r.tag()")("u=t2&7")("switch(t2>>>=3){")("case 1:")("if(u!==%i)",d.mapKey[u.keyType])("break")("k=r.%s()","string"===u.keyType?v(u):u.keyType)("continue")("case 2:")("if(u!==%i)",d.basic[f]===g?2:d.basic[f])("break"),d.basic[f]===g?s("v=types[%i].decode(r,r.uint32(),undefined,q+1)",r):s("v=r.%s()","string"===f?v(u):f),s("continue")("}")("r.skipType(u,q,t2)")("}"),c&&(s("if(types[%i].valuesById[v]===undefined){",r),p(s,"r.raw(s,r.pos)")("continue")("}")("if(%s===util.emptyObject)",h)("%s={}",h)),o=d.basic[f]===g?"v||new types["+r+"].ctor":"v",d.long[u.keyType]!==g?s('%s[typeof k==="object"?util.longToHash(k):k]=%s',h,o):("string"===u.keyType&&s('if(k==="__proto__")')("util.makeProp(%s,k)",h),s("%s[k]=%s",h,o))):u.repeated?(s("case %i:",u.id)("{"),d.packed[f]!==g&&(s("if(u===2){"),c||s("if(!(%s&&%s.length))",h,h)("%s=[]",h),s("var c2=r.uint32()+r.pos"),c?(s("while(r.pos<c2){")("s=r.pos")("v=r.%s()",f)("if(types[%i].valuesById[v]!==undefined){",r)("if(!(%s&&%s.length))",h,h)("%s=[]",h)("%s.push(v)",h)("}else"),p(s,"util.rawField("+u.id+",0,r.raw(s,r.pos))")("}")):s("while(r.pos<c2)")("%s.push(r.%s())",h,f),s("continue")("}")),s("if(u!==%i)",d.basic[f]===g?u.delimited?3:2:d.basic[f])("break"),c||s("if(!(%s&&%s.length))",h,h)("%s=[]",h),d.basic[f]===g?u.delimited?s("%s.push(types[%i].decode(r,undefined,%i,q+1))",h,r,8*u.id+4):s("%s.push(types[%i].decode(r,r.uint32(),undefined,q+1))",h,r):c?(s("v=r.%s()",f)("if(types[%i].valuesById[v]!==undefined){",r)("if(!(%s&&%s.length))",h,h)("%s=[]",h)("%s.push(v)",h)("}else"),p(s,"r.raw(s,r.pos)")):s("%s.push(r.%s())",h,"string"===f?v(u):f)):d.basic[f]===g?(s("case %i:{",u.id)("if(u!==%i)",u.delimited?3:2)("break"),u.delimited?s("%s=types[%i].decode(r,undefined,%i,q+1,%s)",h,r,8*u.id+4,h):s("%s=types[%i].decode(r,r.uint32(),undefined,q+1,%s)",h,r,h)):u.hasPresence?(s("case %i:{",u.id)("if(u!==%i)",d.basic[f])("break"),c?(s("v=r.%s()",f)("if(types[%i].valuesById[v]!==undefined){",r)("%s=v",h),u.partOf&&s("m%s=%j",b.safeProp(u.partOf.name),u.name),s("}else"),p(s,"r.raw(s,r.pos)")):s("%s=r.%s()",h,"string"===f?v(u):f)):(s("case %i:{",u.id)("if(u!==%i)",d.basic[f])("break"),c?(s("v=r.%s()",f)("if(types[%i].valuesById[v]!==undefined){",r)("if(v!==%j)",u.typeDefault)("%s=v",h)("else")("delete %s",h)("}else{"),p(s,"r.raw(s,r.pos)")("}")):(u.resolvedType instanceof l&&0!==u.typeDefault?s("if((v=r.%s())!==%j)",f,u.typeDefault):"string"===f?s("if((v=r.%s()).length)",v(u)):"bytes"===f?s("if((v=r.%s()).length)",f):d.long[f]!==g?s('if(typeof(v=r.%s())==="object"?v.low||v.high:v!==0)',f):s("double"===f||"float"===f?"if(!Object.is(v=r.%s(),0))":"if(v=r.%s())",f),s("%s=v",h)("else")("delete %s",h))),u.partOf&&!c&&s("m%s=%j",b.safeProp(u.partOf.name),u.name),s("continue")("}")}r&&s("}");for(s("r.skipType(%s,q,t)",r?"u":"t&7"),p(s,"r.raw(s,r.pos)")("}")("if(z!==undefined)")('throw Error("missing end group")'),r=0;r<t.i.length;++r){var a=t.i[r];a.required&&s("if(!Object.hasOwnProperty.call(m,%j))",a.name)("throw util.ProtocolError(%j,{instance:m})","missing required '"+a.name+"'")}return s("return m")};var l=t(5),d=t(23),b=t(24);function v(t){return"VERIFY"===t.t.utf8_validation?"stringVerify":"string"}function p(t,i){return t("if(!r.discardUnknown){")('util.makeProp(m,"$unknowns",false);')("(m.$unknowns||(m.$unknowns=[])).push(%s)",i)("}")}},{23:23,24:24,5:5}],4:[function(t,i,n){i.exports=function(t){for(var i,n=a.codegen(["m","w","q"])("if(!w)")("w=Writer.create()")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")'),r=t.fieldsArray.slice().sort(a.compareFieldsById),e=0;e<r.length;++e){var s=r[e].resolve(),o=t.i.indexOf(s),u=s.resolvedType instanceof h?"int32":s.type,f=c.basic[u];i="m"+a.safeProp(s.name),s.map?(n("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",i,s.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",i),"bool"===s.keyType?n("w.uint32(%i).fork().uint32(%i).bool(util.boolFromKey(ks[i]))",(s.id<<3|2)>>>0,8|c.mapKey[s.keyType]):c.long[s.keyType]!==g?n("w.uint32(%i).fork().uint32(%i).%s(util.longFromKey(ks[i],%j))",(s.id<<3|2)>>>0,8|c.mapKey[s.keyType],s.keyType,"uint64"===s.keyType||"fixed64"===s.keyType):n("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(s.id<<3|2)>>>0,8|c.mapKey[s.keyType],s.keyType),f===g?n("types[%i].encode(%s[ks[i]],w.uint32(18).fork(),q+1).ldelim().ldelim()",o,i):n(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|f,u,i),n("}")("}")):s.repeated?(n("if(%s!=null&&%s.length){",i,i),s.packed&&c.packed[u]!==g?n("w.uint32(%i).fork()",(s.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",i)("w.%s(%s[i])",u,i)("w.ldelim()"):(n("for(var i=0;i<%s.length;++i)",i),f===g?l(n,s,o,i+"[i]"):n("w.uint32(%i).%s(%s[i])",(s.id<<3|f)>>>0,u,i)),n("}")):(s.required||(s.hasPresence||!(s.resolvedType instanceof h||c.basic[u]!==g)?n("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",i,s.name):s.resolvedType instanceof h?n("if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&%s!==%j)",i,s.name,i,s.typeDefault):"bool"===u?n("if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&%s!==false)",i,s.name,i):"string"===u?n('if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&%s!=="")',i,s.name,i):"bytes"===u?n("if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&%s.length)",i,s.name,i):"double"===u||"float"===u?n("if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&!Object.is(%s,0))",i,s.name,i):c.long[u]!==g?n('if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&(typeof %s==="object"?%s.low||%s.high:%s!==0))',i,s.name,i,i,i,i):n("if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&%s!==0)",i,s.name,i)),f===g?l(n,s,o,i):n("w.uint32(%i).%s(%s)",(s.id<<3|f)>>>0,u,i))}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")};var h=t(5),c=t(23),a=t(24);function l(t,i,n,r){i.delimited?t("types[%i].encode(%s,w.uint32(%i),q+1).uint32(%i)",n,r,(i.id<<3|3)>>>0,(i.id<<3|4)>>>0):t("types[%i].encode(%s,w.uint32(%i).fork(),q+1).ldelim()",n,r,(i.id<<3|2)>>>0)}},{23:23,24:24,5:5}],5:[function(t,i,n){i.exports=s;var f=t(13),r=(s.prototype=Object.create(f.prototype,{constructor:{value:s,writable:!0,enumerable:!1,configurable:!0}}),s.className="Enum",t(12)),e=t(24);function s(t,i,n,r,e,s){if(f.call(this,t,n),i&&"object"!=typeof i)throw TypeError("values must be an object");if(this.valuesById=Object.create(null),this.values=Object.create(this.valuesById),this.comment=r,this.comments=e||{},this.valuesOptions=s,this.n={},this.reserved=g,i)for(var o=Object.keys(i),u=0;u<o.length;++u)"__proto__"!==o[u]&&"number"==typeof i[o[u]]&&(this.valuesById[this.values[o[u]]=i[o[u]]]=o[u])}s.prototype.r=function(t){return t=this.e||t,f.prototype.r.call(this,t),Object.keys(this.values).forEach(t=>{var i=e.merge({},this.t);this.n[t]=e.merge(i,this.valuesOptions&&this.valuesOptions[t]&&this.valuesOptions[t].features||{})}),this},s.fromJSON=function(t,i){t=new s(t,i.values,i.options,i.comment,i.comments,i.valuesOptions);return t.reserved=i.reserved,i.edition&&(t.e=i.edition),t.s="proto3",t},s.prototype.toJSON=function(t){t=!!t&&!!t.keepComments;return e.toObject(["edition",this.o(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:g,"comment",t?this.comment:g,"comments",t?this.comments:g])},s.prototype.add=function(t,i,n,r){if(!e.isString(t))throw TypeError("name must be a string");if(!e.isInteger(i))throw TypeError("id must be an integer");if("__proto__"!==t){if(this.values[t]!==g)throw Error("duplicate name '"+t+"' in "+this);if(this.isReservedId(i))throw Error("id "+i+" is reserved in "+this);if(this.isReservedName(t))throw Error("name '"+t+"' is reserved in "+this);if(this.valuesById[i]!==g){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+i+" in "+this);this.values[t]=i}else this.valuesById[this.values[t]=i]=t;r&&(this.valuesOptions===g&&(this.valuesOptions={}),this.valuesOptions[t]=r||null),this.comments[t]=n||null}return this},s.prototype.remove=function(t){if(!e.isString(t))throw TypeError("name must be a string");var i=this.values[t];if(null==i)throw Error("name '"+t+"' does not exist in "+this);return delete this.valuesById[i],delete this.values[t],delete this.comments[t],this.valuesOptions&&delete this.valuesOptions[t],this},s.prototype.isReservedId=function(t){return r.isReservedId(this.reserved,t)},s.prototype.isReservedName=function(t){return r.isReservedName(this.reserved,t)}},{12:12,13:13,24:24}],6:[function(t,i,n){i.exports=o;var r,u=t(13),e=(o.prototype=Object.create(u.prototype,{constructor:{value:o,writable:!0,enumerable:!1,configurable:!0}}),o.className="Field",t(5)),f=t(23),h=t(24),c=/^(?:required|optional|repeated)$/;function o(t,i,n,r,e,s,o){if(h.isObject(r)?(o=e,s=r,r=e=g):h.isObject(e)&&(o=s,s=e,e=g),u.call(this,t,s),!h.isInteger(i)||i<0)throw TypeError("id must be a non-negative integer");if(!h.isString(n))throw TypeError("type must be a string");if(r!==g&&!c.test(r=r.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(e!==g&&!h.isString(e))throw TypeError("extend must be a string");this.rule=r&&"optional"!==r?r:g,this.type=n,this.id=i,this.extend=e||g,this.repeated="repeated"===r,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!h.Long&&f.long[n]!==g,this.bytes="bytes"===n,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=o,this.protoName=g,this.jsonName=g}o.fromJSON=function(t,i){t=new o(t,i.id,i.type,i.rule,i.extend,i.options,i.comment);return i.edition&&(t.e=i.edition),i.protoName&&(t.protoName=i.protoName),i.jsonName!==g?t.jsonName=i.jsonName:i.options&&i.options.json_name!==g&&(t.jsonName=i.options.json_name),t.s="proto3",t},Object.defineProperty(o.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this.t.field_presence}}),Object.defineProperty(o.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(o.prototype,"delimited",{get:function(){return this.resolvedType instanceof r&&"DELIMITED"===this.t.message_encoding}}),Object.defineProperty(o.prototype,"packed",{get:function(){return"PACKED"===this.t.repeated_field_encoding}}),Object.defineProperty(o.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this.t.field_presence)}}),o.prototype.setOption=function(t,i,n){return u.prototype.setOption.call(this,t,i,n)},o.prototype.toJSON=function(t){t=!!t&&!!t.keepComments;return h.toObject(["edition",this.o(),"rule","optional"!==this.rule&&this.rule||g,"type",this.type,"id",this.id,"extend",this.extend,"protoName",this.protoName!==this.name?this.protoName:g,"jsonName",this.jsonName!==h.jsonName(this.protoName||this.name)?this.jsonName:g,"options",this.options,"comment",t?this.comment:g])},o.prototype.resolve=function(){var t;return this.resolved?this:((this.typeDefault=f.defaults[this.type])===g?(this.resolvedType=(this.declaringField||this).parent.lookupTypeOrEnum(this.type),this.resolvedType instanceof r?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 e&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(this.options.packed===g||!this.resolvedType||this.resolvedType instanceof e||delete this.options.packed,Object.keys(this.options).length||(this.options=g)),this.long?(this.typeDefault=h.Long.fromNumber(this.typeDefault,"uint64"===this.type||"fixed64"===this.type),Object.freeze&&Object.freeze(this.typeDefault)):this.bytes&&"string"==typeof this.typeDefault&&(h.base64.test(this.typeDefault)?h.base64.decode(this.typeDefault,t=h.newBuffer(h.base64.length(this.typeDefault)),0):h.utf8.write(this.typeDefault,t=h.newBuffer(h.utf8.length(this.typeDefault)),0),this.typeDefault=t),this.map?this.defaultValue=h.emptyObject:this.repeated?this.defaultValue=h.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof r&&this.parent.u&&(this.parent.u.prototype[this.name]=this.defaultValue),this.protoName===g&&(this.protoName=this.name),this.jsonName===g&&(this.jsonName=h.jsonName(this.protoName)),u.prototype.resolve.call(this))},o.prototype.f=function(t){var i;return"proto2"!==t&&"proto3"!==t?{}:(t={},"required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&f.defaults[this.type]===g&&(i=this.parent.get(this.type.split(".").pop()))&&i instanceof r&&i.group&&(t.message_encoding="DELIMITED"),!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t)},o.prototype.r=function(t){return u.prototype.r.call(this,this.e||t)},o.d=function(n,r,e,s){return"function"==typeof r?r=h.decorateType(r).name:r&&"object"==typeof r&&(r=h.decorateEnum(r).name),function(t,i){h.decorateType(t.constructor).add(new o(i,n,r,e,{default:s}))}},o.h=function(t){r=t}},{13:13,23:23,24:24,5:5}],7:[function(t,i,r){(r=i.exports=t(8)).build="light",r.load=function(t,i,n){return(i="function"==typeof i?(n=i,new r.Root):i||new r.Root).load(t,n)},r.loadSync=function(t,i){return(i=i||new r.Root).loadSync(t)},r.encoder=t(4),r.decoder=t(3),r.verifier=t(38),r.converter=t(2),r.ReflectionObject=t(13),r.Namespace=t(12),r.Root=t(17),r.Enum=t(5),r.Type=t(22),r.Field=t(6),r.OneOf=t(14),r.MapField=t(9),r.Service=t(21),r.Method=t(11),r.Message=t(10),r.wrappers=t(39),r.types=t(23),r.util=t(24),r.ReflectionObject.h(r.Root),r.Namespace.h(r.Type,r.Service,r.Enum),r.Root.h(r.Type,g,{}),r.Field.h(r.Type)},{10:10,11:11,12:12,13:13,14:14,17:17,2:2,21:21,22:22,23:23,24:24,3:3,38:38,39:39,4:4,5:5,6:6,8:8,9:9}],8:[function(t,i,n){function r(){n.util.h(),n.Writer.h(n.BufferWriter),n.Reader.h(n.BufferReader)}n.build="minimal",n.Writer=t(40),n.BufferWriter=t(41),n.Reader=t(15),n.BufferReader=t(16),n.util=t(33),n.rpc=t(19),n.roots=t(18),n.configure=r,r()},{15:15,16:16,18:18,19:19,33:33,40:40,41:41}],9:[function(t,i,n){i.exports=s;var o=t(6),r=(s.prototype=Object.create(o.prototype,{constructor:{value:s,writable:!0,enumerable:!1,configurable:!0}}),s.className="MapField",t(23)),u=t(24);function s(t,i,n,r,e,s){if(o.call(this,t,i,r,g,g,e,s),!u.isString(n))throw TypeError("keyType must be a string");this.keyType=n,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(t,i){t=new s(t,i.id,i.keyType,i.type,i.options,i.comment);return i.protoName&&(t.protoName=i.protoName),i.jsonName!==g?t.jsonName=i.jsonName:i.options&&i.options.json_name!==g&&(t.jsonName=i.options.json_name),t},s.prototype.toJSON=function(t){t=!!t&&!!t.keepComments;return u.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"protoName",this.protoName!==this.name?this.protoName:g,"jsonName",this.jsonName!==u.jsonName(this.protoName||this.name)?this.jsonName:g,"options",this.options,"comment",t?this.comment:g])},s.prototype.resolve=function(){if(this.resolved)return this;if(r.mapKey[this.keyType]===g)throw Error("invalid key type: "+this.keyType);return o.prototype.resolve.call(this)},s.d=function(n,r,e){return"function"==typeof e?e=u.decorateType(e).name:e&&"object"==typeof e&&(e=u.decorateEnum(e).name),function(t,i){u.decorateType(t.constructor).add(new s(i,n,r,e))}}},{23:23,24:24,6:6}],10:[function(t,i,n){i.exports=e;var r=t(33);function e(t){if(t)for(var i=Object.keys(t),n=0;n<i.length;++n)null!=t[i[n]]&&"__proto__"!==i[n]&&(this[i[n]]=t[i[n]])}e.create=function(t){return this.$type.create(t)},e.encode=function(t,i){return this.$type.encode(t,i)},e.encodeDelimited=function(t,i){return this.$type.encodeDelimited(t,i)},e.decode=function(t){return this.$type.decode(t)},e.decodeDelimited=function(t){return this.$type.decodeDelimited(t)},e.verify=function(t){return this.$type.verify(t)},e.fromObject=function(t){return this.$type.fromObject(t)},e.toObject=function(t,i){return this.$type.toObject(t,i)},e.prototype.toJSON=function(){return this.$type.toObject(this,r.toJSONOptions)}},{33:33}],11:[function(t,i,n){i.exports=r;var h=t(13),c=(r.prototype=Object.create(h.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0}}),r.className="Method",t(24));function r(t,i,n,r,e,s,o,u,f){if(c.isObject(e)?(o=e,e=s=g):c.isObject(s)&&(o=s,s=g),i!==g&&!c.isString(i))throw TypeError("type must be a string");if(!c.isString(n))throw TypeError("requestType must be a string");if(!c.isString(r))throw TypeError("responseType must be a string");h.call(this,t,o),this.type=i||"rpc",this.requestType=n,this.requestStream=!!e||g,this.responseType=r,this.responseStream=!!s||g,this.path="/"+this.name,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=u,this.parsedOptions=f}r.fromJSON=function(t,i){return new r(t,i.type,i.requestType,i.responseType,i.requestStream,i.responseStream,i.options,i.comment,i.parsedOptions)},r.prototype.toJSON=function(t){t=!!t&&!!t.keepComments;return c.toObject(["type","rpc"!==this.type&&this.type||g,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:g,"parsedOptions",this.parsedOptions])},r.prototype.resolve=function(){var t;return this.resolved?this:(this.parent?("."==((t=this.parent.fullName)[0]||"")&&(t=t.substring(1)),this.path="/"+t+"/"+this.name):this.path="/"+this.name,this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),h.prototype.resolve.call(this))}},{13:13,24:24}],12:[function(t,i,n){i.exports=a;var s,o,u,r=t(13),f=(a.prototype=Object.create(r.prototype,{constructor:{value:a,writable:!0,enumerable:!1,configurable:!0}}),a.className="Namespace",t(6)),h=t(24),c=t(14);function e(t,i){if(!t||!t.length)return g;for(var n={},r=0;r<t.length;++r)n[t[r].name]=t[r].toJSON(i);return n}function a(t,i){r.call(this,t,i),this.nested=g,this.c=null,this.a=Object.create(null),this.l=!0,this.b=!0}function l(t){t.c=null,t.a=Object.create(null);for(var i=t;i=i.parent;)i.a=Object.create(null);return t}a.fromJSON=function(t,i,n){if((n=n===g?0:n)>h.recursionLimit)throw Error("max depth exceeded");return new a(t,i.options).addJSON(i.nested,n)},a.arrayToJSON=e,a.isReservedId=function(t,i){if(t)for(var n=0;n<t.length;++n)if("string"!=typeof t[n]&&t[n][0]<=i&&t[n][1]>=i)return!0;return!1},a.isReservedName=function(t,i){if(t)for(var n=0;n<t.length;++n)if(t[n]===i)return!0;return!1},Object.defineProperty(a.prototype,"nestedArray",{get:function(){return this.c||(this.c=h.toArray(this.nested))}}),a.prototype.toJSON=function(t){return h.toObject(["options",this.options,"nested",e(this.nestedArray,t)])},a.prototype.addJSON=function(t,i){if((i=i===g?0:i)>h.recursionLimit)throw Error("max depth exceeded");if(t)for(var n,r=Object.keys(t),e=0;e<r.length;++e)n=t[r[e]],this.add((n.fields!==g?s:n.values!==g?u:n.methods!==g?o:n.id!==g?f:a).fromJSON(r[e],n,i+1));return this},a.prototype.get=function(t){return this.nested&&Object.prototype.hasOwnProperty.call(this.nested,t)?this.nested[t]:null},a.prototype.getEnum=function(t){if(this.nested&&Object.prototype.hasOwnProperty.call(this.nested,t)&&this.nested[t]instanceof u)return this.nested[t].values;throw Error("no such enum: "+t)},a.prototype.add=function(t){if(!(t instanceof f&&t.extend!==g||t instanceof s||t instanceof c||t instanceof u||t instanceof o||t instanceof a))throw TypeError("object must be a valid nested object");if("__proto__"===t.name)return this;if(this.nested){var i=this.get(t.name);if(i){if(!(i instanceof a&&t instanceof a)||i instanceof s||i instanceof o)throw Error("duplicate name '"+t.name+"' in "+this);for(var n=i.nestedArray,r=0;r<n.length;++r)t.add(n[r]);this.remove(i),this.nested||(this.nested={}),t.setOptions(i.options,!0)}}else this.nested={};this.nested[t.name]=t,this instanceof s||this instanceof o||this instanceof u||this instanceof f||t.e||(t.e=t.s),this.l=!0,this.b=!0;for(var e=this;e=e.parent;)e.l=!0,e.b=!0;return t.onAdd(this),l(this)},a.prototype.remove=function(t){if(!(t instanceof r))throw TypeError("object must be a ReflectionObject");if(t.parent===this&&h.remove(this.nested,t,t.name))return Object.keys(this.nested).length||(this.nested=g),t.onRemove(this),l(this);throw Error(t+" is not a member of "+this)},a.prototype.define=function(t,i){if(h.isString(t))t=t.split(".");else if(!Array.isArray(t))throw TypeError("illegal path");if(t&&t.length&&""===t[0])throw Error("path must be relative");if(t.length>h.recursionLimit)throw Error("max depth exceeded");for(var n=this;0<t.length;){var r=t.shift();if(n.nested&&n.nested[r]){if(!((n=n.nested[r])instanceof a))throw Error("path conflicts with non-namespace objects")}else n.add(n=new a(r))}return i&&n.addJSON(i),n},a.prototype.resolveAll=function(){if(this.b){this.l&&this.v(this.e);var t=this.nestedArray,i=0;for(this.resolve();i<t.length;)t[i]instanceof a?t[i++].resolveAll():t[i++].resolve();this.b=!1}return this},a.prototype.v=function(i){return this.l&&(this.l=!1,i=this.e||i,r.prototype.v.call(this,i),this.nestedArray.forEach(t=>{t.v(i)})),this},a.prototype.lookup=function(t,i,n){if("boolean"==typeof i?(n=i,i=g):i&&!Array.isArray(i)&&(i=[i]),h.isString(t)&&t.length){if("."===t)return this.root;t=t.split(".")}else if(!t.length)return this;var r=t.join(".");if(""===t[0])return this.root.lookup(t.slice(1),i);var e=this.p(t,r);if(e&&(!i||~i.indexOf(e.constructor)))return e;if((e=this.root.m&&this.root.m["."+r])&&(!i||~i.indexOf(e.constructor)))return e;if(!n)for(var s=this;s.parent;){if((e=s.parent.p(t,r))&&(!i||~i.indexOf(e.constructor)))return e;s=s.parent}return null},a.prototype.p=function(t,i){if(Object.prototype.hasOwnProperty.call(this.a,i))return this.a[i];var n=this.get(t[0]),r=null;if(n)1===t.length?r=n:n instanceof a&&(t=t.slice(1),r=n.p(t,t.join(".")));else for(var e=0;e<this.nestedArray.length;++e)if(this.c[e]instanceof a&&(n=this.c[e].p(t,i))){r=n;break}return this.a[i]=r},a.prototype.lookupType=function(t){var i=this.lookup(t,[s]);if(i)return i;throw Error("no such type: "+t)},a.prototype.lookupEnum=function(t){var i=this.lookup(t,[u]);if(i)return i;throw Error("no such Enum '"+t+"' in "+this)},a.prototype.lookupTypeOrEnum=function(t){var i=this.lookup(t,[s,u]);if(i)return i;throw Error("no such Type or Enum '"+t+"' in "+this)},a.prototype.lookupService=function(t){var i=this.lookup(t,[o]);if(i)return i;throw Error("no such Service '"+t+"' in "+this)},a.h=function(t,i,n){s=t,o=i,u=n}},{13:13,14:14,24:24,6:6}],13:[function(t,i,n){(i.exports=c).className="ReflectionObject";const r=t(14);var e,o=t(24),s={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"},u={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"},f={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"},h={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 c(t,i){if(!o.isString(t))throw TypeError("name must be a string");if(i&&!o.isObject(i))throw TypeError("options must be an object");this.options=i,this.parsedOptions=null,this.name=t,this.e=null,this.s="proto2",this.t={},this.y=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(c.prototype,{root:{get:function(){for(var t=this;null!==t.parent;)t=t.parent;return t}},fullName:{get:function(){for(var t=[this.name],i=this.parent;i;)t.unshift(i.name),i=i.parent;return t.join(".")}}}),c.prototype.toJSON=function(){throw Error()},c.prototype.onAdd=function(t){this.parent&&this.parent!==t&&this.parent.remove(this),this.parent=t,this.resolved=!1;t=t.root;t instanceof e&&t.w(this)},c.prototype.onRemove=function(t){t=t.root;t instanceof e&&t.g(this),this.parent=null,this.resolved=!1},c.prototype.resolve=function(){return this.resolved||this.root instanceof e&&(this.resolved=!0),this},c.prototype.v=function(t){return this.r(this.e||t)},c.prototype.r=function(t){if(!this.y){var i={};if(!t)throw Error("Unknown edition for "+this.fullName);var n=o.merge({},this.options&&this.options.features,this.f(t));if(this.e){if("proto2"===t)i=Object.assign({},f);else if("proto3"===t)i=Object.assign({},h);else if("2023"===t)i=Object.assign({},u);else{if("2024"!==t)throw Error("Unknown edition: "+t);i=Object.assign({},s)}this.t=o.merge(i,n)}else if(this.partOf instanceof r){t=o.merge({},this.partOf.t);this.t=o.merge(t,n)}else if(!this.declaringField){if(!this.parent)throw Error("Unable to find a parent for "+this.fullName);i=o.merge({},this.parent.t);this.t=o.merge(i,n)}this.extensionField&&(this.extensionField.t=this.t),this.y=!0}},c.prototype.f=function(){return{}},c.prototype.getOption=function(t){return this.options&&Object.prototype.hasOwnProperty.call(this.options,t)?this.options[t]:g},c.prototype.setOption=function(t,i,n){var r;return"__proto__"!==t&&(this.options||(this.options={}),/^features\./.test(t)?o.setProperty(this.options,t,i,n):(r=this.getOption(t),n&&r!==g||(r!==i&&(this.resolved=!1),this.options[t]=i))),this},c.prototype.setParsedOption=function(i,t,n){var r,e,s;return"__proto__"!==i&&(this.parsedOptions||(this.parsedOptions=[]),r=this.parsedOptions,n?(e=r.find(function(t){return Object.prototype.hasOwnProperty.call(t,i)}))?(s=e[i],o.setProperty(s,n,t)):((e={})[i]=o.setProperty({},n,t),r.push(e)):((s={})[i]=t,r.push(s))),this},c.prototype.setOptions=function(t,i){if(t)for(var n=Object.keys(t),r=0;r<n.length;++r)this.setOption(n[r],t[n[r]],i);return this},Object.defineProperty(c.prototype,"toString",{value:function(){var t=this.constructor.className,i=this.fullName;return i.length?t+" "+i:t},writable:!0,enumerable:!1,configurable:!0}),c.prototype.o=function(){return this.e&&"proto3"!==this.e?this.e:g},c.h=function(t){e=t}},{14:14,24:24}],14:[function(t,i,n){i.exports=o;var e=t(13),r=(o.prototype=Object.create(e.prototype,{constructor:{value:o,writable:!0,enumerable:!1,configurable:!0}}),o.className="OneOf",t(6)),s=t(24);function o(t,i,n,r){if(Array.isArray(i)||(n=i,i=g),e.call(this,t,n),i!==g&&!Array.isArray(i))throw TypeError("fieldNames must be an Array");this.oneof=i||[],this.fieldsArray=[],this.comment=r}function u(t){if(t.parent)for(var i=0;i<t.fieldsArray.length;++i)t.fieldsArray[i].parent||t.parent.add(t.fieldsArray[i])}o.fromJSON=function(t,i){return new o(t,i.oneof,i.options,i.comment)},o.prototype.toJSON=function(t){t=!!t&&!!t.keepComments;return s.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:g])},o.prototype.add=function(t){if(t instanceof r)return t.parent&&t.parent!==this.parent&&t.parent.remove(t),this.oneof.push(t.name),this.fieldsArray.push(t),u(t.partOf=this),this;throw TypeError("field must be a Field")},o.prototype.remove=function(t){if(!(t instanceof r))throw TypeError("field must be a Field");var i=this.fieldsArray.indexOf(t);if(i<0)throw Error(t+" is not a member of "+this);return this.fieldsArray.splice(i,1),-1<(i=this.oneof.indexOf(t.name))&&this.oneof.splice(i,1),t.partOf=null,this},o.prototype.onAdd=function(t){e.prototype.onAdd.call(this,t);for(var i=0;i<this.oneof.length;++i){var n=t.get(this.oneof[i]);n&&!n.partOf&&(n.partOf=this).fieldsArray.push(n)}u(this)},o.prototype.onRemove=function(t){for(var i,n=0;n<this.fieldsArray.length;++n)(i=this.fieldsArray[n]).parent&&i.parent.remove(i);e.prototype.onRemove.call(this,t)},Object.defineProperty(o.prototype,"isProto3Optional",{get:function(){var t;return null!=this.fieldsArray&&1===this.fieldsArray.length&&(null!=(t=this.fieldsArray[0]).options&&!0===t.options.proto3_optional)}}),o.d=function(){for(var n=Array(arguments.length),t=0;t<arguments.length;)n[t]=arguments[t++];return function(t,i){s.decorateType(t.constructor).add(new o(i,n)),Object.defineProperty(t,i,{get:s.oneOfGetter(n),set:s.oneOfSetter(n)})}}},{13:13,24:24,6:6}],15:[function(t,i,n){i.exports=f;var r,e=t(33),s=e.LongBits,o=e.utf8;function u(t,i){return RangeError("index out of range: "+t.pos+" + "+(i||1)+" > "+t.len)}function f(t){this.buf=t,this.pos=0,this.len=t.length,this.discardUnknown=f.discardUnknown}function h(){return e.Buffer?function(t){return(f.create=function(t){return e.Buffer.isBuffer(t)?new r(t):c(t)})(t)}:c}var c="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new f(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new f(t);throw Error("illegal buffer")};function a(){var t=new s(0,0),i=0;if(!(4<this.len-this.pos)){for(;i<4;++i){if(this.pos>=this.len)throw u(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*i)>>>0,this.buf[this.pos++]<128)return t}throw u(this)}for(;i<4;++i)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*i)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(i=0,4<this.len-this.pos){for(;i<5;++i)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*i+3)>>>0,this.buf[this.pos++]<128)return t}else for(;i<5;++i){if(this.pos>=this.len)throw u(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*i+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function l(t,i){return(t[i-4]|t[i-3]<<8|t[i-2]<<16|t[i-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw u(this,8);return new s(l(this.buf,this.pos+=4),l(this.buf,this.pos+=4))}f.create=h(),f.prototype.j=e.Array.prototype.subarray||e.Array.prototype.slice,f.prototype.raw=function(t,i){return Array.isArray(this.buf)?this.buf.slice(t,i):t===i?new this.buf.constructor(0):this.j.call(this.buf,t,i)},f.prototype.uint32=function(){var t=this.buf,i=this.pos,n=(127&t[i])>>>0;if(t[i++]<128)return this.pos=i,n;if(n=(n|(127&t[i])<<7)>>>0,t[i++]<128)return this.pos=i,n;if(n=(n|(127&t[i])<<14)>>>0,t[i++]<128)return this.pos=i,n;if(n=(n|(127&t[i])<<21)>>>0,t[i++]<128)return this.pos=i,n;if(n=(n|(15&t[i])<<28)>>>0,t[i++]<128)return this.pos=i,n;for(var r=0;r<5;++r){if(i>=this.len)throw this.pos=i,u(this);if(t[i++]<128)return this.pos=i,n}throw this.pos=i,Error("invalid varint encoding")},f.prototype.tag=function(){var t=this.buf,i=this.pos,n=(127&t[i])>>>0;if(t[i++]<128)return this.pos=i,n;if(n=(n|(127&t[i])<<7)>>>0,t[i++]<128)return this.pos=i,n;if(n=(n|(127&t[i])<<14)>>>0,t[i++]<128)return this.pos=i,n;if(n=(n|(127&t[i])<<21)>>>0,t[i++]<128)return this.pos=i,n;if(n=(n|(15&t[i])<<28)>>>0,t[i]<128&&0==(112&t[i]))return this.pos=i+1,n;throw this.pos=i+1,Error("invalid tag encoding")},f.prototype.int32=function(){return 0|this.uint32()},f.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},f.prototype.bool=function(){for(var t,i=!1,n=0;n<10;++n){if(this.pos>=this.len)throw u(this);if(127&(t=this.buf[this.pos++])&&(i=!0),t<128)return i}throw Error("invalid varint encoding")},f.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return l(this.buf,this.pos+=4)},f.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|l(this.buf,this.pos+=4)},f.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var t=e.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},f.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var t=e.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},f.prototype.bytes=function(){var t=this.uint32(),i=this.pos,n=this.pos+t;if(n>this.len)throw u(this,t);return this.pos=n,this.raw(i,n)},f.prototype.string=function(){var t=this.uint32(),i=this.pos,n=this.pos+t;if(n>this.len)throw u(this,t);return this.pos=n,o.read(this.buf,i,n)},f.prototype.stringVerify=function(){var t=this.uint32(),i=this.pos,n=this.pos+t;if(n>this.len)throw u(this,t);return this.pos=n,o.readStrict(this.buf,i,n)},f.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw u(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw u(this)}while(128&this.buf[this.pos++]);return this},f.recursionLimit=e.recursionLimit,f.discardUnknown=!0,f.prototype.skipType=function(t,i,n){if(f.recursionLimit<(i=i===g?0:i))throw Error("max depth exceeded");if(0===n)throw Error("illegal tag: field number 0");switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;;){var r=this.tag(),e=r>>>3;if(!e)throw Error("illegal tag: field number 0");if(4===(t=7&r)){if(n!==g&&e!==n)throw Error("invalid end group tag");break}this.skipType(t,i+1,e)}break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},f.h=function(t){r=t,f.create=h(),r.h();var i=e.Long?"toLong":"toNumber";e.merge(f.prototype,{int64:function(){return a.call(this)[i](!1)},uint64:function(){return a.call(this)[i](!0)},sint64:function(){return a.call(this).zzDecode()[i](!1)},fixed64:function(){return d.call(this)[i](!0)},sfixed64:function(){return d.call(this)[i](!1)}})}},{33:33}],16:[function(t,i,n){i.exports=s;var r=t(15),e=(s.prototype=Object.create(r.prototype,{constructor:{value:s,writable:!0,enumerable:!1,configurable:!0}}),t(33));function s(t){r.call(this,t)}s.h=function(){e.Buffer&&(s.prototype.j=e.Buffer.prototype.slice)},s.prototype.raw=function(t,i){return t===i?e.Buffer.alloc(0):this.j.call(this.buf,t,i)},s.prototype.string=function(){var t=this.uint32(),i=this.pos,n=this.pos+t;if(n>this.len)throw RangeError("index out of range: "+this.pos+" + "+t+" > "+this.len);return this.pos=n,this.buf.utf8Slice?this.buf.utf8Slice(i,n):this.buf.toString("utf-8",i,n)},s.h()},{15:15,33:33}],17:[function(t,i,n){i.exports=f;var r,b,v,e=t(12),s=(f.prototype=Object.create(e.prototype,{constructor:{value:f,writable:!0,enumerable:!1,configurable:!0}}),f.className="Root",t(6)),o=t(5),u=t(14),p=t(24);function f(t){e.call(this,"",t),this.deferred=[],this.files=[],this.e="proto2",this.m={}}function m(){}f.fromJSON=function(t,i,n){if((n=n===g?0:n)>p.recursionLimit)throw Error("max depth exceeded");return i=i||new f,t.options&&i.setOptions(t.options),i.addJSON(t.nested,n).resolveAll()},f.prototype.resolvePath=p.path.resolve,f.prototype.fetch=p.fetch,f.prototype.load=function t(i,o,s){"function"==typeof o&&(s=o,o=g);var u=this;if(!s)return p.asPromise(t,u,i,o);var f=s===m;function h(t,i){if(s){if(f)throw t;i&&i.resolveAll();var n=s;s=null,n(t,i)}}function c(t){var i=t.lastIndexOf("google/protobuf/");if(-1<i){i=t.substring(i);if(Object.prototype.hasOwnProperty.call(v,i))return i}return Object.prototype.hasOwnProperty.call(v,t)?t:null}function a(t,i,n){n===g&&(n=0);try{if(n>p.recursionLimit)throw Error("max depth exceeded");if(p.isString(i)&&"{"==(i[0]||"")&&(i=JSON.parse(i)),p.isString(i)){b.filename=t;var r,e=b(i,u,o),s=0;if(e.imports)for(;s<e.imports.length;++s)(r=c(e.imports[s])||u.resolvePath(t,e.imports[s]))&&l(r,!1,n+1);if(e.weakImports)for(s=0;s<e.weakImports.length;++s)(r=c(e.weakImports[s])||u.resolvePath(t,e.weakImports[s]))&&l(r,!0,n+1)}else u.setOptions(i.options).addJSON(i.nested)}catch(t){h(t)}f||d||h(null,u)}function l(n,r,e){if(e===g&&(e=0),n=c(n)||n,!~u.files.indexOf(n))if(u.files.push(n),Object.prototype.hasOwnProperty.call(v,n))f?a(n,v[n],e):(++d,setTimeout(function(){--d,a(n,v[n],e)}));else if(f){var t;try{t=p.fs.readFileSync(n).toString("utf8")}catch(t){return void(r||h(t))}a(n,t,e)}else++d,u.fetch(n,function(t,i){--d,s&&(t?r?d||h(null,u):h(t):a(n,i,e))})}var d=0;p.isString(i)&&(i=[i]);for(var n,r=0;r<i.length;++r)(n=u.resolvePath("",i[r]))&&l(n);return f?u.resolveAll():d||h(null,u),u},f.prototype.loadSync=function(t,i){if(p.isNode)return this.load(t,i,m);throw Error("not supported")},f.prototype.resolveAll=function(){if(!this.b)return this;if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(t){return"'extend "+t.extend+"' in "+t.parent.fullName}).join(", "));return e.prototype.resolveAll.call(this)};var h=/^[A-Z]/;function c(t,i){var n,r=i.parent.lookup(i.extend);if(r)return n=new s(i.fullName,i.id,i.type,i.rule,g,i.options),r.get(n.name)||((n.declaringField=i).extensionField=n,r.add(n)),1}f.prototype.w=function(t){if(t instanceof s)t.extend===g||t.extensionField||c(0,t)||this.deferred.push(t);else if(t instanceof o)h.test(t.name)&&(t.parent[t.name]=t.values);else if(!(t instanceof u)){if(t instanceof r)for(var i=0;i<this.deferred.length;)c(0,this.deferred[i])?this.deferred.splice(i,1):++i;for(var n=0;n<t.nestedArray.length;++n)this.w(t.c[n]);h.test(t.name)&&(t.parent[t.name]=t)}(t instanceof r||t instanceof o||t instanceof s)&&(this.m[t.fullName]=t)},f.prototype.g=function(t){var i;if(t instanceof s)t.extend!==g&&(t.extensionField?(t.extensionField.parent.remove(t.extensionField),t.extensionField=null):-1<(i=this.deferred.indexOf(t))&&this.deferred.splice(i,1));else if(t instanceof o)h.test(t.name)&&delete t.parent[t.name];else if(t instanceof e){for(var n=0;n<t.nestedArray.length;++n)this.g(t.c[n]);h.test(t.name)&&delete t.parent[t.name]}delete this.m[t.fullName]},f.h=function(t,i,n){r=t,b=i,v=n}},{12:12,14:14,24:24,5:5,6:6}],18:[function(t,i,n){i.exports=Object.create(null)},{}],19:[function(t,i,n){n.Service=t(20)},{20:20}],20:[function(t,i,n){i.exports=r;var u=t(33);function r(t,i,n){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");u.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!i,this.responseDelimited=!!n}(r.prototype=Object.create(u.EventEmitter.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0}})).rpcCall=function t(n,i,r,e,s){if(!e)throw TypeError("request must be specified");var o=this;if(!s)return u.asPromise(t,o,n,i,r,e);if(!o.rpcImpl)return setTimeout(function(){s(Error("already ended"))},0),g;try{return o.rpcImpl(n,i[o.requestDelimited?"encodeDelimited":"encode"](e).finish(),function(t,i){if(t)return o.emit("error",t,n),s(t);if(null===i)return o.end(!0),g;if(!(i instanceof r))try{i=r[o.responseDelimited?"decodeDelimited":"decode"](i)}catch(t){return o.emit("error",t,n),s(t)}return o.emit("data",i,n),s(null,i)})}catch(t){return o.emit("error",t,n),setTimeout(function(){s(t)},0),g}},r.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},{33:33}],21:[function(t,i,n){i.exports=h;var r=t(12),o=(h.prototype=Object.create(r.prototype,{constructor:{value:h,writable:!0,enumerable:!1,configurable:!0}}),h.className="Service",t(11)),u=t(24),f=t(19);function h(t,i){r.call(this,t,i),this.methods={},this.O=null}function e(t){return t.O=null,t}h.fromJSON=function(t,i,n){if((n=n===g?0:n)>u.recursionLimit)throw Error("max depth exceeded");var r=new h(t,i.options);if(i.methods)for(var e=Object.keys(i.methods),s=0;s<e.length;++s)r.add(o.fromJSON(e[s],i.methods[e[s]]));return i.nested&&r.addJSON(i.nested,n),i.edition&&(r.e=i.edition),r.comment=i.comment,r.s="proto3",r},h.prototype.toJSON=function(t){var i=r.prototype.toJSON.call(this,t),n=!!t&&!!t.keepComments;return u.toObject(["edition",this.o(),"options",i&&i.options||g,"methods",r.arrayToJSON(this.methodsArray,t)||{},"nested",i&&i.nested||g,"comment",n?this.comment:g])},Object.defineProperty(h.prototype,"methodsArray",{get:function(){return this.O||(this.O=u.toArray(this.methods))}}),h.prototype.get=function(t){return Object.prototype.hasOwnProperty.call(this.methods,t)?this.methods[t]:r.prototype.get.call(this,t)},h.prototype.resolveAll=function(){if(this.b){r.prototype.resolve.call(this);for(var t=this.methodsArray,i=0;i<t.length;++i)t[i].resolve()}return this},h.prototype.v=function(i){return this.l&&(i=this.e||i,r.prototype.v.call(this,i),this.methodsArray.forEach(t=>{t.v(i)})),this},h.prototype.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);return t instanceof o?"__proto__"===t.name?this:e((this.methods[t.name]=t).parent=this):r.prototype.add.call(this,t)},h.prototype.remove=function(t){if(t instanceof o){if(this.methods[t.name]!==t)throw Error(t+" is not a member of "+this);return delete this.methods[t.name],t.parent=null,e(this)}return r.prototype.remove.call(this,t)},h.prototype.create=function(t,i,n){for(var r,e=new f.Service(t,i,n),s=0;s<this.methodsArray.length;++s)e[u.lcFirst((r=this.O[s]).resolve().name).replace(/[^$\w_]/g,"")]=function(n,r,e){return function(t,i){return f.Service.prototype.rpcCall.call(this,n,r,e,t,i)}}(r,r.resolvedRequestType.ctor,r.resolvedResponseType.ctor);return e}},{11:11,12:12,19:19,24:24}],22:[function(t,i,n){i.exports=w;var u=t(12),f=(w.prototype=Object.create(u.prototype,{constructor:{value:w,writable:!0,enumerable:!1,configurable:!0}}),w.className="Type",t(5)),h=t(14),c=t(6),a=t(9),l=t(21),s=t(10),e=t(15),o=t(40),d=t(24),b=t(4),v=t(3),p=t(38),m=t(2),y=t(39);function w(t,i){t=t.replace(/\W/g,""),u.call(this,t,i),this.fields={},this.oneofs=g,this.extensions=g,this.reserved=g,this.group=g,this._=null,this.i=null,this.k=null,this.u=null,this.A=null}function r(t){return t._=t.i=t.k=t.A=null,delete t.encode,delete t.decode,delete t.verify,t}Object.defineProperties(w.prototype,{fieldsById:{get:function(){if(!this._){this._={};for(var t=Object.keys(this.fields),i=0;i<t.length;++i){var n=this.fields[t[i]],r=n.id;if(this._[r])throw Error("duplicate id "+r+" in "+this);this._[r]=n}}return this._}},fieldsArray:{get:function(){return this.i||(this.i=d.toArray(this.fields))}},oneofsArray:{get:function(){return this.k||(this.k=d.toArray(this.oneofs))}},ctor:{get:function(){return this.u||(this.ctor=w.generateConstructor(this)())},set:function(t){for(var i,n=t.prototype,r=(n instanceof s||(t.prototype=new s,Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),d.merge(t.prototype,n)),t.$type=t.prototype.$type=this,d.merge(t,s,!0),this.u=t,delete this.decode,delete this.fromObject,0);r<this.fieldsArray.length;++r)i=this.i[r].resolve(),t.prototype[i.name]=i.defaultValue;for(var e={},r=0;r<this.oneofsArray.length;++r)e[this.k[r].resolve().name]={get:d.oneOfGetter(this.k[r].oneof),set:d.oneOfSetter(this.k[r].oneof)};r&&Object.defineProperties(t.prototype,e)}}}),w.generateConstructor=function(t){for(var i,n=d.codegen(["p"]),r=0;r<t.fieldsArray.length;++r)(i=t.i[r]).map?n("this%s={}",d.safeProp(i.name)):i.repeated&&n("this%s=[]",d.safeProp(i.name));return n('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]]")},w.fromJSON=function(t,i,n){if((n=n===g?0:n)>d.nestingLimit)throw Error("max depth exceeded");for(var r=new w(t,i.options),e=(r.extensions=i.extensions,r.reserved=i.reserved,Object.keys(i.fields)),s=0;s<e.length;++s)r.add((void 0!==i.fields[e[s]].keyType?a:c).fromJSON(e[s],i.fields[e[s]]));if(i.oneofs)for(e=Object.keys(i.oneofs),s=0;s<e.length;++s)r.add(h.fromJSON(e[s],i.oneofs[e[s]]));if(i.nested)for(e=Object.keys(i.nested),s=0;s<e.length;++s){var o=i.nested[e[s]];r.add((o.id!==g?c:o.fields!==g?w:o.values!==g?f:o.methods!==g?l:u).fromJSON(e[s],o,n+1))}return i.extensions&&i.extensions.length&&(r.extensions=i.extensions),i.reserved&&i.reserved.length&&(r.reserved=i.reserved),i.group&&(r.group=!0),i.comment&&(r.comment=i.comment),i.edition&&(r.e=i.edition),r.s="proto3",r},w.prototype.toJSON=function(t){var i=u.prototype.toJSON.call(this,t),n=!!t&&!!t.keepComments;return d.toObject(["edition",this.o(),"options",i&&i.options||g,"oneofs",u.arrayToJSON(this.oneofsArray,t),"fields",u.arrayToJSON(this.fieldsArray.filter(function(t){return!t.declaringField}),t)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:g,"reserved",this.reserved&&this.reserved.length?this.reserved:g,"group",this.group||g,"nested",i&&i.nested||g,"comment",n?this.comment:g])},w.prototype.resolveAll=function(){if(this.b){u.prototype.resolveAll.call(this);for(var t=this.oneofsArray,i=0;i<t.length;)t[i++].resolve();for(var n=this.fieldsArray,i=0;i<n.length;)n[i++].resolve()}return this},w.prototype.v=function(i){return this.l&&(i=this.e||i,u.prototype.v.call(this,i),this.oneofsArray.forEach(t=>{t.r(i)}),this.fieldsArray.forEach(t=>{t.r(i)})),this},w.prototype.get=function(t){return Object.prototype.hasOwnProperty.call(this.fields,t)?this.fields[t]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,t)?this.oneofs[t]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,t)?this.nested[t]:null},w.prototype.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);if(t instanceof c&&t.extend===g){if((this._||this.fieldsById)[t.id])throw Error("duplicate id "+t.id+" in "+this);if(this.isReservedId(t.id))throw Error("id "+t.id+" is reserved in "+this);if(this.isReservedName(t.name)||"$"==(t.name[0]||""))throw Error("name '"+t.name+"' is reserved in "+this);return"__proto__"===t.name?this:(t.parent&&t.parent.remove(t),(this.fields[t.name]=t).message=this,t.onAdd(this),r(this))}if(t instanceof h){if("$"==(t.name[0]||""))throw Error("name '"+t.name+"' is reserved in "+this);return"__proto__"===t.name?this:(this.oneofs||(this.oneofs={}),(this.oneofs[t.name]=t).onAdd(this),r(this))}return u.prototype.add.call(this,t)},w.prototype.remove=function(t){if(t instanceof c&&t.extend===g){if(d.remove(this.fields,t,t.name))return t.parent=null,t.onRemove(this),r(this);throw Error(t+" is not a member of "+this)}if(t instanceof h){if(d.remove(this.oneofs,t,t.name))return t.parent=null,t.onRemove(this),r(this);throw Error(t+" is not a member of "+this)}return u.prototype.remove.call(this,t)},w.prototype.isReservedId=function(t){return u.isReservedId(this.reserved,t)},w.prototype.isReservedName=function(t){return u.isReservedName(this.reserved,t)},w.prototype.create=function(t){return new this.ctor(t)},w.prototype.setup=function(){for(var t=this.fullName,i=[],n=0;n<this.fieldsArray.length;++n)i.push(this.i[n].resolve().resolvedType);this.encode=b(this)({Writer:o,types:i,util:d}),this.decode=v(this)({Reader:e,types:i,util:d,C:this.ctor}),this.verify=p(this)({types:i,util:d}),this.fromObject=m.fromObject(this)({types:i,util:d,C:this.ctor}),this.toObject=m.toObject(this)({types:i,util:d});var r,t=y[t];return t&&((r=Object.create(this)).u=this.ctor,r.fromObject=this.fromObject,this.fromObject=t.fromObject.bind(r),r.toObject=this.toObject,this.toObject=t.toObject.bind(r)),this},w.prototype.encode=function(t,i){return this.setup().encode.apply(this,arguments)},w.prototype.encodeDelimited=function(t,i){return this.encode(t,i&&i.len?i.fork():i).ldelim()},w.prototype.decode=function(t,i){return this.setup().decode.apply(this,arguments)},w.prototype.decodeDelimited=function(t){return t instanceof e||(t=e.create(t)),this.decode(t,t.uint32())},w.prototype.verify=function(t){return this.setup().verify.apply(this,arguments)},w.prototype.fromObject=function(t){return this.setup().fromObject.apply(this,arguments)},w.prototype.toObject=function(t,i){return this.setup().toObject.apply(this,arguments)},w.prototype.getTypeUrl=function(t){var i=this.fullName;return(t=t===g?"type.googleapis.com":t)+"/"+("."==(i[0]||"")?i.substring(1):i)},w.d=function(i){return function(t){d.decorateType(t,i)}}},{10:10,12:12,14:14,15:15,2:2,21:21,24:24,3:3,38:38,39:39,4:4,40:40,5:5,6:6,9:9}],23:[function(t,i,n){var t=t(24),e=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function r(t,i){var n=0,r=Object.create(null);for(i|=0;n<t.length;)r[e[n+i]]=t[n++];return r}n.basic=r([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),n.defaults=r([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",t.emptyArray,null]),n.long=r([0,0,0,1,1],7),n.mapKey=r([0,0,0,5,5,0,0,0,1,1,0,2],2),n.packed=r([1,5,0,0,0,5,5,0,0,0,1,1,0])},{24:24}],24:[function(n,t,i){var r,e,o=t.exports=n(33),s=n(18),u=(o.codegen=n(27),o.fetch=n(29),o.path=n(34),o.patterns=n(35),o.patterns.reservedRe),f=(o.fs=n(31),o.toArray=function(t){if(t){for(var i=Object.keys(t),n=Array(i.length),r=0;r<i.length;)n[r]=t[i[r++]];return n}return[]},o.toObject=function(t){for(var i={},n=0;n<t.length;){var r=t[n++],e=t[n++];e!==g&&(i[r]=e)}return i},o.remove=function(t,i,n){if(t){if(n!==g&&Object.prototype.hasOwnProperty.call(t,n)&&t[n]===i)return delete t[n],!0;for(var r=Object.keys(t),e=0;e<r.length;++e)if(t[r[e]]===i)return delete t[r[e]],!0}return!1},o.isReserved=function(t){return u.test(t)},o.safeProp=function(t){return!/^[$\w_]+$/.test(t)||u.test(t)?"["+JSON.stringify(t)+"]":"."+t},o.ucFirst=function(t){return(t[0]||"").toUpperCase()+t.substring(1)},/_([a-z])/g),h=(o.camelCase=function(t){return t.substring(0,1)+t.substring(1).replace(f,function(t,i){return i.toUpperCase()})},o.jsonName=function(t){for(var i="",n=!1,r=0;r<t.length;++r){var e=t[0|r]||"";"_"===e?n=!0:n?(i+=e.toUpperCase(),n=!1):i+=e}return i},o.compareFieldsById=function(t,i){return t.id-i.id},o.decorateType=function(t,i){return t.$type?(i&&t.$type.name!==i&&(o.decorateRoot.remove(t.$type),t.$type.name=i,o.decorateRoot.add(t.$type)),t.$type):(i=new(r=r||n(22))(i||t.name),o.decorateRoot.add(i),i.ctor=t,Object.defineProperty(t,"$type",{value:i,enumerable:!1}),Object.defineProperty(t.prototype,"$type",{value:i,enumerable:!1}),i)},0);o.decorateEnum=function(t){var i;return t.$type||(i=new(e=e||n(5))("Enum"+h++,t),o.decorateRoot.add(i),Object.defineProperty(t,"$type",{value:i,enumerable:!1}),i)},o.setProperty=function(t,i,n,s){if("object"!=typeof t)throw TypeError("dst must be an object");if(!i)throw TypeError("path must be specified");if((i=i.split(".")).length>o.recursionLimit)throw Error("max depth exceeded");return function t(i,n,r){var e=n.shift();if(!o.isUnsafeProperty(e))if(0<n.length)i[e]=t(i[e]||{},n,r);else{if((n=i[e])&&s)return i;n&&(r=[].concat(n).concat(r)),i[e]=r}return i}(t,i,n)},Object.defineProperty(o,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(n(17)))}})},{17:17,18:18,22:22,27:27,29:29,31:31,33:33,34:34,35:35,5:5}],25:[function(t,i,n){i.exports=function(t,i){var n=Array(arguments.length-1),s=0,r=2,o=!0;for(;r<arguments.length;)n[s++]=arguments[r++];return new Promise(function(r,e){n[s]=function(t){if(o)if(o=!1,t)e(t);else{for(var i=Array(arguments.length-1),n=0;n<i.length;)i[n++]=arguments[n];r.apply(null,i)}};try{t.apply(i||null,n)}catch(t){o&&(o=!1,e(t))}})}},{}],26:[function(t,i,n){n.length=function(t){var i=t.length;if(!i)return 0;for(;0<i&&"="==(t[0|i-1]||"");)--i;return Math.floor(3*i/4)};for(var h=Array(64),f=Array(123),r=0;r<64;)f[h[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;f[45]=62,f[95]=63,n.encode=function(t,i,n){for(var r,e=null,s=[],o=0,u=0;i<n;){var f=t[i++];switch(u){case 0:s[o++]=h[f>>2],r=(3&f)<<4,u=1;break;case 1:s[o++]=h[r|f>>4],r=(15&f)<<2,u=2;break;case 2:s[o++]=h[r|f>>6],s[o++]=h[63&f],u=0}8191<o&&((e=e||[]).push(String.fromCharCode.apply(String,s)),o=0)}return u&&(s[o++]=h[r],s[o++]=61,1===u&&(s[o++]=61)),e?(o&&e.push(String.fromCharCode.apply(String,s.slice(0,o))),e.join("")):String.fromCharCode.apply(String,s.slice(0,o))};var c="invalid encoding",e=(n.decode=function(t,i,n){for(var r,e=n,s=0,o=0;o<t.length;){var u=t.charCodeAt(o++);if(61==u&&1<s)break;if((u=f[u])===g)throw Error(c);switch(s){case 0:r=u,s=1;break;case 1:i[n++]=r<<2|(48&u)>>4,r=u,s=2;break;case 2:i[n++]=(15&r)<<4|(60&u)>>2,r=u,s=3;break;case 3:i[n++]=(3&r)<<6|u,s=0}}if(1===s)throw Error(c);return n-e},/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/),s=/[-_]/,o=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2}(?:==)?|[A-Za-z0-9_-]{3}=?)?$/;n.test=function(t){return e.test(t)||s.test(t)&&o.test(t)}},{}],27:[function(t,i,n){i.exports=a;var r=t(35).reservedRe;function a(i,n){"string"==typeof i&&(n=i,i=g);var f=[];function h(t){if("string"!=typeof t){var i=c();if(a.verbose&&console.log("codegen: "+i),i="return "+i,t){for(var n=Object.keys(t),r=Array(n.length+1),e=Array(n.length),s=0;s<n.length;)r[s]=n[s],e[s]=t[n[s++]];return r[s]=i,Function.apply(null,r).apply(null,e)}return Function(i)()}for(var o=Array(arguments.length-1),u=0;u<o.length;)o[u]=arguments[++u];if(u=0,t=t.replace(/%([%dfijs])/g,function(t,i){var n=o[u++];switch(i){case"d":case"f":return""+ +(""+n);case"i":return""+Math.floor(n);case"j":return JSON.stringify(n);case"s":return""+n}return"%"}),u!==o.length)throw Error("parameter count mismatch");return f.push(t),h}function c(t){return"function "+function(t){if(!t)return"";if(!(t=(""+t).replace(/[^\w$]/g,"")))return"";/^\d/.test(t)&&(t="_"+t);return r.test(t)?t+"_":t}(t||n)+"("+(i&&i.join(",")||"")+"){\n "+f.join("\n ")+"\n}"}return Object.defineProperty(h,"toString",{value:c,writable:!0,enumerable:!0,configurable:!0}),h}a.verbose=!1},{35:35}],28:[function(t,i,n){function r(){this.x=Object.create(null)}(i.exports=r).prototype.on=function(t,i,n){return(this.x[t]||(this.x[t]=[])).push({fn:i,ctx:n||this}),this},r.prototype.off=function(t,i){if(t===g)this.x=Object.create(null);else if(i===g)this.x[t]=[];else{var n=this.x[t];if(!n)return this;for(var r=0;r<n.length;)n[r].fn===i?n.splice(r,1):++r}return this},r.prototype.emit=function(t){var i=this.x[t];if(i){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<i.length;)i[r].fn.apply(i[r++].ctx,n)}return this}},{}],29:[function(t,i,n){i.exports=u;var s=t(25),o=t(31);function u(n,r,e){return r="function"==typeof r?(e=r,{}):r||{},e?!r.xhr&&o&&o.readFile?o.readFile(n,function(t,i){return t&&"undefined"!=typeof XMLHttpRequest?u.xhr(n,r,e):t?e(t):e(null,r.binary?i:i.toString("utf8"))}):u.xhr(n,r,e):s(u,this,n,r)}u.xhr=function(t,n,r){var e=new XMLHttpRequest;e.onreadystatechange=function(){if(4!==e.readyState)return g;if(0!==e.status&&200!==e.status)return r(Error("status "+e.status));if(n.binary){if(!(t=e.response))for(var t=[],i=0;i<e.responseText.length;++i)t.push(255&e.responseText.charCodeAt(i));return r(null,"undefined"!=typeof Uint8Array?new Uint8Array(t):t)}return r(null,e.responseText)},n.binary&&("overrideMimeType"in e&&e.overrideMimeType("text/plain; charset=x-user-defined"),e.responseType="arraybuffer"),e.open("GET",t),e.send()}},{25:25,31:31}],30:[function(t,i,n){function r(t){function i(t,i,n,r){var e=i<0?1:0;t(0===(i=e?-i:i)?0<1/i?0:2147483648:isNaN(i)?2143289344:34028234663852886e22<i?(e<<31|2139095040)>>>0:i<11754943508222875e-54?(e<<31|Math.round(i/1401298464324817e-60))>>>0:(e<<31|127+(t=Math.floor(Math.log(i)/Math.LN2))<<23|8388607&Math.round(i*Math.pow(2,-t)*8388608))>>>0,n,r)}function n(t,i,n){t=t(i,n),i=2*(t>>31)+1,n=t>>>23&255,t&=8388607;return 255==n?t?NaN:1/0*i:0==n?1401298464324817e-60*i*t:i*Math.pow(2,n-150)*(8388608+t)}function r(t,i,n){u[0]=t,i[n]=f[0],i[n+1]=f[1],i[n+2]=f[2],i[n+3]=f[3]}function e(t,i,n){u[0]=t,i[n]=f[3],i[n+1]=f[2],i[n+2]=f[1],i[n+3]=f[0]}function s(t,i){return f[0]=t[i],f[1]=t[i+1],f[2]=t[i+2],f[3]=t[i+3],u[0]}function o(t,i){return f[3]=t[i],f[2]=t[i+1],f[1]=t[i+2],f[0]=t[i+3],u[0]}var u,f,h,c,a;function l(t,i,n,r,e,s){var o,u=r<0?1:0;0===(r=u?-r:r)?(t(0,e,s+i),t(0<1/r?0:2147483648,e,s+n)):isNaN(r)?(t(0,e,s+i),t(2146959360,e,s+n)):17976931348623157e292<r?(t(0,e,s+i),t((u<<31|2146435072)>>>0,e,s+n)):r<22250738585072014e-324?(t((o=r/5e-324)>>>0,e,s+i),t((u<<31|o/4294967296)>>>0,e,s+n)):(t(4503599627370496*(o=r*Math.pow(2,-(r=1024===(r=Math.floor(Math.log(r)/Math.LN2))?1023:r)))>>>0,e,s+i),t((u<<31|r+1023<<20|1048576*o&1048575)>>>0,e,s+n))}function d(t,i,n,r,e){i=t(r,e+i),t=t(r,e+n),r=2*(t>>31)+1,e=t>>>20&2047,n=4294967296*(1048575&t)+i;return 2047==e?n?NaN:1/0*r:0==e?5e-324*r*n:r*Math.pow(2,e-1075)*(n+4503599627370496)}function b(t,i,n){h[0]=t,i[n]=c[0],i[n+1]=c[1],i[n+2]=c[2],i[n+3]=c[3],i[n+4]=c[4],i[n+5]=c[5],i[n+6]=c[6],i[n+7]=c[7]}function v(t,i,n){h[0]=t,i[n]=c[7],i[n+1]=c[6],i[n+2]=c[5],i[n+3]=c[4],i[n+4]=c[3],i[n+5]=c[2],i[n+6]=c[1],i[n+7]=c[0]}function p(t,i){return c[0]=t[i],c[1]=t[i+1],c[2]=t[i+2],c[3]=t[i+3],c[4]=t[i+4],c[5]=t[i+5],c[6]=t[i+6],c[7]=t[i+7],h[0]}function m(t,i){return c[7]=t[i],c[6]=t[i+1],c[5]=t[i+2],c[4]=t[i+3],c[3]=t[i+4],c[2]=t[i+5],c[1]=t[i+6],c[0]=t[i+7],h[0]}return"undefined"!=typeof Float32Array?(u=new Float32Array([-0]),f=new Uint8Array(u.buffer),a=128===f[3],t.writeFloatLE=a?r:e,t.writeFloatBE=a?e:r,t.readFloatLE=a?s:o,t.readFloatBE=a?o:s):(t.writeFloatLE=i.bind(null,y),t.writeFloatBE=i.bind(null,w),t.readFloatLE=n.bind(null,g),t.readFloatBE=n.bind(null,j)),"undefined"!=typeof Float64Array?(h=new Float64Array([-0]),c=new Uint8Array(h.buffer),a=128===c[7],t.writeDoubleLE=a?b:v,t.writeDoubleBE=a?v:b,t.readDoubleLE=a?p:m,t.readDoubleBE=a?m:p):(t.writeDoubleLE=l.bind(null,y,0,4),t.writeDoubleBE=l.bind(null,w,4,0),t.readDoubleLE=d.bind(null,g,0,4),t.readDoubleBE=d.bind(null,j,4,0)),t}function y(t,i,n){i[n]=255&t,i[n+1]=t>>>8&255,i[n+2]=t>>>16&255,i[n+3]=t>>>24}function w(t,i,n){i[n]=t>>>24,i[n+1]=t>>>16&255,i[n+2]=t>>>8&255,i[n+3]=255&t}function g(t,i){return(t[i]|t[i+1]<<8|t[i+2]<<16|t[i+3]<<24)>>>0}function j(t,i){return(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3])>>>0}i.exports=r(r)},{}],31:[function(t,i,n){var r=null;try{(r=t(1))&&r.readFile&&r.readFileSync||(r=null)}catch(t){}i.exports=r},{1:1}],32:[function(t,i,n){i.exports=e;var r=t(33);function e(t,i){this.lo=t>>>0,this.hi=i>>>0}var s=e.zero=new e(0,0),o=(s.toNumber=function(){return 0},s.zzEncode=s.zzDecode=function(){return this},s.length=function(){return 1},e.zeroHash="\0\0\0\0\0\0\0\0",e.fromNumber=function(t){var i,n;return 0===t?s:(n=(t=(i=t<0)?-t:t)>>>0,t=(t-n)/4294967296>>>0,i&&(t=~t>>>0,n=~n>>>0,4294967295<++n&&(n=0,4294967295<++t&&(t=0))),new e(n,t))},e.from=function(t){if("number"==typeof t)return e.fromNumber(t);if(r.isString(t)){if(!r.Long)return e.fromNumber(parseInt(t,10));t=r.Long.fromString(t)}return t.low||t.high?new e(t.low>>>0,t.high>>>0):s},e.prototype.toNumber=function(t){var i;return!t&&this.hi>>>31?(t=1+~this.lo>>>0,i=~this.hi>>>0,-(t+4294967296*(i=t?i:i+1>>>0))):this.lo+4294967296*this.hi},e.prototype.toLong=function(t){return r.Long?new r.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}},String.prototype.charCodeAt);e.fromHash=function(t){return"\0\0\0\0\0\0\0\0"===t?s:new e((o.call(t,0)|o.call(t,1)<<8|o.call(t,2)<<16|o.call(t,3)<<24)>>>0,(o.call(t,4)|o.call(t,5)<<8|o.call(t,6)<<16|o.call(t,7)<<24)>>>0)},e.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)},e.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},e.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},e.prototype.length=function(){var t=this.lo,i=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0==n?0==i?t<16384?t<128?1:2:t<2097152?3:4:i<16384?i<128?5:6:i<2097152?7:8:n<128?9:10}},{33:33}],33:[function(i,t,n){var o=n;function u(t){return"__proto__"===t||"prototype"===t||"constructor"===t}function r(t){for(var i=(n="boolean"==typeof arguments[arguments.length-1])?arguments.length-1:arguments.length,n=n&&arguments[arguments.length-1],r=1;r<i;++r){var e=arguments[r];if(e)for(var s=Object.keys(e),o=0;o<s.length;++o)u(s[o])||n&&Object.prototype.hasOwnProperty.call(t,s[o])&&t[s[o]]!==g||(t[s[o]]=e[s[o]])}return t}function e(t){function n(t,i){if(!(this instanceof n))return new n(t,i);Object.defineProperty(this,"message",{get:function(){return t}}),Error.captureStackTrace?Error.captureStackTrace(this,n):Object.defineProperty(this,"stack",{value:Error().stack||""}),i&&r(this,i)}return n.prototype=Object.create(Error.prototype,{constructor:{value:n,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return t},set:g,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),n}o.asPromise=i(25),o.base64=i(26),o.EventEmitter=i(28),o.float=i(30),o.utf8=i(37),o.pool=i(36),o.LongBits=i(32),o.isUnsafeProperty=u,o.isNode=!!("undefined"!=typeof global&&global&&global.process&&global.process.versions&&global.process.versions.node),o.global=o.isNode&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||"undefined"!=typeof globalThis&&globalThis||this,o.emptyArray=Object.freeze?Object.freeze([]):[],o.emptyObject=Object.freeze?Object.freeze({}):{},o.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},o.isString=function(t){return"string"==typeof t||t instanceof String},o.isObject=function(t){return t&&"object"==typeof t},o.isset=o.isSet=function(t,i){var n=t[i];return!(null==n||!Object.hasOwnProperty.call(t,i))&&("object"!=typeof n||0<(Array.isArray(n)?n:Object.keys(n)).length)},o.Buffer=function(){try{var t=o.global.Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),o.T=null,o.L=null,o.newBuffer=function(t){return"number"==typeof t?o.Buffer?o.L(t):new o.Array(t):o.Buffer?o.T(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},o.rawField=function(t,i,n){var r=[],e=t<<3|i;for(e>>>=0;127<e;)r.push(127&e|128),e>>>=7;r.push(e);for(var s=0;s<n.length;++s)r.push(n[s]);return o.newBuffer(r)},o.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||function(){try{var t=i("long");return t&&t.isLong?t:null}catch(t){return null}}(),o.key2Re=/^(?:true|false|0|1)$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\x00-\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(t){return t?o.LongBits.from(t).toHash():o.LongBits.zeroHash},o.longFromHash=function(t,i){t=o.LongBits.fromHash(t);return o.Long?o.Long.fromBits(t.lo,t.hi,i):t.toNumber(!!i)},o.longFromKey=function(t,i){return o.key64Re.test(t)&&!o.key32Re.test(t)?o.longFromHash(t,i):t},o.boolFromKey=function(t){return"true"===t||"1"===t},o.merge=r,o.nestingLimit=32,o.recursionLimit=100,o.makeProp=function(t,i,n){Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{enumerable:n===g||n,configurable:!0,writable:!0})},o.lcFirst=function(t){return(t[0]||"").toLowerCase()+t.substring(1)},o.newError=e,o.ProtocolError=e("ProtocolError"),o.oneOfGetter=function(t){for(var n={},i=0;i<t.length;++i)n[t[i]]=1;return function(){for(var t=Object.keys(this),i=t.length-1;-1<i;--i)if(1===n[t[i]]&&this[t[i]]!==g&&null!==this[t[i]])return t[i]}},o.oneOfSetter=function(n){return function(t){for(var i=0;i<n.length;++i)n[i]!==t&&delete this[n[i]]}},o.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},o.h=function(){var n=o.Buffer;n?(o.T=n.from!==Uint8Array.from&&n.from||function(t,i){return new n(t,i)},o.L=n.allocUnsafe||function(t){return new n(t)}):o.T=o.L=null}},{25:25,26:26,28:28,30:30,32:32,36:36,37:37,long:"long"}],34:[function(t,i,n){var o=/^[a-zA-Z][a-zA-Z0-9+.-]+:\/\//;var u=n.isAbsolute=function(t){return/^(?:\/|\w+:|\\\\\w+)/.test(t)},e=n.normalize=function(t){var i=function(t){if("undefined"==typeof URL||!o.test(t))return null;try{return new URL(t).href}catch(t){return null}}(t);if(i)return i;var i=t.substring(0,2),n="",r=("\\\\"==i&&(n=i,t=t.substring(2)),(t=t.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/")),e=u(t),i="";e&&(i=r.shift()+"/");for(var s=0;s<r.length;)".."===r[s]?0<s&&".."!==r[s-1]?r.splice(--s,2):e?r.splice(s,1):++s:"."===r[s]?r.splice(s,1):++s;return n+i+r.join("/")};n.resolve=function(t,i,n){var r=function(t,i){if("undefined"==typeof URL||!o.test(t)||o.test(i))return null;try{return new URL(i,t).href}catch(t){return null}}(t,i);return r||(n||(i=e(i)),!u(i)&&(t=(t=n?t:e(t)).replace(/(?:\/|^)[^/]+$/,"")).length?e(t+"/"+i):i)}},{}],35:[function(t,i,n){n.numberRe=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,n.typeRefRe=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,n.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)$/},{}],36:[function(t,i,n){i.exports=function(i,n,t){var r=t||8192,e=r>>>1,s=null,o=r;return function(t){if(t<1||e<t)return i(t);r<o+t&&(s=i(r),o=0);t=n.call(s,o,o+=t);return 7&o&&(o=1+(7|o)),t}}},{}],37:[function(t,i,n){var r;try{r=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0})}catch(t){r=new TextDecoder("utf-8",{ignoreBOM:!0})}function d(t,i,n,r){for(var e=i;e<n;){var s,o=t[e++];o<=127?r+=String.fromCharCode(o):192<=o&&o<224?r+=128<=(s=(31&o)<<6|63&t[e++])?String.fromCharCode(s):"�":224<=o&&o<240?r+=2048<=(s=(15&o)<<12|(63&t[e++])<<6|63&t[e++])?String.fromCharCode(s):"�":240<=o&&((o=(7&o)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])<65536||1114111<o?r+="�":r=r+String.fromCharCode(55296+((o-=65536)>>10))+String.fromCharCode(56320+(1023&o)))}return r}function b(t,i,n){t=0===i&&n===t.length?t:t.subarray?t.subarray(i,n):t.slice(i,n);return Array.isArray(t)&&(t=Uint8Array.from(t)),r.decode(t)}n.length=function(t){for(var i,n=0,r=0;r<t.length;++r)(i=t.charCodeAt(r))<128?n+=1:i<2048?n+=2:55296==(64512&i)&&56320==(64512&t.charCodeAt(r+1))?(++r,n+=4):n+=3;return n},n.read=function(t,i,n){if(n-i<1)return"";for(var r,e,s,o,u,f,h,c,a="",l=i;l+7<n;l+=8){if(128&((r=t[l])|(e=t[l+1])|(s=t[l+2])|(o=t[l+3])|(u=t[l+4])|(f=t[l+5])|(h=t[l+6])|(c=t[l+7])))return d(t,l,n,a);a+=String.fromCharCode(r,e,s,o,u,f,h,c)}for(;l<n;++l){if(128&(r=t[l]))return d(t,l,n,a);a+=String.fromCharCode(r)}return a},n.readStrict=function(t,i,n){if(n-i<1)return"";for(var r,e,s,o,u,f,h,c,a="",l=i;l+7<n;l+=8){if(128&((r=t[l])|(e=t[l+1])|(s=t[l+2])|(o=t[l+3])|(u=t[l+4])|(f=t[l+5])|(h=t[l+6])|(c=t[l+7])))return a+b(t,l,n);a+=String.fromCharCode(r,e,s,o,u,f,h,c)}for(;l<n;++l){if(128&(r=t[l]))return a+b(t,l,n);a+=String.fromCharCode(r)}return a},n.write=function(t,i,n){for(var r,e,s=n,o=0;o<t.length;++o)(r=t.charCodeAt(o))<128?i[n++]=r:(r<2048?i[n++]=r>>6|192:(55296==(64512&r)&&56320==(64512&(e=t.charCodeAt(o+1)))?(++o,i[n++]=(r=65536+((1023&r)<<10)+(1023&e))>>18|240,i[n++]=r>>12&63|128):i[n++]=r>>12|224,i[n++]=r>>6&63|128),i[n++]=63&r|128);return n-s}},{}],38:[function(t,i,n){i.exports=function(t){var i=f.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"),n=t.oneofsArray,r={};n.length&&i("var p={}");for(var e=0;e<t.fieldsArray.length;++e){var s,o=t.i[e].resolve(),u="m"+f.safeProp(o.name);o.optional&&i("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",u,o.name),o.map?(i("if(!util.isObject(%s))",u)("return%j",h(o,"object"))("var k=Object.keys(%s)",u)("for(var i=0;i<k.length;++i){"),function(t,i,n){switch(i.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":t("if(!util.key32Re.test(%s))",n)("return%j",h(i,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":t("if(!util.key64Re.test(%s))",n)("return%j",h(i,"integer|Long key"));break;case"bool":t("if(!util.key2Re.test(%s))",n)("return%j",h(i,"boolean key"))}}(i,o,"k[i]"),c(i,o,e,u+"[k[i]]")("}")):o.repeated?(i("if(!Array.isArray(%s))",u)("return%j",h(o,"array"))("for(var i=0;i<%s.length;++i){",u),c(i,o,e,u+"[i]")("}")):(o.partOf&&(s=f.safeProp(o.partOf.name),1===r[o.partOf.name]&&i("if(p%s===1)",s)("return%j",o.partOf.name+": multiple values"),r[o.partOf.name]=1,i("p%s=1",s)),c(i,o,e,u)),o.optional&&i("}")}return i("return null")};var u=t(5),f=t(24);function h(t,i){return t.name+": "+i+(t.repeated&&"array"!==i?"[]":t.map&&"object"!==i?"{k:"+t.keyType+"}":"")+" expected"}function c(t,i,n,r){var e=i.resolvedType;if(e)if(e instanceof u)if("CLOSED"===e.t.enum_type){t("switch(%s){",r)("default:")("return%j",h(i,"enum value"));for(var s=Object.keys(e.values),o=0;o<s.length;++o)t("case %i:",e.values[s[o]]);t("break")("}")}else t('if(typeof %s!=="number"||(%s|0)!==%s)',r,r,r)("return%j",h(i,"enum value"));else t("{")("var e=types[%i].verify(%s,q+1);",n,r)("if(e)")("return%j+e",i.name+".")("}");else switch(i.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":t("if(!util.isInteger(%s))",r)("return%j",h(i,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":t("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",r,r,r,r)("return%j",h(i,"integer|Long"));break;case"float":case"double":t('if(typeof %s!=="number")',r)("return%j",h(i,"number"));break;case"bool":t('if(typeof %s!=="boolean")',r)("return%j",h(i,"boolean"));break;case"string":t("if(!util.isString(%s))",r)("return%j",h(i,"string"));break;case"bytes":t('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',r,r,r)("return%j",h(i,"buffer"))}return t}},{24:24,5:5}],39:[function(t,i,n){var u=t(10),f=t(33);n[".google.protobuf.Any"]={fromObject:function(t,i){if(t&&t["@type"]){var n,r=t["@type"].substring(1+t["@type"].lastIndexOf("/")),r=this.lookup(r);if(r)return~(n="."==(t["@type"][0]||"")?t["@type"].slice(1):t["@type"]).indexOf("/")||(n="/"+n),this.create({type_url:n,value:r.encode(r.fromObject(t,i===g?1:i+1)).finish()})}return this.fromObject(t,i)},toObject:function(t,i,n){if((n=n===g?0:n)>f.recursionLimit)throw Error("max depth exceeded");var r,e,s="",o="";return i&&i.json&&t.type_url&&t.value&&(o=t.type_url.substring(1+t.type_url.lastIndexOf("/")),s=t.type_url.substring(0,1+t.type_url.lastIndexOf("/")),(r=this.lookup(o))&&(t=r.decode(t.value,g,g,n+1))),!(t instanceof this.ctor)&&t instanceof u?(r=t.$type.toObject(t,i,n+1),e="."===t.$type.fullName[0]?t.$type.fullName.slice(1):t.$type.fullName,r["@type"]=o=(s=""===s?"type.googleapis.com/":s)+e,r):this.toObject(t,i,n)}}},{10:10,33:33}],40:[function(t,i,n){i.exports=a;var r,e=t(33),s=e.LongBits,o=e.base64,u=e.utf8;function f(t,i,n){this.fn=t,this.len=i,this.next=g,this.val=n}function h(){}function c(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function a(){this.len=0,this.head=new f(h,0,0),this.tail=this.head,this.states=null}function l(){return e.Buffer?function(){return(a.create=function(){return new r})()}:function(){return new a}}function d(t,i,n){i[n]=255&t}function b(t,i,n){for(var r=0;r<t.length;)i[n++]=t.charCodeAt(r++)}function v(t,i){this.len=t,this.next=g,this.val=i}function p(t,i,n){for(var r=t.lo,e=t.hi;e;)i[n++]=127&r|128,r=(r>>>7|e<<25)>>>0,e>>>=7;for(;127<r;)i[n++]=127&r|128,r>>>=7;i[n++]=r}function m(t,i,n){i[n]=255&t,i[n+1]=t>>>8&255,i[n+2]=t>>>16&255,i[n+3]=t>>>24}a.create=l(),a.alloc=function(t){return new e.Array(t)},e.Array!==Array&&(a.alloc=e.pool(a.alloc,e.Array.prototype.subarray)),a.prototype.S=function(t,i,n){return this.tail=this.tail.next=new f(t,i,n),this.len+=i,this},(v.prototype=Object.create(f.prototype)).fn=function(t,i,n){for(;127<t;)i[n++]=127&t|128,t>>>=7;i[n]=t},a.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new v((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},a.prototype.int32=function(t){return(t|=0)<0?this.S(p,10,s.fromNumber(t)):this.uint32(t)},a.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},a.prototype.int64=a.prototype.uint64=function(t){t=s.from(t);return this.S(p,t.length(),t)},a.prototype.sint64=function(t){t=s.from(t).zzEncode();return this.S(p,t.length(),t)},a.prototype.bool=function(t){return this.S(d,1,t?1:0)},a.prototype.sfixed32=a.prototype.fixed32=function(t){return this.S(m,4,t>>>0)},a.prototype.sfixed64=a.prototype.fixed64=function(t){t=s.from(t);return this.S(m,4,t.lo).S(m,4,t.hi)},a.prototype.float=function(t){return this.S(e.float.writeFloatLE,4,t)},a.prototype.double=function(t){return this.S(e.float.writeDoubleLE,8,t)};var y=e.Array.prototype.set?function(t,i,n){i.set(t,n)}:function(t,i,n){for(var r=0;r<t.length;++r)i[n+r]=t[r]};a.prototype.bytes=function(t){var i,n=t.length>>>0;return n?(e.isString(t)&&(i=a.alloc(n=o.length(t)),o.decode(t,i,0),t=i),this.uint32(n).S(y,n,t)):this.S(d,1,0)},a.prototype.raw=function(t){var i=t.length>>>0;return i?this.S(y,i,t):this},a.prototype.string=function(t){var i=u.length(t);return i?this.uint32(i).S(i===t.length?b:u.write,i,t):this.S(d,1,0)},a.prototype.fork=function(){return this.states=new c(this),this.head=this.tail=new f(h,0,0),this.len=0,this},a.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 f(h,0,0),this.len=0),this},a.prototype.ldelim=function(){var t=this.head,i=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=i,this.len+=n),this},a.prototype.finish=function(){return this.finishInto(this.constructor.alloc(this.len),0)},a.prototype.finishInto=function(t,i){for(var n=this.head.next,r=i=i===g?0:i;n;)n.fn(n.val,t,r),r+=n.len,n=n.next;return t},a.h=function(t){r=t,a.create=l(),r.h()}},{33:33}],41:[function(t,i,n){i.exports=s;var r=t(40),e=(s.prototype=Object.create(r.prototype,{constructor:{value:s,writable:!0,enumerable:!1,configurable:!0}}),t(33));function s(){r.call(this)}function o(t,i,n){for(var r=0;r<t.length;)i[n++]=t.charCodeAt(r++)}function u(t,i,n){t.length<40?e.utf8.write(t,i,n):i.utf8Write?i.utf8Write(t,n):i.write(t,n)}s.h=function(){s.alloc=e.L,s.writeBytesBuffer=e.Buffer&&e.Buffer.prototype instanceof Uint8Array&&"set"===e.Buffer.prototype.set.name?function(t,i,n){i.set(t,n)}:function(t,i,n){if(t.copy)t.copy(i,n,0,t.length);else for(var r=0;r<t.length;)i[n++]=t[r++]}},s.prototype.bytes=function(t){var i=(t=e.isString(t)?e.T(t,"base64"):t).length>>>0;return this.uint32(i),i&&this.S(s.writeBytesBuffer,i,t),this},s.prototype.raw=function(t){var i=t.length>>>0;return i?this.S(s.writeBytesBuffer,i,t):this},s.prototype.string=function(t){var i=e.Buffer.byteLength(t);return this.uint32(i),i&&this.S(i===t.length&&i<40?o:u,i,t),this},s.h()},{33:33,40:40}]},e={},(i=function t(i){var n=e[i];return n||r[i][0].call(n=e[i]={exports:{}},t,n,n.exports),n.exports}([7][0])).util.global.protobuf=i,"function"==typeof define&&define.amd&&define(["long"],function(t){return t&&t.isLong&&(i.util.Long=t,i.configure()),i}),"object"==typeof module&&module&&module.exports&&(module.exports=i)}();
7
+ !function(y){"use strict";var n,e,i;n={1:[function(t,i,r){},{}],2:[function(t,i,r){var v=t(5),b=t(23),p=t(24);function h(t,i,r,n,e){if(i.resolvedType)if(i.resolvedType instanceof v){var s=e?"m"+e+"[m"+e+".length]":"m"+n;t("switch(d%s){",n);for(var o=i.resolvedType.values,h=Object.keys(o),u=0;u<h.length;++u)t("case%j:",h[u])("case %i:",o[h[u]])("%s=%j",s,o[h[u]])("break");t("default:"),"CLOSED"!==i.resolvedType.t.enum_type&&t('if(typeof d%s==="number"&&(d%s|0)===d%s)',n,n,n)("%s=d%s",s,n),t("}")}else t("if(!util.isObject(d%s))",n)("throw TypeError(%j)",i.fullName+": object expected")("m%s=types[%i].fromObject(d%s,q+1)",n,r,n);else{var f=!1;switch(i.type){case"double":case"float":t("m%s=Number(d%s)",n,n);break;case"uint32":case"fixed32":t("m%s=d%s>>>0",n,n);break;case"int32":case"sint32":case"sfixed32":t("m%s=d%s|0",n,n);break;case"uint64":case"fixed64":f=!0;case"int64":case"sint64":case"sfixed64":t("if(util.Long)")("m%s=util.Long.fromValue(d%s,%j)",n,n,f)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,f?"true":"");break;case"bytes":t('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length>=0)",n)("m%s=d%s",n,n);break;case"string":t("m%s=String(d%s)",n,n);break;case"bool":t("m%s=Boolean(d%s)",n,n)}}return t}function m(t,i,r,n,e){if(e=e||n,i.resolvedType)i.resolvedType instanceof v?t("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,e,e,r,e,e):t("d%s=types[%i].toObject(m%s,o,q+1)",n,r,e);else{var s=!1;switch(i.type){case"double":case"float":t("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,e,e,e);break;case"uint64":case"fixed64":s=!0;case"int64":case"sint64":case"sfixed64":t('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()',n,e,e,e,e,s)('else if(typeof m%s==="number")',e)("d%s=o.longs===String?String(m%s):m%s",n,e,e)("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",n,e,e,e,s?"true":"",e);break;case"bytes":t("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",n,e,e,e,e);break;default:t("d%s=m%s",n,e)}}return t}r.fromObject=function(t){var i=t.fieldsArray,r=p.codegen(["d","q"])("if(d instanceof C)")("return d")("if(!util.isObject(d))")("throw TypeError(%j)",t.fullName+": object expected")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")');if(!i.length)return r("return new C");r("var m=new C");for(var n=0;n<i.length;++n){var e=i[n].resolve(),s=p.safeProp(e.name),o=!e.hasPresence&&!e.repeated&&!e.map&&(e.resolvedType instanceof v||b.basic[e.type]!==y);e.map?(r("if(d%s){",s)("if(!util.isObject(d%s))",s)("throw TypeError(%j)",e.fullName+": object expected")("m%s={}",s)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",s),r('if(ks[i]==="__proto__")')("util.makeProp(m%s,ks[i])",s),h(r,e,n,s+"[ks[i]]")("}")("}")):e.repeated?(r("if(d%s){",s)("if(!Array.isArray(d%s))",s)("throw TypeError(%j)",e.fullName+": array expected"),e.resolvedType instanceof v?r("m%s=[]",s):r("m%s=Array(d%s.length)",s,s),r("for(var i=0;i<d%s.length;++i){",s),h(r,e,n,s+"[i]",e.resolvedType instanceof v?s:y)("}")("}")):(e.resolvedType instanceof v||r("if(d%s!=null){",s),o&&(e.resolvedType instanceof v?r('if(d%s!==%j&&(typeof d%s!=="string"||types[%i].values[d%s]!==%j)){',s,e.typeDefault,s,n,s,e.typeDefault):"string"===e.type?r('if(typeof d%s!=="string"||d%s.length){',s,s):"bytes"===e.type?r("if(d%s.length){",s):"bool"===e.type?r("if(d%s){",s):"double"===e.type||"float"===e.type?r("if(!Object.is(Number(d%s),0)){",s):b.long[e.type]!==y?r('if(typeof d%s==="object"?d%s.low||d%s.high:Number(d%s)!==0){',s,s,s,s):r("if(Number(d%s)!==0){",s)),h(r,e,n,s),o&&r("}"),e.resolvedType instanceof v||r("}"))}return r("return m")},r.toObject=function(t){var i=t.fieldsArray.slice().sort(p.compareFieldsById);if(!i.length)return p.codegen()("return {}");for(var r=p.codegen(["m","o","q"])("if(!o)")("o={}")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")')("var d={}"),n=[],e=[],s=[],o=0;o<i.length;++o)i[o].partOf||(i[o].resolve().repeated?n:i[o].map?e:s).push(i[o]);if(n.length){for(r("if(o.arrays||o.defaults){"),o=0;o<n.length;++o)r("d%s=[]",p.safeProp(n[o].name));r("}")}if(e.length){for(r("if(o.objects||o.defaults){"),o=0;o<e.length;++o)r("d%s={}",p.safeProp(e[o].name));r("}")}if(s.length){for(r("if(o.defaults){"),o=0;o<s.length;++o){var h,u=s[o],f=p.safeProp(u.name);u.resolvedType instanceof v?r("d%s=o.enums===String?%j:%j",f,u.resolvedType.valuesById[u.typeDefault],u.typeDefault):u.long?r("if(util.Long){")("var n=new util.Long(%i,%i,%j)",u.typeDefault.low,u.typeDefault.high,u.typeDefault.unsigned)('d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():typeof BigInt!=="undefined"&&o.longs===BigInt?n.toBigInt():n',f)("}else")('d%s=o.longs===String?%j:typeof BigInt!=="undefined"&&o.longs===BigInt?BigInt(%j):%i',f,u.typeDefault.toString(),u.typeDefault.toString(),u.typeDefault.toNumber()):u.bytes?(h=Array.prototype.slice.call(u.typeDefault),r("if(o.bytes===String)d%s=%j",f,String.fromCharCode.apply(String,u.typeDefault))("else{")("d%s=%j",f,h)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",f,f)("}")):r("d%s=%j",f,u.typeDefault)}r("}")}for(var c=!1,o=0;o<i.length;++o){var a,l,u=i[o],d=t.i.indexOf(u),f=p.safeProp(u.name);u.map?(c||(c=!0,r("var ks2")),r("if(m%s&&(ks2=Object.keys(m%s)).length){",f,f)("d%s={}",f),a=b.long[u.keyType]!==y,l=f+"[ks2[j]]",r("for(var j=0;j<ks2.length;++j){"),a&&r("var k2=util.longFromKey(ks2[j],%j).toString()","uint64"===u.keyType||"fixed64"===u.keyType),r('if(ks2[j]==="__proto__")')("util.makeProp(d%s,ks2[j])",f),m(r,u,d,a?f+"[k2]":l,l)("}")):u.repeated?(r("if(m%s&&m%s.length){",f,f)("d%s=Array(m%s.length)",f,f)("for(var j=0;j<m%s.length;++j){",f),m(r,u,d,f+"[j]")("}")):(r("if(m%s!=null&&Object.hasOwnProperty.call(m,%j)){",f,u.name),m(r,u,d,f),u.partOf&&!u.partOf.isProto3Optional&&r("if(o.oneofs)")("d%s=%j",p.safeProp(u.partOf.name),u.name)),r("}")}return r("return d")}},{23:23,24:24,5:5}],3:[function(t,i,r){i.exports=function(t){for(var i=!1,r=!1,n=0;n<t.fieldsArray.length;++n){var e=t.i[n];e.map&&(i=!0),(e.resolvedType instanceof l||!e.repeated&&!e.map&&!e.hasPresence)&&(r=!0)}var s=v.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"+(i?",k,v":r?",v":""))("while(r.pos<c){")("var s=r.pos")("var t=r.tag()")("if(t===z){")("z=undefined")("break")("}");t.fieldsArray.length&&s("var u=t&7")("switch(t>>>=3){");for(n=0;n<t.fieldsArray.length;++n){var o,h=t.i[n].resolve(),u=h.resolvedType instanceof l?"int32":h.type,f="m"+v.safeProp(h.name),c=h.resolvedType instanceof l&&"CLOSED"===h.resolvedType.t.enum_type;h.map?(s("case %i:{",h.id)("if(u!==2)")("break"),c||s("if(%s===util.emptyObject)",f)("%s={}",f),s("var c2=r.uint32()+r.pos"),d.defaults[h.keyType]!==y?s("k=%j",d.defaults[h.keyType]):s("k=null"),d.long[u]!==y?s("v=util.Long?util.Long.fromNumber(0,%j):0","uint64"===u||"fixed64"===u):d.defaults[u]!==y?s("v=%j",d.defaults[u]):s("v=null"),s("while(r.pos<c2){")("var t2=r.tag()")("u=t2&7")("switch(t2>>>=3){")("case 1:")("if(u!==%i)",d.mapKey[h.keyType])("break")("k=r.%s()","string"===h.keyType?b(h):h.keyType)("continue")("case 2:")("if(u!==%i)",d.basic[u]===y?2:d.basic[u])("break"),d.basic[u]===y?s("v=types[%i].decode(r,r.uint32(),undefined,q+1)",n):s("v=r.%s()","string"===u?b(h):u),s("continue")("}")("r.skipType(u,q,t2)")("}"),c&&(s("if(types[%i].valuesById[v]===undefined){",n),p(s,"r.raw(s,r.pos)")("continue")("}")("if(%s===util.emptyObject)",f)("%s={}",f)),o=d.basic[u]===y?"v||new types["+n+"].ctor":"v",d.long[h.keyType]!==y?s('%s[typeof k==="object"?util.longToHash(k):k]=%s',f,o):("string"===h.keyType&&s('if(k==="__proto__")')("util.makeProp(%s,k)",f),s("%s[k]=%s",f,o))):h.repeated?(s("case %i:",h.id)("{"),d.packed[u]!==y&&(s("if(u===2){"),c?(s("var c2=r.uint32()+r.pos")("while(r.pos<c2){")("s=r.pos")("v=r.%s()",u)("if(types[%i].valuesById[v]!==undefined){",n)("if(!(%s&&%s.length))",f,f)("%s=[]",f)("%s.push(v)",f)("}else"),p(s,"util.rawField("+h.id+",0,r.raw(s,r.pos))")("}")):s("if(!(%s&&%s.length))",f,f)("%s=[]",f)("r.%ss(%s)",u,f),s("continue")("}")),s("if(u!==%i)",d.basic[u]===y?h.delimited?3:2:d.basic[u])("break"),c||s("if(!(%s&&%s.length))",f,f)("%s=[]",f),d.basic[u]===y?h.delimited?s("%s.push(types[%i].decode(r,undefined,%i,q+1))",f,n,8*h.id+4):s("%s.push(types[%i].decode(r,r.uint32(),undefined,q+1))",f,n):c?(s("v=r.%s()",u)("if(types[%i].valuesById[v]!==undefined){",n)("if(!(%s&&%s.length))",f,f)("%s=[]",f)("%s.push(v)",f)("}else"),p(s,"r.raw(s,r.pos)")):s("%s.push(r.%s())",f,"string"===u?b(h):u)):d.basic[u]===y?(s("case %i:{",h.id)("if(u!==%i)",h.delimited?3:2)("break"),h.delimited?s("%s=types[%i].decode(r,undefined,%i,q+1,%s)",f,n,8*h.id+4,f):s("%s=types[%i].decode(r,r.uint32(),undefined,q+1,%s)",f,n,f)):h.hasPresence?(s("case %i:{",h.id)("if(u!==%i)",d.basic[u])("break"),c?(s("v=r.%s()",u)("if(types[%i].valuesById[v]!==undefined){",n)("%s=v",f),h.partOf&&s("m%s=%j",v.safeProp(h.partOf.name),h.name),s("}else"),p(s,"r.raw(s,r.pos)")):s("%s=r.%s()",f,"string"===u?b(h):u)):(s("case %i:{",h.id)("if(u!==%i)",d.basic[u])("break"),c?(s("v=r.%s()",u)("if(types[%i].valuesById[v]!==undefined){",n)("if(v!==%j)",h.typeDefault)("%s=v",f)("else")("delete %s",f)("}else{"),p(s,"r.raw(s,r.pos)")("}")):(h.resolvedType instanceof l&&0!==h.typeDefault?s("if((v=r.%s())!==%j)",u,h.typeDefault):"string"===u?s("if((v=r.%s()).length)",b(h)):"bytes"===u?s("if((v=r.%s()).length)",u):d.long[u]!==y?s('if(typeof(v=r.%s())==="object"?v.low||v.high:v!==0)',u):s("double"===u||"float"===u?"if(!Object.is(v=r.%s(),0))":"if(v=r.%s())",u),s("%s=v",f)("else")("delete %s",f))),h.partOf&&!c&&s("m%s=%j",v.safeProp(h.partOf.name),h.name),s("continue")("}")}n&&s("}");for(s("r.skipType(%s,q,t)",n?"u":"t&7"),p(s,"r.raw(s,r.pos)")("}")("if(z!==undefined)")('throw Error("missing end group")'),n=0;n<t.i.length;++n){var a=t.i[n];a.required&&s("if(!Object.hasOwnProperty.call(m,%j))",a.name)("throw util.ProtocolError(%j,{instance:m})","missing required '"+a.name+"'")}return s("return m")};var l=t(5),d=t(23),v=t(24);function b(t){return"VERIFY"===t.t.utf8_validation?"stringVerify":"string"}function p(t,i){return t("if(!r.discardUnknown){")('util.makeProp(m,"$unknowns",false);')("(m.$unknowns||(m.$unknowns=[])).push(%s)",i)("}")}},{23:23,24:24,5:5}],4:[function(t,i,r){i.exports=function(t){for(var i,r=a.codegen(["m","w","q"])("if(!w)")("w=Writer.create()")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")'),n=t.fieldsArray.slice().sort(a.compareFieldsById),e=0;e<n.length;++e){var s=n[e].resolve(),o=t.i.indexOf(s),h=s.resolvedType instanceof f?"int32":s.type,u=c.basic[h];i="m"+a.safeProp(s.name),s.map?(r("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",i,s.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",i),"bool"===s.keyType?r("w.uint32(%i).fork().uint32(%i).bool(util.boolFromKey(ks[i]))",(s.id<<3|2)>>>0,8|c.mapKey[s.keyType]):c.long[s.keyType]!==y?r("w.uint32(%i).fork().uint32(%i).%s(util.longFromKey(ks[i],%j))",(s.id<<3|2)>>>0,8|c.mapKey[s.keyType],s.keyType,"uint64"===s.keyType||"fixed64"===s.keyType):r("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(s.id<<3|2)>>>0,8|c.mapKey[s.keyType],s.keyType),u===y?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork(),q+1).ldelim().ldelim()",o,i):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|u,h,i),r("}")("}")):s.repeated?(r("if(%s!=null&&%s.length){",i,i),s.packed&&c.packed[h]!==y?r("w.uint32(%i).%ss(%s)",(s.id<<3|2)>>>0,h,i):(r("for(var i=0;i<%s.length;++i)",i),u===y?l(r,s,o,i+"[i]"):r("w.uint32(%i).%s(%s[i])",(s.id<<3|u)>>>0,h,i)),r("}")):(s.required||(s.hasPresence||!(s.resolvedType instanceof f||c.basic[h]!==y)?r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",i,s.name):s.resolvedType instanceof f?r("if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&%s!==%j)",i,s.name,i,s.typeDefault):"bool"===h?r("if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&%s!==false)",i,s.name,i):"string"===h?r('if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&%s!=="")',i,s.name,i):"bytes"===h?r("if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&%s.length)",i,s.name,i):"double"===h||"float"===h?r("if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&!Object.is(%s,0))",i,s.name,i):c.long[h]!==y?r('if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&(typeof %s==="object"?%s.low||%s.high:%s!==0))',i,s.name,i,i,i,i):r("if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&%s!==0)",i,s.name,i)),u===y?l(r,s,o,i):r("w.uint32(%i).%s(%s)",(s.id<<3|u)>>>0,h,i))}return r('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")};var f=t(5),c=t(23),a=t(24);function l(t,i,r,n){i.delimited?t("types[%i].encode(%s,w.uint32(%i),q+1).uint32(%i)",r,n,(i.id<<3|3)>>>0,(i.id<<3|4)>>>0):t("types[%i].encode(%s,w.uint32(%i).fork(),q+1).ldelim()",r,n,(i.id<<3|2)>>>0)}},{23:23,24:24,5:5}],5:[function(t,i,r){i.exports=s;var u=t(13),n=(s.prototype=Object.create(u.prototype,{constructor:{value:s,writable:!0,enumerable:!1,configurable:!0}}),s.className="Enum",t(12)),e=t(24);function s(t,i,r,n,e,s){if(u.call(this,t,r),i&&"object"!=typeof i)throw TypeError("values must be an object");if(this.valuesById=Object.create(null),this.values=Object.create(this.valuesById),this.comment=n,this.comments=e||{},this.valuesOptions=s,this.r={},this.reserved=y,i)for(var o=Object.keys(i),h=0;h<o.length;++h)"__proto__"!==o[h]&&"number"==typeof i[o[h]]&&(this.valuesById[this.values[o[h]]=i[o[h]]]=o[h])}s.prototype.n=function(t){return t=this.e||t,u.prototype.n.call(this,t),Object.keys(this.values).forEach(t=>{var i=e.merge({},this.t);this.r[t]=e.merge(i,this.valuesOptions&&this.valuesOptions[t]&&this.valuesOptions[t].features||{})}),this},s.fromJSON=function(t,i){t=new s(t,i.values,i.options,i.comment,i.comments,i.valuesOptions);return t.reserved=i.reserved,i.edition&&(t.e=i.edition),t.s="proto3",t},s.prototype.toJSON=function(t){t=!!t&&!!t.keepComments;return e.toObject(["edition",this.o(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:y,"comment",t?this.comment:y,"comments",t?this.comments:y])},s.prototype.add=function(t,i,r,n){if(!e.isString(t))throw TypeError("name must be a string");if(!e.isInteger(i))throw TypeError("id must be an integer");if("__proto__"!==t){if(this.values[t]!==y)throw Error("duplicate name '"+t+"' in "+this);if(this.isReservedId(i))throw Error("id "+i+" is reserved in "+this);if(this.isReservedName(t))throw Error("name '"+t+"' is reserved in "+this);if(this.valuesById[i]!==y){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+i+" in "+this);this.values[t]=i}else this.valuesById[this.values[t]=i]=t;n&&(this.valuesOptions===y&&(this.valuesOptions={}),this.valuesOptions[t]=n||null),this.comments[t]=r||null}return this},s.prototype.remove=function(t){if(!e.isString(t))throw TypeError("name must be a string");var i=this.values[t];if(null==i)throw Error("name '"+t+"' does not exist in "+this);return delete this.valuesById[i],delete this.values[t],delete this.comments[t],this.valuesOptions&&delete this.valuesOptions[t],this},s.prototype.isReservedId=function(t){return n.isReservedId(this.reserved,t)},s.prototype.isReservedName=function(t){return n.isReservedName(this.reserved,t)}},{12:12,13:13,24:24}],6:[function(t,i,r){i.exports=o;var n,h=t(13),e=(o.prototype=Object.create(h.prototype,{constructor:{value:o,writable:!0,enumerable:!1,configurable:!0}}),o.className="Field",t(5)),u=t(23),f=t(24),c=/^(?:required|optional|repeated)$/;function o(t,i,r,n,e,s,o){if(f.isObject(n)?(o=e,s=n,n=e=y):f.isObject(e)&&(o=s,s=e,e=y),h.call(this,t,s),!f.isInteger(i)||i<0)throw TypeError("id must be a non-negative integer");if(!f.isString(r))throw TypeError("type must be a string");if(n!==y&&!c.test(n=n.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(e!==y&&!f.isString(e))throw TypeError("extend must be a string");this.rule=n&&"optional"!==n?n:y,this.type=r,this.id=i,this.extend=e||y,this.repeated="repeated"===n,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!f.Long&&u.long[r]!==y,this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=o,this.protoName=y,this.jsonName=y}o.fromJSON=function(t,i){t=new o(t,i.id,i.type,i.rule,i.extend,i.options,i.comment);return i.edition&&(t.e=i.edition),i.protoName&&(t.protoName=i.protoName),i.jsonName!==y?t.jsonName=i.jsonName:i.options&&i.options.json_name!==y&&(t.jsonName=i.options.json_name),t.s="proto3",t},Object.defineProperty(o.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this.t.field_presence}}),Object.defineProperty(o.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(o.prototype,"delimited",{get:function(){return this.resolvedType instanceof n&&"DELIMITED"===this.t.message_encoding}}),Object.defineProperty(o.prototype,"packed",{get:function(){return"PACKED"===this.t.repeated_field_encoding}}),Object.defineProperty(o.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this.t.field_presence)}}),o.prototype.setOption=function(t,i,r){return h.prototype.setOption.call(this,t,i,r)},o.prototype.toJSON=function(t){t=!!t&&!!t.keepComments;return f.toObject(["edition",this.o(),"rule","optional"!==this.rule&&this.rule||y,"type",this.type,"id",this.id,"extend",this.extend,"protoName",this.protoName!==this.name?this.protoName:y,"jsonName",this.jsonName!==f.jsonName(this.protoName||this.name)?this.jsonName:y,"options",this.options,"comment",t?this.comment:y])},o.prototype.resolve=function(){var t;return this.resolved?this:((this.typeDefault=u.defaults[this.type])===y?(this.resolvedType=(this.declaringField||this).parent.lookupTypeOrEnum(this.type),this.resolvedType instanceof n?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 e&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(this.options.packed===y||!this.resolvedType||this.resolvedType instanceof e||delete this.options.packed,Object.keys(this.options).length||(this.options=y)),this.long?(this.typeDefault=f.Long.fromNumber(this.typeDefault,"uint64"===this.type||"fixed64"===this.type),Object.freeze&&Object.freeze(this.typeDefault)):this.bytes&&"string"==typeof this.typeDefault&&(f.base64.test(this.typeDefault)?f.base64.decode(this.typeDefault,t=f.newBuffer(f.base64.length(this.typeDefault)),0):f.utf8.write(this.typeDefault,t=f.newBuffer(f.utf8.length(this.typeDefault)),0),this.typeDefault=t),this.map?this.defaultValue=f.emptyObject:this.repeated?this.defaultValue=f.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof n&&this.parent.h&&(this.parent.h.prototype[this.name]=this.defaultValue),this.protoName===y&&(this.protoName=this.name),this.jsonName===y&&(this.jsonName=f.jsonName(this.protoName)),h.prototype.resolve.call(this))},o.prototype.u=function(t){var i;return"proto2"!==t&&"proto3"!==t?{}:(t={},"required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&u.defaults[this.type]===y&&(i=this.parent.get(this.type.split(".").pop()))&&i instanceof n&&i.group&&(t.message_encoding="DELIMITED"),!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t)},o.prototype.n=function(t){return h.prototype.n.call(this,this.e||t)},o.d=function(r,n,e,s){return"function"==typeof n?n=f.decorateType(n).name:n&&"object"==typeof n&&(n=f.decorateEnum(n).name),function(t,i){f.decorateType(t.constructor).add(new o(i,r,n,e,{default:s}))}},o.f=function(t){n=t}},{13:13,23:23,24:24,5:5}],7:[function(t,i,n){(n=i.exports=t(8)).build="light",n.load=function(t,i,r){return(i="function"==typeof i?(r=i,new n.Root):i||new n.Root).load(t,r)},n.loadSync=function(t,i){return(i=i||new n.Root).loadSync(t)},n.encoder=t(4),n.decoder=t(3),n.verifier=t(38),n.converter=t(2),n.ReflectionObject=t(13),n.Namespace=t(12),n.Root=t(17),n.Enum=t(5),n.Type=t(22),n.Field=t(6),n.OneOf=t(14),n.MapField=t(9),n.Service=t(21),n.Method=t(11),n.Message=t(10),n.wrappers=t(39),n.types=t(23),n.util=t(24),n.ReflectionObject.f(n.Root),n.Namespace.f(n.Type,n.Service,n.Enum),n.Root.f(n.Type,y,{}),n.Field.f(n.Type)},{10:10,11:11,12:12,13:13,14:14,17:17,2:2,21:21,22:22,23:23,24:24,3:3,38:38,39:39,4:4,5:5,6:6,8:8,9:9}],8:[function(t,i,r){function n(){r.Writer.f(r.BufferWriter),r.Reader.f(r.BufferReader)}r.build="minimal",r.Writer=t(40),r.BufferWriter=t(41),r.Reader=t(15),r.BufferReader=t(16),r.util=t(33),r.rpc=t(19),r.roots=t(18),r.configure=n,n()},{15:15,16:16,18:18,19:19,33:33,40:40,41:41}],9:[function(t,i,r){i.exports=s;var o=t(6),n=(s.prototype=Object.create(o.prototype,{constructor:{value:s,writable:!0,enumerable:!1,configurable:!0}}),s.className="MapField",t(23)),h=t(24);function s(t,i,r,n,e,s){if(o.call(this,t,i,n,y,y,e,s),!h.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(t,i){t=new s(t,i.id,i.keyType,i.type,i.options,i.comment);return i.protoName&&(t.protoName=i.protoName),i.jsonName!==y?t.jsonName=i.jsonName:i.options&&i.options.json_name!==y&&(t.jsonName=i.options.json_name),t},s.prototype.toJSON=function(t){t=!!t&&!!t.keepComments;return h.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"protoName",this.protoName!==this.name?this.protoName:y,"jsonName",this.jsonName!==h.jsonName(this.protoName||this.name)?this.jsonName:y,"options",this.options,"comment",t?this.comment:y])},s.prototype.resolve=function(){if(this.resolved)return this;if(n.mapKey[this.keyType]===y)throw Error("invalid key type: "+this.keyType);return o.prototype.resolve.call(this)},s.d=function(r,n,e){return"function"==typeof e?e=h.decorateType(e).name:e&&"object"==typeof e&&(e=h.decorateEnum(e).name),function(t,i){h.decorateType(t.constructor).add(new s(i,r,n,e))}}},{23:23,24:24,6:6}],10:[function(t,i,r){i.exports=e;var n=t(33);function e(t){if(t)for(var i=Object.keys(t),r=0;r<i.length;++r)null!=t[i[r]]&&"__proto__"!==i[r]&&(this[i[r]]=t[i[r]])}e.create=function(t){return this.$type.create(t)},e.encode=function(t,i){return this.$type.encode(t,i)},e.encodeDelimited=function(t,i){return this.$type.encodeDelimited(t,i)},e.decode=function(t){return this.$type.decode(t)},e.decodeDelimited=function(t){return this.$type.decodeDelimited(t)},e.verify=function(t){return this.$type.verify(t)},e.fromObject=function(t){return this.$type.fromObject(t)},e.toObject=function(t,i){return this.$type.toObject(t,i)},e.prototype.toJSON=function(){return this.$type.toObject(this,n.toJSONOptions)}},{33:33}],11:[function(t,i,r){i.exports=n;var f=t(13),c=(n.prototype=Object.create(f.prototype,{constructor:{value:n,writable:!0,enumerable:!1,configurable:!0}}),n.className="Method",t(24));function n(t,i,r,n,e,s,o,h,u){if(c.isObject(e)?(o=e,e=s=y):c.isObject(s)&&(o=s,s=y),i!==y&&!c.isString(i))throw TypeError("type must be a string");if(!c.isString(r))throw TypeError("requestType must be a string");if(!c.isString(n))throw TypeError("responseType must be a string");f.call(this,t,o),this.type=i||"rpc",this.requestType=r,this.requestStream=!!e||y,this.responseType=n,this.responseStream=!!s||y,this.path="/"+this.name,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=h,this.parsedOptions=u}n.fromJSON=function(t,i){return new n(t,i.type,i.requestType,i.responseType,i.requestStream,i.responseStream,i.options,i.comment,i.parsedOptions)},n.prototype.toJSON=function(t){t=!!t&&!!t.keepComments;return c.toObject(["type","rpc"!==this.type&&this.type||y,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:y,"parsedOptions",this.parsedOptions])},n.prototype.resolve=function(){var t;return this.resolved?this:(this.parent?("."==((t=this.parent.fullName)[0]||"")&&(t=t.substring(1)),this.path="/"+t+"/"+this.name):this.path="/"+this.name,this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),f.prototype.resolve.call(this))}},{13:13,24:24}],12:[function(t,i,r){i.exports=a;var s,o,h,n=t(13),u=(a.prototype=Object.create(n.prototype,{constructor:{value:a,writable:!0,enumerable:!1,configurable:!0}}),a.className="Namespace",t(6)),f=t(24),c=t(14);function e(t,i){if(!t||!t.length)return y;for(var r={},n=0;n<t.length;++n)r[t[n].name]=t[n].toJSON(i);return r}function a(t,i){n.call(this,t,i),this.nested=y,this.c=null,this.a=Object.create(null),this.l=!0,this.v=!0}function l(t){t.c=null,t.a=Object.create(null);for(var i=t;i=i.parent;)i.a=Object.create(null);return t}a.fromJSON=function(t,i,r){if((r=r===y?0:r)>f.recursionLimit)throw Error("max depth exceeded");return new a(t,i.options).addJSON(i.nested,r)},a.arrayToJSON=e,a.isReservedId=function(t,i){if(t)for(var r=0;r<t.length;++r)if("string"!=typeof t[r]&&t[r][0]<=i&&t[r][1]>=i)return!0;return!1},a.isReservedName=function(t,i){if(t)for(var r=0;r<t.length;++r)if(t[r]===i)return!0;return!1},Object.defineProperty(a.prototype,"nestedArray",{get:function(){return this.c||(this.c=f.toArray(this.nested))}}),a.prototype.toJSON=function(t){return f.toObject(["options",this.options,"nested",e(this.nestedArray,t)])},a.prototype.addJSON=function(t,i){if((i=i===y?0:i)>f.recursionLimit)throw Error("max depth exceeded");if(t)for(var r,n=Object.keys(t),e=0;e<n.length;++e)r=t[n[e]],this.add((r.fields!==y?s:r.values!==y?h:r.methods!==y?o:r.id!==y?u:a).fromJSON(n[e],r,i+1));return this},a.prototype.get=function(t){return this.nested&&Object.prototype.hasOwnProperty.call(this.nested,t)?this.nested[t]:null},a.prototype.getEnum=function(t){if(this.nested&&Object.prototype.hasOwnProperty.call(this.nested,t)&&this.nested[t]instanceof h)return this.nested[t].values;throw Error("no such enum: "+t)},a.prototype.add=function(t){if(!(t instanceof u&&t.extend!==y||t instanceof s||t instanceof c||t instanceof h||t instanceof o||t instanceof a))throw TypeError("object must be a valid nested object");if("__proto__"===t.name)return this;if(this.nested){var i=this.get(t.name);if(i){if(!(i instanceof a&&t instanceof a)||i instanceof s||i instanceof o)throw Error("duplicate name '"+t.name+"' in "+this);for(var r=i.nestedArray,n=0;n<r.length;++n)t.add(r[n]);this.remove(i),this.nested||(this.nested={}),t.setOptions(i.options,!0)}}else this.nested={};this.nested[t.name]=t,this instanceof s||this instanceof o||this instanceof h||this instanceof u||t.e||(t.e=t.s),this.l=!0,this.v=!0;for(var e=this;e=e.parent;)e.l=!0,e.v=!0;return t.onAdd(this),l(this)},a.prototype.remove=function(t){if(!(t instanceof n))throw TypeError("object must be a ReflectionObject");if(t.parent===this&&f.remove(this.nested,t,t.name))return Object.keys(this.nested).length||(this.nested=y),t.onRemove(this),l(this);throw Error(t+" is not a member of "+this)},a.prototype.define=function(t,i){if(f.isString(t))t=t.split(".");else if(!Array.isArray(t))throw TypeError("illegal path");if(t&&t.length&&""===t[0])throw Error("path must be relative");if(t.length>f.recursionLimit)throw Error("max depth exceeded");for(var r=this;0<t.length;){var n=t.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof a))throw Error("path conflicts with non-namespace objects")}else r.add(r=new a(n))}return i&&r.addJSON(i),r},a.prototype.resolveAll=function(){if(this.v){this.l&&this.b(this.e);var t=this.nestedArray,i=0;for(this.resolve();i<t.length;)t[i]instanceof a?t[i++].resolveAll():t[i++].resolve();this.v=!1}return this},a.prototype.b=function(i){return this.l&&(this.l=!1,i=this.e||i,n.prototype.b.call(this,i),this.nestedArray.forEach(t=>{t.b(i)})),this},a.prototype.lookup=function(t,i,r){if("boolean"==typeof i?(r=i,i=y):i&&!Array.isArray(i)&&(i=[i]),f.isString(t)&&t.length){if("."===t)return this.root;t=t.split(".")}else if(!t.length)return this;var n=t.join(".");if(""===t[0])return this.root.lookup(t.slice(1),i);var e=this.p(t,n);if(e&&(!i||~i.indexOf(e.constructor)))return e;if((e=this.root.m&&this.root.m["."+n])&&(!i||~i.indexOf(e.constructor)))return e;if(!r)for(var s=this;s.parent;){if((e=s.parent.p(t,n))&&(!i||~i.indexOf(e.constructor)))return e;s=s.parent}return null},a.prototype.p=function(t,i){if(Object.prototype.hasOwnProperty.call(this.a,i))return this.a[i];var r=this.get(t[0]),n=null;if(r)1===t.length?n=r:r instanceof a&&(t=t.slice(1),n=r.p(t,t.join(".")));else for(var e=0;e<this.nestedArray.length;++e)if(this.c[e]instanceof a&&(r=this.c[e].p(t,i))){n=r;break}return this.a[i]=n},a.prototype.lookupType=function(t){var i=this.lookup(t,[s]);if(i)return i;throw Error("no such type: "+t)},a.prototype.lookupEnum=function(t){var i=this.lookup(t,[h]);if(i)return i;throw Error("no such Enum '"+t+"' in "+this)},a.prototype.lookupTypeOrEnum=function(t){var i=this.lookup(t,[s,h]);if(i)return i;throw Error("no such Type or Enum '"+t+"' in "+this)},a.prototype.lookupService=function(t){var i=this.lookup(t,[o]);if(i)return i;throw Error("no such Service '"+t+"' in "+this)},a.f=function(t,i,r){s=t,o=i,h=r}},{13:13,14:14,24:24,6:6}],13:[function(t,i,r){(i.exports=c).className="ReflectionObject";const n=t(14);var e,o=t(24),s={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"},h={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 c(t,i){if(!o.isString(t))throw TypeError("name must be a string");if(i&&!o.isObject(i))throw TypeError("options must be an object");this.options=i,this.parsedOptions=null,this.name=t,this.e=null,this.s="proto2",this.t={},this.w=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(c.prototype,{root:{get:function(){for(var t=this;null!==t.parent;)t=t.parent;return t}},fullName:{get:function(){for(var t=[this.name],i=this.parent;i;)t.unshift(i.name),i=i.parent;return t.join(".")}}}),c.prototype.toJSON=function(){throw Error()},c.prototype.onAdd=function(t){this.parent&&this.parent!==t&&this.parent.remove(this),this.parent=t,this.resolved=!1;t=t.root;t instanceof e&&t.g(this)},c.prototype.onRemove=function(t){t=t.root;t instanceof e&&t.y(this),this.parent=null,this.resolved=!1},c.prototype.resolve=function(){return this.resolved||this.root instanceof e&&(this.resolved=!0),this},c.prototype.b=function(t){return this.n(this.e||t)},c.prototype.n=function(t){if(!this.w){var i={};if(!t)throw Error("Unknown edition for "+this.fullName);var r=o.merge({},this.options&&this.options.features,this.u(t));if(this.e){if("proto2"===t)i=Object.assign({},u);else if("proto3"===t)i=Object.assign({},f);else if("2023"===t)i=Object.assign({},h);else{if("2024"!==t)throw Error("Unknown edition: "+t);i=Object.assign({},s)}this.t=o.merge(i,r)}else if(this.partOf instanceof n){t=o.merge({},this.partOf.t);this.t=o.merge(t,r)}else if(!this.declaringField){if(!this.parent)throw Error("Unable to find a parent for "+this.fullName);i=o.merge({},this.parent.t);this.t=o.merge(i,r)}this.extensionField&&(this.extensionField.t=this.t),this.w=!0}},c.prototype.u=function(){return{}},c.prototype.getOption=function(t){return this.options&&Object.prototype.hasOwnProperty.call(this.options,t)?this.options[t]:y},c.prototype.setOption=function(t,i,r){var n;return"__proto__"!==t&&(this.options||(this.options={}),/^features\./.test(t)?o.setProperty(this.options,t,i,r):(n=this.getOption(t),r&&n!==y||(n!==i&&(this.resolved=!1),this.options[t]=i))),this},c.prototype.setParsedOption=function(i,t,r){var n,e,s;return"__proto__"!==i&&(this.parsedOptions||(this.parsedOptions=[]),n=this.parsedOptions,r?(e=n.find(function(t){return Object.prototype.hasOwnProperty.call(t,i)}))?(s=e[i],o.setProperty(s,r,t)):((e={})[i]=o.setProperty({},r,t),n.push(e)):((s={})[i]=t,n.push(s))),this},c.prototype.setOptions=function(t,i){if(t)for(var r=Object.keys(t),n=0;n<r.length;++n)this.setOption(r[n],t[r[n]],i);return this},Object.defineProperty(c.prototype,"toString",{value:function(){var t=this.constructor.className,i=this.fullName;return i.length?t+" "+i:t},writable:!0,enumerable:!1,configurable:!0}),c.prototype.o=function(){return this.e&&"proto3"!==this.e?this.e:y},c.f=function(t){e=t}},{14:14,24:24}],14:[function(t,i,r){i.exports=o;var e=t(13),n=(o.prototype=Object.create(e.prototype,{constructor:{value:o,writable:!0,enumerable:!1,configurable:!0}}),o.className="OneOf",t(6)),s=t(24);function o(t,i,r,n){if(Array.isArray(i)||(r=i,i=y),e.call(this,t,r),i!==y&&!Array.isArray(i))throw TypeError("fieldNames must be an Array");this.oneof=i||[],this.fieldsArray=[],this.comment=n}function h(t){if(t.parent)for(var i=0;i<t.fieldsArray.length;++i)t.fieldsArray[i].parent||t.parent.add(t.fieldsArray[i])}o.fromJSON=function(t,i){return new o(t,i.oneof,i.options,i.comment)},o.prototype.toJSON=function(t){t=!!t&&!!t.keepComments;return s.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:y])},o.prototype.add=function(t){if(t instanceof n)return t.parent&&t.parent!==this.parent&&t.parent.remove(t),this.oneof.push(t.name),this.fieldsArray.push(t),h(t.partOf=this),this;throw TypeError("field must be a Field")},o.prototype.remove=function(t){if(!(t instanceof n))throw TypeError("field must be a Field");var i=this.fieldsArray.indexOf(t);if(i<0)throw Error(t+" is not a member of "+this);return this.fieldsArray.splice(i,1),-1<(i=this.oneof.indexOf(t.name))&&this.oneof.splice(i,1),t.partOf=null,this},o.prototype.onAdd=function(t){e.prototype.onAdd.call(this,t);for(var i=0;i<this.oneof.length;++i){var r=t.get(this.oneof[i]);r&&!r.partOf&&(r.partOf=this).fieldsArray.push(r)}h(this)},o.prototype.onRemove=function(t){for(var i,r=0;r<this.fieldsArray.length;++r)(i=this.fieldsArray[r]).parent&&i.parent.remove(i);e.prototype.onRemove.call(this,t)},Object.defineProperty(o.prototype,"isProto3Optional",{get:function(){var t;return null!=this.fieldsArray&&1===this.fieldsArray.length&&(null!=(t=this.fieldsArray[0]).options&&!0===t.options.proto3_optional)}}),o.d=function(){for(var r=Array(arguments.length),t=0;t<arguments.length;)r[t]=arguments[t++];return function(t,i){s.decorateType(t.constructor).add(new o(i,r)),Object.defineProperty(t,i,{get:s.oneOfGetter(r),set:s.oneOfSetter(r)})}}},{13:13,24:24,6:6}],15:[function(t,i,r){i.exports=o;var n,c=t(33),e=c.LongBits,s=c.utf8;function a(t,i){return RangeError("index out of range: "+t.pos+" + "+(i||1)+" > "+t.len)}function o(t){this.buf=t,this.pos=0,this.len=t.length,this.view=null,this.discardUnknown=o.discardUnknown}function h(t){if((t=Array.isArray(t)?new Uint8Array(t):t)instanceof Uint8Array)return new o(t);throw Error("illegal buffer")}function u(){return c.Buffer?function(t){return(o.create=function(t){return c.Buffer.isBuffer(t)?new n(t):h(t)})(t)}:h}function f(){var t=new e(0,0),i=0;if(!(4<this.len-this.pos)){for(;i<4;++i){if(this.pos>=this.len)throw a(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*i)>>>0,this.buf[this.pos++]<128)return t}throw a(this)}for(;i<4;++i)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*i)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(i=0,4<this.len-this.pos){for(;i<5;++i)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*i+3)>>>0,this.buf[this.pos++]<128)return t}else for(;i<5;++i){if(this.pos>=this.len)throw a(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*i+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function l(t,i){return(t[i-4]|t[i-3]<<8|t[i-2]<<16|t[i-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw a(this,8);return new e(l(this.buf,this.pos+=4),l(this.buf,this.pos+=4))}o.create=u(),o.prototype.raw=function(t,i){return this.buf.subarray(t,i)},o.prototype.uint32=function(){var t=this.buf,i=this.pos,r=(127&t[i])>>>0;if(t[i++]<128)return this.pos=i,r;if(r=(r|(127&t[i])<<7)>>>0,t[i++]<128)return this.pos=i,r;if(r=(r|(127&t[i])<<14)>>>0,t[i++]<128)return this.pos=i,r;if(r=(r|(127&t[i])<<21)>>>0,t[i++]<128)return this.pos=i,r;if(r=(r|(15&t[i])<<28)>>>0,t[i++]<128)return this.pos=i,r;for(var n=0;n<5;++n){if(i>=this.len)throw this.pos=i,a(this);if(t[i++]<128)return this.pos=i,r}throw this.pos=i,Error("invalid varint encoding")},o.prototype.tag=function(){var t=this.buf,i=this.pos,r=(127&t[i])>>>0;if(t[i++]<128)return this.pos=i,r;if(r=(r|(127&t[i])<<7)>>>0,t[i++]<128)return this.pos=i,r;if(r=(r|(127&t[i])<<14)>>>0,t[i++]<128)return this.pos=i,r;if(r=(r|(127&t[i])<<21)>>>0,t[i++]<128)return this.pos=i,r;if(r=(r|(15&t[i])<<28)>>>0,t[i]<128&&0==(112&t[i]))return this.pos=i+1,r;throw this.pos=i+1,Error("invalid tag encoding")},o.prototype.int32=function(){return 0|this.uint32()},o.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},o.prototype.bool=function(){for(var t,i=!1,r=0;r<10;++r){if(this.pos>=this.len)throw a(this);if(127&(t=this.buf[this.pos++])&&(i=!0),t<128)return i}throw Error("invalid varint encoding")},o.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return l(this.buf,this.pos+=4)},o.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|l(this.buf,this.pos+=4)},o.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var t=c.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},o.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var t=c.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},o.prototype.uint32s=function(t){t===y&&(t=[]);for(var i=this.uint32()+this.pos;this.pos<i;)t.push(this.uint32());return t},o.prototype.int32s=function(t){t===y&&(t=[]);for(var i=this.uint32()+this.pos;this.pos<i;)t.push(this.int32());return t},o.prototype.sint32s=function(t){t===y&&(t=[]);for(var i=this.uint32()+this.pos;this.pos<i;)t.push(this.sint32());return t},o.prototype.bools=function(t){t===y&&(t=[]);for(var i=this.uint32()+this.pos;this.pos<i;)t.push(this.bool());return t};function v(t,i,r){var n=t.view;return n||i<r?n:(i=t.buf,t.view=new DataView(i.buffer,i.byteOffset,i.byteLength))}o.prototype.fixed32s=function(t){t===y&&(t=[]);var i=this.uint32(),r=this.pos+i;if(r>this.len)throw a(this,i);var n=i>>>2,e=t.length,s=this.pos,o=(t.length=e+n,v(this,n,128));if(o)for(var h=0;h<n;++h,s+=4)t[e++]=o.getUint32(s,!0);else for(var u=this.buf,f=0;f<n;++f,s+=4)t[e++]=l(u,s+4);if((this.pos=s)!==r)throw a(this,4);return t},o.prototype.sfixed32s=function(t){t===y&&(t=[]);var i=this.uint32(),r=this.pos+i;if(r>this.len)throw a(this,i);var n=i>>>2,e=t.length,s=this.pos,o=(t.length=e+n,v(this,n,128));if(o)for(var h=0;h<n;++h,s+=4)t[e++]=o.getInt32(s,!0);else for(var u=this.buf,f=0;f<n;++f,s+=4)t[e++]=0|l(u,s+4);if((this.pos=s)!==r)throw a(this,4);return t},o.prototype.floats=function(t){t===y&&(t=[]);var i=this.uint32(),r=this.pos+i;if(r>this.len)throw a(this,i);var n=i>>>2,e=t.length,s=this.pos,o=(t.length=e+n,v(this,n,8));if(o)for(var h=0;h<n;++h,s+=4)t[e++]=o.getFloat32(s,!0);else for(var u=this.buf,f=0;f<n;++f,s+=4)t[e++]=c.float.readFloatLE(u,s);if((this.pos=s)!==r)throw a(this,4);return t},o.prototype.doubles=function(t){t===y&&(t=[]);var i=this.uint32(),r=this.pos+i;if(r>this.len)throw a(this,i);var n=i>>>3,e=t.length,s=this.pos,o=(t.length=e+n,v(this,n,8));if(o)for(var h=0;h<n;++h,s+=8)t[e++]=o.getFloat64(s,!0);else for(var u=this.buf,f=0;f<n;++f,s+=8)t[e++]=c.float.readDoubleLE(u,s);if((this.pos=s)!==r)throw a(this,8);return t},o.prototype.uint64s=function(t){t===y&&(t=[]);for(var i=this.uint32()+this.pos;this.pos<i;)t.push(this.uint64());return t},o.prototype.int64s=function(t){t===y&&(t=[]);for(var i=this.uint32()+this.pos;this.pos<i;)t.push(this.int64());return t},o.prototype.sint64s=function(t){t===y&&(t=[]);for(var i=this.uint32()+this.pos;this.pos<i;)t.push(this.sint64());return t},o.prototype.fixed64s=function(t){t===y&&(t=[]);var i=this.uint32(),r=this.pos+i,n=t.length;if(r>this.len)throw a(this,i);var e=i>>>3;t.length=n+e;for(var s=0;s<e;++s)t[n++]=this.fixed64();if(this.pos!==r)throw a(this,8);return t},o.prototype.sfixed64s=function(t){t===y&&(t=[]);var i=this.uint32(),r=this.pos+i,n=t.length;if(r>this.len)throw a(this,i);var e=i>>>3;t.length=n+e;for(var s=0;s<e;++s)t[n++]=this.sfixed64();if(this.pos!==r)throw a(this,8);return t},o.prototype.bytes=function(){var t=this.uint32(),i=this.pos,r=this.pos+t;if(r>this.len)throw a(this,t);return this.pos=r,this.raw(i,r)},o.prototype.string=function(){var t=this.uint32(),i=this.pos,r=this.pos+t;if(r>this.len)throw a(this,t);return this.pos=r,s.read(this.buf,i,r)},o.prototype.stringVerify=function(){var t=this.uint32(),i=this.pos,r=this.pos+t;if(r>this.len)throw a(this,t);return this.pos=r,s.readStrict(this.buf,i,r)},o.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw a(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},o.recursionLimit=c.recursionLimit,o.discardUnknown=!0,o.prototype.skipType=function(t,i,r){if(o.recursionLimit<(i=i===y?0:i))throw Error("max depth exceeded");if(0===r)throw Error("illegal tag: field number 0");switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;;){var n=this.tag(),e=n>>>3;if(!e)throw Error("illegal tag: field number 0");if(4===(t=7&n)){if(r!==y&&e!==r)throw Error("invalid end group tag");break}this.skipType(t,i+1,e)}break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},o.f=function(t){n=t,o.create=u(),n.f();var i=c.Long?"toLong":"toNumber";c.merge(o.prototype,{int64:function(){return f.call(this)[i](!1)},uint64:function(){return f.call(this)[i](!0)},sint64:function(){return f.call(this).zzDecode()[i](!1)},fixed64:function(){return d.call(this)[i](!0)},sfixed64:function(){return d.call(this)[i](!1)}})}},{33:33}],16:[function(t,i,r){i.exports=s;var n=t(15),e=(s.prototype=Object.create(n.prototype,{constructor:{value:s,writable:!0,enumerable:!1,configurable:!0}}),t(33));function s(t){n.call(this,t)}s.f=function(){e.Buffer&&(s.prototype.j=e.Buffer.prototype.slice)},s.prototype.raw=function(t,i){return this.j.call(this.buf,t,i)},s.prototype.string=function(){var t=this.uint32(),i=this.pos,r=this.pos+t;if(r>this.len)throw RangeError("index out of range: "+this.pos+" + "+t+" > "+this.len);return this.pos=r,this.buf.utf8Slice?this.buf.utf8Slice(i,r):this.buf.toString("utf-8",i,r)},s.f()},{15:15,33:33}],17:[function(t,i,r){i.exports=u;var n,v,b,e=t(12),s=(u.prototype=Object.create(e.prototype,{constructor:{value:u,writable:!0,enumerable:!1,configurable:!0}}),u.className="Root",t(6)),o=t(5),h=t(14),p=t(24);function u(t){e.call(this,"",t),this.deferred=[],this.files=[],this.e="proto2",this.m={}}function m(){}u.fromJSON=function(t,i,r){if((r=r===y?0:r)>p.recursionLimit)throw Error("max depth exceeded");return i=i||new u,t.options&&i.setOptions(t.options),i.addJSON(t.nested,r).resolveAll()},u.prototype.resolvePath=p.path.resolve,u.prototype.fetch=p.fetch,u.prototype.load=function t(i,o,s){"function"==typeof o&&(s=o,o=y);var h=this;if(!s)return p.asPromise(t,h,i,o);var u=s===m;function f(t,i){if(s){if(u)throw t;i&&i.resolveAll();var r=s;s=null,r(t,i)}}function c(t){var i=t.lastIndexOf("google/protobuf/");if(-1<i){i=t.substring(i);if(Object.prototype.hasOwnProperty.call(b,i))return i}return Object.prototype.hasOwnProperty.call(b,t)?t:null}function a(t,i,r){r===y&&(r=0);try{if(r>p.recursionLimit)throw Error("max depth exceeded");if(p.isString(i)&&"{"==(i[0]||"")&&(i=JSON.parse(i)),p.isString(i)){v.filename=t;var n,e=v(i,h,o),s=0;if(e.imports)for(;s<e.imports.length;++s)(n=c(e.imports[s])||h.resolvePath(t,e.imports[s]))&&l(n,!1,r+1);if(e.weakImports)for(s=0;s<e.weakImports.length;++s)(n=c(e.weakImports[s])||h.resolvePath(t,e.weakImports[s]))&&l(n,!0,r+1)}else h.setOptions(i.options).addJSON(i.nested)}catch(t){f(t)}u||d||f(null,h)}function l(r,n,e){if(e===y&&(e=0),r=c(r)||r,!~h.files.indexOf(r))if(h.files.push(r),Object.prototype.hasOwnProperty.call(b,r))u?a(r,b[r],e):(++d,setTimeout(function(){--d,a(r,b[r],e)}));else if(u){var t;try{t=p.fs.readFileSync(r).toString("utf8")}catch(t){return void(n||f(t))}a(r,t,e)}else++d,h.fetch(r,function(t,i){--d,s&&(t?n?d||f(null,h):f(t):a(r,i,e))})}var d=0;p.isString(i)&&(i=[i]);for(var r,n=0;n<i.length;++n)(r=h.resolvePath("",i[n]))&&l(r);return u?h.resolveAll():d||f(null,h),h},u.prototype.loadSync=function(t,i){if(p.isNode)return this.load(t,i,m);throw Error("not supported")},u.prototype.resolveAll=function(){if(!this.v)return this;if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(t){return"'extend "+t.extend+"' in "+t.parent.fullName}).join(", "));return e.prototype.resolveAll.call(this)};var f=/^[A-Z]/;function c(t,i){var r,n=i.parent.lookup(i.extend);if(n)return r=new s(i.fullName,i.id,i.type,i.rule,y,i.options),n.get(r.name)||((r.declaringField=i).extensionField=r,n.add(r)),1}u.prototype.g=function(t){if(t instanceof s)t.extend===y||t.extensionField||c(0,t)||this.deferred.push(t);else if(t instanceof o)f.test(t.name)&&(t.parent[t.name]=t.values);else if(!(t instanceof h)){if(t instanceof n)for(var i=0;i<this.deferred.length;)c(0,this.deferred[i])?this.deferred.splice(i,1):++i;for(var r=0;r<t.nestedArray.length;++r)this.g(t.c[r]);f.test(t.name)&&(t.parent[t.name]=t)}(t instanceof n||t instanceof o||t instanceof s)&&(this.m[t.fullName]=t)},u.prototype.y=function(t){var i;if(t instanceof s)t.extend!==y&&(t.extensionField?(t.extensionField.parent.remove(t.extensionField),t.extensionField=null):-1<(i=this.deferred.indexOf(t))&&this.deferred.splice(i,1));else if(t instanceof o)f.test(t.name)&&delete t.parent[t.name];else if(t instanceof e){for(var r=0;r<t.nestedArray.length;++r)this.y(t.c[r]);f.test(t.name)&&delete t.parent[t.name]}delete this.m[t.fullName]},u.f=function(t,i,r){n=t,v=i,b=r}},{12:12,14:14,24:24,5:5,6:6}],18:[function(t,i,r){i.exports=Object.create(null)},{}],19:[function(t,i,r){r.Service=t(20)},{20:20}],20:[function(t,i,r){i.exports=n;var h=t(33);function n(t,i,r){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");h.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!i,this.responseDelimited=!!r}(n.prototype=Object.create(h.EventEmitter.prototype,{constructor:{value:n,writable:!0,enumerable:!1,configurable:!0}})).rpcCall=function t(r,i,n,e,s){if(!e)throw TypeError("request must be specified");var o=this;if(!s)return h.asPromise(t,o,r,i,n,e);if(!o.rpcImpl)return setTimeout(function(){s(Error("already ended"))},0),y;try{return o.rpcImpl(r,i[o.requestDelimited?"encodeDelimited":"encode"](e).finish(),function(t,i){if(t)return o.emit("error",t,r),s(t);if(null===i)return o.end(!0),y;if(!(i instanceof n))try{i=n[o.responseDelimited?"decodeDelimited":"decode"](i)}catch(t){return o.emit("error",t,r),s(t)}return o.emit("data",i,r),s(null,i)})}catch(t){return o.emit("error",t,r),setTimeout(function(){s(t)},0),y}},n.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},{33:33}],21:[function(t,i,r){i.exports=f;var n=t(12),o=(f.prototype=Object.create(n.prototype,{constructor:{value:f,writable:!0,enumerable:!1,configurable:!0}}),f.className="Service",t(11)),h=t(24),u=t(19);function f(t,i){n.call(this,t,i),this.methods={},this.O=null}function e(t){return t.O=null,t}f.fromJSON=function(t,i,r){if((r=r===y?0:r)>h.recursionLimit)throw Error("max depth exceeded");var n=new f(t,i.options);if(i.methods)for(var e=Object.keys(i.methods),s=0;s<e.length;++s)n.add(o.fromJSON(e[s],i.methods[e[s]]));return i.nested&&n.addJSON(i.nested,r),i.edition&&(n.e=i.edition),n.comment=i.comment,n.s="proto3",n},f.prototype.toJSON=function(t){var i=n.prototype.toJSON.call(this,t),r=!!t&&!!t.keepComments;return h.toObject(["edition",this.o(),"options",i&&i.options||y,"methods",n.arrayToJSON(this.methodsArray,t)||{},"nested",i&&i.nested||y,"comment",r?this.comment:y])},Object.defineProperty(f.prototype,"methodsArray",{get:function(){return this.O||(this.O=h.toArray(this.methods))}}),f.prototype.get=function(t){return Object.prototype.hasOwnProperty.call(this.methods,t)?this.methods[t]:n.prototype.get.call(this,t)},f.prototype.resolveAll=function(){if(this.v){n.prototype.resolve.call(this);for(var t=this.methodsArray,i=0;i<t.length;++i)t[i].resolve()}return this},f.prototype.b=function(i){return this.l&&(i=this.e||i,n.prototype.b.call(this,i),this.methodsArray.forEach(t=>{t.b(i)})),this},f.prototype.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);return t instanceof o?"__proto__"===t.name?this:e((this.methods[t.name]=t).parent=this):n.prototype.add.call(this,t)},f.prototype.remove=function(t){if(t instanceof o){if(this.methods[t.name]!==t)throw Error(t+" is not a member of "+this);return delete this.methods[t.name],t.parent=null,e(this)}return n.prototype.remove.call(this,t)},f.prototype.create=function(t,i,r){for(var n,e=new u.Service(t,i,r),s=0;s<this.methodsArray.length;++s)e[h.lcFirst((n=this.O[s]).resolve().name).replace(/[^$\w_]/g,"")]=function(r,n,e){return function(t,i){return u.Service.prototype.rpcCall.call(this,r,n,e,t,i)}}(n,n.resolvedRequestType.ctor,n.resolvedResponseType.ctor);return e}},{11:11,12:12,19:19,24:24}],22:[function(t,i,r){i.exports=g;var h=t(12),u=(g.prototype=Object.create(h.prototype,{constructor:{value:g,writable:!0,enumerable:!1,configurable:!0}}),g.className="Type",t(5)),f=t(14),c=t(6),a=t(9),l=t(21),s=t(10),e=t(15),o=t(40),d=t(24),v=t(4),b=t(3),p=t(38),m=t(2),w=t(39);function g(t,i){t=t.replace(/\W/g,""),h.call(this,t,i),this.fields={},this.oneofs=y,this.extensions=y,this.reserved=y,this.group=y,this._=null,this.i=null,this.k=null,this.h=null,this.x=null}function n(t){return t._=t.i=t.k=t.x=null,delete t.encode,delete t.decode,delete t.verify,t}Object.defineProperties(g.prototype,{fieldsById:{get:function(){if(!this._){this._={};for(var t=Object.keys(this.fields),i=0;i<t.length;++i){var r=this.fields[t[i]],n=r.id;if(this._[n])throw Error("duplicate id "+n+" in "+this);this._[n]=r}}return this._}},fieldsArray:{get:function(){return this.i||(this.i=d.toArray(this.fields))}},oneofsArray:{get:function(){return this.k||(this.k=d.toArray(this.oneofs))}},ctor:{get:function(){return this.h||(this.ctor=g.generateConstructor(this)())},set:function(t){for(var i,r=t.prototype,n=(r instanceof s||(t.prototype=new s,Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),d.merge(t.prototype,r)),t.$type=t.prototype.$type=this,d.merge(t,s,!0),this.h=t,delete this.decode,delete this.fromObject,0);n<this.fieldsArray.length;++n)i=this.i[n].resolve(),t.prototype[i.name]=i.defaultValue;for(var e={},n=0;n<this.oneofsArray.length;++n)e[this.k[n].resolve().name]={get:d.oneOfGetter(this.k[n].oneof),set:d.oneOfSetter(this.k[n].oneof)};n&&Object.defineProperties(t.prototype,e)}}}),g.generateConstructor=function(t){for(var i,r=d.codegen(["p"]),n=0;n<t.fieldsArray.length;++n)(i=t.i[n]).map?r("this%s={}",d.safeProp(i.name)):i.repeated&&r("this%s=[]",d.safeProp(i.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]]")},g.fromJSON=function(t,i,r){if((r=r===y?0:r)>d.nestingLimit)throw Error("max depth exceeded");for(var n=new g(t,i.options),e=(n.extensions=i.extensions,n.reserved=i.reserved,Object.keys(i.fields)),s=0;s<e.length;++s)n.add((void 0!==i.fields[e[s]].keyType?a:c).fromJSON(e[s],i.fields[e[s]]));if(i.oneofs)for(e=Object.keys(i.oneofs),s=0;s<e.length;++s)n.add(f.fromJSON(e[s],i.oneofs[e[s]]));if(i.nested)for(e=Object.keys(i.nested),s=0;s<e.length;++s){var o=i.nested[e[s]];n.add((o.id!==y?c:o.fields!==y?g:o.values!==y?u:o.methods!==y?l:h).fromJSON(e[s],o,r+1))}return i.extensions&&i.extensions.length&&(n.extensions=i.extensions),i.reserved&&i.reserved.length&&(n.reserved=i.reserved),i.group&&(n.group=!0),i.comment&&(n.comment=i.comment),i.edition&&(n.e=i.edition),n.s="proto3",n},g.prototype.toJSON=function(t){var i=h.prototype.toJSON.call(this,t),r=!!t&&!!t.keepComments;return d.toObject(["edition",this.o(),"options",i&&i.options||y,"oneofs",h.arrayToJSON(this.oneofsArray,t),"fields",h.arrayToJSON(this.fieldsArray.filter(function(t){return!t.declaringField}),t)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:y,"reserved",this.reserved&&this.reserved.length?this.reserved:y,"group",this.group||y,"nested",i&&i.nested||y,"comment",r?this.comment:y])},g.prototype.resolveAll=function(){if(this.v){h.prototype.resolveAll.call(this);for(var t=this.oneofsArray,i=0;i<t.length;)t[i++].resolve();for(var r=this.fieldsArray,i=0;i<r.length;)r[i++].resolve()}return this},g.prototype.b=function(i){return this.l&&(i=this.e||i,h.prototype.b.call(this,i),this.oneofsArray.forEach(t=>{t.n(i)}),this.fieldsArray.forEach(t=>{t.n(i)})),this},g.prototype.get=function(t){return Object.prototype.hasOwnProperty.call(this.fields,t)?this.fields[t]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,t)?this.oneofs[t]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,t)?this.nested[t]:null},g.prototype.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);if(t instanceof c&&t.extend===y){if((this._||this.fieldsById)[t.id])throw Error("duplicate id "+t.id+" in "+this);if(this.isReservedId(t.id))throw Error("id "+t.id+" is reserved in "+this);if(this.isReservedName(t.name)||"$"==(t.name[0]||""))throw Error("name '"+t.name+"' is reserved in "+this);return"__proto__"===t.name?this:(t.parent&&t.parent.remove(t),(this.fields[t.name]=t).message=this,t.onAdd(this),n(this))}if(t instanceof f){if("$"==(t.name[0]||""))throw Error("name '"+t.name+"' is reserved in "+this);return"__proto__"===t.name?this:(this.oneofs||(this.oneofs={}),(this.oneofs[t.name]=t).onAdd(this),n(this))}return h.prototype.add.call(this,t)},g.prototype.remove=function(t){if(t instanceof c&&t.extend===y){if(d.remove(this.fields,t,t.name))return t.parent=null,t.onRemove(this),n(this);throw Error(t+" is not a member of "+this)}if(t instanceof f){if(d.remove(this.oneofs,t,t.name))return t.parent=null,t.onRemove(this),n(this);throw Error(t+" is not a member of "+this)}return h.prototype.remove.call(this,t)},g.prototype.isReservedId=function(t){return h.isReservedId(this.reserved,t)},g.prototype.isReservedName=function(t){return h.isReservedName(this.reserved,t)},g.prototype.create=function(t){return new this.ctor(t)},g.prototype.setup=function(){for(var t=this.root,t=(t&&t.l&&((n=t.e||this.e)&&t.b(n)),this.fullName),i=[],r=0;r<this.fieldsArray.length;++r)i.push(this.i[r].resolve().resolvedType);this.encode=v(this)({Writer:o,types:i,util:d}),this.decode=b(this)({Reader:e,types:i,util:d,C:this.ctor}),this.verify=p(this)({types:i,util:d}),this.fromObject=m.fromObject(this)({types:i,util:d,C:this.ctor}),this.toObject=m.toObject(this)({types:i,util:d});var n=w[t];return n&&((t=Object.create(this)).h=this.ctor,t.fromObject=this.fromObject,this.fromObject=n.fromObject.bind(t),t.toObject=this.toObject,this.toObject=n.toObject.bind(t)),this},g.prototype.encode=function(t,i){return this.setup().encode.apply(this,arguments)},g.prototype.encodeDelimited=function(t,i){return this.encode(t,(i||o.create()).fork()).ldelim()},g.prototype.decode=function(t,i){return this.setup().decode.apply(this,arguments)},g.prototype.decodeDelimited=function(t){return t instanceof e||(t=e.create(t)),this.decode(t,t.uint32())},g.prototype.verify=function(t){return this.setup().verify.apply(this,arguments)},g.prototype.fromObject=function(t){return this.setup().fromObject.apply(this,arguments)},g.prototype.toObject=function(t,i){return this.setup().toObject.apply(this,arguments)},g.prototype.getTypeUrl=function(t){var i=this.fullName;return(t=t===y?"type.googleapis.com":t)+"/"+("."==(i[0]||"")?i.substring(1):i)},g.d=function(i){return function(t){d.decorateType(t,i)}}},{10:10,12:12,14:14,15:15,2:2,21:21,24:24,3:3,38:38,39:39,4:4,40:40,5:5,6:6,9:9}],23:[function(t,i,r){var t=t(24),e=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function n(t,i){var r=0,n=Object.create(null);for(i|=0;r<t.length;)n[e[r+i]]=t[r++];return n}r.basic=n([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),r.defaults=n([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",t.emptyArray,null]),r.long=n([0,0,0,1,1],7),r.mapKey=n([0,0,0,5,5,0,0,0,1,1,0,2],2),r.packed=n([1,5,0,0,0,5,5,0,0,0,1,1,0])},{24:24}],24:[function(r,t,i){var n,e,o=t.exports=r(33),s=r(18),h=(o.codegen=r(27),o.fetch=r(29),o.path=r(34),o.patterns=r(35),o.patterns.reservedRe),u=(o.fs=r(31),o.toArray=function(t){if(t){for(var i=Object.keys(t),r=Array(i.length),n=0;n<i.length;)r[n]=t[i[n++]];return r}return[]},o.toObject=function(t){for(var i={},r=0;r<t.length;){var n=t[r++],e=t[r++];e!==y&&(i[n]=e)}return i},o.remove=function(t,i,r){if(t){if(r!==y&&Object.prototype.hasOwnProperty.call(t,r)&&t[r]===i)return delete t[r],!0;for(var n=Object.keys(t),e=0;e<n.length;++e)if(t[n[e]]===i)return delete t[n[e]],!0}return!1},o.isReserved=function(t){return h.test(t)},o.safeProp=function(t){return!/^[$\w_]+$/.test(t)||h.test(t)?"["+JSON.stringify(t)+"]":"."+t},o.ucFirst=function(t){return(t[0]||"").toUpperCase()+t.substring(1)},/_([a-z])/g),f=(o.camelCase=function(t){return t.substring(0,1)+t.substring(1).replace(u,function(t,i){return i.toUpperCase()})},o.jsonName=function(t){for(var i="",r=!1,n=0;n<t.length;++n){var e=t[0|n]||"";"_"===e?r=!0:r?(i+=e.toUpperCase(),r=!1):i+=e}return i},o.compareFieldsById=function(t,i){return t.id-i.id},o.decorateType=function(t,i){return t.$type?(i&&t.$type.name!==i&&(o.decorateRoot.remove(t.$type),t.$type.name=i,o.decorateRoot.add(t.$type)),t.$type):(i=new(n=n||r(22))(i||t.name),o.decorateRoot.add(i),i.ctor=t,Object.defineProperty(t,"$type",{value:i,enumerable:!1}),Object.defineProperty(t.prototype,"$type",{value:i,enumerable:!1}),i)},0);o.decorateEnum=function(t){var i;return t.$type||(i=new(e=e||r(5))("Enum"+f++,t),o.decorateRoot.add(i),Object.defineProperty(t,"$type",{value:i,enumerable:!1}),i)},o.setProperty=function(t,i,r,s){if("object"!=typeof t)throw TypeError("dst must be an object");if(!i)throw TypeError("path must be specified");if((i=i.split(".")).length>o.recursionLimit)throw Error("max depth exceeded");return function t(i,r,n){var e=r.shift();if(!o.isUnsafeProperty(e))if(0<r.length)i[e]=t(i[e]||{},r,n);else{if((r=i[e])&&s)return i;r&&(n=[].concat(r).concat(n)),i[e]=n}return i}(t,i,r)},Object.defineProperty(o,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(17)))}})},{17:17,18:18,22:22,27:27,29:29,31:31,33:33,34:34,35:35,5:5}],25:[function(t,i,r){i.exports=function(t,i){var r=Array(arguments.length-1),s=0,n=2,o=!0;for(;n<arguments.length;)r[s++]=arguments[n++];return new Promise(function(n,e){r[s]=function(t){if(o)if(o=!1,t)e(t);else{for(var i=Array(arguments.length-1),r=0;r<i.length;)i[r++]=arguments[r];n.apply(null,i)}};try{t.apply(i||null,r)}catch(t){o&&(o=!1,e(t))}})}},{}],26:[function(t,i,r){r.length=function(t){var i=t.length;if(!i)return 0;for(;0<i&&"="==(t[0|i-1]||"");)--i;return Math.floor(3*i/4)};for(var f=Array(64),u=Array(123),n=0;n<64;)u[f[n]=n<26?n+65:n<52?n+71:n<62?n-4:n-59|43]=n++;u[45]=62,u[95]=63,r.encode=function(t,i,r){for(var n,e=null,s=[],o=0,h=0;i<r;){var u=t[i++];switch(h){case 0:s[o++]=f[u>>2],n=(3&u)<<4,h=1;break;case 1:s[o++]=f[n|u>>4],n=(15&u)<<2,h=2;break;case 2:s[o++]=f[n|u>>6],s[o++]=f[63&u],h=0}8191<o&&((e=e||[]).push(String.fromCharCode.apply(String,s)),o=0)}return h&&(s[o++]=f[n],s[o++]=61,1===h&&(s[o++]=61)),e?(o&&e.push(String.fromCharCode.apply(String,s.slice(0,o))),e.join("")):String.fromCharCode.apply(String,s.slice(0,o))};var c="invalid encoding",e=(r.decode=function(t,i,r){for(var n,e=r,s=0,o=0;o<t.length;){var h=t.charCodeAt(o++);if(61==h&&1<s)break;if((h=u[h])===y)throw Error(c);switch(s){case 0:n=h,s=1;break;case 1:i[r++]=n<<2|(48&h)>>4,n=h,s=2;break;case 2:i[r++]=(15&n)<<4|(60&h)>>2,n=h,s=3;break;case 3:i[r++]=(3&n)<<6|h,s=0}}if(1===s)throw Error(c);return r-e},/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/),s=/[-_]/,o=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2}(?:==)?|[A-Za-z0-9_-]{3}=?)?$/;r.test=function(t){return e.test(t)||s.test(t)&&o.test(t)}},{}],27:[function(t,i,r){i.exports=a;var n=t(35).reservedRe;function a(i,r){"string"==typeof i&&(r=i,i=y);var u=[];function f(t){if("string"!=typeof t){var i=c();if(a.verbose&&console.log("codegen: "+i),i="return "+i,t){for(var r=Object.keys(t),n=Array(r.length+1),e=Array(r.length),s=0;s<r.length;)n[s]=r[s],e[s]=t[r[s++]];return n[s]=i,Function.apply(null,n).apply(null,e)}return Function(i)()}for(var o=Array(arguments.length-1),h=0;h<o.length;)o[h]=arguments[++h];if(h=0,t=t.replace(/%([%dfijs])/g,function(t,i){var r=o[h++];switch(i){case"d":case"f":return""+ +(""+r);case"i":return""+Math.floor(r);case"j":return JSON.stringify(r);case"s":return""+r}return"%"}),h!==o.length)throw Error("parameter count mismatch");return u.push(t),f}function c(t){return"function "+function(t){if(!t)return"";if(!(t=(""+t).replace(/[^\w$]/g,"")))return"";/^\d/.test(t)&&(t="_"+t);return n.test(t)?t+"_":t}(t||r)+"("+(i&&i.join(",")||"")+"){\n "+u.join("\n ")+"\n}"}return Object.defineProperty(f,"toString",{value:c,writable:!0,enumerable:!0,configurable:!0}),f}a.verbose=!1},{35:35}],28:[function(t,i,r){function n(){this.A=Object.create(null)}(i.exports=n).prototype.on=function(t,i,r){return(this.A[t]||(this.A[t]=[])).push({fn:i,ctx:r||this}),this},n.prototype.off=function(t,i){if(t===y)this.A=Object.create(null);else if(i===y)this.A[t]=[];else{var r=this.A[t];if(!r)return this;for(var n=0;n<r.length;)r[n].fn===i?r.splice(n,1):++n}return this},n.prototype.emit=function(t){var i=this.A[t];if(i){for(var r=[],n=1;n<arguments.length;)r.push(arguments[n++]);for(n=0;n<i.length;)i[n].fn.apply(i[n++].ctx,r)}return this}},{}],29:[function(t,i,r){i.exports=h;var s=t(25),o=t(31);function h(r,n,e){return n="function"==typeof n?(e=n,{}):n||{},e?!n.xhr&&o&&o.readFile?o.readFile(r,function(t,i){return t&&"undefined"!=typeof XMLHttpRequest?h.xhr(r,n,e):t?e(t):e(null,n.binary?i:i.toString("utf8"))}):h.xhr(r,n,e):s(h,this,r,n)}h.xhr=function(t,r,n){var e=new XMLHttpRequest;e.onreadystatechange=function(){if(4!==e.readyState)return y;if(0!==e.status&&200!==e.status)return n(Error("status "+e.status));if(r.binary){if(!(t=e.response))for(var t=[],i=0;i<e.responseText.length;++i)t.push(255&e.responseText.charCodeAt(i));return n(null,"undefined"!=typeof Uint8Array?new Uint8Array(t):t)}return n(null,e.responseText)},r.binary&&("overrideMimeType"in e&&e.overrideMimeType("text/plain; charset=x-user-defined"),e.responseType="arraybuffer"),e.open("GET",t),e.send()}},{25:25,31:31}],30:[function(t,i,r){function n(t){function i(t,i,r,n){var e=i<0?1:0;t(0===(i=e?-i:i)?0<1/i?0:2147483648:isNaN(i)?2143289344:34028234663852886e22<i?(e<<31|2139095040)>>>0:i<11754943508222875e-54?(e<<31|Math.round(i/1401298464324817e-60))>>>0:(e<<31|127+(t=Math.floor(Math.log(i)/Math.LN2))<<23|8388607&Math.round(i*Math.pow(2,-t)*8388608))>>>0,r,n)}function r(t,i,r){t=t(i,r),i=2*(t>>31)+1,r=t>>>23&255,t&=8388607;return 255==r?t?NaN:1/0*i:0==r?1401298464324817e-60*i*t:i*Math.pow(2,r-150)*(8388608+t)}function n(t,i,r){h[0]=t,i[r]=u[0],i[r+1]=u[1],i[r+2]=u[2],i[r+3]=u[3]}function e(t,i,r){h[0]=t,i[r]=u[3],i[r+1]=u[2],i[r+2]=u[1],i[r+3]=u[0]}function s(t,i){return u[0]=t[i],u[1]=t[i+1],u[2]=t[i+2],u[3]=t[i+3],h[0]}function o(t,i){return u[3]=t[i],u[2]=t[i+1],u[1]=t[i+2],u[0]=t[i+3],h[0]}var h,u,f,c,a;function l(t,i,r,n,e,s){var o,h=n<0?1:0;0===(n=h?-n:n)?(t(0,e,s+i),t(0<1/n?0:2147483648,e,s+r)):isNaN(n)?(t(0,e,s+i),t(2146959360,e,s+r)):17976931348623157e292<n?(t(0,e,s+i),t((h<<31|2146435072)>>>0,e,s+r)):n<22250738585072014e-324?(t((o=n/5e-324)>>>0,e,s+i),t((h<<31|o/4294967296)>>>0,e,s+r)):(t(4503599627370496*(o=n*Math.pow(2,-(n=1024===(n=Math.floor(Math.log(n)/Math.LN2))?1023:n)))>>>0,e,s+i),t((h<<31|n+1023<<20|1048576*o&1048575)>>>0,e,s+r))}function d(t,i,r,n,e){i=t(n,e+i),t=t(n,e+r),n=2*(t>>31)+1,e=t>>>20&2047,r=4294967296*(1048575&t)+i;return 2047==e?r?NaN:1/0*n:0==e?5e-324*n*r:n*Math.pow(2,e-1075)*(r+4503599627370496)}function v(t,i,r){f[0]=t,i[r]=c[0],i[r+1]=c[1],i[r+2]=c[2],i[r+3]=c[3],i[r+4]=c[4],i[r+5]=c[5],i[r+6]=c[6],i[r+7]=c[7]}function b(t,i,r){f[0]=t,i[r]=c[7],i[r+1]=c[6],i[r+2]=c[5],i[r+3]=c[4],i[r+4]=c[3],i[r+5]=c[2],i[r+6]=c[1],i[r+7]=c[0]}function p(t,i){return c[0]=t[i],c[1]=t[i+1],c[2]=t[i+2],c[3]=t[i+3],c[4]=t[i+4],c[5]=t[i+5],c[6]=t[i+6],c[7]=t[i+7],f[0]}function m(t,i){return c[7]=t[i],c[6]=t[i+1],c[5]=t[i+2],c[4]=t[i+3],c[3]=t[i+4],c[2]=t[i+5],c[1]=t[i+6],c[0]=t[i+7],f[0]}return"undefined"!=typeof Float32Array?(h=new Float32Array([-0]),u=new Uint8Array(h.buffer),a=128===u[3],t.writeFloatLE=a?n:e,t.writeFloatBE=a?e:n,t.readFloatLE=a?s:o,t.readFloatBE=a?o:s):(t.writeFloatLE=i.bind(null,w),t.writeFloatBE=i.bind(null,g),t.readFloatLE=r.bind(null,y),t.readFloatBE=r.bind(null,j)),"undefined"!=typeof Float64Array?(f=new Float64Array([-0]),c=new Uint8Array(f.buffer),a=128===c[7],t.writeDoubleLE=a?v:b,t.writeDoubleBE=a?b:v,t.readDoubleLE=a?p:m,t.readDoubleBE=a?m:p):(t.writeDoubleLE=l.bind(null,w,0,4),t.writeDoubleBE=l.bind(null,g,4,0),t.readDoubleLE=d.bind(null,y,0,4),t.readDoubleBE=d.bind(null,j,4,0)),t}function w(t,i,r){i[r]=255&t,i[r+1]=t>>>8&255,i[r+2]=t>>>16&255,i[r+3]=t>>>24}function g(t,i,r){i[r]=t>>>24,i[r+1]=t>>>16&255,i[r+2]=t>>>8&255,i[r+3]=255&t}function y(t,i){return(t[i]|t[i+1]<<8|t[i+2]<<16|t[i+3]<<24)>>>0}function j(t,i){return(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3])>>>0}i.exports=n(n)},{}],31:[function(t,i,r){var n=null;try{(n=t(1))&&n.readFile&&n.readFileSync||(n=null)}catch(t){}i.exports=n},{1:1}],32:[function(t,i,r){i.exports=e;var n=t(33);function e(t,i){this.lo=t>>>0,this.hi=i>>>0}var s=e.zero=new e(0,0),o=(s.toNumber=function(){return 0},s.zzEncode=s.zzDecode=function(){return this},s.length=function(){return 1},e.zeroHash="\0\0\0\0\0\0\0\0",e.fromNumber=function(t){var i,r;return 0===t?s:(r=(t=(i=t<0)?-t:t)>>>0,t=(t-r)/4294967296>>>0,i&&(t=~t>>>0,r=~r>>>0,4294967295<++r&&(r=0,4294967295<++t&&(t=0))),new e(r,t))},e.from=function(t){if("number"==typeof t)return e.fromNumber(t);if(n.isString(t)){if(!n.Long)return e.fromNumber(parseInt(t,10));t=n.Long.fromString(t)}return t.low||t.high?new e(t.low>>>0,t.high>>>0):s},e.prototype.toNumber=function(t){var i;return!t&&this.hi>>>31?(t=1+~this.lo>>>0,i=~this.hi>>>0,-(t+4294967296*(i=t?i:i+1>>>0))):this.lo+4294967296*this.hi},e.prototype.toLong=function(t){return n.Long?new n.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}},String.prototype.charCodeAt);e.fromHash=function(t){return"\0\0\0\0\0\0\0\0"===t?s:new e((o.call(t,0)|o.call(t,1)<<8|o.call(t,2)<<16|o.call(t,3)<<24)>>>0,(o.call(t,4)|o.call(t,5)<<8|o.call(t,6)<<16|o.call(t,7)<<24)>>>0)},e.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)},e.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},e.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},e.prototype.length=function(){var t=this.lo,i=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0==r?0==i?t<16384?t<128?1:2:t<2097152?3:4:i<16384?i<128?5:6:i<2097152?7:8:r<128?9:10}},{33:33}],33:[function(i,t,r){var o=r;function h(t){return"__proto__"===t||"prototype"===t||"constructor"===t}function n(t){for(var i=(r="boolean"==typeof arguments[arguments.length-1])?arguments.length-1:arguments.length,r=r&&arguments[arguments.length-1],n=1;n<i;++n){var e=arguments[n];if(e)for(var s=Object.keys(e),o=0;o<s.length;++o)h(s[o])||r&&Object.prototype.hasOwnProperty.call(t,s[o])&&t[s[o]]!==y||(t[s[o]]=e[s[o]])}return t}function e(t){function r(t,i){if(!(this instanceof r))return new r(t,i);Object.defineProperty(this,"message",{get:function(){return t}}),Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:Error().stack||""}),i&&n(this,i)}return r.prototype=Object.create(Error.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return t},set:y,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),r}o.asPromise=i(25),o.base64=i(26),o.EventEmitter=i(28),o.float=i(30),o.utf8=i(37),o.pool=i(36),o.LongBits=i(32),o.isUnsafeProperty=h,o.isNode=!!("undefined"!=typeof global&&global&&global.process&&global.process.versions&&global.process.versions.node),o.global=o.isNode&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||"undefined"!=typeof globalThis&&globalThis||this,o.emptyArray=Object.freeze?Object.freeze([]):[],o.emptyObject=Object.freeze?Object.freeze({}):{},o.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},o.isString=function(t){return"string"==typeof t||t instanceof String},o.isObject=function(t){return t&&"object"==typeof t},o.isset=o.isSet=function(t,i){var r=t[i];return!(null==r||!Object.hasOwnProperty.call(t,i))&&("object"!=typeof r||0<(Array.isArray(r)?r:Object.keys(r)).length)},o.Buffer=function(){try{var t=o.global.Buffer;return t.prototype.utf8Write||o.isNode?t:null}catch(t){return null}}(),o.newBuffer=function(t){var i=o.Buffer;return"number"==typeof t?i?i.allocUnsafe(t):new Uint8Array(t):i?i.from(t):new Uint8Array(t)},o.rawField=function(t,i,r){var n=[],e=t<<3|i;for(e>>>=0;127<e;)n.push(127&e|128),e>>>=7;n.push(e);for(var s=0;s<r.length;++s)n.push(r[s]);return o.newBuffer(n)},o.Array=Uint8Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||function(){try{var t=i("long");return t&&t.isLong?t:null}catch(t){return null}}(),o.key2Re=/^(?:true|false|0|1)$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\x00-\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(t){return t?o.LongBits.from(t).toHash():o.LongBits.zeroHash},o.longFromHash=function(t,i){t=o.LongBits.fromHash(t);return o.Long?o.Long.fromBits(t.lo,t.hi,i):t.toNumber(!!i)},o.longFromKey=function(t,i){return o.key64Re.test(t)&&!o.key32Re.test(t)?o.longFromHash(t,i):t},o.boolFromKey=function(t){return"true"===t||"1"===t},o.merge=n,o.nestingLimit=32,o.recursionLimit=100,o.makeProp=function(t,i,r){Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{enumerable:r===y||r,configurable:!0,writable:!0})},o.lcFirst=function(t){return(t[0]||"").toLowerCase()+t.substring(1)},o.newError=e,o.ProtocolError=e("ProtocolError"),o.oneOfGetter=function(t){for(var r={},i=0;i<t.length;++i)r[t[i]]=1;return function(){for(var t=Object.keys(this),i=t.length-1;-1<i;--i)if(1===r[t[i]]&&this[t[i]]!==y&&null!==this[t[i]])return t[i]}},o.oneOfSetter=function(r){return function(t){for(var i=0;i<r.length;++i)r[i]!==t&&delete this[r[i]]}},o.toJSONOptions={longs:String,enums:String,bytes:String,json:!0}},{25:25,26:26,28:28,30:30,32:32,36:36,37:37,long:"long"}],34:[function(t,i,r){var o=/^[a-zA-Z][a-zA-Z0-9+.-]+:\/\//;var h=r.isAbsolute=function(t){return/^(?:\/|\w+:|\\\\\w+)/.test(t)},e=r.normalize=function(t){var i=function(t){if("undefined"==typeof URL||!o.test(t))return null;try{return new URL(t).href}catch(t){return null}}(t);if(i)return i;var i=t.substring(0,2),r="",n=("\\\\"==i&&(r=i,t=t.substring(2)),(t=t.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/")),e=h(t),i="";e&&(i=n.shift()+"/");for(var s=0;s<n.length;)".."===n[s]?0<s&&".."!==n[s-1]?n.splice(--s,2):e?n.splice(s,1):++s:"."===n[s]?n.splice(s,1):++s;return r+i+n.join("/")};r.resolve=function(t,i,r){var n=function(t,i){if("undefined"==typeof URL||!o.test(t)||o.test(i))return null;try{return new URL(i,t).href}catch(t){return null}}(t,i);return n||(r||(i=e(i)),!h(i)&&(t=(t=r?t:e(t)).replace(/(?:\/|^)[^/]+$/,"")).length?e(t+"/"+i):i)}},{}],35:[function(t,i,r){r.numberRe=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,r.typeRefRe=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,r.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)$/},{}],36:[function(t,i,r){i.exports=function(i,r,t){var n=t||8192,e=n>>>1,s=null,o=n;return function(t){if(t<1||e<t)return i(t);n<o+t&&(s=i(n),o=0);t=r.call(s,o,o+=t);return 7&o&&(o=1+(7|o)),t}}},{}],37:[function(t,i,r){var d,v=new TextDecoder("utf-8",{ignoreBOM:!0});try{d=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0})}catch(t){d=v}function b(t,i,r,n){for(var e=i;e<r;){var s,o=t[e++];o<=127?n+=String.fromCharCode(o):192<=o&&o<224?n+=128<=(s=(31&o)<<6|63&t[e++])?String.fromCharCode(s):"�":224<=o&&o<240?n+=2048<=(s=(15&o)<<12|(63&t[e++])<<6|63&t[e++])?String.fromCharCode(s):"�":240<=o&&((o=(7&o)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])<65536||1114111<o?n+="�":n=n+String.fromCharCode(55296+((o-=65536)>>10))+String.fromCharCode(56320+(1023&o)))}return n}function p(t,i,r,n){i=0===r&&n===i.length?i:i.subarray(r,n);return t.decode(i)}r.length=function(t){for(var i,r=0,n=0;n<t.length;++n)(i=t.charCodeAt(n))<128?r+=1:i<2048?r+=2:55296==(64512&i)&&56320==(64512&t.charCodeAt(n+1))?(++n,r+=4):r+=3;return r},r.read=function(t,i,r){if(r-i<1)return"";if(64<=r-i)return p(v,t,i,r);for(var n,e,s,o,h,u,f,c,a="",l=i;l+7<r;l+=8){if(128&((n=t[l])|(e=t[l+1])|(s=t[l+2])|(o=t[l+3])|(h=t[l+4])|(u=t[l+5])|(f=t[l+6])|(c=t[l+7])))return b(t,l,r,a);a+=String.fromCharCode(n,e,s,o,h,u,f,c)}for(;l<r;++l){if(128&(n=t[l]))return b(t,l,r,a);a+=String.fromCharCode(n)}return a},r.readStrict=function(t,i,r){if(r-i<1)return"";if(64<=r-i)return p(d,t,i,r);for(var n,e,s,o,h,u,f,c,a="",l=i;l+7<r;l+=8){if(128&((n=t[l])|(e=t[l+1])|(s=t[l+2])|(o=t[l+3])|(h=t[l+4])|(u=t[l+5])|(f=t[l+6])|(c=t[l+7])))return a+p(d,t,l,r);a+=String.fromCharCode(n,e,s,o,h,u,f,c)}for(;l<r;++l){if(128&(n=t[l]))return a+p(d,t,l,r);a+=String.fromCharCode(n)}return a},r.write=function(t,i,r){for(var n,e,s=r,o=0;o<t.length;++o)(n=t.charCodeAt(o))<128?i[r++]=n:(n<2048?i[r++]=n>>6|192:(55296==(64512&n)&&56320==(64512&(e=t.charCodeAt(o+1)))?(++o,i[r++]=(n=65536+((1023&n)<<10)+(1023&e))>>18|240,i[r++]=n>>12&63|128):i[r++]=n>>12|224,i[r++]=n>>6&63|128),i[r++]=63&n|128);return r-s}},{}],38:[function(t,i,r){i.exports=function(t){var i=u.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=t.oneofsArray,n={};r.length&&i("var p={}");for(var e=0;e<t.fieldsArray.length;++e){var s,o=t.i[e].resolve(),h="m"+u.safeProp(o.name);o.optional&&i("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",h,o.name),o.map?(i("if(!util.isObject(%s))",h)("return%j",f(o,"object"))("var k=Object.keys(%s)",h)("for(var i=0;i<k.length;++i){"),function(t,i,r){switch(i.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":t("if(!util.key32Re.test(%s))",r)("return%j",f(i,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":t("if(!util.key64Re.test(%s))",r)("return%j",f(i,"integer|Long key"));break;case"bool":t("if(!util.key2Re.test(%s))",r)("return%j",f(i,"boolean key"))}}(i,o,"k[i]"),c(i,o,e,h+"[k[i]]")("}")):o.repeated?(i("if(!Array.isArray(%s))",h)("return%j",f(o,"array"))("for(var i=0;i<%s.length;++i){",h),c(i,o,e,h+"[i]")("}")):(o.partOf&&(s=u.safeProp(o.partOf.name),1===n[o.partOf.name]&&i("if(p%s===1)",s)("return%j",o.partOf.name+": multiple values"),n[o.partOf.name]=1,i("p%s=1",s)),c(i,o,e,h)),o.optional&&i("}")}return i("return null")};var h=t(5),u=t(24);function f(t,i){return t.name+": "+i+(t.repeated&&"array"!==i?"[]":t.map&&"object"!==i?"{k:"+t.keyType+"}":"")+" expected"}function c(t,i,r,n){var e=i.resolvedType;if(e)if(e instanceof h)if("CLOSED"===e.t.enum_type){t("switch(%s){",n)("default:")("return%j",f(i,"enum value"));for(var s=Object.keys(e.values),o=0;o<s.length;++o)t("case %i:",e.values[s[o]]);t("break")("}")}else t('if(typeof %s!=="number"||(%s|0)!==%s)',n,n,n)("return%j",f(i,"enum value"));else t("{")("var e=types[%i].verify(%s,q+1);",r,n)("if(e)")("return%j+e",i.name+".")("}");else switch(i.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":t("if(!util.isInteger(%s))",n)("return%j",f(i,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":t("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",n,n,n,n)("return%j",f(i,"integer|Long"));break;case"float":case"double":t('if(typeof %s!=="number")',n)("return%j",f(i,"number"));break;case"bool":t('if(typeof %s!=="boolean")',n)("return%j",f(i,"boolean"));break;case"string":t("if(!util.isString(%s))",n)("return%j",f(i,"string"));break;case"bytes":t('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',n,n,n)("return%j",f(i,"buffer"))}return t}},{24:24,5:5}],39:[function(t,i,r){var h=t(10),u=t(33);r[".google.protobuf.Any"]={fromObject:function(t,i){if(t&&t["@type"]){var r,n=t["@type"].substring(1+t["@type"].lastIndexOf("/")),n=this.lookup(n,[this.constructor]);if(n)return~(r="."==(t["@type"][0]||"")?t["@type"].slice(1):t["@type"]).indexOf("/")||(r="/"+r),this.create({type_url:r,value:n.encode(n.fromObject(t,i===y?1:i+1)).finish()})}return this.fromObject(t,i)},toObject:function(t,i,r){if((r=r===y?0:r)>u.recursionLimit)throw Error("max depth exceeded");var n,e,s="",o="";return i&&i.json&&t.type_url&&t.value&&(o=t.type_url.substring(1+t.type_url.lastIndexOf("/")),s=t.type_url.substring(0,1+t.type_url.lastIndexOf("/")),(n=this.lookup(o,[this.constructor]))&&(t=n.decode(t.value,y,y,r+1))),!(t instanceof this.ctor)&&t instanceof h?(n=t.$type.toObject(t,i,r+1),e="."===t.$type.fullName[0]?t.$type.fullName.slice(1):t.$type.fullName,n["@type"]=o=(s=""===s?"type.googleapis.com/":s)+e,n):this.toObject(t,i,r)}}},{10:10,33:33}],40:[function(t,i,r){i.exports=s;var n,h=t(33),u=h.LongBits,e=h.base64,o=h.utf8;function s(){this.pos=0,this.buf=this.constructor.alloc(64),this.view=null,this.states=null}Object.defineProperty(s.prototype,"len",{configurable:!0,enumerable:!0,get:function(){return this.pos}});function f(){return h.Buffer?function(){return(s.create=function(){return new n})()}:function(){return new s}}function c(t){return t<128?1:t<16384?2:t<2097152?3:t<268435456?4:5}function a(t,i,r){for(;127<t;)i[r++]=127&t|128,t>>>=7;return i[r]=t,r+1}function l(t,i,r){for(var n=t.lo,e=t.hi;e;)i[r++]=127&n|128,n=(n>>>7|e<<25)>>>0,e>>>=7;for(;127<n;)i[r++]=127&n|128,n>>>=7;return i[r]=n,r+1}function d(t,i,r){i[r]=255&t,i[r+1]=t>>>8&255,i[r+2]=t>>>16&255,i[r+3]=t>>>24}s.create=f(),s.alloc=h.pool(s.alloc=function(t){return new Uint8Array(t)},Uint8Array.prototype.subarray),s.prototype.T=function(t){var i,t=this.pos+t;t>this.buf.length&&(i=this.buf.length<<1,(t=this.constructor.alloc(i=i<t?t:i)).set(this.buf.subarray(0,this.pos),0),this.buf=t,this.view=null)},s.prototype.uint32=function(t){t>>>=0,this.T(5);var i=this.pos;return this.pos=a(t,this.buf,i),this},s.prototype.int32=function(t){return(t|=0)<0?(this.T(10),l(u.fromNumber(t),this.buf,this.pos),this.pos+=10,this):this.uint32(t)},s.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},s.prototype.int64=s.prototype.uint64=function(t){var t=u.from(t),i=(this.T(10),this.pos);return this.pos=l(t,this.buf,i),this},s.prototype.sint64=function(t){var t=u.from(t).zzEncode(),i=(this.T(10),this.pos);return this.pos=l(t,this.buf,i),this},s.prototype.bool=function(t){return this.T(1),this.buf[this.pos++]=t?1:0,this},s.prototype.sfixed32=s.prototype.fixed32=function(t){return this.T(4),d(t>>>0,this.buf,this.pos),this.pos+=4,this},s.prototype.sfixed64=s.prototype.fixed64=function(t){t=u.from(t);return this.T(8),d(t.lo,this.buf,this.pos),d(t.hi,this.buf,this.pos+4),this.pos+=8,this},s.prototype.float=function(t){return this.T(4),h.float.writeFloatLE(t,this.buf,this.pos),this.pos+=4,this},s.prototype.double=function(t){return this.T(8),h.float.writeDoubleLE(t,this.buf,this.pos),this.pos+=8,this},s.prototype.bytes=function(t){var i,r=t.length>>>0;return r?(h.isString(t)&&(i=s.alloc(r=e.length(t)),e.decode(t,i,0),t=i),this.uint32(r),this.T(r),this.buf.set(t,this.pos),this.pos+=r):(this.T(1),this.buf[this.pos++]=0),this},s.prototype.raw=function(t){var i=t.length>>>0;return i&&(this.T(i),this.buf.set(t,this.pos),this.pos+=i),this},s.prototype.L=function(t,i){var r=c(i);return 1<r&&this.buf.copyWithin(t+r,t+1,t+1+i),a(i,this.buf,t),this.pos=t+r+i,this},s.prototype.string=function(t){var i=t.length;if(i){if(i<128)return this.T(3*i+5),i=this.pos,this.L(i,o.write(t,this.buf,i+1));i=o.length(t);if(this.uint32(i),this.T(i),i===t.length)for(var r=t,n=this.buf,e=this.pos,s=0;s<r.length;)n[e++]=r.charCodeAt(s++);else o.write(t,this.buf,this.pos);this.pos+=i}else this.T(1),this.buf[this.pos++]=0;return this},s.prototype.uint32s=function(t){for(var i=t.length,r=(this.T(5*i+5),this.buf),n=this.pos,e=n+1,s=0;s<i;++s)e=a(t[s]>>>0,r,e);return this.L(n,e-n-1)},s.prototype.int32s=function(t){for(var i,r=t.length,n=(this.T(10*r+5),this.buf),e=this.pos,s=e+1,o=0;o<r;++o)s=(i=0|t[o])<0?l(u.fromNumber(i),n,s):a(i,n,s);return this.L(e,s-e-1)},s.prototype.sint32s=function(t){for(var i=t.length,r=(this.T(5*i+5),this.buf),n=this.pos,e=n+1,s=0;s<i;++s)e=a((t[s]<<1^t[s]>>31)>>>0,r,e);return this.L(n,e-n-1)},s.prototype.int64s=s.prototype.uint64s=function(t){for(var i=t.length,r=(this.T(10*i+5),this.buf),n=this.pos,e=n+1,s=0;s<i;++s)e=l(u.from(t[s]),r,e);return this.L(n,e-n-1)},s.prototype.sint64s=function(t){for(var i=t.length,r=(this.T(10*i+5),this.buf),n=this.pos,e=n+1,s=0;s<i;++s)e=l(u.from(t[s]).zzEncode(),r,e);return this.L(n,e-n-1)},s.prototype.bools=function(t){for(var i=t.length,r=(this.uint32(i),this.T(i),this.buf),n=this.pos,e=0;e<i;++e)r[n++]=t[e]?1:0;return this.pos+=i,this};function v(t,i,r){var n=t.view;return n||i<r?n:(i=t.buf,t.view=new DataView(i.buffer,i.byteOffset,i.byteLength))}s.prototype.sfixed32s=s.prototype.fixed32s=function(t){var i=t.length,r=4*i,n=(this.uint32(r),this.T(r),this.pos),e=v(this,i,128);if(e)for(o=0;o<i;++o)e.setUint32(n,t[o]>>>0,!0),n+=4;else for(var s=this.buf,o=0;o<i;++o)d(t[o]>>>0,s,n),n+=4;return this.pos+=r,this},s.prototype.sfixed64s=s.prototype.fixed64s=function(t){var i,r=t.length,n=8*r,e=(this.uint32(n),this.T(n),this.pos),s=v(this,r,128);if(s)for(h=0;h<r;++h)i=u.from(t[h]),s.setUint32(e,i.lo,!0),s.setUint32(e+4,i.hi,!0),e+=8;else for(var o=this.buf,h=0;h<r;++h)d((i=u.from(t[h])).lo,o,e),d(i.hi,o,e+4),e+=8;return this.pos+=n,this},s.prototype.floats=function(t){var i=t.length,r=4*i,n=(this.uint32(r),this.T(r),this.pos),e=v(this,i,16);if(e)for(o=0;o<i;++o)e.setFloat32(n,t[o],!0),n+=4;else for(var s=this.buf,o=0;o<i;++o)h.float.writeFloatLE(t[o],s,n),n+=4;return this.pos+=r,this},s.prototype.doubles=function(t){var i=t.length,r=8*i,n=(this.uint32(r),this.T(r),this.pos),e=v(this,i,16);if(e)for(o=0;o<i;++o)e.setFloat64(n,t[o],!0),n+=8;else for(var s=this.buf,o=0;o<i;++o)h.float.writeDoubleLE(t[o],s,n),n+=8;return this.pos+=r,this},s.prototype.fork=function(){return this.T(1),(this.states||(this.states=[])).push(this.pos),this.pos+=1,this},s.prototype.reset=function(){var t=this.states;return t&&t.length?this.pos=t.pop():this.pos=0,this},s.prototype.ldelim=function(){var t,i,r=this.states;return r&&r.length?(r=r.pop(),1<(i=c(t=this.pos-r-1))?(this.T(i-1),this.buf.copyWithin(r+i,r+1,r+1+t),this.pos+=i-1,a(t,this.buf,r)):this.buf[r]=t):(i=c(t=this.pos),this.T(i),this.buf.copyWithin(i,0,t),a(t,this.buf,0),this.pos+=i),this},s.prototype.finish=function(t){return t?this.buf.subarray(0,this.pos):((t=this.constructor.alloc(this.pos)).set(this.buf.subarray(0,this.pos),0),t)},s.prototype.finishInto=function(t,i){return i===y&&(i=0),t.set(this.buf.subarray(0,this.pos),i),t},s.f=function(t){n=t,s.create=f(),n.f()}},{33:33}],41:[function(t,i,r){i.exports=o;var e,n=t(40),s=(o.prototype=Object.create(n.prototype,{constructor:{value:o,writable:!0,enumerable:!1,configurable:!0}}),t(33));function o(){n.call(this)}o.f=function(){o.alloc=s.Buffer&&s.Buffer.allocUnsafe,e=s.Buffer&&s.Buffer.prototype.utf8Write?function(t,i,r){return i.utf8Write(t,r)}:function(t,i,r){return i.write(t,r)}},o.prototype.bytes=function(t){var i=(t=s.isString(t)?s.Buffer.from(t,"base64"):t).length>>>0;return this.uint32(i),i&&(this.T(i),this.buf.set(t,this.pos),this.pos+=i),this},o.prototype.string=function(t){var i,r,n=t.length;if(n){if(n<128)return this.T(3*n+5),i=this.pos,r=this.buf,this.L(i,n<40?s.utf8.write(t,r,i+1):e(t,r,i+1));n=s.Buffer.byteLength(t);this.uint32(n),this.T(n),e(t,this.buf,this.pos),this.pos+=n}else this.T(1),this.buf[this.pos++]=0;return this},o.f()},{33:33,40:40}]},e={},(i=function t(i){var r=e[i];return r||n[i][0].call(r=e[i]={exports:{}},t,r,r.exports),r.exports}([7][0])).util.global.protobuf=i,"function"==typeof define&&define.amd&&define(["long"],function(t){return t&&t.isLong&&(i.util.Long=t,i.configure()),i}),"object"==typeof module&&module&&module.exports&&(module.exports=i)}();
8
8
  //# sourceMappingURL=protobuf.min.js.map