/
protobuf.min.js
9 lines (9 loc) · 57.2 KB
/
protobuf.min.js
1
2
3
4
5
6
7
8
9
/*!
* protobuf.js v6.3.0 (c) 2016 Daniel Wirtz
* Compiled Tue, 20 Dec 2016 16:44:00 UTC
* Licensed under the Apache License, Version 2.0
* see: https://github.com/dcodeIO/protobuf.js for details
*/
!function t(e,n,r){function i(o,u){if(!n[o]){if(!e[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(s)return s(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var h=n[o]={exports:{}};e[o][0].call(h.exports,function(t){var n=e[o][1][t];return i(n?n:t)},h,h.exports,t,e,n,r)}return n[o].exports}for(var s="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(t,e,n){n.read=function(t,e,n,r,i){var s,o,u=8*i-r-1,a=(1<<u)-1,f=a>>1,h=-7,l=n?0:i-1,c=n?1:-1,d=t[e+l];for(l+=c,s=d&(1<<-h)-1,d>>=-h,h+=u;h>0;s=256*s+t[e+l],l+=c,h-=8);for(o=s&(1<<-h)-1,s>>=-h,h+=r;h>0;o=256*o+t[e+l],l+=c,h-=8);if(0===s)s=1-f;else{if(s===a)return o?NaN:(d?-1:1)*(1/0);o+=Math.pow(2,r),s-=f}return(d?-1:1)*o*Math.pow(2,s-r)},n.write=function(t,e,n,r,i,s){var o,u,a,f=8*s-i-1,h=(1<<f)-1,l=h>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?s-1:0,p=r?-1:1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-o))<1&&(o--,a*=2),e+=o+l>=1?c/a:c*Math.pow(2,1-l),e*a>=2&&(o++,a/=2),o+l>=h?(u=0,o=h):o+l>=1?(u=(e*a-1)*Math.pow(2,i),o+=l):(u=e*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[n+d]=255&u,d+=p,u/=256,i-=8);for(o=o<<i|u,f+=i;f>0;t[n+d]=255&o,d+=p,o/=256,f-=8);t[n+d-p]|=128*v}},{}],2:[function(t,e,n){"use strict";function r(t,e){for(var n=[],r=2;r<arguments.length;)n.push(arguments[r++]);var i=!0;return new Promise(function(r,s){n.push(function(t){if(i)if(i=!1,t)s(t);else{for(var e=[],n=1;n<arguments.length;)e.push(arguments[n++]);r.apply(null,e)}});try{t.apply(e||this,n)}catch(t){i&&(i=!1,s(t))}})}e.exports=r},{}],3:[function(t,e,n){"use strict";var r=n;r.length=function(t){var e=t.length;if(!e)return 0;for(var n=0;--e%4>1&&"="===t.charAt(e);)++n;return Math.ceil(3*t.length)/4-n};for(var i=new Array(64),s=new Array(123),o=0;o<64;)s[i[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;r.encode=function(t,e,n){for(var r,s=[],o=0,u=0;e<n;){var a=t[e++];switch(u){case 0:s[o++]=i[a>>2],r=(3&a)<<4,u=1;break;case 1:s[o++]=i[r|a>>4],r=(15&a)<<2,u=2;break;case 2:s[o++]=i[r|a>>6],s[o++]=i[63&a],u=0}}return u&&(s[o++]=i[r],s[o]=61,1===u&&(s[o+1]=61)),String.fromCharCode.apply(String,s)};var u="invalid encoding";r.decode=function(t,e,n){for(var r,i=n,o=0,a=0;a<t.length;){var f=t.charCodeAt(a++);if(61===f&&o>1)break;if(void 0===(f=s[f]))throw Error(u);switch(o){case 0:r=f,o=1;break;case 1:e[n++]=r<<2|(48&f)>>4,r=f,o=2;break;case 2:e[n++]=(15&r)<<4|(60&f)>>2,r=f,o=3;break;case 3:e[n++]=(3&r)<<6|f,o=0}}if(1===o)throw Error(u);return n-i}},{}],4:[function(t,e,n){"use strict";function r(){function t(){for(var e=[],n=0;n<arguments.length;)e.push(arguments[n++]);var r=i.apply(null,e),h=c;if(l.length){var p=l[l.length-1];s.test(p)?h=++c:a.test(p)&&++h,u.test(p)&&!u.test(r)?(h=++c,d=!0):d&&f.test(p)&&(h=--c,d=!1),o.test(r)&&(h=--c)}for(n=0;n<h;++n)r="\t"+r;return l.push(r),t}function e(t){return"function "+(t?t.replace(/[^\w_$]/g,"_"):"")+"("+h.join(", ")+") {\n"+l.join("\n")+"\n}"}function n(e,n){"object"==typeof e&&(n=e,e=void 0);var i=t.str(e);r.verbose&&console.log("--- codegen ---\n"+i.replace(/^/gm,"> ").replace(/\t/g," "));var s=Object.keys(n||(n={}));return Function.apply(null,s.concat("return "+i)).apply(null,s.map(function(t){return n[t]}))}for(var h=[],l=[],c=1,d=!1,p=0;p<arguments.length;)h.push(arguments[p++]);return t.str=e,t.eof=n,t}function i(t){for(var e=[],n=1;n<arguments.length;)e.push(arguments[n++]);return n=0,t.replace(/%([djs])/g,function(t,r){var i=e[n++];switch(r){case"j":return JSON.stringify(i);default:return String(i)}})}e.exports=r;var s=/[{[]$/,o=/^[}\]]/,u=/:$/,a=/^\s*(?:if|else if|while|for)\b|\b(?:else)\s*$/,f=/\b(?:break|continue);?$|^\s*return\b/;r.supported=!1;try{r.supported=1===r("a","b")("return a-b").eof()(2,1)}catch(t){}r.verbose=!1},{}],5:[function(t,e,n){"use strict";function r(){this.a={}}e.exports=r;var i=r.prototype;i.on=function(t,e,n){return(this.a[t]||(this.a[t]=[])).push({fn:e,ctx:n||this}),this},i.off=function(t,e){if(void 0===t)this.a={};else if(void 0===e)this.a[t]=[];else for(var n=this.a[t],r=0;r<n.length;)n[r].fn===e?n.splice(r,1):++r;return this},i.emit=function(t){var e=this.a[t];if(e){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<e.length;)e[r].fn.apply(e[r++].ctx,n)}return this}},{}],6:[function(t,e,n){"use strict";function r(t){for(var e=Object.keys(this),n=0;n<e.length;++n)t[e[n]]=this[e[n]];var r=t.prototype=Object.create(this.prototype);return r.constructor=t,r}e.exports=r},{}],7:[function(t,e,n){"use strict";function r(t,e){return e?u&&u.readFile?u.readFile(t,"utf8",function(n,r){return n&&"undefined"!=typeof XMLHttpRequest?i(t,e):e(n,r)}):i(t,e):s(r,this,t)}function i(t,e){var n=new XMLHttpRequest;n.onreadystatechange=function(){return 4===n.readyState?0===n.status||200===n.status?e(null,n.responseText):e(Error("status "+n.status)):void 0},n.open("GET",t),n.send()}e.exports=r;var s=t(2),o=t(8),u=o("fs")},{2:2,8:8}],8:[function(require,module,exports){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(t){}return null}module.exports=inquire},{}],9:[function(t,e,n){"use strict";var r=n,i=r.isAbsolute=function(t){return/^(?:\/|\w+:)/.test(t)},s=r.normalize=function(t){t=t.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var e=t.split("/"),n=i(t),r="";n&&(r=e.shift()+"/");for(var s=0;s<e.length;)".."===e[s]?s>0?e.splice(--s,2):n?e.splice(s,1):++s:"."===e[s]?e.splice(s,1):++s;return r+e.join("/")};r.resolve=function(t,e,n){return n||(e=s(e)),i(e)?e:(n||(t=s(t)),(t=t.replace(/(?:\/|^)[^\/]+$/,"")).length?s(t+"/"+e):e)}},{}],10:[function(t,e,n){"use strict";function r(t,e,n){var r=n||8192,i=r>>>1,s=null,o=r;return function(n){if(n<1||n>i)return t(n);o+n>r&&(s=t(r),o=0);var u=e.call(s,o,o+=n);return 7&o&&(o=(7|o)+1),u}}e.exports=r},{}],11:[function(t,e,n){"use strict";var r=n;r.length=function(t){for(var e=0,n=0,r=0;r<t.length;++r)n=t.charCodeAt(r),n<128?e+=1:n<2048?e+=2:55296===(64512&n)&&56320===(64512&t.charCodeAt(r+1))?(++r,e+=4):e+=3;return e},r.read=function(t,e,n){var r=n-e;if(r<1)return"";for(var i,s=[],o=[],u=0;e<n;)i=t[e++],i<128?o[u++]=i:i>191&&i<224?o[u++]=(31&i)<<6|63&t[e++]:i>239&&i<365?(i=((7&i)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,o[u++]=55296+(i>>10),o[u++]=56320+(1023&i)):o[u++]=(15&i)<<12|(63&t[e++])<<6|63&t[e++],u>8191&&(s.push(String.fromCharCode.apply(String,o)),u=0);return u&&s.push(String.fromCharCode.apply(String,o.slice(0,u))),s.join("")},r.write=function(t,e,n){for(var r,i,s=n,o=0;o<t.length;++o)r=t.charCodeAt(o),r<128?e[n++]=r:r<2048?(e[n++]=r>>6|192,e[n++]=63&r|128):55296===(64512&r)&&56320===(64512&(i=t.charCodeAt(o+1)))?(r=65536+((1023&r)<<10)+(1023&i),++o,e[n++]=r>>18|240,e[n++]=r>>12&63|128,e[n++]=r>>6&63|128,e[n++]=63&r|128):(e[n++]=r>>12|224,e[n++]=r>>6&63|128,e[n++]=63&r|128);return n-s}},{}],12:[function(t,e,n){"use strict";function r(t){return i(t)}function i(e,n){if(s||(s=t(32)),!(e instanceof s))throw a("type","a Type");if(n){if("function"!=typeof n)throw a("ctor","a function")}else n=function(t){return function(e){t.call(this,e)}}(o);n.constructor=r;var i=n.prototype=new o;return i.constructor=n,u.merge(n,o,!0),n.$type=e,i.$type=e,e.getFieldsArray().forEach(function(t){i[t.name]=Array.isArray(t.resolve().defaultValue)?u.emptyArray:u.isObject(t.defaultValue)?u.emptyObject:t.defaultValue}),e.getOneofsArray().forEach(function(t){u.prop(i,t.resolve().name,{get:function(){for(var e=Object.keys(this),n=e.length-1;n>-1;--n)if(t.oneof.indexOf(e[n])>-1)return e[n]},set:function(e){for(var n=t.oneof,r=0;r<n.length;++r)n[r]!==e&&delete this[n[r]]}})}),e.setCtor(n),i}e.exports=r;var s,o=t(19),u=t(34),a=u.b;r.create=i,r.prototype=o},{19:19,32:32,34:34}],13:[function(t,e,n){"use strict";function r(t,e){/\/|\./.test(t)||(t="google/protobuf/"+t+".proto",e={nested:{google:{nested:{protobuf:{nested:e}}}}}),r[t]=e}e.exports=r,r("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}});var i;r("duration",{Duration:i={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),r("timestamp",{Timestamp:i}),r("empty",{Empty:{fields:{}}}),r("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}})},{}],14:[function(t,e,n){"use strict";function r(t){var e=t.getFieldsArray(),n=o.codegen("r","l")("r instanceof Reader||(r=Reader.create(r))")("var c=l===undefined?r.len:r.pos+l,m=new(this.getCtor())")("while(r.pos<c){")("var t=r.uint32()");t.group&&n("if((t&7)===4)")("break"),n("switch(t>>>3){");for(var r=0;r<e.length;++r){var u=e[r].resolve(),a=u.resolvedType instanceof i?"uint32":u.type,f=o.safeProp(u.name);if(n("case %d:",u.id),u.map){var h=u.resolvedKeyType?"uint32":u.keyType;n("r.skip().pos++")("if(m%s===util.emptyObject)",f)("m%s={}",f)("var k=r.%s()",h)('if(typeof k==="object")')("k=util.longToHash(k)")("r.pos++"),void 0===s.basic[a]?n("m%s[k]=types[%d].decode(r,r.uint32())",f,r):n("m%s[k]=r.%s()",f,a)}else u.repeated?(n("m%s&&m%s.length?m%s:m%s=[]",f,f,f,f),u.packed&&void 0!==s.packed[a]&&n("if((t&7)===2){")("var e=r.uint32()+r.pos")("while(r.pos<e)")("m%s.push(r.%s())",f,a)("}else"),void 0===s.basic[a]?n(u.resolvedType.group?"m%s.push(types[%d].decode(r))":"m%s.push(types[%d].decode(r,r.uint32()))",f,r):n("m%s.push(r.%s())",f,a)):void 0===s.basic[a]?n(u.resolvedType.group?"m%s=types[%d].decode(r)":"m%s=types[%d].decode(r,r.uint32())",f,r):n("m%s=r.%s()",f,a);n("break")}return n("default:")("r.skipType(t&7)")("break")("}")("}")("return m")}e.exports=r;var i=t(16),s=t(33),o=t(34)},{16:16,33:33,34:34}],15:[function(t,e,n){"use strict";function r(t,e,n,r,i){return e.resolvedType.group?t("types[%d].encode(%s,w.uint32(%d)).uint32(%d)",n,r,(e.id<<3|3)>>>0,(e.id<<3|4)>>>0):i||e.required?t("types[%d].encode(%s,w.uint32(%d).fork()).ldelim()",n,r,(e.id<<3|2)>>>0):t("types[%d].encode(%s,w.fork()).len&&w.ldelim(%d)||w.reset()",n,r,e.id)}function i(t){for(var e,n=t.getFieldsArray(),i=t.getOneofsArray(),f=u.codegen("m","w")("w||(w=Writer.create())"),e=0;e<n.length;++e){var h=n[e].resolve(),l=h.resolvedType instanceof s?"uint32":h.type,c=o.basic[l],d=a(h.name);if(h.map){var p=h.resolvedKeyType?"uint32":h.keyType;f("if(m%s&&m%s!==util.emptyObject){",d,d)("for(var ks=Object.keys(m%s),i=0;i<ks.length;++i){",d)("w.uint32(%d).fork().uint32(%d).%s(ks[i])",(h.id<<3|2)>>>0,8|o.mapKey[p],p),void 0===c?f("types[%d].encode(m%s[ks[i]],w.uint32(18).fork()).ldelim()",e,d):f("w.uint32(%d).%s(m%s[ks[i]])",16|c,l,d),f("w.ldelim()")("}")("}")}else h.repeated?h.packed&&void 0!==o.packed[l]?f("if(m%s&&m%s.length){",d,d)("w.uint32(%d).fork()",(h.id<<3|2)>>>0)("for(var i=0;i<m%s.length;++i)",d)("w.%s(m%s[i])",l,d)("w.ldelim()",h.id)("}"):(f("if(m%s)",d)("for(var i=0;i<m%s.length;++i)",d),void 0===c?r(f,h,e,"m"+d+"[i]",!0):f("w.uint32(%d).%s(m%s[i])",(h.id<<3|c)>>>0,l,d)):h.partOf||(h.required||(h.long?f("if(m%s!==undefined&&util.longNe(m%s,%d,%d))",d,d,h.defaultValue.low,h.defaultValue.high):f("if(m%s!==undefined&&m%s!==%j)",d,d,h.defaultValue)),void 0===c?r(f,h,e,"m"+d):f("w.uint32(%d).%s(m%s)",(h.id<<3|c)>>>0,l,d))}for(var e=0;e<i.length;++e){var v=i[e],d=a(v.name);f("switch(m%s){",d);for(var y=v.getFieldsArray(),m=0;m<y.length;++m){var h=y[m],l=h.resolvedType instanceof s?"uint32":h.type,c=o.basic[l],d=a(h.name);f("case%j:",h.name),void 0===c?r(f,h,n.indexOf(h),"m"+d):f("w.uint32(%d).%s(m%s)",(h.id<<3|c)>>>0,l,d),f("break;")}f("}")}return f("return w")}e.exports=i;var s=t(16),o=t(33),u=t(34),a=u.safeProp},{16:16,33:33,34:34}],16:[function(t,e,n){"use strict";function r(t,e,n){s.call(this,t,n),this.values=e||{},this.c=null}function i(t){return t.c=null,t}e.exports=r;var s=t(22),o=s.extend(r);r.className="Enum";var u=t(34),a=u.b;u.props(o,{valuesById:{get:function(){return this.c||(this.c={},Object.keys(this.values).forEach(function(t){var e=this.values[t];if(this.c[e])throw Error("duplicate id "+e+" in "+this);this.c[e]=t},this)),this.c}}}),r.testJSON=function(t){return Boolean(t&&t.values)},r.fromJSON=function(t,e){return new r(t,e.values,e.options)},o.toJSON=function(){return{options:this.options,values:this.values}},o.add=function(t,e){if(!u.isString(t))throw a("name");if(!u.isInteger(e)||e<0)throw a("id","a non-negative integer");if(void 0!==this.values[t])throw Error("duplicate name '"+t+"' in "+this);if(void 0!==this.getValuesById()[e])throw Error("duplicate id "+e+" in "+this);return this.values[t]=e,i(this)},o.remove=function(t){if(!u.isString(t))throw a("name");if(void 0===this.values[t])throw Error("'"+t+"' is not a name of "+this);return delete this.values[t],i(this)}},{22:22,34:34}],17:[function(t,e,n){"use strict";function r(t,e,n,r,s,o){if(l.isObject(r)?(o=r,r=s=void 0):l.isObject(s)&&(o=s,s=void 0),i.call(this,t,o),!l.isInteger(e)||e<0)throw c("id","a non-negative integer");if(!l.isString(n))throw c("type");if(void 0!==s&&!l.isString(s))throw c("extend");if(void 0!==r&&!/^required|optional|repeated$/.test(r=r.toString().toLowerCase()))throw c("rule","a valid rule string");this.rule=r&&"optional"!==r?r:void 0,this.type=n,this.id=e,this.extend=s||void 0,this.required="required"===r,this.optional=!this.required,this.repeated="repeated"===r,this.map=!1,this.message=null,this.partOf=null,this.defaultValue=null,this.long=!!l.Long&&void 0!==h.long[n],this.bytes="bytes"===n,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.d=null}e.exports=r;var i=t(22),s=i.extend(r);r.className="Field";var o,u,a=t(19),f=t(16),h=t(33),l=t(34),c=l.b;l.props(s,{packed:{get:s.isPacked=function(){return null===this.d&&(this.d=this.getOption("packed")!==!1),this.d}}}),s.setOption=function(t,e,n){return"packed"===t&&(this.d=null),i.prototype.setOption.call(this,t,e,n)},r.testJSON=function(t){return Boolean(t&&void 0!==t.id)},r.fromJSON=function(e,n){return void 0!==n.keyType?(u||(u=t(18)),u.fromJSON(e,n)):new r(e,n.id,n.type,n.rule,n.extend,n.options)},s.toJSON=function(){return{rule:"optional"!==this.rule&&this.rule||void 0,type:this.type,id:this.id,extend:this.extend,options:this.options}},s.resolve=function(){if(this.resolved)return this;var e=h.defaults[this.type];if(void 0===e)if(o||(o=t(32)),this.resolvedType=this.parent.lookup(this.type,o))e=null;else{if(!(this.resolvedType=this.parent.lookup(this.type,f)))throw Error("unresolvable field type: "+this.type);e=0}var n;return this.map?this.defaultValue={}:this.repeated?this.defaultValue=[]:this.options&&void 0!==(n=this.options.default)?this.defaultValue=n:this.defaultValue=e,this.long&&(this.defaultValue=l.Long.fromValue(this.defaultValue)),i.prototype.resolve.call(this)},s.jsonConvert=function(t,e){if(e){if(t instanceof a)return t.asJSON(e);if(this.resolvedType instanceof f&&e.enum===String)return this.resolvedType.getValuesById()[t];if(e.long&&this.long)return e.long===Number?"number"==typeof t?t:l.LongBits.from(t).toNumber("u"===this.type.charAt(0)):l.Long.fromValue(t,"u"===this.type.charAt(0)).toString();if(e.bytes&&this.bytes){if(e.bytes===String)return l.base64.encode(t,0,t.length);if(e.bytes===Array)return Array.prototype.slice.call(t);if(e.bytes===l.Buffer&&!l.Buffer.isBuffer(t))return l.Buffer.from?l.Buffer.from(t):new l.Buffer(t)}}return t}},{16:16,18:18,19:19,22:22,32:32,33:33,34:34}],18:[function(t,e,n){"use strict";function r(t,e,n,r,s){if(i.call(this,t,e,r,s),!a.isString(n))throw a.b("keyType");this.keyType=n,this.resolvedKeyType=null,this.map=!0}e.exports=r;var i=t(17),s=i.prototype,o=i.extend(r);r.className="MapField";var u=t(33),a=t(34);r.testJSON=function(t){return i.testJSON(t)&&void 0!==t.keyType},r.fromJSON=function(t,e){return new r(t,e.id,e.keyType,e.type,e.options)},o.toJSON=function(){return{keyType:this.keyType,type:this.type,id:this.id,extend:this.extend,options:this.options}},o.resolve=function(){if(this.resolved)return this;if(void 0===u.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return s.resolve.call(this)}},{17:17,33:33,34:34}],19:[function(t,e,n){"use strict";function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)this[e[n]]=t[e[n]]}e.exports=r;var i=r.prototype;i.asJSON=function(t){t||(t={});for(var e,n=this.$type.fields,r={},i=Object.keys(t.defaults?n:this),s=0;s<i.length;++s){var o=n[e=i[s]],u=this[e];if(o)if(o.repeated){if(u&&(u.length||t.defaults)){r[e]=[];for(var a=0,f=u.length;a<f;++a)r[e].push(o.jsonConvert(u[a],t))}}else r[e]=o.jsonConvert(u,t);else t.fieldsOnly||(r[e]=u)}return r},r.encode=function(t,e){return this.$type.encode(t,e)},r.encodeDelimited=function(t,e){return this.$type.encodeDelimited(t,e)},r.decode=function(t){return this.$type.decode(t)},r.decodeDelimited=function(t){return this.$type.decodeDelimited(t)},r.verify=function(t){return this.$type.verify(t)}},{}],20:[function(t,e,n){"use strict";function r(t,e,n,r,s,o,f){if(u.isObject(s)?(f=s,s=o=void 0):u.isObject(o)&&(f=o,o=void 0),e&&!u.isString(e))throw a("type");if(!u.isString(n))throw a("requestType");if(!u.isString(r))throw a("responseType");i.call(this,t,f),this.type=e||"rpc",this.requestType=n,this.requestStream=!!s||void 0,this.responseType=r,this.responseStream=!!o||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null}e.exports=r;var i=t(22),s=i.extend(r);r.className="Method";var o=t(32),u=t(34),a=u.b;r.testJSON=function(t){return Boolean(t&&void 0!==t.requestType)},r.fromJSON=function(t,e){return new r(t,e.type,e.requestType,e.responseType,e.requestStream,e.responseStream,e.options)},s.toJSON=function(){return{type:"rpc"!==this.type&&this.type||void 0,requestType:this.requestType,requestStream:this.requestStream||void 0,responseType:this.responseType,responseStream:this.responseStream||void 0,options:this.options}},s.resolve=function(){if(this.resolved)return this;if(!(this.resolvedRequestType=this.parent.lookup(this.requestType,o)))throw Error("unresolvable request type: "+this.requestType);if(!(this.resolvedResponseType=this.parent.lookup(this.responseType,o)))throw Error("unresolvable response type: "+this.requestType);return i.prototype.resolve.call(this)}},{22:22,32:32,34:34}],21:[function(t,e,n){"use strict";function r(){f||(f=t(32)),h||(h=t(30)),l=[d,f,h,p,i],c="one of "+l.map(function(t){return t.name}).join(", ")}function i(t,e){u.call(this,t,e),this.nested=void 0,this.e=null,this.f=[]}function s(t){t.e=null;for(var e=0;e<t.f.length;++e)delete t[t.f[e]];return t.f=[],t}function o(t){if(t&&t.length){for(var e={},n=0;n<t.length;++n)e[t[n].name]=t[n].toJSON();return e}}e.exports=i;var u=t(22),a=u.extend(i);i.className="Namespace";var f,h,l,c,d=t(16),p=t(17),v=t(34),y=v.b;v.props(a,{nestedArray:{get:function(){return this.e||(this.e=v.toArray(this.nested))}}}),i.testJSON=function(t){return Boolean(t&&!t.fields&&!t.values&&void 0===t.id&&!t.oneof&&!t.methods&&void 0===t.requestType)},i.fromJSON=function(t,e){return new i(t,e.options).addJSON(e.nested)},a.toJSON=function(){return{options:this.options,nested:o(this.getNestedArray())}},i.arrayToJSON=o,a.addJSON=function(t){var e=this;return t&&(l||r(),Object.keys(t).forEach(function(n){for(var r=t[n],i=0;i<l.length;++i)if(l[i].testJSON(r))return e.add(l[i].fromJSON(n,r));throw y("nested."+n,"JSON for "+c)})),this},a.get=function(t){return void 0===this.nested?null:this.nested[t]||null},a.getEnum=function(t){if(this.nested&&this.nested[t]instanceof d)return this.nested[t].values;throw Error("no such enum")},a.add=function(t){if(l||r(),!t||l.indexOf(t.constructor)<0)throw y("object",c);if(t instanceof p&&void 0===t.extend)throw y("object","an extension field when not part of a type");if(this.nested){var e=this.get(t.name);if(e){if(!(e instanceof i&&t instanceof i)||e instanceof f||e instanceof h)throw Error("duplicate name '"+t.name+"' in "+this);for(var n=e.getNestedArray(),o=0;o<n.length;++o)t.add(n[o]);this.remove(e),this.nested||(this.nested={}),t.setOptions(e.options,!0)}}else this.nested={};return this.nested[t.name]=t,t.onAdd(this),s(this)},a.remove=function(t){if(!(t instanceof u))throw y("object","a ReflectionObject");if(t.parent!==this||!this.nested)throw Error(t+" is not a member of "+this);return delete this.nested[t.name],Object.keys(this.nested).length||(this.nested=void 0),t.onRemove(this),s(this)},a.define=function(t,e){v.isString(t)?t=t.split("."):Array.isArray(t)||(e=t,t=void 0);var n=this;if(t)for(;t.length>0;){var r=t.shift();if(n.nested&&n.nested[r]){if(n=n.nested[r],!(n instanceof i))throw Error("path conflicts with non-namespace objects")}else n.add(n=new i(r))}return e&&n.addJSON(e),n},a.resolve=function(){f||(f=t(32)),h||(f=t(30));for(var e=this.getNestedArray(),n=0;n<e.length;++n)if(/^[A-Z]/.test(e[n].name)){if(e[n]instanceof f||e[n]instanceof h)this[e[n].name]=e[n];else{if(!(e[n]instanceof d))continue;this[e[n].name]=e[n].values}this.f.push(e[n].name)}return u.prototype.resolve.call(this)},a.resolveAll=function(){for(var t=this.getNestedArray(),e=0;e<t.length;)t[e]instanceof i?t[e++].resolveAll():t[e++].resolve();return a.resolve.call(this)},a.lookup=function(t,e,n){if("boolean"==typeof e&&(n=e,e=void 0),v.isString(t)&&t.length)t=t.split(".");else if(!t.length)return null;if(""===t[0])return this.getRoot().lookup(t.slice(1),e);var r=this.get(t[0]);return r&&1===t.length&&(!e||r instanceof e)||r instanceof i&&(r=r.lookup(t.slice(1),e,!0))?r:null===this.parent||n?null:this.parent.lookup(t,e)},a.lookupType=function(e){f||(f=t(32));var n=this.lookup(e,f);if(!n)throw Error("no such type");return n},a.lookupService=function(e){h||(h=t(30));var n=this.lookup(e,h);if(!n)throw Error("no such service");return n},a.lookupEnum=function(t){var e=this.lookup(t,d);if(!e)throw Error("no such enum");return e.values}},{16:16,17:17,22:22,30:30,32:32,34:34}],22:[function(t,e,n){"use strict";function r(t,e){if(!i.isString(t))throw o("name");if(e&&!i.isObject(e))throw o("options","an object");this.options=e,this.name=t,this.parent=null,this.resolved=!1}e.exports=r;var i=t(34);r.className="ReflectionObject",r.extend=i.extend;var s,o=i.b,u=r.prototype;i.props(u,{root:{get:function(){for(var t=this;null!==t.parent;)t=t.parent;return t}},fullName:{get:u.getFullName=function(){for(var t=[this.name],e=this.parent;e;)t.unshift(e.name),e=e.parent;return t.join(".")}}}),u.toJSON=function(){throw Error()},u.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var n=e.getRoot();s||(s=t(27)),n instanceof s&&n.g(this)},u.onRemove=function(e){var n=e.getRoot();s||(s=t(27)),n instanceof s&&n.h(this),this.parent=null,this.resolved=!1},u.resolve=function(){if(this.resolved)return this;var e=this.getRoot();return s||(s=t(27)),e instanceof s&&(this.resolved=!0),this},u.getOption=function(t){if(this.options)return this.options[t]},u.setOption=function(t,e,n){return n&&this.options&&void 0!==this.options[t]||((this.options||(this.options={}))[t]=e),this},u.setOptions=function(t,e){return t&&Object.keys(t).forEach(function(n){this.setOption(n,t[n],e)},this),this},u.toString=function(){var t=this.constructor.className,e=this.getFullName();return e.length?t+" "+e:t}},{27:27,34:34}],23:[function(t,e,n){"use strict";function r(t,e,n){if(Array.isArray(e)||(n=e,e=void 0),s.call(this,t,n),e&&!Array.isArray(e))throw f("fieldNames","an Array");this.ucName=this.name.substring(0,1).toUpperCase()+this.name.substring(1),this.oneof=e||[],this.i=[]}function i(t){t.parent&&t.i.forEach(function(e){e.parent||t.parent.add(e)})}e.exports=r;var s=t(22),o=s.extend(r);r.className="OneOf";var u=t(17),a=t(34),f=a.b;a.prop(o,"fieldsArray",{get:function(){return this.i}}),r.testJSON=function(t){return Boolean(t.oneof)},r.fromJSON=function(t,e){return new r(t,e.oneof,e.options)},o.toJSON=function(){return{oneof:this.oneof,options:this.options}},o.add=function(t){if(!(t instanceof u))throw f("field","a Field");return t.parent&&t.parent.remove(t),this.oneof.push(t.name),this.i.push(t),t.partOf=this,i(this),this},o.remove=function(t){if(!(t instanceof u))throw f("field","a Field");var e=this.i.indexOf(t);if(e<0)throw Error(t+" is not a member of "+this);return this.i.splice(e,1),e=this.oneof.indexOf(t.name),e>-1&&this.oneof.splice(e,1),t.parent&&t.parent.remove(t),t.partOf=null,this},o.onAdd=function(t){s.prototype.onAdd.call(this,t),i(this)},o.onRemove=function(t){this.i.forEach(function(t){t.parent&&t.parent.remove(t)}),s.prototype.onRemove.call(this,t)}},{17:17,22:22,34:34}],24:[function(t,e,n){"use strict";function r(t){return/^[a-zA-Z_][a-zA-Z_0-9]*$/.test(t)}function i(t){return/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)+$/.test(t)}function s(t){return/^(?:\.[a-zA-Z][a-zA-Z_0-9]*)+$/.test(t)}function o(t){return null===t?null:t.toLowerCase()}function u(t,e,n){function w(t,e){var n=u.filename;return u.filename=null,Error("illegal "+(e||"token")+" '"+t+"' ("+(n?n+", ":"")+"line "+Z.line()+")")}function b(){var t,e=[];do{if('"'!==(t=K())&&"'"!==t)throw w(t);e.push(K()),G(t),t=X()}while('"'===t||"'"===t);return e.join("")}function k(t){var e=K();switch(o(e)){case"'":case'"':return W(e),b();case"true":return!0;case"false":return!1}try{return O(e)}catch(n){if(t&&i(e))return e;throw w(e,"value")}}function x(){var t=N(K()),e=t;return G("to",!0)&&(e=N(K())),G(";"),[t,e]}function O(t){var e=1;"-"===t.charAt(0)&&(e=-1,t=t.substring(1));var n=o(t);switch(n){case"inf":return e*(1/0);case"nan":return NaN;case"0":return 0}if(/^[1-9][0-9]*$/.test(t))return e*parseInt(t,10);if(/^0[x][0-9a-f]+$/.test(n))return e*parseInt(t,16);if(/^0[0-7]+$/.test(t))return e*parseInt(t,8);if(/^(?!e)[0-9]*(?:\.[0-9]*)?(?:[e][+-]?[0-9]+)?$/.test(n))return e*parseFloat(t);throw w(t,"number")}function N(t,e){var n=o(t);switch(n){case"max":return 536870911;case"0":return 0}if("-"===t.charAt(0)&&!e)throw w(t,"id");if(/^-?[1-9][0-9]*$/.test(t))return parseInt(t,10);if(/^-?0[x][0-9a-f]+$/.test(n))return parseInt(t,16);if(/^-?0[0-7]+$/.test(t))return parseInt(t,8);throw w(t,"id")}function A(){if(void 0!==D)throw w("package");if(D=K(),!i(D))throw w(D,"name");et=et.define(D),G(";")}function S(){var t,e=X();switch(e){case"weak":t=_||(_=[]),K();break;case"public":K();default:t=P||(P=[])}e=b(),G(";"),t.push(e)}function j(){if(G("="),H=o(b()),Y="proto3"===H,!Y&&"proto2"!==H)throw w(H,"syntax");G(";")}function T(t,e){switch(e){case"option":return V(t,e),G(";"),!0;case"message":return E(t,e),!0;case"enum":return L(t,e),!0;case"service":return I(t,e),!0;case"extend":return U(t,e),!0}return!1}function E(t,e){var n=K();if(!r(n))throw w(n,"type name");var s=new h(n);if(G("{",!0)){for(;"}"!==(e=K());){var u=o(e);if(!T(s,e))switch(u){case"map":B(s,u);break;case"required":case"optional":case"repeated":F(s,u);break;case"oneof":q(s,u);break;case"extensions":(s.extensions||(s.extensions=[])).push(x(s,u));break;case"reserved":(s.reserved||(s.reserved=[])).push(x(s,u));break;default:if(!Y||!i(e))throw w(e);W(e),F(s,"optional")}}G(";",!0)}else G(";");t.add(s)}function F(t,e,n){var s=K();if("group"===o(s))return void J(t,e);if(!i(s))throw w(s,"type");var u=K();if(!r(u))throw w(u,"name");u=nt(u),G("=");var a=N(K()),f=R(new l(u,a,s,e,n));f.repeated&&f.setOption("packed",Y,!0),t.add(f)}function J(t,e){var n=K();if(!r(n))throw w(n,"name");var i=g.lcFirst(n);n===i&&(n=g.ucFirst(n)),G("=");var s=N(K()),u=new h(n);u.group=!0;var a=new l(i,s,n,e);for(G("{");"}"!==(tt=K());)switch(tt=o(tt)){case"option":V(u,tt),G(";");break;case"required":case"optional":case"repeated":F(u,tt);break;default:throw w(tt)}G(";",!0),t.add(u).add(a)}function B(t){G("<");var e=K();if(void 0===m.mapKey[e])throw w(e,"type");G(",");var n=K();if(!i(n))throw w(n,"type");G(">");var s=K();if(!r(s))throw w(s,"name");s=nt(s),G("=");var o=N(K()),u=R(new c(s,o,e,n));t.add(u)}function q(t,e){var n=K();if(!r(n))throw w(n,"name");n=nt(n);var i=new d(n);if(G("{",!0)){for(;"}"!==(e=K());)"option"===e?(V(i,e),G(";")):(W(e),F(i,"optional"));G(";",!0)}else G(";");t.add(i)}function L(t,e){var n=K();if(!r(n))throw w(n,"name");var i={},s=new p(n,i);if(G("{",!0)){for(;"}"!==(e=K());)"option"===o(e)?(V(s,e),G(";")):$(s,e);G(";",!0)}else G(";");t.add(s)}function $(t,e){if(!r(e))throw w(e,"name");var n=e;G("=");var i=N(K(),!0);t.values[n]=i,R({})}function V(t,e){var n=G("(",!0),r=K();if(!i(r))throw w(r,"name");n&&(G(")"),r="("+r+")",e=X(),s(e)||(r+=e,K())),G("="),z(t,r)}function z(t,e){if(G("{",!0))for(;"}"!==(tt=K());){if(!r(tt))throw w(tt,"name");e=e+"."+tt,G(":",!0)?C(t,e,k(!0)):z(t,e)}else C(t,e,k(!0))}function C(t,e,n){t.setOption?t.setOption(e,n):t[e]=n}function R(t){if(G("[",!0)){do V(t,"option");while(G(",",!0));G("]")}return G(";"),t}function I(t,e){if(e=K(),!r(e))throw w(e,"service name");var n=e,i=new v(n);if(G("{",!0)){for(;"}"!==(e=K());){var s=o(e);switch(s){case"option":V(i,s),G(";");break;case"rpc":M(i,s);break;default:throw w(e)}}G(";",!0)}else G(";");t.add(i)}function M(t,e){var n=e,s=K();if(!r(s))throw w(s,"name");var u,a,f,h;G("(");var l;if(G(l="stream",!0)&&(a=!0),!i(e=K()))throw w(e);if(u=e,G(")"),G("returns"),G("("),G(l,!0)&&(h=!0),!i(e=K()))throw w(e);f=e,G(")");var c=new y(s,n,u,f,a,h);if(G("{",!0)){for(;"}"!==(e=K());){var d=o(e);switch(d){case"option":V(c,d),G(";");break;default:throw w(e)}}G(";",!0)}else G(";");t.add(c)}function U(t,e){var n=K();if(!i(n))throw w(n,"reference");if(G("{",!0)){for(;"}"!==(e=K());){var r=o(e);switch(r){case"required":case"repeated":case"optional":F(t,r,n);break;default:if(!Y||!i(e))throw w(e);W(e),F(t,"optional",n)}}G(";",!0)}else G(";")}e instanceof f?n||(n={}):(e=new f,n=e||{});var D,P,_,H,Z=a(t),K=Z.next,W=Z.push,X=Z.peek,G=Z.skip,Q=!0,Y=!1;e||(e=new f);for(var tt,et=e,nt=n.keepCase?function(t){return t}:g.camelCase;null!==(tt=K());){var rt=o(tt);switch(rt){case"package":if(!Q)throw w(tt);A();break;case"import":if(!Q)throw w(tt);S();break;case"syntax":if(!Q)throw w(tt);j();break;case"option":if(!Q)throw w(tt);V(et,tt),G(";");break;default:if(T(et,tt)){Q=!1;continue}throw w(tt)}}return u.filename=null,{package:D,imports:P,weakImports:_,syntax:H,root:e}}e.exports=u;var a=t(31),f=t(27),h=t(32),l=t(17),c=t(18),d=t(23),p=t(16),v=t(30),y=t(20),m=t(33),g=t(34)},{16:16,17:17,18:18,20:20,23:23,27:27,30:30,31:31,32:32,33:33,34:34}],25:[function(t,e,n){"use strict";function r(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function i(t){this.buf=t,this.pos=0,this.len=t.length}function s(){var t=new x(0,0),e=0;if(this.len-this.pos>4){for(e=0;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>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}else{for(e=0;e<4;++e){if(this.pos>=this.len)throw r(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}if(this.pos>=this.len)throw r(this);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(this.len-this.pos>4){for(e=0;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(e=0;e<5;++e){if(this.pos>=this.len)throw r(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function o(){return s.call(this).toLong()}function u(){return s.call(this).toNumber()}function a(){return s.call(this).toLong(!0)}function f(){return s.call(this).toNumber(!0)}function h(){return s.call(this).zzDecode().toLong()}function l(){return s.call(this).zzDecode().toNumber()}function c(t,e){return t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24}function d(){if(this.pos+8>this.len)throw r(this,8);return new x(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}function p(){return d.call(this).toLong(!0);
}function v(){return d.call(this).toNumber(!0)}function y(){return d.call(this).zzDecode().toLong()}function m(){return d.call(this).zzDecode().toNumber()}function g(){b.Long?(A.int64=o,A.uint64=a,A.sint64=h,A.fixed64=p,A.sfixed64=y):(A.int64=u,A.uint64=f,A.sint64=l,A.fixed64=v,A.sfixed64=m)}e.exports=i;var w,b=t(36),k=t(1),x=b.LongBits,O=b.utf8,N="undefined"!=typeof Uint8Array?Uint8Array:Array;i.create=b.Buffer?function(e){return w||(w=t(26)),(i.create=function(t){return new w(t)})(e)}:function(t){return new i(t)};var A=i.prototype;A.j=N.prototype.subarray||N.prototype.slice,A.uint32=function(){var t=4294967295;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return t;if(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return t;if(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return t;if(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return t;if(t=(t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return t;if((this.pos+=5)>this.len)throw this.pos=this.len,r(this,10);return t}}(),A.int32=function(){return 0|this.uint32()},A.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},A.bool=function(){return 0!==this.uint32()},A.fixed32=function(){if(this.pos+4>this.len)throw r(this,4);return c(this.buf,this.pos+=4)},A.sfixed32=function(){var t=this.fixed32();return t>>>1^-(1&t)};var S="undefined"!=typeof Float32Array?function(){var t=new Float32Array(1),e=new Uint8Array(t.buffer);return t[0]=-0,e[3]?function(n,r){return e[0]=n[r],e[1]=n[r+1],e[2]=n[r+2],e[3]=n[r+3],t[0]}:function(n,r){return e[3]=n[r],e[2]=n[r+1],e[1]=n[r+2],e[0]=n[r+3],t[0]}}():function(t,e){return k.read(t,e,!1,23,4)};A.float=function(){if(this.pos+4>this.len)throw r(this,4);var t=S(this.buf,this.pos);return this.pos+=4,t};var j="undefined"!=typeof Float64Array?function(){var t=new Float64Array(1),e=new Uint8Array(t.buffer);return t[0]=-0,e[7]?function(n,r){return e[0]=n[r],e[1]=n[r+1],e[2]=n[r+2],e[3]=n[r+3],e[4]=n[r+4],e[5]=n[r+5],e[6]=n[r+6],e[7]=n[r+7],t[0]}:function(n,r){return e[7]=n[r],e[6]=n[r+1],e[5]=n[r+2],e[4]=n[r+3],e[3]=n[r+4],e[2]=n[r+5],e[1]=n[r+6],e[0]=n[r+7],t[0]}}():function(t,e){return k.read(t,e,!1,52,8)};A.double=function(){if(this.pos+8>this.len)throw r(this,4);var t=j(this.buf,this.pos);return this.pos+=8,t},A.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw r(this,t);return this.pos+=t,e===n?new this.buf.constructor(0):this.j.call(this.buf,e,n)},A.string=function(){var t=this.bytes();return O.read(t,0,t.length)},A.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw r(this,t);this.pos+=t}else do if(this.pos>=this.len)throw r(this);while(128&this.buf[this.pos++]);return this},A.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;;){if(4===(t=7&this.uint32()))break;this.skipType(t)}break;case 5:this.skip(4);break;default:throw Error("invalid wire type: "+t)}return this},i.k=g,g()},{1:1,26:26,36:36}],26:[function(t,e,n){"use strict";function r(t){i.call(this,t)}e.exports=r;var i=t(25),s=r.prototype=Object.create(i.prototype);s.constructor=r;var o=t(36);o.Buffer&&(s.j=o.Buffer.prototype.slice),s.string=function(){var t=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len))}},{25:25,36:36}],27:[function(t,e,n){"use strict";function r(t){o.call(this,"",t),this.deferred=[],this.files=[]}function i(){}function s(t){var e=t.parent.lookup(t.extend);if(e){var n=new f(t.getFullName(),t.id,t.type,t.rule,(void 0),t.options);return n.declaringField=t,t.extensionField=n,e.add(n),!0}return!1}e.exports=r;var o=t(21),u=o.extend(r);r.className="Root";var a,f=t(17),h=t(34),l=t(13);r.fromJSON=function(t,e){return e||(e=new r),e.setOptions(t.options).addJSON(t.nested)},u.resolvePath=h.path.resolve,u.load=function e(n,r,s){function o(t,e){if(s){var n=s;s=null,n(t,e)}}function u(t,e){try{if(h.isString(e)&&"{"===e.charAt(0)&&(e=JSON.parse(e)),h.isString(e)){a.filename=t;var n=a(e,c,r);n.imports&&n.imports.forEach(function(e){f(c.resolvePath(t,e))}),n.weakImports&&n.weakImports.forEach(function(e){f(c.resolvePath(t,e),!0)})}else c.setOptions(e.options).addJSON(e.nested)}catch(t){return void o(t)}d||p||o(null,c)}function f(t,e){var n=t.indexOf("google/protobuf/");if(n>-1){var r=t.substring(n);r in l&&(t=r)}if(!(c.files.indexOf(t)>-1)){if(c.files.push(t),t in l)return void(d?u(t,l[t]):(++p,setTimeout(function(){--p,u(t,l[t])})));if(d){var i;try{i=h.fs.readFileSync(t).toString("utf8")}catch(t){return void(e||o(t))}u(t,i)}else++p,h.fetch(t,function(n,r){if(--p,s)return n?void(e||o(n)):void u(t,r)})}}a||(a=t(24)),"function"==typeof r&&(s=r,r=void 0);var c=this;if(!s)return h.asPromise(e,c,n);var d=s===i,p=0;return h.isString(n)&&(n=[n]),n.forEach(function(t){f(c.resolvePath("",t))}),d?c:void(p||o(null,c))},u.loadSync=function(t,e){return this.load(t,e,i)},u.g=function(t){var e=this.deferred.slice();this.deferred=[];for(var n=0;n<e.length;)s(e[n])?e.splice(n,1):++n;if(this.deferred=e,t instanceof f&&void 0!==t.extend&&!t.extensionField&&!s(t)&&this.deferred.indexOf(t)<0)this.deferred.push(t);else if(t instanceof o){var r=t.getNestedArray();for(n=0;n<r.length;++n)this.g(r[n])}},u.h=function(t){if(t instanceof f){if(void 0!==t.extend&&!t.extensionField){var e=this.deferred.indexOf(t);e>-1&&this.deferred.splice(e,1)}t.extensionField&&(t.extensionField.parent.remove(t.extensionField),t.extensionField=null)}else if(t instanceof o)for(var n=t.getNestedArray(),r=0;r<n.length;++r)this.h(n[r])}},{13:13,17:17,21:21,24:24,34:34}],28:[function(t,e,n){"use strict";var r=n;r.Service=t(29)},{29:29}],29:[function(t,e,n){"use strict";function r(t){s.call(this),this.$rpc=t}e.exports=r;var i=t(34),s=i.EventEmitter,o=r.prototype=Object.create(s.prototype);o.constructor=r,o.end=function(t){return this.$rpc&&(t||this.$rpc(null,null,null),this.$rpc=null,this.emit("end").off()),this}},{34:34}],30:[function(t,e,n){"use strict";function r(t,e){s.call(this,t,e),this.methods={},this.l=null}function i(t){return t.l=null,t}e.exports=r;var s=t(21),o=s.prototype,u=s.extend(r);r.className="Service";var a=t(20),f=t(34),h=t(28);f.props(u,{methodsArray:{get:function(){return this.l||(this.l=f.toArray(this.methods))}}}),r.testJSON=function(t){return Boolean(t&&t.methods)},r.fromJSON=function(t,e){var n=new r(t,e.options);return e.methods&&Object.keys(e.methods).forEach(function(t){n.add(a.fromJSON(t,e.methods[t]))}),n},u.toJSON=function(){var t=o.toJSON.call(this);return{options:t&&t.options||void 0,methods:s.arrayToJSON(this.getMethodsArray())||{},nested:t&&t.nested||void 0}},u.get=function(t){return o.get.call(this,t)||this.methods[t]||null},u.resolveAll=function(){for(var t=this.getMethodsArray(),e=0;e<t.length;++e)t[e].resolve();return o.resolve.call(this)},u.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);return t instanceof a?(this.methods[t.name]=t,t.parent=this,i(this)):o.add.call(this,t)},u.remove=function(t){if(t instanceof a){if(this.methods[t.name]!==t)throw Error(t+" is not a member of "+this);return delete this.methods[t.name],t.parent=null,i(this)}return o.remove.call(this,t)},u.create=function(t,e,n){var r=new h.Service(t);return this.getMethodsArray().forEach(function(i){r[f.lcFirst(i.name)]=function(s,o){if(r.$rpc){if(!s)throw f.b("request","not null");i.resolve();var u;try{u=(e?i.resolvedRequestType.encodeDelimited(s):i.resolvedRequestType.encode(s)).finish()}catch(t){return void("function"==typeof setImmediate?setImmediate:setTimeout)(function(){o(t)})}t(i,u,function(t,e){if(t)return r.emit("error",t,i),o?o(t):void 0;if(null===e)return void r.end(!0);var s;try{s=n?i.resolvedResponseType.decodeDelimited(e):i.resolvedResponseType.decode(e)}catch(t){return r.emit("error",t,i),o?o("error",t):void 0}return r.emit("data",s,i),o?o(null,s):void 0})}}}),r}},{20:20,21:21,28:28,34:34}],31:[function(t,e,n){"use strict";function r(t){return t.replace(/\\(.?)/g,function(t,e){switch(e){case"\\":case"":return e;case"0":return"\0";default:return e}})}function i(t){function e(t){return Error("illegal "+t+" (line "+p+")")}function n(){var n="'"===y?u:o;n.lastIndex=c-1;var i=n.exec(t);if(!i)throw e("string");return c=n.lastIndex,f(y),y=null,r(i[1])}function i(e){return t.charAt(e)}function a(){if(v.length>0)return v.shift();if(y)return n();var r,o,u;do{if(c===d)return null;for(r=!1;/\s/.test(u=i(c));)if("\n"===u&&++p,++c===d)return null;if("/"===i(c)){if(++c===d)throw e("comment");if("/"===i(c)){for(;"\n"!==i(++c);)if(c===d)return null;++c,++p,r=!0}else{if("*"!==(u=i(c)))return"/";do{if("\n"===u&&++p,++c===d)return null;o=u,u=i(c)}while("*"!==o||"/"!==u);++c,r=!0}}}while(r);if(c===d)return null;var a=c;s.lastIndex=0;var f=s.test(i(a++));if(!f)for(;a<d&&!s.test(i(a));)++a;var h=t.substring(c,c=a);return'"'!==h&&"'"!==h||(y=h),h}function f(t){v.push(t)}function h(){if(!v.length){var t=a();if(null===t)return null;f(t)}return v[0]}function l(t,n){var r=h(),i=r===t;if(i)return a(),!0;if(!n)throw e("token '"+r+"', '"+t+"' expected");return!1}t=t.toString();var c=0,d=t.length,p=1,v=[],y=null;return{line:function(){return p},next:a,peek:h,push:f,skip:l}}e.exports=i;var s=/[\s{}=;:[\],'"()<>]/g,o=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,u=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g},{}],32:[function(t,e,n){"use strict";function r(t,e){s.call(this,t,e),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this.m=null,this.i=null,this.n=null,this.o=null,this.p=null}function i(t){return t.m=t.i=t.o=t.p=null,delete t.encode,delete t.decode,delete t.verify,t}e.exports=r;var s=t(21),o=s.prototype,u=s.extend(r);r.className="Type";var a,f,h,l=t(16),c=t(23),d=t(17),p=t(30),v=t(12),y=t(19),m=t(25),g=t(38),w=t(34);w.props(u,{fieldsById:{get:function(){if(this.m)return this.m;this.m={};for(var t=Object.keys(this.fields),e=0;e<t.length;++e){var n=this.fields[t[e]],r=n.id;if(this.m[r])throw Error("duplicate id "+r+" in "+this);this.m[r]=n}return this.m}},fieldsArray:{get:function(){return this.i||(this.i=w.toArray(this.fields))}},repeatedFieldsArray:{get:function(){return this.n||(this.n=this.getFieldsArray().filter(function(t){return t.repeated}))}},oneofsArray:{get:function(){return this.o||(this.o=w.toArray(this.oneofs))}},ctor:{get:function(){return this.p||(this.p=v.create(this).constructor)},set:function(t){if(t&&!(t.prototype instanceof y))throw w.b("ctor","a Message constructor");this.p=t}}}),r.testJSON=function(t){return Boolean(t&&t.fields)};var b=[l,r,d,p];r.fromJSON=function(t,e){var n=new r(t,e.options);return n.extensions=e.extensions,n.reserved=e.reserved,e.fields&&Object.keys(e.fields).forEach(function(t){n.add(d.fromJSON(t,e.fields[t]))}),e.oneofs&&Object.keys(e.oneofs).forEach(function(t){n.add(c.fromJSON(t,e.oneofs[t]))}),e.nested&&Object.keys(e.nested).forEach(function(t){for(var r=e.nested[t],i=0;i<b.length;++i)if(b[i].testJSON(r))return void n.add(b[i].fromJSON(t,r));throw Error("invalid nested object in "+n+": "+t)}),e.extensions&&e.extensions.length&&(n.extensions=e.extensions),e.reserved&&e.reserved.length&&(n.reserved=e.reserved),e.group&&(n.group=!0),n},u.toJSON=function(){var t=o.toJSON.call(this);return{options:t&&t.options||void 0,oneofs:s.arrayToJSON(this.getOneofsArray()),fields:s.arrayToJSON(this.getFieldsArray().filter(function(t){return!t.declaringField}))||{},extensions:this.extensions&&this.extensions.length?this.extensions:void 0,reserved:this.reserved&&this.reserved.length?this.reserved:void 0,group:this.group||void 0,nested:t&&t.nested||void 0}},u.resolveAll=function(){for(var t=this.getFieldsArray(),e=0;e<t.length;)t[e++].resolve();var n=this.getOneofsArray();for(e=0;e<n.length;)n[e++].resolve();return o.resolve.call(this)},u.get=function(t){return o.get.call(this,t)||this.fields&&this.fields[t]||this.oneofs&&this.oneofs[t]||null},u.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);if(t instanceof d&&void 0===t.extend){if(this.getFieldsById()[t.id])throw Error("duplicate id "+t.id+" in "+this);return t.parent&&t.parent.remove(t),this.fields[t.name]=t,t.message=this,t.onAdd(this),i(this)}return t instanceof c?(this.oneofs||(this.oneofs={}),this.oneofs[t.name]=t,t.onAdd(this),i(this)):o.add.call(this,t)},u.remove=function(t){if(t instanceof d&&void 0===t.extend){if(this.fields[t.name]!==t)throw Error(t+" is not a member of "+this);return delete this.fields[t.name],t.message=null,i(this)}return o.remove.call(this,t)},u.create=function(t){return new(this.getCtor())(t)},u.setup=function(){return a||(a=t(15),f=t(14),h=t(37)),this.encode=a(this).eof(this.getFullName()+"$encode",{Writer:g,types:this.getFieldsArray().map(function(t){return t.resolvedType}),util:w}),this.decode=f(this).eof(this.getFullName()+"$decode",{Reader:m,types:this.getFieldsArray().map(function(t){return t.resolvedType}),util:w}),this.verify=h(this).eof(this.getFullName()+"$verify",{types:this.getFieldsArray().map(function(t){return t.resolvedType}),util:w}),this},u.encode=function(t,e){return this.setup().encode(t,e)},u.encodeDelimited=function(t,e){return this.encode(t,e&&e.len?e.fork():e).ldelim()},u.decode=function(t,e){return this.setup().decode(t,e)},u.decodeDelimited=function(t){return t=t instanceof m?t:m.create(t),this.decode(t,t.uint32())},u.verify=function(t){return this.setup().verify(t)}},{12:12,14:14,15:15,16:16,17:17,19:19,21:21,23:23,25:25,30:30,34:34,37:37,38:38}],33:[function(t,e,n){"use strict";function r(t,e){var n=0,r={};for(e|=0;n<t.length;)r[o[n+e]]=t[n++];return r}var i=n,s=t(34),o=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes","message"];i.basic=r([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),i.defaults=r([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",s.emptyArray,null]),i.long=r([0,0,0,1,1],7),i.mapKey=r([0,0,0,5,5,0,0,0,1,1,0,2],2),i.packed=r([1,5,0,0,0,5,5,0,0,0,1,1,0])},{34:34}],34:[function(t,e,n){"use strict";var r=e.exports=t(36);r.asPromise=t(2),r.codegen=t(4),r.EventEmitter=t(5),r.extend=t(6),r.fetch=t(7),r.path=t(9),r.fs=r.inquire("fs"),r.toArray=function(t){if(!t)return[];for(var e=Object.keys(t),n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=t[e[i]];return r},r.b=function(t,e){return TypeError(t+" must be "+(e||"a string"))},r.merge=function(t,e,n){if(e)for(var r=Object.keys(e),i=0;i<r.length;++i)void 0!==t[r[i]]&&n||(t[r[i]]=e[r[i]]);return t},r.safeProp=function(t){return'["'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"]'},r.camelCase=function(t){return t.substring(0,1)+t.substring(1).replace(/_([a-z])(?=[a-z]|$)/g,function(t,e){return e.toUpperCase()})},r.underScore=function(t){return t.substring(0,1)+t.substring(1).replace(/([A-Z])(?=[a-z]|$)/g,function(t,e){return"_"+e.toLowerCase()})},r.ucFirst=function(t){return t.charAt(0).toUpperCase()+t.substring(1)},r.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},r.newBuffer=function(t){return t=t||0,r.Buffer?r.Buffer.allocUnsafe?r.Buffer.allocUnsafe(t):new r.Buffer(t):new("undefined"!=typeof Uint8Array?Uint8Array:Array)(t)}},{2:2,36:36,4:4,5:5,6:6,7:7,9:9}],35:[function(t,e,n){"use strict";function r(t,e){this.lo=t,this.hi=e}e.exports=r;var i=t(36),s=r.prototype,o=r.zero=new r(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1},r.fromNumber=function(t){if(0===t)return o;var e=t<0;t=Math.abs(t);var n=t>>>0,i=(t-n)/4294967296>>>0;return e&&(i=~i>>>0,n=~n>>>0,++n>4294967295&&(n=0,++i>4294967295&&(i=0))),new r(n,i)},r.from=function(t){if("number"==typeof t)return r.fromNumber(t);if("string"==typeof t){if(!i.Long)return r.fromNumber(parseInt(t,10));t=i.Long.fromString(t)}return t.low||t.high?new r(t.low>>>0,t.high>>>0):o},s.toNumber=function(t){return!t&&this.hi>>>31?(this.lo=~this.lo+1>>>0,this.hi=~this.hi>>>0,this.lo||(this.hi=this.hi+1>>>0),-(this.lo+4294967296*this.hi)):this.lo+4294967296*this.hi},s.toLong=function(t){return i.Long?new i.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var u=String.prototype.charCodeAt;r.fromHash=function(t){return new r((u.call(t,0)|u.call(t,1)<<8|u.call(t,2)<<16|u.call(t,3)<<24)>>>0,(u.call(t,4)|u.call(t,5)<<8|u.call(t,6)<<16|u.call(t,7)<<24)>>>0)},s.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)},s.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},s.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},s.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}},{36:36}],36:[function(t,e,n){(function(e){"use strict";var r=n;r.LongBits=t(35),r.base64=t(3),r.inquire=t(8),r.utf8=t(11),r.pool=t(10),r.isNode=Boolean(e.process&&e.process.versions&&e.process.versions.node),r.Buffer=(r.Buffer=r.inquire("buffer"))&&r.Buffer.Buffer||null,r.Buffer&&!r.Buffer.prototype.utf8Write&&(r.Buffer=null),r.Long=e.dcodeIO&&e.dcodeIO.Long||r.inquire("long"),r.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},r.isString=function(t){return"string"==typeof t||t instanceof String},r.isObject=function(t){return t&&"object"==typeof t},r.longToHash=function(t){return t?r.LongBits.from(t).toHash():"\0\0\0\0\0\0\0\0"},r.longFromHash=function(t,e){var n=r.LongBits.fromHash(t);return r.Long?r.Long.fromBits(n.lo,n.hi,e):n.toNumber(Boolean(e))},r.longNeq=function(t,e){return"number"==typeof t?"number"==typeof e?t!==e:(t=r.LongBits.fromNumber(t)).lo!==e.low||t.hi!==e.high:"number"==typeof e?(e=r.LongBits.fromNumber(e)).lo!==t.low||e.hi!==t.high:t.low!==e.low||t.high!==e.high},r.longNe=function(t,e,n){if("object"==typeof t)return t.low!==e||t.high!==n;var i=r.LongBits.from(t);return i.lo!==e||i.hi!==n},r.props=function(t,e){Object.keys(e).forEach(function(n){r.prop(t,n,e[n])})},r.prop=function(t,e,n){var r=!-[1],i=e.substring(0,1).toUpperCase()+e.substring(1);n.get&&(t["get"+i]=n.get),n.set&&(t["set"+i]=r?function(t){n.set.call(this,t),this[e]=t}:n.set),r?void 0!==n.value&&(t[e]=n.value):Object.defineProperty(t,e,n)},r.emptyArray=Object.freeze([]),r.emptyObject=Object.freeze({})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{10:10,11:11,3:3,35:35,8:8}],37:[function(t,e,n){"use strict";function r(t,e){return"invalid value for field "+t.getFullName()+" ("+e+(t.repeated&&"array"!==e?"[]":t.map&&"object"!==e?"{k:"+t.keyType+"}":"")+" expected)"}function i(t,e,n,i){if(e.resolvedType)if(e.resolvedType instanceof u){t("switch(%s){",i)("default:")("return%j",r(e,"enum value"));for(var s=f.toArray(e.resolvedType.values),o=0;o<s.length;++o)t("case %d:",s[o]);t("break")("}")}else e.resolvedType instanceof a&&t("var r;")("if(r=types[%d].verify(%s))",n,i)("return r");else switch(e.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":t("if(!util.isInteger(%s))",i)("return%j",r(e,"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)))",i,i,i,i)("return%j",r(e,"integer|Long"));break;case"float":case"double":t('if(typeof %s!=="number")',i)("return%j",r(e,"number"));break;case"bool":t('if(typeof %s!=="boolean")',i)("return%j",r(e,"boolean"));break;case"string":t("if(!util.isString(%s))",i)("return%j",r(e,"string"));break;case"bytes":t('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',i,i,i)("return%j",r(e,"buffer"))}}function s(t,e,n){switch(e.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":t("if(!/^-?(?:0|[1-9]\\d*)$/.test(%s))",n)("return%j",r(e,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":t("if(!/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9]\\d*))$/.test(%s))",n)("return%j",r(e,"integer|Long key"));break;case"bool":t("if(!/^true|false|0|1$/.test(%s))",n)("return%j",r(e,"boolean key"))}}function o(t){for(var e=t.getFieldsArray(),n=f.codegen("m"),o=0;o<e.length;++o){var u=e[o].resolve(),h=f.safeProp(u.name);u.map?(n("if(m%s!==undefined){",h)("if(!util.isObject(m%s))",h)("return%j",r(u,"object"))("var k=Object.keys(m%s)",h)("for(var i=0;i<k.length;++i){"),s(n,u,"k[i]"),i(n,u,o,"m"+h+"[k[i]]"),n("}")("}")):u.repeated?(n("if(m%s!==undefined){",h)("if(!Array.isArray(m%s))",h)("return%j",r(u,"array"))("for(var i=0;i<m%s.length;++i){",h),i(n,u,o,"m"+h+"[i]"),n("}")("}")):(u.required||(u.resolvedType instanceof a?n("if(m%s!==undefined&&m%s!==null){",h,h):n("if(m%s!==undefined){",h)),i(n,u,o,"m"+h),u.required||n("}"))}return n("return null")}e.exports=o;var u=t(16),a=t(32),f=t(34)},{16:16,32:32,34:34}],38:[function(t,e,n){"use strict";function r(t,e,n){this.fn=t,this.len=e,this.val=n}function i(){}function s(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function o(){this.len=0,this.head=new r(i,0,0),this.tail=this.head,this.states=null}function u(t,e,n){e[n]=255&t}function a(t,e,n){for(;t>127;)e[n++]=127&t|128,t>>>=7;e[n]=t}function f(t,e,n){for(;t.hi;)e[n++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[n++]=127&t.lo|128,t.lo=t.lo>>>7;e[n++]=t.lo}function h(t,e,n){e[n++]=255&t,e[n++]=t>>>8&255,e[n++]=t>>>16&255,e[n]=t>>>24}e.exports=o;var l,c=t(36),d=t(1),p=c.LongBits,v=c.base64,y=c.utf8,m="undefined"!=typeof Uint8Array?Uint8Array:Array;o.create=c.Buffer?function(){return l||(l=t(39)),(o.create=function(){return new l})()}:function(){return new o},o.alloc=function(t){return new m(t)},m!==Array&&(o.alloc=c.pool(o.alloc,m.prototype.subarray));var g=o.prototype;g.push=function(t,e,n){return this.tail=this.tail.next=new r(t,e,n),this.len+=e,this},g.uint32=function(t){return t>>>=0,this.push(a,t<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)},g.int32=function(t){return t<0?this.push(f,10,p.fromNumber(t)):this.uint32(t)},g.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},g.uint64=function(t){var e=p.from(t);return this.push(f,e.length(),e)},g.int64=g.uint64,g.sint64=function(t){var e=p.from(t).zzEncode();return this.push(f,e.length(),e)},g.bool=function(t){return this.push(u,1,t?1:0)},g.fixed32=function(t){return this.push(h,4,t>>>0)},g.sfixed32=function(t){return this.push(h,4,t<<1^t>>31)},g.fixed64=function(t){var e=p.from(t);return this.push(h,4,e.lo).push(h,4,e.hi)},g.sfixed64=function(t){var e=p.from(t).zzEncode();return this.push(h,4,e.lo).push(h,4,e.hi)};var w="undefined"!=typeof Float32Array?function(){var t=new Float32Array(1),e=new Uint8Array(t.buffer);return t[0]=-0,e[3]?function(n,r,i){t[0]=n,r[i++]=e[0],r[i++]=e[1],r[i++]=e[2],r[i]=e[3]}:function(n,r,i){t[0]=n,r[i++]=e[3],r[i++]=e[2],r[i++]=e[1],r[i]=e[0]}}():function(t,e,n){d.write(e,t,n,!1,23,4)};g.float=function(t){return this.push(w,4,t)};var b="undefined"!=typeof Float64Array?function(){var t=new Float64Array(1),e=new Uint8Array(t.buffer);return t[0]=-0,e[7]?function(n,r,i){t[0]=n,r[i++]=e[0],r[i++]=e[1],r[i++]=e[2],r[i++]=e[3],r[i++]=e[4],r[i++]=e[5],r[i++]=e[6],r[i]=e[7]}:function(n,r,i){t[0]=n,r[i++]=e[7],r[i++]=e[6],r[i++]=e[5],r[i++]=e[4],r[i++]=e[3],r[i++]=e[2],r[i++]=e[1],r[i]=e[0]}}():function(t,e,n){d.write(e,t,n,!1,52,8)};g.double=function(t){return this.push(b,8,t)};var k=m.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var r=0;r<t.length;++r)e[n+r]=t[r]};g.bytes=function(t){var e=t.length>>>0;if("string"==typeof t&&e){var n=o.alloc(e=v.length(t));v.decode(t,n,0),t=n}return e?this.uint32(e).push(k,e,t):this.push(u,1,0)},g.string=function(t){var e=y.length(t);return e?this.uint32(e).push(y.write,e,t):this.push(u,1,0)},g.fork=function(){return this.states=new s(this),this.head=this.tail=new r(i,0,0),this.len=0,this},g.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 r(i,0,0),this.len=0),this},g.ldelim=function(t){var e=this.head,n=this.tail,r=this.len;return this.reset(),"number"==typeof t&&this.uint32((t<<3|2)>>>0),this.uint32(r),this.tail.next=e.next,this.tail=n,this.len+=r,this},g.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e}},{1:1,36:36,39:39}],39:[function(t,e,n){"use strict";function r(){s.call(this)}function i(t,e,n){t.length<40?a.write(t,e,n):e.utf8Write(t,n)}e.exports=r;var s=t(38),o=r.prototype=Object.create(s.prototype);o.constructor=r;var u=t(36),a=u.utf8,f=u.Buffer;r.alloc=function(t){return(r.alloc=f.allocUnsafe?f.allocUnsafe:function(t){return new f(t)})(t)};var h=f&&f.from&&"s"===f.prototype.set.name[0]?function(t,e,n){e.set(t,n)}:function(t,e,n){t.copy(e,n,0,t.length)},l=f&&f.from||function(t,e){return new f(t,e)};o.bytes=function(t){"string"==typeof t&&(t=l(t,"base64"));var e=t.length>>>0;return this.uint32(e),e&&this.push(h,e,t),this},o.string=function(t){var e=f.byteLength(t);return this.uint32(e),e&&this.push(i,e,t),this}},{36:36,38:38}],40:[function(t,e,n){(function(e){"use strict";function r(t,e,n){return"function"==typeof e?(n=e,e=new o.Root):e||(e=new o.Root),e.load(t,n)}function i(t,e){return e||(e=new o.Root),e.loadSync(t)}function s(){o.Reader.k()}var o=e.protobuf=n;o.load=r,o.loadSync=i,o.roots={},o.tokenize=t(31),o.parse=t(24),o.Writer=t(38),o.BufferWriter=t(39),o.Reader=t(25),o.BufferReader=t(26),o.encoder=t(15),o.decoder=t(14),o.verifier=t(37),o.ReflectionObject=t(22),o.Namespace=t(21),o.Root=t(27),o.Enum=t(16),o.Type=t(32),o.Field=t(17),o.OneOf=t(23),o.MapField=t(18),o.Service=t(30),o.Method=t(20),o.Class=t(12),o.Message=t(19),o.types=t(33),o.common=t(13),o.rpc=t(28),o.util=t(34),o.configure=s,"function"==typeof define&&define.amd&&define(["long"],function(t){return t&&(o.util.Long=t,s()),o})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,30:30,31:31,32:32,33:33,34:34,37:37,38:38,39:39}]},{},[40]);
//# sourceMappingURL=protobuf.min.js.map