New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

protobufjs

Package Overview
Dependencies
Maintainers
1
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protobufjs - npm Package Compare versions

Comparing version 6.3.0 to 6.3.1

tests/empty-inner.js

13

CHANGELOG.md

@@ -0,1 +1,14 @@

# [6.3.1](https://github.com/dcodeIO/protobuf.js/releases/tag/6.3.1)
## Fixed
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/95ed6e9e8268711db24f44f0d7e58dd278ddac4c) Empty inner messages are always present on the wire + test case + removed now unused Writer#ldelim parameter, see [#585](https://github.com/dcodeIO/protobuf.js/issues/585)<br />
## CLI
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/e8a4d5373b1a00cc6eafa5b201b91d0e250cc00b) Expose tsd-jsdoc's comments option to pbts as --no-comments, see [#587](https://github.com/dcodeIO/protobuf.js/issues/587)<br />
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/6fe099259b5985d873ba5bec88c049d7491a11cc) Increase child process max buffer when running jsdoc from pbts, see [#587](https://github.com/dcodeIO/protobuf.js/issues/587)<br />
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/3d84ecdb4788d71b5d3928e74db78e8e54695f0a) pbjs now generates more convenient dot-notation property accessors<br />
## Other
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/1e0ebc064e4f2566cebf525d526d0b701447bd6a) And fixed IE8 again (should probably just drop IE8 for good)<br />
# [6.3.0](https://github.com/dcodeIO/protobuf.js/releases/tag/6.3.0)

@@ -2,0 +15,0 @@

19

cli/pbjs.js

@@ -124,19 +124,17 @@ var path = require("path"),

var root;
try {
root = root.loadSync(files, parseOptions); // sync is deterministic while async is not
root.loadSync(files, parseOptions); // sync is deterministic while async is not
} catch (err) {
if (callback) {
callback(err);
return;
} else
throw err;
return undefined;
}
throw err;
}
target(root, argv, function(err, output) {
target(root, argv, function targetCallback(err, output) {
if (err) {
if (callback)
return callback(err);
else
throw err;
throw err;
}

@@ -149,5 +147,6 @@ if (output !== "") {

}
if (callback)
return callback(null);
return callback
? callback(null)
: undefined;
});
};

@@ -27,3 +27,7 @@ var path = require("path"),

},
string: [ "name", "out" ]
string: [ "name", "out" ],
boolean: [ "comments" ],
default: {
comments: true
}
});

@@ -46,2 +50,4 @@

"",
" --no-comments Does not output any JSDoc comments.",
"",
"usage: " + chalk.bold.green("pbts") + " [options] file1.js file2.js ..."

@@ -67,6 +73,7 @@ ].join("\n"));

var moduleName = argv.name || "null";
var child = child_process.exec("node \"" + basedir + "/node_modules/jsdoc/jsdoc.js\" -c \"" + basedir + "/jsdoc.types.json\" -q \"module=" + encodeURIComponent(moduleName) + "\" " + files.map(function(file) { return '"' + file + '"'; }).join(' '), {
var child = child_process.exec("node \"" + basedir + "/node_modules/jsdoc/jsdoc.js\" -c \"" + basedir + "/jsdoc.types.json\" -q \"module=" + encodeURIComponent(moduleName) + "&comments=" + Boolean(argv.comments) + "\" " + files.map(function(file) { return '"' + file + '"'; }).join(' '), {
cwd: process.cwd(),
argv0: "node",
stdio: "pipe"
stdio: "pipe",
maxBuffer: 1 << 24 // 16mb
});

@@ -73,0 +80,0 @@ var out = [];

@@ -6,3 +6,4 @@ "use strict";

var protobuf = require("../..");
var protobuf = require("../.."),
cliUtil = require("../util");

@@ -80,10 +81,19 @@ var Type = protobuf.Type,

var 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)$/;
function name(name) {
if (!name)
return "$root";
return reservedRe.test(name) ? name + "_" : name;
return cliUtil.reserved(name) ? name + "_" : name;
}
// generate dot-notation property accessors where possible. this saves a few chars (i.e. m.hello
// instead of m["hello"]) but has no measurable performance impact (on V8). not present within the
// library itself because the reserved words check requires a rather longish regex.
util.safeProp = (function(safeProp) {
return function safeProp_dn(name) {
return /^[$\w]+$/.test(name) && cliUtil.reserved(name)
? safeProp(name)
: "." + name;
}
})(util.safeProp);
function buildNamespace(ref, ns) {

@@ -90,0 +100,0 @@ if (!ns)

@@ -116,1 +116,5 @@ var fs = require("fs"),

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

@@ -242,3 +242,3 @@ * see: https://github.com/dcodeIO/protobuf.js for details

return "";
var parts = [],
var parts = null,
chunk = [],

@@ -260,9 +260,12 @@ i = 0, // char offset

if (i > 8191) {
parts.push(String.fromCharCode.apply(String, chunk));
(parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
i = 0;
}
}
if (i)
parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));
return parts.join("");
if (parts) {
if (i)
parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));
return parts.join("");
}
return i ? String.fromCharCode.apply(String, chunk.slice(0, i)) : "";
};

@@ -358,3 +361,3 @@

function Reader(buffer) {
/**

@@ -416,3 +419,3 @@ * Read buffer.

value = (value | (this.buf[this.pos] & 15) << 28) >>> 0; if (this.buf[this.pos++] < 128) return value;
/* istanbul ignore next */

@@ -824,3 +827,3 @@ if ((this.pos += 5) > this.len) {

break;
/* istanbul ignore next */

@@ -1813,14 +1816,11 @@ default:

* Resets to the last state and appends the fork state's current write length as a varint followed by its operations.
* @param {number} [id] Id with wire type 2 to prepend as a tag where applicable
* @returns {Writer} `this`
*/
WriterPrototype.ldelim = function ldelim(id) {
WriterPrototype.ldelim = function ldelim() {
var head = this.head,
tail = this.tail,
len = this.len;
this.reset();
if (typeof id === "number")
this.uint32((id << 3 | 2) >>> 0);
this.uint32(len);
this.tail.next = head.next; // skip noop
this.reset()
.uint32(len)
.tail.next = head.next; // skip noop
this.tail = tail;

@@ -1827,0 +1827,0 @@ this.len += len;

/*!
* protobuf.js v6.3.0 (c) 2016, Daniel Wirtz
* Compiled Mon, 26 Dec 2016 17:57:31 UTC
* protobuf.js v6.3.1 (c) 2016, Daniel Wirtz
* Compiled Tue, 27 Dec 2016 16:55:50 UTC
* Licensed under the BSD-3-Clause License
* see: https://github.com/dcodeIO/protobuf.js for details
*/
!function t(i,n,r){function e(s,u){if(!n[s]){if(!i[s]){var h="function"==typeof require&&require;if(!u&&h)return h(s,!0);if(o)return o(s,!0);var f=new Error("Cannot find module '"+s+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[s]={exports:{}};i[s][0].call(l.exports,function(t){var n=i[s][1][t];return e(n?n:t)},l,l.exports,t,i,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)e(r[s]);return e}({1:[function(t,i,n){"use strict";var r=n;r.length=function(t){var i=t.length;if(!i)return 0;for(var n=0;--i%4>1&&"="===t.charAt(i);)++n;return Math.ceil(3*t.length)/4-n};for(var e=new Array(64),o=new Array(123),s=0;s<64;)o[e[s]=s<26?s+65:s<52?s+71:s<62?s-4:s-59|43]=s++;r.encode=function(t,i,n){for(var r,o=[],s=0,u=0;i<n;){var h=t[i++];switch(u){case 0:o[s++]=e[h>>2],r=(3&h)<<4,u=1;break;case 1:o[s++]=e[r|h>>4],r=(15&h)<<2,u=2;break;case 2:o[s++]=e[r|h>>6],o[s++]=e[63&h],u=0}}return u&&(o[s++]=e[r],o[s]=61,1===u&&(o[s+1]=61)),String.fromCharCode.apply(String,o)};var u="invalid encoding";r.decode=function(t,i,n){for(var r,e=n,s=0,h=0;h<t.length;){var f=t.charCodeAt(h++);if(61===f&&s>1)break;if(void 0===(f=o[f]))throw Error(u);switch(s){case 0:r=f,s=1;break;case 1:i[n++]=r<<2|(48&f)>>4,r=f,s=2;break;case 2:i[n++]=(15&r)<<4|(60&f)>>2,r=f,s=3;break;case 3:i[n++]=(3&r)<<6|f,s=0}}if(1===s)throw Error(u);return n-e}},{}],2:[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},{}],3:[function(t,i,n){"use strict";function r(t,i,n){var r=n||8192,e=r>>>1,o=null,s=r;return function(n){if(n<1||n>e)return t(n);s+n>r&&(o=t(r),s=0);var u=i.call(o,s,s+=n);return 7&s&&(s=(7|s)+1),u}}i.exports=r},{}],4:[function(t,i,n){"use strict";var r=n;r.length=function(t){for(var i=0,n=0,r=0;r<t.length;++r)n=t.charCodeAt(r),n<128?i+=1:n<2048?i+=2:55296===(64512&n)&&56320===(64512&t.charCodeAt(r+1))?(++r,i+=4):i+=3;return i},r.read=function(t,i,n){var r=n-i;if(r<1)return"";for(var e,o=[],s=[],u=0;i<n;)e=t[i++],e<128?s[u++]=e:e>191&&e<224?s[u++]=(31&e)<<6|63&t[i++]:e>239&&e<365?(e=((7&e)<<18|(63&t[i++])<<12|(63&t[i++])<<6|63&t[i++])-65536,s[u++]=55296+(e>>10),s[u++]=56320+(1023&e)):s[u++]=(15&e)<<12|(63&t[i++])<<6|63&t[i++],u>8191&&(o.push(String.fromCharCode.apply(String,s)),u=0);return u&&o.push(String.fromCharCode.apply(String,s.slice(0,u))),o.join("")},r.write=function(t,i,n){for(var r,e,o=n,s=0;s<t.length;++s)r=t.charCodeAt(s),r<128?i[n++]=r:r<2048?(i[n++]=r>>6|192,i[n++]=63&r|128):55296===(64512&r)&&56320===(64512&(e=t.charCodeAt(s+1)))?(r=65536+((1023&r)<<10)+(1023&e),++s,i[n++]=r>>18|240,i[n++]=r>>12&63|128,i[n++]=r>>6&63|128,i[n++]=63&r|128):(i[n++]=r>>12|224,i[n++]=r>>6&63|128,i[n++]=63&r|128);return n-o}},{}],5:[function(t,i,n){(function(i){"use strict";function r(){e.Reader.a()}var e=i.protobuf=n;e.Writer=t(10),e.BufferWriter=t(11),e.Reader=t(6),e.BufferReader=t(7),e.util=t(9),e.roots={},e.configure=r,"function"==typeof define&&define.amd&&define(["long"],function(t){return t&&(e.util.Long=t,r()),e})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{10:10,11:11,6:6,7:7,9:9}],6:[function(t,i,n){"use strict";function r(t,i){return RangeError("index out of range: "+t.pos+" + "+(i||1)+" > "+t.len)}function e(t){this.buf=t,this.pos=0,this.len=t.length}function o(){var t=new A(0,0),i=0;if(this.len-this.pos>4){for(i=0;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}else{for(i=0;i<4;++i){if(this.pos>=this.len)throw r(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*i)>>>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(i=0;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=0;i<5;++i){if(this.pos>=this.len)throw r(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 s(){return o.call(this).toLong()}function u(){return o.call(this).toNumber()}function h(){return o.call(this).toLong(!0)}function f(){return o.call(this).toNumber(!0)}function l(){return o.call(this).zzDecode().toLong()}function a(){return o.call(this).zzDecode().toNumber()}function c(t,i){return(t[i-4]|t[i-3]<<8|t[i-2]<<16|t[i-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw r(this,8);return new A(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}function d(){return p.call(this).toLong(!0)}function b(){return p.call(this).toNumber(!0)}function g(){return p.call(this).zzDecode().toLong()}function v(){return p.call(this).zzDecode().toNumber()}function y(){m.Long?(N.int64=s,N.uint64=h,N.sint64=l,N.fixed64=d,N.sfixed64=g):(N.int64=u,N.uint64=f,N.sint64=a,N.fixed64=b,N.sfixed64=v)}i.exports=e;var w,m=t(9),A=m.LongBits,x=m.utf8;e.create=m.Buffer?function(i){return w||(w=t(7)),(e.create=function(t){return new w(t)})(i)}:function(t){return new e(t)};var N=e.prototype;N.b=m.Array.prototype.subarray||m.Array.prototype.slice,N.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}}(),N.int32=function(){return 0|this.uint32()},N.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},N.bool=function(){return 0!==this.uint32()},N.fixed32=function(){if(this.pos+4>this.len)throw r(this,4);return c(this.buf,this.pos+=4)},N.sfixed32=function(){var t=this.fixed32();return t>>>1^-(1&t)};var L="undefined"!=typeof Float32Array?function(){var t=new Float32Array(1),i=new Uint8Array(t.buffer);return t[0]=-0,i[3]?function(n,r){return i[0]=n[r],i[1]=n[r+1],i[2]=n[r+2],i[3]=n[r+3],t[0]}:function(n,r){return i[3]=n[r],i[2]=n[r+1],i[1]=n[r+2],i[0]=n[r+3],t[0]}}():function(t,i){var n=c(t,i+4),r=2*(n>>31)+1,e=n>>>23&255,o=8388607&n;return 255===e?o?NaN:r*(1/0):0===e?1.401298464324817e-45*r*o:r*Math.pow(2,e-150)*(o+8388608)};N.float=function(){if(this.pos+4>this.len)throw r(this,4);var t=L(this.buf,this.pos);return this.pos+=4,t};var z="undefined"!=typeof Float64Array?function(){var t=new Float64Array(1),i=new Uint8Array(t.buffer);return t[0]=-0,i[7]?function(n,r){return i[0]=n[r],i[1]=n[r+1],i[2]=n[r+2],i[3]=n[r+3],i[4]=n[r+4],i[5]=n[r+5],i[6]=n[r+6],i[7]=n[r+7],t[0]}:function(n,r){return i[7]=n[r],i[6]=n[r+1],i[5]=n[r+2],i[4]=n[r+3],i[3]=n[r+4],i[2]=n[r+5],i[1]=n[r+6],i[0]=n[r+7],t[0]}}():function(t,i){var n=c(t,i+4),r=c(t,i+8),e=2*(r>>31)+1,o=r>>>20&2047,s=4294967296*(1048575&r)+n;return 2047===o?s?NaN:e*(1/0):0===o?5e-324*e*s:e*Math.pow(2,o-1075)*(s+4503599627370496)};N.double=function(){if(this.pos+8>this.len)throw r(this,4);var t=z(this.buf,this.pos);return this.pos+=8,t},N.bytes=function(){var t=this.uint32(),i=this.pos,n=this.pos+t;if(n>this.len)throw r(this,t);return this.pos+=t,i===n?new this.buf.constructor(0):this.b.call(this.buf,i,n)},N.string=function(){var t=this.bytes();return x.read(t,0,t.length)},N.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},N.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},e.a=y,y()},{7:7,9:9}],7:[function(t,i,n){"use strict";function r(t){e.call(this,t)}i.exports=r;var e=t(6),o=r.prototype=Object.create(e.prototype);o.constructor=r;var s=t(9);s.Buffer&&(o.b=s.Buffer.prototype.slice),o.string=function(){var t=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len))}},{6:6,9:9}],8:[function(t,i,n){"use strict";function r(t,i){this.lo=t,this.hi=i}i.exports=r;var e=t(9),o=r.prototype,s=r.zero=new r(0,0);s.toNumber=function(){return 0},s.zzEncode=s.zzDecode=function(){return this},s.length=function(){return 1},r.fromNumber=function(t){if(0===t)return s;var i=t<0;t=Math.abs(t);var n=t>>>0,e=(t-n)/4294967296>>>0;return i&&(e=~e>>>0,n=~n>>>0,++n>4294967295&&(n=0,++e>4294967295&&(e=0))),new r(n,e)},r.from=function(t){if("number"==typeof t)return r.fromNumber(t);if("string"==typeof t){if(!e.Long)return r.fromNumber(parseInt(t,10));t=e.Long.fromString(t)}return t.low||t.high?new r(t.low>>>0,t.high>>>0):s},o.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},o.toLong=function(t){return e.Long?new e.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)},o.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)},o.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},o.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},o.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}},{9:9}],9:[function(require,module,exports){(function(global){"use strict";var util=exports;util.LongBits=require(8),util.base64=require(1),util.inquire=require(2),util.utf8=require(4),util.pool=require(3),util.isNode=Boolean(global.process&&global.process.versions&&global.process.versions.node),util.isIE8=!1;try{util.isIE8=eval("!-[1,]")}catch(t){}util.Buffer=function(){try{var t=util.inquire("buffer").Buffer;return t.prototype.utf8Write?(t.from||(t.from=function(i,n){return new t(i,n)}),t.allocUnsafe||(t.allocUnsafe=function(i){return new t(i)}),t):null}catch(t){return null}}(),util.Array="undefined"==typeof Uint8Array?Array:Uint8Array,util.Long=global.dcodeIO&&global.dcodeIO.Long||util.inquire("long"),util.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},util.isString=function(t){return"string"==typeof t||t instanceof String},util.isObject=function(t){return t&&"object"==typeof t},util.longToHash=function(t){return t?util.LongBits.from(t).toHash():"\0\0\0\0\0\0\0\0"},util.longFromHash=function(t,i){var n=util.LongBits.fromHash(t);return util.Long?util.Long.fromBits(n.lo,n.hi,i):n.toNumber(Boolean(i))},util.longNeq=function(t,i){return"number"==typeof t?"number"==typeof i?t!==i:(t=util.LongBits.fromNumber(t)).lo!==i.low||t.hi!==i.high:"number"==typeof i?(i=util.LongBits.fromNumber(i)).lo!==t.low||i.hi!==t.high:t.low!==i.low||t.high!==i.high},util.longNe=function(t,i,n){if("object"==typeof t)return t.low!==i||t.high!==n;var r=util.LongBits.from(t);return r.lo!==i||r.hi!==n},util.ucFirst=function(t){return t.charAt(0).toUpperCase()+t.substring(1)},util.props=function(t,i){Object.keys(i).forEach(function(n){util.prop(t,n,i[n])})},util.prop=function(t,i,n){var r=util.ucFirst(i);n.get&&(t["get"+r]=n.get),n.set&&(t["set"+r]=util.isIE8?function(t){n.set.call(this,t),this[i]=t}:n.set),util.isIE8?void 0!==n.value&&(t[i]=n.value):Object.defineProperty(t,i,n)},util.emptyArray=Object.freeze?Object.freeze([]):[],util.emptyObject=Object.freeze?Object.freeze({}):{}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{1:1,2:2,3:3,4:4,8:8}],10:[function(t,i,n){"use strict";function r(t,i,n){this.fn=t,this.len=i,this.next=void 0,this.val=n}function e(){}function o(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function s(){this.len=0,this.head=new r(e,0,0),this.tail=this.head,this.states=null}function u(t,i,n){i[n]=255&t}function h(t,i,n){for(;t>127;)i[n++]=127&t|128,t>>>=7;i[n]=t}function f(t,i,n){for(;t.hi;)i[n++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)i[n++]=127&t.lo|128,t.lo=t.lo>>>7;i[n++]=t.lo}function l(t,i,n){i[n++]=255&t,i[n++]=t>>>8&255,i[n++]=t>>>16&255,i[n]=t>>>24}i.exports=s;var a,c=t(9),p=c.LongBits,d=c.base64,b=c.utf8;s.create=c.Buffer?function(){return a||(a=t(11)),(s.create=function(){return new a})()}:function(){return new s},s.alloc=function(t){return new c.Array(t)},c.Array!==Array&&(s.alloc=c.pool(s.alloc,c.Array.prototype.subarray));var g=s.prototype;g.push=function(t,i,n){return this.tail=this.tail.next=new r(t,i,n),this.len+=i,this},g.uint32=function(t){return t>>>=0,this.push(h,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 i=p.from(t);return this.push(f,i.length(),i)},g.int64=g.uint64,g.sint64=function(t){var i=p.from(t).zzEncode();return this.push(f,i.length(),i)},g.bool=function(t){return this.push(u,1,t?1:0)},g.fixed32=function(t){return this.push(l,4,t>>>0)},g.sfixed32=function(t){return this.push(l,4,t<<1^t>>31)},g.fixed64=function(t){var i=p.from(t);return this.push(l,4,i.lo).push(l,4,i.hi)},g.sfixed64=function(t){var i=p.from(t).zzEncode();return this.push(l,4,i.lo).push(l,4,i.hi)};var v="undefined"!=typeof Float32Array?function(){var t=new Float32Array(1),i=new Uint8Array(t.buffer);return t[0]=-0,i[3]?function(n,r,e){t[0]=n,r[e++]=i[0],r[e++]=i[1],r[e++]=i[2],r[e]=i[3]}:function(n,r,e){t[0]=n,r[e++]=i[3],r[e++]=i[2],r[e++]=i[1],r[e]=i[0]}}():function(t,i,n){var r=t<0?1:0;if(r&&(t=-t),0===t)l(1/t>0?0:2147483648,i,n);else if(isNaN(t))l(2147483647,i,n);else if(t>3.4028234663852886e38)l((r<<31|2139095040)>>>0,i,n);else if(t<1.1754943508222875e-38)l((r<<31|Math.round(t/1.401298464324817e-45))>>>0,i,n);else{var e=Math.floor(Math.log(t)/Math.LN2),o=8388607&Math.round(t*Math.pow(2,-e)*8388608);l((r<<31|e+127<<23|o)>>>0,i,n)}};g.float=function(t){return this.push(v,4,t)};var y="undefined"!=typeof Float64Array?function(){var t=new Float64Array(1),i=new Uint8Array(t.buffer);return t[0]=-0,i[7]?function(n,r,e){t[0]=n,r[e++]=i[0],r[e++]=i[1],r[e++]=i[2],r[e++]=i[3],r[e++]=i[4],r[e++]=i[5],r[e++]=i[6],r[e]=i[7]}:function(n,r,e){t[0]=n,r[e++]=i[7],r[e++]=i[6],r[e++]=i[5],r[e++]=i[4],r[e++]=i[3],r[e++]=i[2],r[e++]=i[1],r[e]=i[0]}}():function(t,i,n){var r=t<0?1:0;if(r&&(t=-t),0===t)l(0,i,n),l(1/t>0?0:2147483648,i,n+4);else if(isNaN(t))l(4294967295,i,n),l(2147483647,i,n+4);else if(t>1.7976931348623157e308)l(0,i,n),l((r<<31|2146435072)>>>0,i,n+4);else{var e;if(t<2.2250738585072014e-308)e=t/5e-324,l(e>>>0,i,n),l((r<<31|e/4294967296)>>>0,i,n+4);else{var o=Math.floor(Math.log(t)/Math.LN2);1024===o&&(o=1023),e=t*Math.pow(2,-o),l(4503599627370496*e>>>0,i,n),l((r<<31|o+1023<<20|1048576*e&1048575)>>>0,i,n+4)}}};g.double=function(t){return this.push(y,8,t)};var w=c.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]};g.bytes=function(t){var i=t.length>>>0;if("string"==typeof t&&i){var n=s.alloc(i=d.length(t));d.decode(t,n,0),t=n}return i?this.uint32(i).push(w,i,t):this.push(u,1,0)},g.string=function(t){var i=b.length(t);return i?this.uint32(i).push(b.write,i,t):this.push(u,1,0)},g.fork=function(){return this.states=new o(this),this.head=this.tail=new r(e,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(e,0,0),this.len=0),this},g.ldelim=function(t){var i=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=i.next,this.tail=n,this.len+=r,this},g.finish=function(){for(var t=this.head.next,i=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,i,n),n+=t.len,t=t.next;return i}},{11:11,9:9}],11:[function(t,i,n){"use strict";function r(){o.call(this)}function e(t,i,n){t.length<40?h.write(t,i,n):i.utf8Write(t,n)}i.exports=r;var o=t(10),s=r.prototype=Object.create(o.prototype);s.constructor=r;var u=t(9),h=u.utf8,f=u.Buffer;r.alloc=function(t){return(r.alloc=f.allocUnsafe)(t)};var l=f&&f.prototype instanceof Uint8Array&&"set"===f.prototype.set.name?function(t,i,n){i.set(t,n)}:function(t,i,n){t.copy(i,n,0,t.length)};s.bytes=function(t){"string"==typeof t&&(t=f.from(t,"base64"));var i=t.length>>>0;return this.uint32(i),i&&this.push(l,i,t),this},s.string=function(t){var i=f.byteLength(t);return this.uint32(i),i&&this.push(e,i,t),this}},{10:10,9:9}]},{},[5]);
!function t(i,n,r){function e(s,u){if(!n[s]){if(!i[s]){var h="function"==typeof require&&require;if(!u&&h)return h(s,!0);if(o)return o(s,!0);var f=new Error("Cannot find module '"+s+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[s]={exports:{}};i[s][0].call(l.exports,function(t){var n=i[s][1][t];return e(n?n:t)},l,l.exports,t,i,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)e(r[s]);return e}({1:[function(t,i,n){"use strict";var r=n;r.length=function(t){var i=t.length;if(!i)return 0;for(var n=0;--i%4>1&&"="===t.charAt(i);)++n;return Math.ceil(3*t.length)/4-n};for(var e=new Array(64),o=new Array(123),s=0;s<64;)o[e[s]=s<26?s+65:s<52?s+71:s<62?s-4:s-59|43]=s++;r.encode=function(t,i,n){for(var r,o=[],s=0,u=0;i<n;){var h=t[i++];switch(u){case 0:o[s++]=e[h>>2],r=(3&h)<<4,u=1;break;case 1:o[s++]=e[r|h>>4],r=(15&h)<<2,u=2;break;case 2:o[s++]=e[r|h>>6],o[s++]=e[63&h],u=0}}return u&&(o[s++]=e[r],o[s]=61,1===u&&(o[s+1]=61)),String.fromCharCode.apply(String,o)};var u="invalid encoding";r.decode=function(t,i,n){for(var r,e=n,s=0,h=0;h<t.length;){var f=t.charCodeAt(h++);if(61===f&&s>1)break;if(void 0===(f=o[f]))throw Error(u);switch(s){case 0:r=f,s=1;break;case 1:i[n++]=r<<2|(48&f)>>4,r=f,s=2;break;case 2:i[n++]=(15&r)<<4|(60&f)>>2,r=f,s=3;break;case 3:i[n++]=(3&r)<<6|f,s=0}}if(1===s)throw Error(u);return n-e}},{}],2:[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},{}],3:[function(t,i,n){"use strict";function r(t,i,n){var r=n||8192,e=r>>>1,o=null,s=r;return function(n){if(n<1||n>e)return t(n);s+n>r&&(o=t(r),s=0);var u=i.call(o,s,s+=n);return 7&s&&(s=(7|s)+1),u}}i.exports=r},{}],4:[function(t,i,n){"use strict";var r=n;r.length=function(t){for(var i=0,n=0,r=0;r<t.length;++r)n=t.charCodeAt(r),n<128?i+=1:n<2048?i+=2:55296===(64512&n)&&56320===(64512&t.charCodeAt(r+1))?(++r,i+=4):i+=3;return i},r.read=function(t,i,n){var r=n-i;if(r<1)return"";for(var e,o=null,s=[],u=0;i<n;)e=t[i++],e<128?s[u++]=e:e>191&&e<224?s[u++]=(31&e)<<6|63&t[i++]:e>239&&e<365?(e=((7&e)<<18|(63&t[i++])<<12|(63&t[i++])<<6|63&t[i++])-65536,s[u++]=55296+(e>>10),s[u++]=56320+(1023&e)):s[u++]=(15&e)<<12|(63&t[i++])<<6|63&t[i++],u>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),u=0);return o?(u&&o.push(String.fromCharCode.apply(String,s.slice(0,u))),o.join("")):u?String.fromCharCode.apply(String,s.slice(0,u)):""},r.write=function(t,i,n){for(var r,e,o=n,s=0;s<t.length;++s)r=t.charCodeAt(s),r<128?i[n++]=r:r<2048?(i[n++]=r>>6|192,i[n++]=63&r|128):55296===(64512&r)&&56320===(64512&(e=t.charCodeAt(s+1)))?(r=65536+((1023&r)<<10)+(1023&e),++s,i[n++]=r>>18|240,i[n++]=r>>12&63|128,i[n++]=r>>6&63|128,i[n++]=63&r|128):(i[n++]=r>>12|224,i[n++]=r>>6&63|128,i[n++]=63&r|128);return n-o}},{}],5:[function(t,i,n){(function(i){"use strict";function r(){e.Reader.a()}var e=i.protobuf=n;e.Writer=t(10),e.BufferWriter=t(11),e.Reader=t(6),e.BufferReader=t(7),e.util=t(9),e.roots={},e.configure=r,"function"==typeof define&&define.amd&&define(["long"],function(t){return t&&(e.util.Long=t,r()),e})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{10:10,11:11,6:6,7:7,9:9}],6:[function(t,i,n){"use strict";function r(t,i){return RangeError("index out of range: "+t.pos+" + "+(i||1)+" > "+t.len)}function e(t){this.buf=t,this.pos=0,this.len=t.length}function o(){var t=new A(0,0),i=0;if(this.len-this.pos>4){for(i=0;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}else{for(i=0;i<4;++i){if(this.pos>=this.len)throw r(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*i)>>>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(i=0;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=0;i<5;++i){if(this.pos>=this.len)throw r(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 s(){return o.call(this).toLong()}function u(){return o.call(this).toNumber()}function h(){return o.call(this).toLong(!0)}function f(){return o.call(this).toNumber(!0)}function l(){return o.call(this).zzDecode().toLong()}function a(){return o.call(this).zzDecode().toNumber()}function c(t,i){return(t[i-4]|t[i-3]<<8|t[i-2]<<16|t[i-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw r(this,8);return new A(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}function d(){return p.call(this).toLong(!0)}function b(){return p.call(this).toNumber(!0)}function g(){return p.call(this).zzDecode().toLong()}function v(){return p.call(this).zzDecode().toNumber()}function y(){m.Long?(N.int64=s,N.uint64=h,N.sint64=l,N.fixed64=d,N.sfixed64=g):(N.int64=u,N.uint64=f,N.sint64=a,N.fixed64=b,N.sfixed64=v)}i.exports=e;var w,m=t(9),A=m.LongBits,x=m.utf8;e.create=m.Buffer?function(i){return w||(w=t(7)),(e.create=function(t){return new w(t)})(i)}:function(t){return new e(t)};var N=e.prototype;N.b=m.Array.prototype.subarray||m.Array.prototype.slice,N.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}}(),N.int32=function(){return 0|this.uint32()},N.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},N.bool=function(){return 0!==this.uint32()},N.fixed32=function(){if(this.pos+4>this.len)throw r(this,4);return c(this.buf,this.pos+=4)},N.sfixed32=function(){var t=this.fixed32();return t>>>1^-(1&t)};var L="undefined"!=typeof Float32Array?function(){var t=new Float32Array(1),i=new Uint8Array(t.buffer);return t[0]=-0,i[3]?function(n,r){return i[0]=n[r],i[1]=n[r+1],i[2]=n[r+2],i[3]=n[r+3],t[0]}:function(n,r){return i[3]=n[r],i[2]=n[r+1],i[1]=n[r+2],i[0]=n[r+3],t[0]}}():function(t,i){var n=c(t,i+4),r=2*(n>>31)+1,e=n>>>23&255,o=8388607&n;return 255===e?o?NaN:r*(1/0):0===e?1.401298464324817e-45*r*o:r*Math.pow(2,e-150)*(o+8388608)};N.float=function(){if(this.pos+4>this.len)throw r(this,4);var t=L(this.buf,this.pos);return this.pos+=4,t};var z="undefined"!=typeof Float64Array?function(){var t=new Float64Array(1),i=new Uint8Array(t.buffer);return t[0]=-0,i[7]?function(n,r){return i[0]=n[r],i[1]=n[r+1],i[2]=n[r+2],i[3]=n[r+3],i[4]=n[r+4],i[5]=n[r+5],i[6]=n[r+6],i[7]=n[r+7],t[0]}:function(n,r){return i[7]=n[r],i[6]=n[r+1],i[5]=n[r+2],i[4]=n[r+3],i[3]=n[r+4],i[2]=n[r+5],i[1]=n[r+6],i[0]=n[r+7],t[0]}}():function(t,i){var n=c(t,i+4),r=c(t,i+8),e=2*(r>>31)+1,o=r>>>20&2047,s=4294967296*(1048575&r)+n;return 2047===o?s?NaN:e*(1/0):0===o?5e-324*e*s:e*Math.pow(2,o-1075)*(s+4503599627370496)};N.double=function(){if(this.pos+8>this.len)throw r(this,4);var t=z(this.buf,this.pos);return this.pos+=8,t},N.bytes=function(){var t=this.uint32(),i=this.pos,n=this.pos+t;if(n>this.len)throw r(this,t);return this.pos+=t,i===n?new this.buf.constructor(0):this.b.call(this.buf,i,n)},N.string=function(){var t=this.bytes();return x.read(t,0,t.length)},N.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},N.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},e.a=y,y()},{7:7,9:9}],7:[function(t,i,n){"use strict";function r(t){e.call(this,t)}i.exports=r;var e=t(6),o=r.prototype=Object.create(e.prototype);o.constructor=r;var s=t(9);s.Buffer&&(o.b=s.Buffer.prototype.slice),o.string=function(){var t=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len))}},{6:6,9:9}],8:[function(t,i,n){"use strict";function r(t,i){this.lo=t,this.hi=i}i.exports=r;var e=t(9),o=r.prototype,s=r.zero=new r(0,0);s.toNumber=function(){return 0},s.zzEncode=s.zzDecode=function(){return this},s.length=function(){return 1},r.fromNumber=function(t){if(0===t)return s;var i=t<0;t=Math.abs(t);var n=t>>>0,e=(t-n)/4294967296>>>0;return i&&(e=~e>>>0,n=~n>>>0,++n>4294967295&&(n=0,++e>4294967295&&(e=0))),new r(n,e)},r.from=function(t){if("number"==typeof t)return r.fromNumber(t);if("string"==typeof t){if(!e.Long)return r.fromNumber(parseInt(t,10));t=e.Long.fromString(t)}return t.low||t.high?new r(t.low>>>0,t.high>>>0):s},o.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},o.toLong=function(t){return e.Long?new e.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)},o.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)},o.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},o.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},o.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}},{9:9}],9:[function(require,module,exports){(function(global){"use strict";var util=exports;util.LongBits=require(8),util.base64=require(1),util.inquire=require(2),util.utf8=require(4),util.pool=require(3),util.isNode=Boolean(global.process&&global.process.versions&&global.process.versions.node),util.isIE8=!1;try{util.isIE8=eval("!-[1,]")}catch(t){}util.Buffer=function(){try{var t=util.inquire("buffer").Buffer;return t.prototype.utf8Write?(t.from||(t.from=function(i,n){return new t(i,n)}),t.allocUnsafe||(t.allocUnsafe=function(i){return new t(i)}),t):null}catch(t){return null}}(),util.Array="undefined"==typeof Uint8Array?Array:Uint8Array,util.Long=global.dcodeIO&&global.dcodeIO.Long||util.inquire("long"),util.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},util.isString=function(t){return"string"==typeof t||t instanceof String},util.isObject=function(t){return t&&"object"==typeof t},util.longToHash=function(t){return t?util.LongBits.from(t).toHash():"\0\0\0\0\0\0\0\0"},util.longFromHash=function(t,i){var n=util.LongBits.fromHash(t);return util.Long?util.Long.fromBits(n.lo,n.hi,i):n.toNumber(Boolean(i))},util.longNeq=function(t,i){return"number"==typeof t?"number"==typeof i?t!==i:(t=util.LongBits.fromNumber(t)).lo!==i.low||t.hi!==i.high:"number"==typeof i?(i=util.LongBits.fromNumber(i)).lo!==t.low||i.hi!==t.high:t.low!==i.low||t.high!==i.high},util.longNe=function(t,i,n){if("object"==typeof t)return t.low!==i||t.high!==n;var r=util.LongBits.from(t);return r.lo!==i||r.hi!==n},util.ucFirst=function(t){return t.charAt(0).toUpperCase()+t.substring(1)},util.props=function(t,i){Object.keys(i).forEach(function(n){util.prop(t,n,i[n])})},util.prop=function(t,i,n){var r=util.ucFirst(i);n.get&&(t["get"+r]=n.get),n.set&&(t["set"+r]=util.isIE8?function(t){n.set.call(this,t),this[i]=t}:n.set),util.isIE8?void 0!==n.value&&(t[i]=n.value):Object.defineProperty(t,i,n)},util.emptyArray=Object.freeze?Object.freeze([]):[],util.emptyObject=Object.freeze?Object.freeze({}):{}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{1:1,2:2,3:3,4:4,8:8}],10:[function(t,i,n){"use strict";function r(t,i,n){this.fn=t,this.len=i,this.next=void 0,this.val=n}function e(){}function o(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function s(){this.len=0,this.head=new r(e,0,0),this.tail=this.head,this.states=null}function u(t,i,n){i[n]=255&t}function h(t,i,n){for(;t>127;)i[n++]=127&t|128,t>>>=7;i[n]=t}function f(t,i,n){for(;t.hi;)i[n++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)i[n++]=127&t.lo|128,t.lo=t.lo>>>7;i[n++]=t.lo}function l(t,i,n){i[n++]=255&t,i[n++]=t>>>8&255,i[n++]=t>>>16&255,i[n]=t>>>24}i.exports=s;var a,c=t(9),p=c.LongBits,d=c.base64,b=c.utf8;s.create=c.Buffer?function(){return a||(a=t(11)),(s.create=function(){return new a})()}:function(){return new s},s.alloc=function(t){return new c.Array(t)},c.Array!==Array&&(s.alloc=c.pool(s.alloc,c.Array.prototype.subarray));var g=s.prototype;g.push=function(t,i,n){return this.tail=this.tail.next=new r(t,i,n),this.len+=i,this},g.uint32=function(t){return t>>>=0,this.push(h,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 i=p.from(t);return this.push(f,i.length(),i)},g.int64=g.uint64,g.sint64=function(t){var i=p.from(t).zzEncode();return this.push(f,i.length(),i)},g.bool=function(t){return this.push(u,1,t?1:0)},g.fixed32=function(t){return this.push(l,4,t>>>0)},g.sfixed32=function(t){return this.push(l,4,t<<1^t>>31)},g.fixed64=function(t){var i=p.from(t);return this.push(l,4,i.lo).push(l,4,i.hi)},g.sfixed64=function(t){var i=p.from(t).zzEncode();return this.push(l,4,i.lo).push(l,4,i.hi)};var v="undefined"!=typeof Float32Array?function(){var t=new Float32Array(1),i=new Uint8Array(t.buffer);return t[0]=-0,i[3]?function(n,r,e){t[0]=n,r[e++]=i[0],r[e++]=i[1],r[e++]=i[2],r[e]=i[3]}:function(n,r,e){t[0]=n,r[e++]=i[3],r[e++]=i[2],r[e++]=i[1],r[e]=i[0]}}():function(t,i,n){var r=t<0?1:0;if(r&&(t=-t),0===t)l(1/t>0?0:2147483648,i,n);else if(isNaN(t))l(2147483647,i,n);else if(t>3.4028234663852886e38)l((r<<31|2139095040)>>>0,i,n);else if(t<1.1754943508222875e-38)l((r<<31|Math.round(t/1.401298464324817e-45))>>>0,i,n);else{var e=Math.floor(Math.log(t)/Math.LN2),o=8388607&Math.round(t*Math.pow(2,-e)*8388608);l((r<<31|e+127<<23|o)>>>0,i,n)}};g.float=function(t){return this.push(v,4,t)};var y="undefined"!=typeof Float64Array?function(){var t=new Float64Array(1),i=new Uint8Array(t.buffer);return t[0]=-0,i[7]?function(n,r,e){t[0]=n,r[e++]=i[0],r[e++]=i[1],r[e++]=i[2],r[e++]=i[3],r[e++]=i[4],r[e++]=i[5],r[e++]=i[6],r[e]=i[7]}:function(n,r,e){t[0]=n,r[e++]=i[7],r[e++]=i[6],r[e++]=i[5],r[e++]=i[4],r[e++]=i[3],r[e++]=i[2],r[e++]=i[1],r[e]=i[0]}}():function(t,i,n){var r=t<0?1:0;if(r&&(t=-t),0===t)l(0,i,n),l(1/t>0?0:2147483648,i,n+4);else if(isNaN(t))l(4294967295,i,n),l(2147483647,i,n+4);else if(t>1.7976931348623157e308)l(0,i,n),l((r<<31|2146435072)>>>0,i,n+4);else{var e;if(t<2.2250738585072014e-308)e=t/5e-324,l(e>>>0,i,n),l((r<<31|e/4294967296)>>>0,i,n+4);else{var o=Math.floor(Math.log(t)/Math.LN2);1024===o&&(o=1023),e=t*Math.pow(2,-o),l(4503599627370496*e>>>0,i,n),l((r<<31|o+1023<<20|1048576*e&1048575)>>>0,i,n+4)}}};g.double=function(t){return this.push(y,8,t)};var w=c.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]};g.bytes=function(t){var i=t.length>>>0;if("string"==typeof t&&i){var n=s.alloc(i=d.length(t));d.decode(t,n,0),t=n}return i?this.uint32(i).push(w,i,t):this.push(u,1,0)},g.string=function(t){var i=b.length(t);return i?this.uint32(i).push(b.write,i,t):this.push(u,1,0)},g.fork=function(){return this.states=new o(this),this.head=this.tail=new r(e,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(e,0,0),this.len=0),this},g.ldelim=function(){var t=this.head,i=this.tail,n=this.len;return this.reset().uint32(n).tail.next=t.next,this.tail=i,this.len+=n,this},g.finish=function(){for(var t=this.head.next,i=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,i,n),n+=t.len,t=t.next;return i}},{11:11,9:9}],11:[function(t,i,n){"use strict";function r(){o.call(this)}function e(t,i,n){t.length<40?h.write(t,i,n):i.utf8Write(t,n)}i.exports=r;var o=t(10),s=r.prototype=Object.create(o.prototype);s.constructor=r;var u=t(9),h=u.utf8,f=u.Buffer;r.alloc=function(t){return(r.alloc=f.allocUnsafe)(t)};var l=f&&f.prototype instanceof Uint8Array&&"set"===f.prototype.set.name?function(t,i,n){i.set(t,n)}:function(t,i,n){t.copy(i,n,0,t.length)};s.bytes=function(t){"string"==typeof t&&(t=f.from(t,"base64"));var i=t.length>>>0;return this.uint32(i),i&&this.push(l,i,t),this},s.string=function(t){var i=f.byteLength(t);return this.uint32(i),i&&this.push(e,i,t),this}},{10:10,9:9}]},{},[5]);
//# sourceMappingURL=protobuf.min.js.map
{
"name": "protobufjs",
"version": "6.3.0",
"version": "6.3.1",
"description": "Protocol Buffers for JavaScript (& TypeScript).",

@@ -60,3 +60,3 @@ "author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",

"@types/long": "^3.0.31",
"@types/node": "6.0.53",
"@types/node": "6.0.54",
"benchmark": "^2.1.3",

@@ -63,0 +63,0 @@ "browserify": "^13.1.1",

protobuf.js
===========
[![travis][travis-image]][travis-url] [![npm][npm-dl-image]][npm-url] [![npm][npm-image]][npm-url] [![donate][paypal-image]][paypal-url]
[![travis][travis-image]][travis-url] [![david][david-image]][david-url] [![npm][npm-dl-image]][npm-url] [![npm][npm-image]][npm-url] [![donate][paypal-image]][paypal-url]

@@ -11,2 +11,4 @@ **Protocol Buffers** are a language-neutral, platform-neutral, extensible way of serializing structured data for use in communications protocols, data storage, and more, originally designed at Google ([see](https://developers.google.com/protocol-buffers/)).

[travis-url]: https://travis-ci.org/dcodeIO/protobuf.js
[david-url]: https://david-dm.org/dcodeIO/protobuf.js
[david-image]: https://img.shields.io/david/dcodeIO/protobuf.js.svg
[npm-image]: https://img.shields.io/npm/v/protobufjs.svg

@@ -397,2 +399,4 @@ [npm-url]: https://npmjs.org/package/protobufjs

--no-comments Does not output any JSDoc comments.
usage: pbts [options] file1.js file2.js ...

@@ -399,0 +403,0 @@ ```

@@ -49,3 +49,3 @@ "use strict";

ctor.constructor = Class;
// new Class() -> Message.prototype

@@ -52,0 +52,0 @@ var prototype = ctor.prototype = new Message();

@@ -22,3 +22,3 @@ "use strict";

* Converts between JSON objects and messages, based on reflection information.
* @param {Type} type Type
* @param {Type} type Type
* @param {*} source Source object

@@ -82,3 +82,3 @@ * @param {*} destination Destination object

options = {};
// Recurse into inner messages

@@ -85,0 +85,0 @@ if (value instanceof Message)

@@ -15,3 +15,3 @@ "use strict";

/* eslint-disable no-unexpected-multiline */
var fields = mtype.getFieldsArray();
var fields = mtype.getFieldsArray();
var gen = util.codegen("r", "l")

@@ -28,3 +28,3 @@

("switch(t>>>3){");
for (var i = 0; i < fields.length; ++i) {

@@ -31,0 +31,0 @@ var field = fields[i].resolve(),

@@ -8,10 +8,6 @@ "use strict";

var safeProp = util.safeProp;
function genEncodeType(gen, field, fieldIndex, ref, alwaysRequired) {
if (field.resolvedType.group)
return gen("types[%d].encode(%s,w.uint32(%d)).uint32(%d)", fieldIndex, ref, (field.id << 3 | 3) >>> 0, (field.id << 3 | 4) >>> 0);
return alwaysRequired || field.required
? gen("types[%d].encode(%s,w.uint32(%d).fork()).ldelim()", fieldIndex, ref, (field.id << 3 | 2) >>> 0)
: gen("types[%d].encode(%s,w.fork()).len&&w.ldelim(%d)||w.reset()", fieldIndex, ref, field.id);
function genEncodeType(gen, field, fieldIndex, ref) {
return field.resolvedType.group
? gen("types[%d].encode(%s,w.uint32(%d)).uint32(%d)", fieldIndex, ref, (field.id << 3 | 3) >>> 0, (field.id << 3 | 4) >>> 0)
: gen("types[%d].encode(%s,w.uint32(%d).fork()).ldelim()", fieldIndex, ref, (field.id << 3 | 2) >>> 0);
}

@@ -36,3 +32,3 @@

wireType = types.basic[type];
ref = "m" + safeProp(field.name);
ref = "m" + util.safeProp(field.name);

@@ -74,3 +70,3 @@ // Map fields

if (wireType === undefined)
genEncodeType(gen, field, i, ref + "[i]", true);
genEncodeType(gen, field, i, ref + "[i]");
else gen

@@ -94,3 +90,3 @@ ("w.uint32(%d).%s(%s[i])", (field.id << 3 | wireType) >>> 0, type, ref);

if (wireType === undefined)
genEncodeType(gen, field, i, ref, true);
genEncodeType(gen, field, i, ref);
else gen

@@ -104,3 +100,3 @@ ("w.uint32(%d).%s(%s)", (field.id << 3 | wireType) >>> 0, type, ref);

gen
("switch(%s){", "m" + safeProp(oneof.name));
("switch(%s){", "m.get" + oneof.ucName + "()");
var oneofFields = oneof.getFieldsArray();

@@ -111,3 +107,3 @@ for (var j = 0; j < oneofFields.length; ++j) {

wireType = types.basic[type];
ref = "m" + safeProp(field.name);
ref = "m" + util.safeProp(field.name);
gen

@@ -125,3 +121,3 @@ ("case%j:", field.name);

} gen
("}");
("}");
}

@@ -128,0 +124,0 @@

@@ -40,3 +40,3 @@ "use strict";

ReflectionObject.call(this, name, options);
/* istanbul ignore next */

@@ -265,3 +265,3 @@ if (!util.isInteger(id) || id < 0)

this.defaultValue = typeDefault;
if (this.long) {

@@ -268,0 +268,0 @@ this.defaultValue = util.Long.fromNumber(this.defaultValue, this.type.charAt(0) === "u");

@@ -32,3 +32,3 @@ "use strict";

throw util._TypeError("keyType");
/**

@@ -89,3 +89,3 @@ * Key type.

return this;
// Besides a value type, map fields have a key type that may be "any scalar type except for floating point types and bytes"

@@ -92,0 +92,0 @@ if (types.mapKey[this.keyType] === undefined)

@@ -249,3 +249,3 @@ "use strict";

throw Error(object + " is not a member of " + this);
delete this.nested[object.name];

@@ -252,0 +252,0 @@ if (!Object.keys(this.nested).length)

@@ -105,3 +105,3 @@ "use strict";

function addFieldsToParent(oneof) {
if (oneof.parent)
if (oneof.parent) {
oneof._fieldsArray.forEach(function(field) {

@@ -111,2 +111,3 @@ if (!field.parent)

});
}
}

@@ -165,2 +166,12 @@

ReflectionObject.prototype.onAdd.call(this, parent);
var self = this;
// Collect present fields
this.oneof.forEach(function(fieldName) {
var field = parent.get(fieldName);
if (field && !field.partOf) {
field.partOf = self;
self._fieldsArray.push(field);
}
});
// Add not yet present fields
addFieldsToParent(this);

@@ -167,0 +178,0 @@ };

@@ -281,3 +281,3 @@ "use strict";

break;
default:

@@ -284,0 +284,0 @@ if (!isProto3 || !isTypeRef(token))

@@ -23,3 +23,3 @@ "use strict";

function Reader(buffer) {
/**

@@ -81,3 +81,3 @@ * Read buffer.

value = (value | (this.buf[this.pos] & 15) << 28) >>> 0; if (this.buf[this.pos++] < 128) return value;
/* istanbul ignore next */

@@ -489,3 +489,3 @@ if ((this.pos += 5) > this.len) {

break;
/* istanbul ignore next */

@@ -492,0 +492,0 @@ default:

@@ -33,3 +33,3 @@ "use strict";

/**
* Resolved file names of loaded files.
* Resolved file names of loaded files.
* @type {string[]}

@@ -36,0 +36,0 @@ */

@@ -41,7 +41,7 @@ "use strict";

source = source.toString();
var offset = 0,
length = source.length,
line = 1;
var stack = [];

@@ -48,0 +48,0 @@

"use strict";
module.exports = Type;
module.exports = Type;

@@ -4,0 +4,0 @@ var Namespace = require("./namespace");

@@ -516,14 +516,11 @@ "use strict";

* Resets to the last state and appends the fork state's current write length as a varint followed by its operations.
* @param {number} [id] Id with wire type 2 to prepend as a tag where applicable
* @returns {Writer} `this`
*/
WriterPrototype.ldelim = function ldelim(id) {
WriterPrototype.ldelim = function ldelim() {
var head = this.head,
tail = this.tail,
len = this.len;
this.reset();
if (typeof id === "number")
this.uint32((id << 3 | 2) >>> 0);
this.uint32(len);
this.tail.next = head.next; // skip noop
this.reset()
.uint32(len)
.tail.next = head.next; // skip noop
this.tail = tail;

@@ -530,0 +527,0 @@ this.len += len;

@@ -60,4 +60,4 @@ "use strict"; // eslint-disable-line strict

w||(w=Writer.create())
if(m["whatever"]!==undefined&&m["whatever"]!=="")
w.uint32(10).string(m["whatever"])
if(m.whatever!==undefined&&m.whatever!=="")
w.uint32(10).string(m.whatever)
return w

@@ -97,3 +97,3 @@ }

case 1:
m["whatever"]=r.string()
m.whatever=r.string()
break

@@ -131,4 +131,4 @@ default:

return function verify(m) {
if(m["whatever"]!==undefined){
if(!util.isString(m["whatever"]))
if(m.whatever!==undefined){
if(!util.isString(m.whatever))
return"invalid value for field .A.whatever (string expected)"

@@ -193,4 +193,4 @@ }

w||(w=Writer.create())
if(m["A"]!==undefined&&m["A"]!==null)
types[0].encode(m["A"],w.uint32(10).fork()).ldelim()
if(m.A!==undefined&&m.A!==null)
types[0].encode(m.A,w.uint32(10).fork()).ldelim()
return w

@@ -230,3 +230,3 @@ }

case 1:
m["A"]=types[0].decode(r,r.uint32())
m.A=types[0].decode(r,r.uint32())
break

@@ -264,5 +264,5 @@ default:

return function verify(m) {
if(m["A"]!==undefined&&m["A"]!==null){
if(m.A!==undefined&&m.A!==null){
var r;
if(r=types[0].verify(m["A"]))
if(r=types[0].verify(m.A))
return r

@@ -269,0 +269,0 @@ }

@@ -69,5 +69,5 @@ "use strict"; // eslint-disable-line strict

w||(w=Writer.create())
if(m["layers"])
for(var i=0;i<m["layers"].length;++i)
types[0].encode(m["layers"][i],w.uint32(26).fork()).ldelim()
if(m.layers)
for(var i=0;i<m.layers.length;++i)
types[0].encode(m.layers[i],w.uint32(26).fork()).ldelim()
return w

@@ -107,4 +107,4 @@ }

case 3:
m["layers"]&&m["layers"].length?m["layers"]:m["layers"]=[]
m["layers"].push(types[0].decode(r,r.uint32()))
m.layers&&m.layers.length||(m.layers=[])
m.layers.push(types[0].decode(r,r.uint32()))
break

@@ -142,8 +142,8 @@ default:

return function verify(m) {
if(m["layers"]!==undefined){
if(!Array.isArray(m["layers"]))
if(m.layers!==undefined){
if(!Array.isArray(m.layers))
return"invalid value for field .vector_tile.Tile.layers (array expected)"
for(var i=0;i<m["layers"].length;++i){
for(var i=0;i<m.layers.length;++i){
var r;
if(r=types[0].verify(m["layers"][i]))
if(r=types[0].verify(m.layers[i]))
return r

@@ -261,16 +261,16 @@ }

w||(w=Writer.create())
if(m["stringValue"]!==undefined&&m["stringValue"]!=="")
w.uint32(10).string(m["stringValue"])
if(m["floatValue"]!==undefined&&m["floatValue"]!==0)
w.uint32(21).float(m["floatValue"])
if(m["doubleValue"]!==undefined&&m["doubleValue"]!==0)
w.uint32(25).double(m["doubleValue"])
if(m["intValue"]!==undefined&&util.longNe(m["intValue"],0,0))
w.uint32(32).int64(m["intValue"])
if(m["uintValue"]!==undefined&&util.longNe(m["uintValue"],0,0))
w.uint32(40).uint64(m["uintValue"])
if(m["sintValue"]!==undefined&&util.longNe(m["sintValue"],0,0))
w.uint32(48).sint64(m["sintValue"])
if(m["boolValue"]!==undefined&&m["boolValue"]!==false)
w.uint32(56).bool(m["boolValue"])
if(m.stringValue!==undefined&&m.stringValue!=="")
w.uint32(10).string(m.stringValue)
if(m.floatValue!==undefined&&m.floatValue!==0)
w.uint32(21).float(m.floatValue)
if(m.doubleValue!==undefined&&m.doubleValue!==0)
w.uint32(25).double(m.doubleValue)
if(m.intValue!==undefined&&util.longNe(m.intValue,0,0))
w.uint32(32).int64(m.intValue)
if(m.uintValue!==undefined&&util.longNe(m.uintValue,0,0))
w.uint32(40).uint64(m.uintValue)
if(m.sintValue!==undefined&&util.longNe(m.sintValue,0,0))
w.uint32(48).sint64(m.sintValue)
if(m.boolValue!==undefined&&m.boolValue!==false)
w.uint32(56).bool(m.boolValue)
return w

@@ -310,21 +310,21 @@ }

case 1:
m["stringValue"]=r.string()
m.stringValue=r.string()
break
case 2:
m["floatValue"]=r.float()
m.floatValue=r.float()
break
case 3:
m["doubleValue"]=r.double()
m.doubleValue=r.double()
break
case 4:
m["intValue"]=r.int64()
m.intValue=r.int64()
break
case 5:
m["uintValue"]=r.uint64()
m.uintValue=r.uint64()
break
case 6:
m["sintValue"]=r.sint64()
m.sintValue=r.sint64()
break
case 7:
m["boolValue"]=r.bool()
m.boolValue=r.bool()
break

@@ -362,28 +362,28 @@ default:

return function verify(m) {
if(m["stringValue"]!==undefined){
if(!util.isString(m["stringValue"]))
if(m.stringValue!==undefined){
if(!util.isString(m.stringValue))
return"invalid value for field .vector_tile.Tile.Value.stringValue (string expected)"
}
if(m["floatValue"]!==undefined){
if(typeof m["floatValue"]!=="number")
if(m.floatValue!==undefined){
if(typeof m.floatValue!=="number")
return"invalid value for field .vector_tile.Tile.Value.floatValue (number expected)"
}
if(m["doubleValue"]!==undefined){
if(typeof m["doubleValue"]!=="number")
if(m.doubleValue!==undefined){
if(typeof m.doubleValue!=="number")
return"invalid value for field .vector_tile.Tile.Value.doubleValue (number expected)"
}
if(m["intValue"]!==undefined){
if(!util.isInteger(m["intValue"])&&!(m["intValue"]&&util.isInteger(m["intValue"].low)&&util.isInteger(m["intValue"].high)))
if(m.intValue!==undefined){
if(!util.isInteger(m.intValue)&&!(m.intValue&&util.isInteger(m.intValue.low)&&util.isInteger(m.intValue.high)))
return"invalid value for field .vector_tile.Tile.Value.intValue (integer|Long expected)"
}
if(m["uintValue"]!==undefined){
if(!util.isInteger(m["uintValue"])&&!(m["uintValue"]&&util.isInteger(m["uintValue"].low)&&util.isInteger(m["uintValue"].high)))
if(m.uintValue!==undefined){
if(!util.isInteger(m.uintValue)&&!(m.uintValue&&util.isInteger(m.uintValue.low)&&util.isInteger(m.uintValue.high)))
return"invalid value for field .vector_tile.Tile.Value.uintValue (integer|Long expected)"
}
if(m["sintValue"]!==undefined){
if(!util.isInteger(m["sintValue"])&&!(m["sintValue"]&&util.isInteger(m["sintValue"].low)&&util.isInteger(m["sintValue"].high)))
if(m.sintValue!==undefined){
if(!util.isInteger(m.sintValue)&&!(m.sintValue&&util.isInteger(m.sintValue.low)&&util.isInteger(m.sintValue.high)))
return"invalid value for field .vector_tile.Tile.Value.sintValue (integer|Long expected)"
}
if(m["boolValue"]!==undefined){
if(typeof m["boolValue"]!=="boolean")
if(m.boolValue!==undefined){
if(typeof m.boolValue!=="boolean")
return"invalid value for field .vector_tile.Tile.Value.boolValue (boolean expected)"

@@ -469,16 +469,16 @@ }

w||(w=Writer.create())
if(m["id"]!==undefined&&util.longNe(m["id"],0,0))
w.uint32(8).uint64(m["id"])
if(m["tags"]&&m["tags"].length){
if(m.id!==undefined&&util.longNe(m.id,0,0))
w.uint32(8).uint64(m.id)
if(m.tags&&m.tags.length){
w.uint32(18).fork()
for(var i=0;i<m["tags"].length;++i)
w.uint32(m["tags"][i])
for(var i=0;i<m.tags.length;++i)
w.uint32(m.tags[i])
w.ldelim()
}
if(m["type"]!==undefined&&m["type"]!=="UNKNOWN")
w.uint32(24).uint32(m["type"])
if(m["geometry"]&&m["geometry"].length){
if(m.type!==undefined&&m.type!=="UNKNOWN")
w.uint32(24).uint32(m.type)
if(m.geometry&&m.geometry.length){
w.uint32(34).fork()
for(var i=0;i<m["geometry"].length;++i)
w.uint32(m["geometry"][i])
for(var i=0;i<m.geometry.length;++i)
w.uint32(m.geometry[i])
w.ldelim()

@@ -520,24 +520,24 @@ }

case 1:
m["id"]=r.uint64()
m.id=r.uint64()
break
case 2:
m["tags"]&&m["tags"].length?m["tags"]:m["tags"]=[]
m.tags&&m.tags.length||(m.tags=[])
if((t&7)===2){
var e=r.uint32()+r.pos
while(r.pos<e)
m["tags"].push(r.uint32())
m.tags.push(r.uint32())
}else
m["tags"].push(r.uint32())
m.tags.push(r.uint32())
break
case 3:
m["type"]=r.uint32()
m.type=r.uint32()
break
case 4:
m["geometry"]&&m["geometry"].length?m["geometry"]:m["geometry"]=[]
m.geometry&&m.geometry.length||(m.geometry=[])
if((t&7)===2){
var e=r.uint32()+r.pos
while(r.pos<e)
m["geometry"].push(r.uint32())
m.geometry.push(r.uint32())
}else
m["geometry"].push(r.uint32())
m.geometry.push(r.uint32())
break

@@ -575,16 +575,16 @@ default:

return function verify(m) {
if(m["id"]!==undefined){
if(!util.isInteger(m["id"])&&!(m["id"]&&util.isInteger(m["id"].low)&&util.isInteger(m["id"].high)))
if(m.id!==undefined){
if(!util.isInteger(m.id)&&!(m.id&&util.isInteger(m.id.low)&&util.isInteger(m.id.high)))
return"invalid value for field .vector_tile.Tile.Feature.id (integer|Long expected)"
}
if(m["tags"]!==undefined){
if(!Array.isArray(m["tags"]))
if(m.tags!==undefined){
if(!Array.isArray(m.tags))
return"invalid value for field .vector_tile.Tile.Feature.tags (array expected)"
for(var i=0;i<m["tags"].length;++i){
if(!util.isInteger(m["tags"][i]))
for(var i=0;i<m.tags.length;++i){
if(!util.isInteger(m.tags[i]))
return"invalid value for field .vector_tile.Tile.Feature.tags (integer[] expected)"
}
}
if(m["type"]!==undefined){
switch(m["type"]){
if(m.type!==undefined){
switch(m.type){
default:

@@ -599,7 +599,7 @@ return"invalid value for field .vector_tile.Tile.Feature.type (enum value expected)"

}
if(m["geometry"]!==undefined){
if(!Array.isArray(m["geometry"]))
if(m.geometry!==undefined){
if(!Array.isArray(m.geometry))
return"invalid value for field .vector_tile.Tile.Feature.geometry (array expected)"
for(var i=0;i<m["geometry"].length;++i){
if(!util.isInteger(m["geometry"][i]))
for(var i=0;i<m.geometry.length;++i){
if(!util.isInteger(m.geometry[i]))
return"invalid value for field .vector_tile.Tile.Feature.geometry (integer[] expected)"

@@ -700,15 +700,15 @@ }

w||(w=Writer.create())
w.uint32(120).uint32(m["version"])
w.uint32(10).string(m["name"])
if(m["features"])
for(var i=0;i<m["features"].length;++i)
types[2].encode(m["features"][i],w.uint32(18).fork()).ldelim()
if(m["keys"])
for(var i=0;i<m["keys"].length;++i)
w.uint32(26).string(m["keys"][i])
if(m["values"])
for(var i=0;i<m["values"].length;++i)
types[4].encode(m["values"][i],w.uint32(34).fork()).ldelim()
if(m["extent"]!==undefined&&m["extent"]!==4096)
w.uint32(40).uint32(m["extent"])
w.uint32(120).uint32(m.version)
w.uint32(10).string(m.name)
if(m.features)
for(var i=0;i<m.features.length;++i)
types[2].encode(m.features[i],w.uint32(18).fork()).ldelim()
if(m.keys)
for(var i=0;i<m.keys.length;++i)
w.uint32(26).string(m.keys[i])
if(m.values)
for(var i=0;i<m.values.length;++i)
types[4].encode(m.values[i],w.uint32(34).fork()).ldelim()
if(m.extent!==undefined&&m.extent!==4096)
w.uint32(40).uint32(m.extent)
return w

@@ -748,21 +748,21 @@ }

case 15:
m["version"]=r.uint32()
m.version=r.uint32()
break
case 1:
m["name"]=r.string()
m.name=r.string()
break
case 2:
m["features"]&&m["features"].length?m["features"]:m["features"]=[]
m["features"].push(types[2].decode(r,r.uint32()))
m.features&&m.features.length||(m.features=[])
m.features.push(types[2].decode(r,r.uint32()))
break
case 3:
m["keys"]&&m["keys"].length?m["keys"]:m["keys"]=[]
m["keys"].push(r.string())
m.keys&&m.keys.length||(m.keys=[])
m.keys.push(r.string())
break
case 4:
m["values"]&&m["values"].length?m["values"]:m["values"]=[]
m["values"].push(types[4].decode(r,r.uint32()))
m.values&&m.values.length||(m.values=[])
m.values.push(types[4].decode(r,r.uint32()))
break
case 5:
m["extent"]=r.uint32()
m.extent=r.uint32()
break

@@ -800,34 +800,34 @@ default:

return function verify(m) {
if(!util.isInteger(m["version"]))
if(!util.isInteger(m.version))
return"invalid value for field .vector_tile.Tile.Layer.version (integer expected)"
if(!util.isString(m["name"]))
if(!util.isString(m.name))
return"invalid value for field .vector_tile.Tile.Layer.name (string expected)"
if(m["features"]!==undefined){
if(!Array.isArray(m["features"]))
if(m.features!==undefined){
if(!Array.isArray(m.features))
return"invalid value for field .vector_tile.Tile.Layer.features (array expected)"
for(var i=0;i<m["features"].length;++i){
for(var i=0;i<m.features.length;++i){
var r;
if(r=types[2].verify(m["features"][i]))
if(r=types[2].verify(m.features[i]))
return r
}
}
if(m["keys"]!==undefined){
if(!Array.isArray(m["keys"]))
if(m.keys!==undefined){
if(!Array.isArray(m.keys))
return"invalid value for field .vector_tile.Tile.Layer.keys (array expected)"
for(var i=0;i<m["keys"].length;++i){
if(!util.isString(m["keys"][i]))
for(var i=0;i<m.keys.length;++i){
if(!util.isString(m.keys[i]))
return"invalid value for field .vector_tile.Tile.Layer.keys (string[] expected)"
}
}
if(m["values"]!==undefined){
if(!Array.isArray(m["values"]))
if(m.values!==undefined){
if(!Array.isArray(m.values))
return"invalid value for field .vector_tile.Tile.Layer.values (array expected)"
for(var i=0;i<m["values"].length;++i){
for(var i=0;i<m.values.length;++i){
var r;
if(r=types[4].verify(m["values"][i]))
if(r=types[4].verify(m.values[i]))
return r
}
}
if(m["extent"]!==undefined){
if(!util.isInteger(m["extent"]))
if(m.extent!==undefined){
if(!util.isInteger(m.extent))
return"invalid value for field .vector_tile.Tile.Layer.extent (integer expected)"

@@ -834,0 +834,0 @@ }

@@ -165,60 +165,60 @@ "use strict"; // eslint-disable-line strict

w||(w=Writer.create())
if(m["name"]!==undefined&&m["name"]!=="")
w.uint32(10).string(m["name"])
if(m["version"]!==undefined&&m["version"]!=="")
w.uint32(18).string(m["version"])
if(m["description"]!==undefined&&m["description"]!=="")
w.uint32(26).string(m["description"])
if(m["author"]!==undefined&&m["author"]!=="")
w.uint32(34).string(m["author"])
if(m["license"]!==undefined&&m["license"]!=="")
w.uint32(42).string(m["license"])
if(m["repository"]!==undefined&&m["repository"]!==null)
types[5].encode(m["repository"],w.uint32(50).fork()).ldelim()
if(m["bugs"]!==undefined&&m["bugs"]!=="")
w.uint32(58).string(m["bugs"])
if(m["homepage"]!==undefined&&m["homepage"]!=="")
w.uint32(66).string(m["homepage"])
if(m["keywords"])
for(var i=0;i<m["keywords"].length;++i)
w.uint32(74).string(m["keywords"][i])
if(m["main"]!==undefined&&m["main"]!=="")
w.uint32(82).string(m["main"])
if(m["bin"]&&m["bin"]!==util.emptyObject){
for(var ks=Object.keys(m["bin"]),i=0;i<ks.length;++i){
if(m.name!==undefined&&m.name!=="")
w.uint32(10).string(m.name)
if(m.version!==undefined&&m.version!=="")
w.uint32(18).string(m.version)
if(m.description!==undefined&&m.description!=="")
w.uint32(26).string(m.description)
if(m.author!==undefined&&m.author!=="")
w.uint32(34).string(m.author)
if(m.license!==undefined&&m.license!=="")
w.uint32(42).string(m.license)
if(m.repository!==undefined&&m.repository!==null)
types[5].encode(m.repository,w.uint32(50).fork()).ldelim()
if(m.bugs!==undefined&&m.bugs!=="")
w.uint32(58).string(m.bugs)
if(m.homepage!==undefined&&m.homepage!=="")
w.uint32(66).string(m.homepage)
if(m.keywords)
for(var i=0;i<m.keywords.length;++i)
w.uint32(74).string(m.keywords[i])
if(m.main!==undefined&&m.main!=="")
w.uint32(82).string(m.main)
if(m.bin&&m.bin!==util.emptyObject){
for(var ks=Object.keys(m.bin),i=0;i<ks.length;++i){
w.uint32(90).fork().uint32(10).string(ks[i])
w.uint32(18).string(m["bin"][ks[i]])
w.uint32(18).string(m.bin[ks[i]])
w.ldelim()
}
}
if(m["scripts"]&&m["scripts"]!==util.emptyObject){
for(var ks=Object.keys(m["scripts"]),i=0;i<ks.length;++i){
if(m.scripts&&m.scripts!==util.emptyObject){
for(var ks=Object.keys(m.scripts),i=0;i<ks.length;++i){
w.uint32(98).fork().uint32(10).string(ks[i])
w.uint32(18).string(m["scripts"][ks[i]])
w.uint32(18).string(m.scripts[ks[i]])
w.ldelim()
}
}
if(m["dependencies"]&&m["dependencies"]!==util.emptyObject){
for(var ks=Object.keys(m["dependencies"]),i=0;i<ks.length;++i){
if(m.dependencies&&m.dependencies!==util.emptyObject){
for(var ks=Object.keys(m.dependencies),i=0;i<ks.length;++i){
w.uint32(106).fork().uint32(10).string(ks[i])
w.uint32(18).string(m["dependencies"][ks[i]])
w.uint32(18).string(m.dependencies[ks[i]])
w.ldelim()
}
}
if(m["optionalDependencies"]&&m["optionalDependencies"]!==util.emptyObject){
for(var ks=Object.keys(m["optionalDependencies"]),i=0;i<ks.length;++i){
if(m.optionalDependencies&&m.optionalDependencies!==util.emptyObject){
for(var ks=Object.keys(m.optionalDependencies),i=0;i<ks.length;++i){
w.uint32(114).fork().uint32(10).string(ks[i])
w.uint32(18).string(m["optionalDependencies"][ks[i]])
w.uint32(18).string(m.optionalDependencies[ks[i]])
w.ldelim()
}
}
if(m["devDependencies"]&&m["devDependencies"]!==util.emptyObject){
for(var ks=Object.keys(m["devDependencies"]),i=0;i<ks.length;++i){
if(m.devDependencies&&m.devDependencies!==util.emptyObject){
for(var ks=Object.keys(m.devDependencies),i=0;i<ks.length;++i){
w.uint32(122).fork().uint32(10).string(ks[i])
w.uint32(18).string(m["devDependencies"][ks[i]])
w.uint32(18).string(m.devDependencies[ks[i]])
w.ldelim()
}
}
if(m["types"]!==undefined&&m["types"]!=="")
w.uint32(138).string(m["types"])
if(m.types!==undefined&&m.types!=="")
w.uint32(138).string(m.types)
return w

@@ -258,36 +258,36 @@ }

case 1:
m["name"]=r.string()
m.name=r.string()
break
case 2:
m["version"]=r.string()
m.version=r.string()
break
case 3:
m["description"]=r.string()
m.description=r.string()
break
case 4:
m["author"]=r.string()
m.author=r.string()
break
case 5:
m["license"]=r.string()
m.license=r.string()
break
case 6:
m["repository"]=types[5].decode(r,r.uint32())
m.repository=types[5].decode(r,r.uint32())
break
case 7:
m["bugs"]=r.string()
m.bugs=r.string()
break
case 8:
m["homepage"]=r.string()
m.homepage=r.string()
break
case 9:
m["keywords"]&&m["keywords"].length?m["keywords"]:m["keywords"]=[]
m["keywords"].push(r.string())
m.keywords&&m.keywords.length||(m.keywords=[])
m.keywords.push(r.string())
break
case 10:
m["main"]=r.string()
m.main=r.string()
break
case 11:
r.skip().pos++
if(m["bin"]===util.emptyObject)
m["bin"]={}
if(m.bin===util.emptyObject)
m.bin={}
var k=r.string()

@@ -297,8 +297,8 @@ if(typeof k==="object")

r.pos++
m["bin"][k]=r.string()
m.bin[k]=r.string()
break
case 12:
r.skip().pos++
if(m["scripts"]===util.emptyObject)
m["scripts"]={}
if(m.scripts===util.emptyObject)
m.scripts={}
var k=r.string()

@@ -308,8 +308,8 @@ if(typeof k==="object")

r.pos++
m["scripts"][k]=r.string()
m.scripts[k]=r.string()
break
case 13:
r.skip().pos++
if(m["dependencies"]===util.emptyObject)
m["dependencies"]={}
if(m.dependencies===util.emptyObject)
m.dependencies={}
var k=r.string()

@@ -319,8 +319,8 @@ if(typeof k==="object")

r.pos++
m["dependencies"][k]=r.string()
m.dependencies[k]=r.string()
break
case 14:
r.skip().pos++
if(m["optionalDependencies"]===util.emptyObject)
m["optionalDependencies"]={}
if(m.optionalDependencies===util.emptyObject)
m.optionalDependencies={}
var k=r.string()

@@ -330,8 +330,8 @@ if(typeof k==="object")

r.pos++
m["optionalDependencies"][k]=r.string()
m.optionalDependencies[k]=r.string()
break
case 15:
r.skip().pos++
if(m["devDependencies"]===util.emptyObject)
m["devDependencies"]={}
if(m.devDependencies===util.emptyObject)
m.devDependencies={}
var k=r.string()

@@ -341,6 +341,6 @@ if(typeof k==="object")

r.pos++
m["devDependencies"][k]=r.string()
m.devDependencies[k]=r.string()
break
case 17:
m["types"]=r.string()
m.types=r.string()
break

@@ -378,94 +378,94 @@ default:

return function verify(m) {
if(m["name"]!==undefined){
if(!util.isString(m["name"]))
if(m.name!==undefined){
if(!util.isString(m.name))
return"invalid value for field .Package.name (string expected)"
}
if(m["version"]!==undefined){
if(!util.isString(m["version"]))
if(m.version!==undefined){
if(!util.isString(m.version))
return"invalid value for field .Package.version (string expected)"
}
if(m["description"]!==undefined){
if(!util.isString(m["description"]))
if(m.description!==undefined){
if(!util.isString(m.description))
return"invalid value for field .Package.description (string expected)"
}
if(m["author"]!==undefined){
if(!util.isString(m["author"]))
if(m.author!==undefined){
if(!util.isString(m.author))
return"invalid value for field .Package.author (string expected)"
}
if(m["license"]!==undefined){
if(!util.isString(m["license"]))
if(m.license!==undefined){
if(!util.isString(m.license))
return"invalid value for field .Package.license (string expected)"
}
if(m["repository"]!==undefined&&m["repository"]!==null){
if(m.repository!==undefined&&m.repository!==null){
var r;
if(r=types[5].verify(m["repository"]))
if(r=types[5].verify(m.repository))
return r
}
if(m["bugs"]!==undefined){
if(!util.isString(m["bugs"]))
if(m.bugs!==undefined){
if(!util.isString(m.bugs))
return"invalid value for field .Package.bugs (string expected)"
}
if(m["homepage"]!==undefined){
if(!util.isString(m["homepage"]))
if(m.homepage!==undefined){
if(!util.isString(m.homepage))
return"invalid value for field .Package.homepage (string expected)"
}
if(m["keywords"]!==undefined){
if(!Array.isArray(m["keywords"]))
if(m.keywords!==undefined){
if(!Array.isArray(m.keywords))
return"invalid value for field .Package.keywords (array expected)"
for(var i=0;i<m["keywords"].length;++i){
if(!util.isString(m["keywords"][i]))
for(var i=0;i<m.keywords.length;++i){
if(!util.isString(m.keywords[i]))
return"invalid value for field .Package.keywords (string[] expected)"
}
}
if(m["main"]!==undefined){
if(!util.isString(m["main"]))
if(m.main!==undefined){
if(!util.isString(m.main))
return"invalid value for field .Package.main (string expected)"
}
if(m["bin"]!==undefined){
if(!util.isObject(m["bin"]))
if(m.bin!==undefined){
if(!util.isObject(m.bin))
return"invalid value for field .Package.bin (object expected)"
var k=Object.keys(m["bin"])
var k=Object.keys(m.bin)
for(var i=0;i<k.length;++i){
if(!util.isString(m["bin"][k[i]]))
if(!util.isString(m.bin[k[i]]))
return"invalid value for field .Package.bin (string{k:string} expected)"
}
}
if(m["scripts"]!==undefined){
if(!util.isObject(m["scripts"]))
if(m.scripts!==undefined){
if(!util.isObject(m.scripts))
return"invalid value for field .Package.scripts (object expected)"
var k=Object.keys(m["scripts"])
var k=Object.keys(m.scripts)
for(var i=0;i<k.length;++i){
if(!util.isString(m["scripts"][k[i]]))
if(!util.isString(m.scripts[k[i]]))
return"invalid value for field .Package.scripts (string{k:string} expected)"
}
}
if(m["dependencies"]!==undefined){
if(!util.isObject(m["dependencies"]))
if(m.dependencies!==undefined){
if(!util.isObject(m.dependencies))
return"invalid value for field .Package.dependencies (object expected)"
var k=Object.keys(m["dependencies"])
var k=Object.keys(m.dependencies)
for(var i=0;i<k.length;++i){
if(!util.isString(m["dependencies"][k[i]]))
if(!util.isString(m.dependencies[k[i]]))
return"invalid value for field .Package.dependencies (string{k:string} expected)"
}
}
if(m["optionalDependencies"]!==undefined){
if(!util.isObject(m["optionalDependencies"]))
if(m.optionalDependencies!==undefined){
if(!util.isObject(m.optionalDependencies))
return"invalid value for field .Package.optionalDependencies (object expected)"
var k=Object.keys(m["optionalDependencies"])
var k=Object.keys(m.optionalDependencies)
for(var i=0;i<k.length;++i){
if(!util.isString(m["optionalDependencies"][k[i]]))
if(!util.isString(m.optionalDependencies[k[i]]))
return"invalid value for field .Package.optionalDependencies (string{k:string} expected)"
}
}
if(m["devDependencies"]!==undefined){
if(!util.isObject(m["devDependencies"]))
if(m.devDependencies!==undefined){
if(!util.isObject(m.devDependencies))
return"invalid value for field .Package.devDependencies (object expected)"
var k=Object.keys(m["devDependencies"])
var k=Object.keys(m.devDependencies)
for(var i=0;i<k.length;++i){
if(!util.isString(m["devDependencies"][k[i]]))
if(!util.isString(m.devDependencies[k[i]]))
return"invalid value for field .Package.devDependencies (string{k:string} expected)"
}
}
if(m["types"]!==undefined){
if(!util.isString(m["types"]))
if(m.types!==undefined){
if(!util.isString(m.types))
return"invalid value for field .Package.types (string expected)"

@@ -534,6 +534,6 @@ }

w||(w=Writer.create())
if(m["type"]!==undefined&&m["type"]!=="")
w.uint32(10).string(m["type"])
if(m["url"]!==undefined&&m["url"]!=="")
w.uint32(18).string(m["url"])
if(m.type!==undefined&&m.type!=="")
w.uint32(10).string(m.type)
if(m.url!==undefined&&m.url!=="")
w.uint32(18).string(m.url)
return w

@@ -573,6 +573,6 @@ }

case 1:
m["type"]=r.string()
m.type=r.string()
break
case 2:
m["url"]=r.string()
m.url=r.string()
break

@@ -610,8 +610,8 @@ default:

return function verify(m) {
if(m["type"]!==undefined){
if(!util.isString(m["type"]))
if(m.type!==undefined){
if(!util.isString(m.type))
return"invalid value for field .Package.Repository.type (string expected)"
}
if(m["url"]!==undefined){
if(!util.isString(m["url"]))
if(m.url!==undefined){
if(!util.isString(m.url))
return"invalid value for field .Package.Repository.url (string expected)"

@@ -618,0 +618,0 @@ }

@@ -152,4 +152,4 @@ "use strict"; // eslint-disable-line strict

w||(w=Writer.create())
if(m["path"]!==undefined&&m["path"]!=="")
w.uint32(10).string(m["path"])
if(m.path!==undefined&&m.path!=="")
w.uint32(10).string(m.path)
return w

@@ -189,3 +189,3 @@ }

case 1:
m["path"]=r.string()
m.path=r.string()
break

@@ -223,4 +223,4 @@ default:

return function verify(m) {
if(m["path"]!==undefined){
if(!util.isString(m["path"]))
if(m.path!==undefined){
if(!util.isString(m.path))
return"invalid value for field .MyRequest.path (string expected)"

@@ -285,4 +285,4 @@ }

w||(w=Writer.create())
if(m["status"]!==undefined&&m["status"]!==0)
w.uint32(16).int32(m["status"])
if(m.status!==undefined&&m.status!==0)
w.uint32(16).int32(m.status)
return w

@@ -322,3 +322,3 @@ }

case 2:
m["status"]=r.int32()
m.status=r.int32()
break

@@ -356,4 +356,4 @@ default:

return function verify(m) {
if(m["status"]!==undefined){
if(!util.isInteger(m["status"]))
if(m.status!==undefined){
if(!util.isInteger(m.status))
return"invalid value for field .MyResponse.status (integer expected)"

@@ -360,0 +360,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc