text: !function(e){function t(o){if(i[o])return i[o].exports;var r=i[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var i={};t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,o){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=28)}([function(e,t,i){"use strict";var o,r,n=e.exports=i(2),s=i(19);n.codegen=i(30),n.fetch=i(32),n.path=i(34),n.fs=n.inquire("fs"),n.toArray=function(e){if(e){for(var t=Object.keys(e),i=new Array(t.length),o=0;o<t.length;)i[o]=e[t[o++]];return i}return[]},n.toObject=function(e){for(var t={},i=0;i<e.length;){var o=e[i++],r=e[i++];void 0!==r&&(t[o]=r)}return t};var a=/\\/g,d=/"/g;n.isReserved=function(e){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(e)},n.safeProp=function(e){return!/^[$\w_]+$/.test(e)||n.isReserved(e)?'["'+e.replace(a,"\\\\").replace(d,'\\"')+'"]':"."+e},n.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.substring(1)};var p=/_([a-z])/g;n.camelCase=function(e){return e.substring(0,1)+e.substring(1).replace(p,function(e,t){return t.toUpperCase()})},n.compareFieldsById=function(e,t){return e.id-t.id},n.decorateType=function(e,t){if(e.$type)return t&&e.$type.name!==t&&(n.decorateRoot.remove(e.$type),e.$type.name=t,n.decorateRoot.add(e.$type)),e.$type;o||(o=i(22));var r=new o(t||e.name);return n.decorateRoot.add(r),r.ctor=e,Object.defineProperty(e,"$type",{value:r,enumerable:!1}),Object.defineProperty(e.prototype,"$type",{value:r,enumerable:!1}),r};var l=0;n.decorateEnum=function(e){if(e.$type)return e.$type;r||(r=i(1));var t=new r("Enum"+l++,e);return n.decorateRoot.add(t),Object.defineProperty(e,"$type",{value:t,enumerable:!1}),t},Object.defineProperty(n,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(i(18)))}})},function(e,t,i){"use strict";function o(e,t,i,o,n){if(r.call(this,e,i),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=n||{},this.reserved=void 0,t)for(var s=Object.keys(t),a=0;a<s.length;++a)"number"==typeof t[s[a]]&&(this.valuesById[this.values[s[a]]=t[s[a]]]=s[a])}e.exports=o;var r=i(4);((o.prototype=Object.create(r.prototype)).constructor=o).className="Enum";var n=i(5),s=i(0);o.fromJSON=function(e,t){var i=new o(e,t.values,t.options,t.comment,t.comments);return i.reserved=t.reserved,i},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return s.toObject(["options",this.options,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},o.prototype.add=function(e,t,i){if(!s.isString(e))throw TypeError("name must be a string");if(!s.isInteger(t))throw TypeError("id must be an integer");if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return this.comments[e]=i||null,this},o.prototype.remove=function(e){if(!s.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this},o.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},o.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)}},function(e,t,i){"use strict";(function(e){function o(e,t,i){for(var o=Object.keys(t),r=0;r<o.length;++r)void 0!==e[o[r]]&&i||(e[o[r]]=t[o[r]]);return e}function r(e){function t(e,i){if(!(this instanceof t))return new t(e,i);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),i&&o(this,i)}return(t.prototype=Object.create(Error.prototype)).constructor=t,Object.defineProperty(t.prototype,"name",{get:function(){return e}}),t.prototype.toString=function(){return this.name+": "+this.message},t}var n=t;n.asPromise=i(11),n.base64=i(29),n.EventEmitter=i(31),n.float=i(33),n.inquire=i(12),n.utf8=i(36),n.pool=i(35),n.LongBits=i(41),n.emptyArray=Object.freeze?Object.freeze([]):[],n.emptyObject=Object.freeze?Object.freeze({}):{},n.isNode=Boolean(e.process&&e.process.versions&&e.process.versions.node),n.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},n.isString=function(e){return"string"==typeof e||e instanceof String},n.isObject=function(e){return e&&"object"==typeof e},n.isset=n.isSet=function(e,t){var i=e[t];return!(null==i||!e.hasOwnProperty(t))&&("object"!=typeof i||(Array.isArray(i)?i.length:Object.keys(i).length)>0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=e.dcodeIO&&e.dcodeIO.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var i=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(i.lo,i.hi,t):i.toNumber(Boolean(t))},n.merge=o,n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=r,n.ProtocolError=r("ProtocolError"),n.oneOfGetter=function(e){for(var t={},i=0;i<e.length;++i)t[e[i]]=1;return function(){for(var e=Object.keys(this),i=e.length-1;i>-1;--i)if(1===t[e[i]]&&void 0!==this[e[i]]&&null!==this[e[i]])return e[i]}},n.oneOfSetter=function(e){return function(t){for(var i=0;i<e.length;++i)e[i]!==t&&delete this[e[i]]}},n.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},n._configure=function(){var e=n.Buffer;if(!e)return void(n._Buffer_from=n._Buffer_allocUnsafe=null);n._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,i){return new e(t,i)},n._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}}}).call(t,i(43))},function(e,t,i){"use strict";function o(e,t,i,o,n,s,l){if(d.isObject(o)?(l=n,s=o,o=n=void 0):d.isObject(n)&&(l=s,s=n,n=void 0),r.call(this,e,s),!d.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!d.isString(i))throw TypeError("type must be a string");if(void 0!==o&&!p.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==n&&!d.isString(n))throw TypeError("extend must be a string");this.rule=o&&"optional"!==o?o:void 0,this.type=i,this.id=t,this.extend=n||void 0,this.required="required"===o,this.optional=!this.required,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!d.Long&&void 0!==a.long[i],this.bytes="bytes"===i,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=l}e.exports=o;var r=i(4);((o.prototype=Object.create(r.prototype)).constructor=o).className="Field";var n,s=i(1),a=i(6),d=i(0),p=/^required|optional|repeated$/;o.fromJSON=function(e,t){return new o(e,t.id,t.type,t.rule,t.extend,t.options,t.comment)},Object.defineProperty(o.prototype,"packed",{get:function(){return null===this._packed&&(this._packed=!1!==this.getOption("packed")),this._packed}}),o.prototype.setOption=function(e,t,i){return"packed"===e&&(this._packed=null),r.prototype.setOption.call(this,e,t,i)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return d.toObject(["rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},o.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=a.defaults[this.type])&&(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof n?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof s&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof s)||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=d.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;d.base64.test(this.typeDefault)?d.base64.decode(this.typeDefault,e=d.newBuffer(d.base64.length(this.typeDefault)),0):d.utf8.write(this.typeDefault,e=d.newBuffer(d.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=d.emptyObject:this.repeated?this.defaultValue=d.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof n&&(this.parent.ctor.prototype[this.name]=this.defaultValue),r.prototype.resolve.call(this)},o.d=function(e,t,i,r){return"function"==typeof t?t=d.decorateType(t).name:t&&"object"==typeof t&&(t=d.decorateEnum(t).name),function(n,s){d.decorateType(n.constructor).add(new o(s,e,t,i,{default:r}))}},o._configure=function(e){n=e}},function(e,t,i){"use strict";function o(e,t){if(!n.isString(e))throw TypeError("name must be a string");if(t&&!n.isObject(t))throw TypeError("options must be an object");this.options=t,this.name=e,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}e.exports=o,o.className="ReflectionObject";var r,n=i(0);Object.defineProperties(o.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),o.prototype.toJSON=function(){throw Error()},o.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof r&&t._handleAdd(this)},o.prototype.onRemove=function(e){var t=e.root;t instanceof r&&t._handleRemove(this),this.parent=null,this.resolved=!1},o.prototype.resolve=function(){return this.resolved?this:(this.root instanceof r&&(this.resolved=!0),this)},o.prototype.getOption=function(e){if(this.options)return this.options[e]},o.prototype.setOption=function(e,t,i){return i&&this.options&&void 0!==this.options[e]||((this.options||(this.options={}))[e]=t),this},o.prototype.setOptions=function(e,t){if(e)for(var i=Object.keys(e),o=0;o<i.length;++o)this.setOption(i[o],e[i[o]],t);return this},o.prototype.toString=function(){var e=this.constructor.className,t=this.fullName;return t.length?e+" "+t:e},o._configure=function(e){r=e}},function(e,t,i){"use strict";function o(e,t){if(e&&e.length){for(var i={},o=0;o<e.length;++o)i[e[o].name]=e[o].toJSON(t);return i}}function r(e,t){s.call(this,e,t),this.nested=void 0,this._nestedArray=null}function n(e){return e._nestedArray=null,e}e.exports=r;var s=i(4);((r.prototype=Object.create(s.prototype)).constructor=r).className="Namespace";var a,d,p=i(1),l=i(3),u=i(0);r.fromJSON=function(e,t){return new r(e,t.options).addJSON(t.nested)},r.arrayToJSON=o,r.isReservedId=function(e,t){if(e)for(var i=0;i<e.length;++i)if("string"!=typeof e[i]&&e[i][0]<=t&&e[i][1]>=t)return!0;return!1},r.isReservedName=function(e,t){if(e)for(var i=0;i<e.length;++i)if(e[i]===t)return!0;return!1},Object.defineProperty(r.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=u.toArray(this.nested))}}),r.prototype.toJSON=function(e){return u.toObject(["options",this.options,"nested",o(this.nestedArray,e)])},r.prototype.addJSON=function(e){var t=this;if(e)for(var i,o=Object.keys(e),n=0;n<o.length;++n)i=e[o[n]],t.add((void 0!==i.fields?a.fromJSON:void 0!==i.values?p.fromJSON:void 0!==i.methods?d.fromJSON:void 0!==i.id?l.fromJSON:r.fromJSON)(o[n],i));return this},r.prototype.get=function(e){return this.nested&&this.nested[e]||null},r.prototype.getEnum=function(e){if(this.nested&&this.nested[e]instanceof p)return this.nested[e].values;throw Error("no such enum: "+e)},r.prototype.add=function(e){if(!(e instanceof l&&void 0!==e.extend||e instanceof a||e instanceof p||e instanceof d||e instanceof r))throw TypeError("object must be a valid nested object");if(this.nested){var t=this.get(e.name);if(t){if(!(t instanceof r&&e instanceof r)||t instanceof a||t instanceof d)throw Error("duplicate name '"+e.name+"' in "+this);for(var i=t.nestedArray,o=0;o<i.length;++o)e.add(i[o]);this.remove(t),this.nested||(this.nested={}),e.setOptions(t.options,!0)}}else this.nested={};return this.nested[e.name]=e,e.onAdd(this),n(this)},r.prototype.remove=function(e){if(!(e instanceof s))throw TypeError("object must be a ReflectionObject");if(e.parent!==this)throw Error(e+" is not a member of "+this);return delete this.nested[e.name],Object.keys(this.nested).length||(this.nested=void 0),e.onRemove(this),n(this)},r.prototype.define=function(e,t){if(u.isString(e))e=e.split(".");else if(!Array.isArray(e))throw TypeError("illegal path");if(e&&e.length&&""===e[0])throw Error("path must be relative");for(var i=this;e.length>0;){var o=e.shift();if(i.nested&&i.nested[o]){if(!((i=i.nested[o])instanceof r))throw Error("path conflicts with non-namespace objects")}else i.add(i=new r(o))}return t&&i.addJSON(t),i},r.prototype.resolveAll=function(){for(var e=this.nestedArray,t=0;t<e.length;)e[t]instanceof r?e[t++].resolveAll():e[t++].resolve();return this.resolve()},r.prototype.lookup=function(e,t,i){if("boolean"==typeof t?(i=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.get(e[0]);if(o){if(1===e.length){if(!t||t.indexOf(o.constructor)>-1)return o}else if(o instanceof r&&(o=o.lookup(e.slice(1),t,!0)))return o}else for(var n=0;n<this.nestedArray.length;++n)if(this._nestedArray[n]instanceof r&&(o=this._nestedArray[n].lookup(e,t,!0)))return o;return null===this.parent||i?null:this.parent.lookup(e,t)},r.prototype.lookupType=function(e){var t=this.lookup(e,[a]);if(!t)throw Error("no such type: "+e);return t},r.prototype.lookupEnum=function(e){var t=this.lookup(e,[p]);if(!t)throw Error("no such Enum '"+e+"' in "+this);return t},r.prototype.lookupTypeOrEnum=function(e){var t=this.lookup(e,[a,p]);if(!t)throw Error("no such Type or Enum '"+e+"' in "+this);return t},r.prototype.lookupService=function(e){var t=this.lookup(e,[d]);if(!t)throw Error("no such Service '"+e+"' in "+this);return t},r._configure=function(e,t){a=e,d=t}},function(e,t,i){"use strict";function o(e,t){var i=0,o={};for(t|=0;i<e.length;)o[s[i+t]]=e[i++];return o}var r=t,n=i(0),s=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];r.basic=o([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),r.defaults=o([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",n.emptyArray,null]),r.long=o([0,0,0,1,1],7),r.mapKey=o([0,0,0,5,5,0,0,0,1,1,0,2],2),r.packed=o([1,5,0,0,0,5,5,0,0,0,1,1,0])},function(e,t,i){"use strict";function o(e){if(e)for(var t=Object.keys(e),i=0;i<t.length;++i)this[t[i]]=e[t[i]]}e.exports=o;var r=i(2);o.create=function(e){return this.$type.create(e)},o.encode=function(e,t){return this.$type.encode(e,t)},o.encodeDelimited=function(e,t){return this.$type.encodeDelimited(e,t)},o.decode=function(e){return this.$type.decode(e)},o.decodeDelimited=function(e){return this.$type.decodeDelimited(e)},o.verify=function(e){return this.$type.verify(e)},o.fromObject=function(e){return this.$type.fromObject(e)},o.toObject=function(e,t){return this.$type.toObject(e,t)},o.prototype.toJSON=function(){return this.$type.toObject(this,r.toJSONOptions)}},function(e,t,i){"use strict";function o(e,t,i,o){if(Array.isArray(t)||(i=t,t=void 0),n.call(this,e,i),void 0!==t&&!Array.isArray(t))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=o}function r(e){if(e.parent)for(var t=0;t<e.fieldsArray.length;++t)e.fieldsArray[t].parent||e.parent.add(e.fieldsArray[t])}e.exports=o;var n=i(4);((o.prototype=Object.create(n.prototype)).constructor=o).className="OneOf";var s=i(3),a=i(0);o.fromJSON=function(e,t){return new o(e,t.oneof,t.options,t.comment)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:void 0])},o.prototype.add=function(e){if(!(e instanceof s))throw TypeError("field must be a Field");return e.parent&&e.parent!==this.parent&&e.parent.remove(e),this.oneof.push(e.name),this.fieldsArray.push(e),e.partOf=this,r(this),this},o.prototype.remove=function(e){if(!(e instanceof s))throw TypeError("field must be a Field");var t=this.fieldsArray.indexOf(e);if(t<0)throw Error(e+" is not a member of "+this);return this.fieldsArray.splice(t,1),t=this.oneof.indexOf(e.name),t>-1&&this.oneof.splice(t,1),e.partOf=null,this},o.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=this,i=0;i<this.oneof.length;++i){var o=e.get(this.oneof[i]);o&&!o.partOf&&(o.partOf=t,t.fieldsArray.push(o))}r(this)},o.prototype.onRemove=function(e){for(var t,i=0;i<this.fieldsArray.length;++i)(t=this.fieldsArray[i]).parent&&t.parent.remove(t);n.prototype.onRemove.call(this,e)},o.d=function(){for(var e=new Array(arguments.length),t=0;t<arguments.length;)e[t]=arguments[t++];return function(t,i){a.decorateType(t.constructor).add(new o(i,e)),Object.defineProperty(t,i,{get:a.oneOfGetter(e),set:a.oneOfSetter(e)})}}},function(e,t,i){"use strict";function o(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function r(e){this.buf=e,this.pos=0,this.len=e.length}function n(){var e=new l(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw o(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw o(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function s(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function a(){if(this.pos+8>this.len)throw o(this,8);return new l(s(this.buf,this.pos+=4),s(this.buf,this.pos+=4))}e.exports=r;var d,p=i(2),l=p.LongBits,u=p.utf8,f="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new r(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new r(e);throw Error("illegal buffer")};r.create=p.Buffer?function(e){return(r.create=function(e){return p.Buffer.isBuffer(e)?new d(e):f(e)})(e)}:f,r.prototype._slice=p.Array.prototype.subarray||p.Array.prototype.slice,r.prototype.uint32=function(){var e=4294967295;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return e;if((this.pos+=5)>this.len)throw this.pos=this.len,o(this,10);return e}}(),r.prototype.int32=function(){return 0|this.uint32()},r.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},r.prototype.bool=function(){return 0!==this.uint32()},r.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return s(this.buf,this.pos+=4)},r.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return 0|s(this.buf,this.pos+=4)},r.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var e=p.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},r.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var e=p.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},r.prototype.bytes=function(){var e=this.uint32(),t=this.pos,i=this.pos+e;if(i>this.len)throw o(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,i):t===i?new this.buf.constructor(0):this._slice.call(this.buf,t,i)},r.prototype.string=function(){var e=this.bytes();return u.read(e,0,e.length)},r.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw o(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw o(this)}while(128&this.buf[this.pos++]);return this},r.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;;){if(4==(e=7&this.uint32()))break;this.skipType(e)}break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},r._configure=function(e){d=e;var t=p.Long?"toLong":"toNumber";p.merge(r.prototype,{int64:function(){return n.call(this)[t](!1)},uint64:function(){return n.call(this)[t](!0)},sint64:function(){return n.call(this).zzDecode()[t](!1)},fixed64:function(){return a.call(this)[t](!0)},sfixed64:function(){return a.call(this)[t](!1)}})}},function(e,t,i){"use strict";function o(e,t,i){this.fn=e,this.len=t,this.next=void 0,this.val=i}function r(){}function n(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function s(){this.len=0,this.head=new o(r,0,0),this.tail=this.head,this.states=null}function a(e,t,i){t[i]=255&e}function d(e,t,i){for(;e>127;)t[i++]=127&e|128,e>>>=7;t[i]=e}function p(e,t){this.len=e,this.next=void 0,this.val=t}function l(e,t,i){for(;e.hi;)t[i++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[i++]=127&e.lo|128,e.lo=e.lo>>>7;t[i++]=e.lo}function u(e,t,i){t[i]=255&e,t[i+1]=e>>>8&255,t[i+2]=e>>>16&255,t[i+3]=e>>>24}e.exports=s;var f,c=i(2),y=c.LongBits,h=c.base64,m=c.utf8;s.create=c.Buffer?function(){return(s.create=function(){return new f})()}:function(){return new s},s.alloc=function(e){return new c.Array(e)},c.Array!==Array&&(s.alloc=c.pool(s.alloc,c.Array.prototype.subarray)),s.prototype._push=function(e,t,i){return this.tail=this.tail.next=new o(e,t,i),this.len+=t,this},p.prototype=Object.create(o.prototype),p.prototype.fn=d,s.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},s.prototype.int32=function(e){return e<0?this._push(l,10,y.fromNumber(e)):this.uint32(e)},s.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},s.prototype.uint64=function(e){var t=y.from(e);return this._push(l,t.length(),t)},s.prototype.int64=s.prototype.uint64,s.prototype.sint64=function(e){var t=y.from(e).zzEncode();return this._push(l,t.length(),t)},s.prototype.bool=function(e){return this._push(a,1,e?1:0)},s.prototype.fixed32=function(e){return this._push(u,4,e>>>0)},s.prototype.sfixed32=s.prototype.fixed32,s.prototype.fixed64=function(e){var t=y.from(e);return this._push(u,4,t.lo)._push(u,4,t.hi)},s.prototype.sfixed64=s.prototype.fixed64,s.prototype.float=function(e){return this._push(c.float.writeFloatLE,4,e)},s.prototype.double=function(e){return this._push(c.float.writeDoubleLE,8,e)};var g=c.Array.prototype.set?function(e,t,i){t.set(e,i)}:function(e,t,i){for(var o=0;o<e.length;++o)t[i+o]=e[o]};s.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(a,1,0);if(c.isString(e)){var i=s.alloc(t=h.length(e));h.decode(e,i,0),e=i}return this.uint32(t)._push(g,t,e)},s.prototype.string=function(e){var t=m.length(e);return t?this.uint32(t)._push(m.write,t,e):this._push(a,1,0)},s.prototype.fork=function(){return this.states=new n(this),this.head=this.tail=new o(r,0,0),this.len=0,this},s.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new o(r,0,0),this.len=0),this},s.prototype.ldelim=function(){var e=this.head,t=this.tail,i=this.len;return this.reset().uint32(i),i&&(this.tail.next=e.next,this.tail=t,this.len+=i),this},s.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),i=0;e;)e.fn(e.val,t,i),i+=e.len,e=e.next;return t},s._configure=function(e){f=e}},function(e,t,i){"use strict";function o(e,t){for(var i=new Array(arguments.length-1),o=0,r=2,n=!0;r<arguments.length;)i[o++]=arguments[r++];return new Promise(function(r,s){i[o]=function(e){if(n)if(n=!1,e)s(e);else{for(var t=new Array(arguments.length-1),i=0;i<t.length;)t[i++]=arguments[i];r.apply(null,t)}};try{e.apply(t||null,i)}catch(e){n&&(n=!1,s(e))}})}e.exports=o},function(module,exports,__webpack_require__){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},function(e,t,i){"use strict";function o(e,t,i,o){if(t.resolvedType)if(t.resolvedType instanceof s){e("switch(d%s){",o);for(var r=t.resolvedType.values,n=Object.keys(r),a=0;a<n.length;++a)t.repeated&&r[n[a]]===t.typeDefault&&e("default:"),e("case%j:",n[a])("case %i:",r[n[a]])("m%s=%j",o,r[n[a]])("break");e("}")}else e('if(typeof d%s!=="object")',o)("throw TypeError(%j)",t.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",o,i,o);else{var d=!1;switch(t.type){case"double":case"float":e("m%s=Number(d%s)",o,o);break;case"uint32":case"fixed32":e("m%s=d%s>>>0",o,o);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",o,o);break;case"uint64":d=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",o,o,d)('else if(typeof d%s==="string")',o)("m%s=parseInt(d%s,10)",o,o)('else if(typeof d%s==="number")',o)("m%s=d%s",o,o)('else if(typeof d%s==="object")',o)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",o,o,o,d?"true":"");break;case"bytes":e('if(typeof d%s==="string")',o)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",o,o,o)("else if(d%s.length)",o)("m%s=d%s",o,o);break;case"string":e("m%s=String(d%s)",o,o);break;case"bool":e("m%s=Boolean(d%s)",o,o)}}return e}function r(e,t,i,o){if(t.resolvedType)t.resolvedType instanceof s?e("d%s=o.enums===String?types[%i].values[m%s]:m%s",o,i,o,o):e("d%s=types[%i].toObject(m%s,o)",o,i,o);else{var r=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",o,o,o,o);break;case"uint64":r=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',o)("d%s=o.longs===String?String(m%s):m%s",o,o,o)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",o,o,o,o,r?"true":"",o);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",o,o,o,o,o);break;default:e("d%s=m%s",o,o)}}return e}var n=t,s=i(1),a=i(0);n.fromObject=function(e){var t=e.fieldsArray,i=a.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return i("return new this.ctor");i("var m=new this.ctor");for(var r=0;r<t.length;++r){var n=t[r].resolve(),d=a.safeProp(n.name);n.map?(i("if(d%s){",d)('if(typeof d%s!=="object")',d)("throw TypeError(%j)",n.fullName+": object expected")("m%s={}",d)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",d),o(i,n,r,d+"[ks[i]]")("}")("}")):n.repeated?(i("if(d%s){",d)("if(!Array.isArray(d%s))",d)("throw TypeError(%j)",n.fullName+": array expected")("m%s=[]",d)("for(var i=0;i<d%s.length;++i){",d),o(i,n,r,d+"[i]")("}")("}")):(n.resolvedType instanceof s||i("if(d%s!=null){",d),o(i,n,r,d),n.resolvedType instanceof s||i("}"))}return i("return m")},n.toObject=function(e){var t=e.fieldsArray.slice().sort(a.compareFieldsById);if(!t.length)return a.codegen()("return {}");for(var i=a.codegen(["m","o"],e.name+"$toObject")("if(!o)")("o={}")("var d={}"),o=[],n=[],d=[],p=0;p<t.length;++p)t[p].partOf||(t[p].resolve().repeated?o:t[p].map?n:d).push(t[p]);if(o.length){for(i("if(o.arrays||o.defaults){"),p=0;p<o.length;++p)i("d%s=[]",a.safeProp(o[p].name));i("}")}if(n.length){for(i("if(o.objects||o.defaults){"),p=0;p<n.length;++p)i("d%s={}",a.safeProp(n[p].name));i("}")}if(d.length){for(i("if(o.defaults){"),p=0;p<d.length;++p){var l=d[p],u=a.safeProp(l.name);l.resolvedType instanceof s?i("d%s=o.enums===String?%j:%j",u,l.resolvedType.valuesById[l.typeDefault],l.typeDefault):l.long?i("if(util.Long){")("var n=new util.Long(%i,%i,%j)",l.typeDefault.low,l.typeDefault.high,l.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",u)("}else")("d%s=o.longs===String?%j:%i",u,l.typeDefault.toString(),l.typeDefault.toNumber()):l.bytes?i("d%s=o.bytes===String?%j:%s",u,String.fromCharCode.apply(String,l.typeDefault),"["+Array.prototype.slice.call(l.typeDefault).join(",")+"]"):i("d%s=%j",u,l.typeDefault)}i("}")}var f=!1;for(p=0;p<t.length;++p){var l=t[p],c=e._fieldsArray.indexOf(l),u=a.safeProp(l.name);l.map?(f||(f=!0,i("var ks2")),i("if(m%s&&(ks2=Object.keys(m%s)).length){",u,u)("d%s={}",u)("for(var j=0;j<ks2.length;++j){"),r(i,l,c,u+"[ks2[j]]")("}")):l.repeated?(i("if(m%s&&m%s.length){",u,u)("d%s=[]",u)("for(var j=0;j<m%s.length;++j){",u),r(i,l,c,u+"[j]")("}")):(i("if(m%s!=null&&m.hasOwnProperty(%j)){",u,l.name),r(i,l,c,u),l.partOf&&i("if(o.oneofs)")("d%s=%j",a.safeProp(l.partOf.name),l.name)),i("}")}return i("return d")}},function(e,t,i){"use strict";function o(e){return"missing required '"+e.name+"'"}function r(e){var t=a.codegen(["r","l"],e.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k":""))("while(r.pos<c){")("var t=r.uint32()");e.group&&t("if((t&7)===4)")("break"),t("switch(t>>>3){");for(var i=0;i<e.fieldsArray.length;++i){var r=e._fieldsArray[i].resolve(),d=r.resolvedType instanceof n?"int32":r.type,p="m"+a.safeProp(r.name);t("case %i:",r.id),r.map?(t("r.skip().pos++")("if(%s===util.emptyObject)",p)("%s={}",p)("k=r.%s()",r.keyType)("r.pos++"),void 0!==s.long[r.keyType]?void 0===s.basic[d]?t('%s[typeof k==="object"?util.longToHash(k):k]=types[%i].decode(r,r.uint32())',p,i):t('%s[typeof k==="object"?util.longToHash(k):k]=r.%s()',p,d):void 0===s.basic[d]?t("%s[k]=types[%i].decode(r,r.uint32())",p,i):t("%s[k]=r.%s()",p,d)):r.repeated?(t("if(!(%s&&%s.length))",p,p)("%s=[]",p),void 0!==s.packed[d]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",p,d)("}else"),void 0===s.basic[d]?t(r.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",p,i):t("%s.push(r.%s())",p,d)):void 0===s.basic[d]?t(r.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",p,i):t("%s=r.%s()",p,d),t("break")}for(t("default:")("r.skipType(t&7)")("break")("}")("}"),i=0;i<e._fieldsArray.length;++i){var l=e._fieldsArray[i];l.required&&t("if(!m.hasOwnProperty(%j))",l.name)("throw util.ProtocolError(%j,{instance:m})",o(l))}return t("return m")}e.exports=r;var n=i(1),s=i(6),a=i(0)},function(e,t,i){"use strict";function o(e,t,i,o){return t.resolvedType.group?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",i,o,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",i,o,(t.id<<3|2)>>>0)}function r(e){for(var t,i,r=a.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),d=e.fieldsArray.slice().sort(a.compareFieldsById),t=0;t<d.length;++t){var p=d[t].resolve(),l=e._fieldsArray.indexOf(p),u=p.resolvedType instanceof n?"int32":p.type,f=s.basic[u];i="m"+a.safeProp(p.name),p.map?(r("if(%s!=null&&m.hasOwnProperty(%j)){",i,p.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",i)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(p.id<<3|2)>>>0,8|s.mapKey[p.keyType],p.keyType),void 0===f?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,i):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|f,u,i),r("}")("}")):p.repeated?(r("if(%s!=null&&%s.length){",i,i),p.packed&&void 0!==s.packed[u]?r("w.uint32(%i).fork()",(p.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",i)("w.%s(%s[i])",u,i)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",i),void 0===f?o(r,p,l,i+"[i]"):r("w.uint32(%i).%s(%s[i])",(p.id<<3|f)>>>0,u,i)),r("}")):(p.optional&&r("if(%s!=null&&m.hasOwnProperty(%j))",i,p.name),void 0===f?o(r,p,l,i):r("w.uint32(%i).%s(%s)",(p.id<<3|f)>>>0,u,i))}return r("return w")}e.exports=r;var n=i(1),s=i(6),a=i(0)},function(e,t,i){"use strict";function o(e,t,i,o,n,a){if(r.call(this,e,t,o,void 0,void 0,n,a),!s.isString(i))throw TypeError("keyType must be a string");this.keyType=i,this.resolvedKeyType=null,this.map=!0}e.exports=o;var r=i(3);((o.prototype=Object.create(r.prototype)).constructor=o).className="MapField";var n=i(6),s=i(0);o.fromJSON=function(e,t){return new o(e,t.id,t.keyType,t.type,t.options,t.comment)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return s.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},o.prototype.resolve=function(){if(this.resolved)return this;if(void 0===n.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return r.prototype.resolve.call(this)},o.d=function(e,t,i){return"function"==typeof i?i=s.decorateType(i).name:i&&"object"==typeof i&&(i=s.decorateEnum(i).name),function(r,n){s.decorateType(r.constructor).add(new o(n,e,t,i))}}},function(e,t,i){"use strict";function o(e,t,i,o,s,a,d,p){if(n.isObject(s)?(d=s,s=a=void 0):n.isObject(a)&&(d=a,a=void 0),void 0!==t&&!n.isString(t))throw TypeError("type must be a string");if(!n.isString(i))throw TypeError("requestType must be a string");if(!n.isString(o))throw TypeError("responseType must be a string");r.call(this,e,d),this.type=t||"rpc",this.requestType=i,this.requestStream=!!s||void 0,this.responseType=o,this.responseStream=!!a||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=p}e.exports=o;var r=i(4);((o.prototype=Object.create(r.prototype)).constructor=o).className="Method";var n=i(0);o.fromJSON=function(e,t){return new o(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return n.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0])},o.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),r.prototype.resolve.call(this))}},function(e,t,i){"use strict";function o(e){s.call(this,"",e),this.deferred=[],this.files=[]}function r(){}function n(e,t){var i=t.parent.lookup(t.extend);if(i){var o=new l(t.fullName,t.id,t.type,t.rule,void 0,t.options);return o.declaringField=t,t.extensionField=o,i.add(o),!0}return!1}e.exports=o;var s=i(5);((o.prototype=Object.create(s.prototype)).constructor=o).className="Root";var a,d,p,l=i(3),u=i(1),f=i(8),c=i(0);o.fromJSON=function(e,t){return t||(t=new o),e.options&&t.setOptions(e.options),t.addJSON(e.nested)},o.prototype.resolvePath=c.path.resolve,o.prototype.load=function e(t,i,o){function n(e,t){if(o){var i=o;if(o=null,u)throw e;i(e,t)}}function s(e,t){try{if(c.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),c.isString(t)){d.filename=e;var o,r=d(t,l,i),s=0;if(r.imports)for(;s<r.imports.length;++s)(o=l.resolvePath(e,r.imports[s]))&&a(o);if(r.weakImports)for(s=0;s<r.weakImports.length;++s)(o=l.resolvePath(e,r.weakImports[s]))&&a(o,!0)}else l.setOptions(t.options).addJSON(t.nested)}catch(e){n(e)}u||f||n(null,l)}function a(e,t){var i=e.lastIndexOf("google/protobuf/");if(i>-1){var r=e.substring(i);r in p&&(e=r)}if(!(l.files.indexOf(e)>-1)){if(l.files.push(e),e in p)return void(u?s(e,p[e]):(++f,setTimeout(function(){--f,s(e,p[e])})));if(u){var a;try{a=c.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||n(e))}s(e,a)}else++f,c.fetch(e,function(i,r){if(--f,o)return i?void(t?f||n(null,l):n(i)):void s(e,r)})}}"function"==typeof i&&(o=i,i=void 0);var l=this;if(!o)return c.asPromise(e,l,t,i);var u=o===r,f=0;c.isString(t)&&(t=[t]);for(var y,h=0;h<t.length;++h)(y=l.resolvePath("",t[h]))&&a(y);if(u)return l;f||n(null,l)},o.prototype.loadSync=function(e,t){if(!c.isNode)throw Error("not supported");return this.load(e,t,r)},o.prototype.resolveAll=function(){if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(e){return"'extend "+e.extend+"' in "+e.parent.fullName}).join(", "));return s.prototype.resolveAll.call(this)};var y=/^[A-Z]/;o.prototype._handleAdd=function(e){if(e instanceof l)void 0===e.extend||e.extensionField||n(this,e)||this.deferred.push(e);else if(e instanceof u)y.test(e.name)&&(e.parent[e.name]=e.values);else if(!(e instanceof f)){if(e instanceof a)for(var t=0;t<this.deferred.length;)n(this,this.deferred[t])?this.deferred.splice(t,1):++t;for(var i=0;i<e.nestedArray.length;++i)this._handleAdd(e._nestedArray[i]);y.test(e.name)&&(e.parent[e.name]=e)}},o.prototype._handleRemove=function(e){if(e instanceof l){if(void 0!==e.extend)if(e.extensionField)e.extensionField.parent.remove(e.extensionField),e.extensionField=null;else{var t=this.deferred.indexOf(e);t>-1&&this.deferred.splice(t,1)}}else if(e instanceof u)y.test(e.name)&&delete e.parent[e.name];else if(e instanceof s){for(var i=0;i<e.nestedArray.length;++i)this._handleRemove(e._nestedArray[i]);y.test(e.name)&&delete e.parent[e.name]}},o._configure=function(e,t,i){a=e,d=t,p=i}},function(e,t,i){"use strict";e.exports={}},function(e,t,i){"use strict";t.Service=i(40)},function(e,t,i){"use strict";function o(e,t){n.call(this,e,t),this.methods={},this._methodsArray=null}function r(e){return e._methodsArray=null,e}e.exports=o;var n=i(5);((o.prototype=Object.create(n.prototype)).constructor=o).className="Service";var s=i(17),a=i(0),d=i(20);o.fromJSON=function(e,t){var i=new o(e,t.options);if(t.methods)for(var r=Object.keys(t.methods),n=0;n<r.length;++n)i.add(s.fromJSON(r[n],t.methods[r[n]]));return t.nested&&i.addJSON(t.nested),i.comment=t.comment,i},o.prototype.toJSON=function(e){var t=n.prototype.toJSON.call(this,e),i=!!e&&Boolean(e.keepComments);return a.toObject(["options",t&&t.options||void 0,"methods",n.arrayToJSON(this.methodsArray,e)||{},"nested",t&&t.nested||void 0,"comment",i?this.comment:void 0])},Object.defineProperty(o.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=a.toArray(this.methods))}}),o.prototype.get=function(e){return this.methods[e]||n.prototype.get.call(this,e)},o.prototype.resolveAll=function(){for(var e=this.methodsArray,t=0;t<e.length;++t)e[t].resolve();return n.prototype.resolve.call(this)},o.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof s?(this.methods[e.name]=e,e.parent=this,r(this)):n.prototype.add.call(this,e)},o.prototype.remove=function(e){if(e instanceof s){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,r(this)}return n.prototype.remove.call(this,e)},o.prototype.create=function(e,t,i){for(var o,r=new d.Service(e,t,i),n=0;n<this.methodsArray.length;++n){var s=a.lcFirst((o=this._methodsArray[n]).resolve().name).replace(/[^$\w_]/g,"");r[s]=a.codegen(["r","c"],a.isReserved(s)?s+"_":s)("return this.rpcCall(m,q,s,r,c)")({m:o,q:o.resolvedRequestType.ctor,s:o.resolvedResponseType.ctor})}return r}},function(e,t,i){"use strict";function o(e,t){n.call(this,e,t),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function r(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}e.exports=o;var n=i(5);((o.prototype=Object.create(n.prototype)).constructor=o).className="Type";var s=i(1),a=i(8),d=i(3),p=i(16),l=i(21),u=i(7),f=i(9),c=i(10),y=i(0),h=i(15),m=i(14),g=i(23),v=i(13),b=i(24);Object.defineProperties(o.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t<e.length;++t){var i=this.fields[e[t]],o=i.id;if(this._fieldsById[o])throw Error("duplicate id "+o+" in "+this);this._fieldsById[o]=i}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=y.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=y.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=o.generateConstructor(this)())},set:function(e){var t=e.prototype;t instanceof u||((e.prototype=new u).constructor=e,y.merge(e.prototype,t)),e.$type=e.prototype.$type=this,y.merge(e,u,!0),this._ctor=e;for(var i=0;i<this.fieldsArray.length;++i)this._fieldsArray[i].resolve();var o={};for(i=0;i<this.oneofsArray.length;++i)o[this._oneofsArray[i].resolve().name]={get:y.oneOfGetter(this._oneofsArray[i].oneof),set:y.oneOfSetter(this._oneofsArray[i].oneof)};i&&Object.defineProperties(e.prototype,o)}}}),o.generateConstructor=function(e){for(var t,i=y.codegen(["p"],e.name),o=0;o<e.fieldsArray.length;++o)(t=e._fieldsArray[o]).map?i("this%s={}",y.safeProp(t.name)):t.repeated&&i("this%s=[]",y.safeProp(t.name));return i("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")},o.fromJSON=function(e,t){var i=new o(e,t.options);i.extensions=t.extensions,i.reserved=t.reserved;for(var r=Object.keys(t.fields),u=0;u<r.length;++u)i.add((void 0!==t.fields[r[u]].keyType?p.fromJSON:d.fromJSON)(r[u],t.fields[r[u]]));if(t.oneofs)for(r=Object.keys(t.oneofs),u=0;u<r.length;++u)i.add(a.fromJSON(r[u],t.oneofs[r[u]]));if(t.nested)for(r=Object.keys(t.nested),u=0;u<r.length;++u){var f=t.nested[r[u]];i.add((void 0!==f.id?d.fromJSON:void 0!==f.fields?o.fromJSON:void 0!==f.values?s.fromJSON:void 0!==f.methods?l.fromJSON:n.fromJSON)(r[u],f))}return t.extensions&&t.extensions.length&&(i.extensions=t.extensions),t.reserved&&t.reserved.length&&(i.reserved=t.reserved),t.group&&(i.group=!0),t.comment&&(i.comment=t.comment),i},o.prototype.toJSON=function(e){var t=n.prototype.toJSON.call(this,e),i=!!e&&Boolean(e.keepComments);return y.toObject(["options",t&&t.options||void 0,"oneofs",n.arrayToJSON(this.oneofsArray,e),"fields",n.arrayToJSON(this.fieldsArray.filter(function(e){return!e.declaringField}),e)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",t&&t.nested||void 0,"comment",i?this.comment:void 0])},o.prototype.resolveAll=function(){for(var e=this.fieldsArray,t=0;t<e.length;)e[t++].resolve();var i=this.oneofsArray;for(t=0;t<i.length;)i[t++].resolve();return n.prototype.resolveAll.call(this)},o.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},o.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof d&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),r(this)}return e instanceof a?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),r(this)):n.prototype.add.call(this,e)},o.prototype.remove=function(e){if(e instanceof d&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),r(this)}if(e instanceof a){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),r(this)}return n.prototype.remove.call(this,e)},o.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},o.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},o.prototype.create=function(e){return new this.ctor(e)},o.prototype.setup=function(){for(var e=this.fullName,t=[],i=0;i<this.fieldsArray.length;++i)t.push(this._fieldsArray[i].resolve().resolvedType);this.encode=h(this)({Writer:c,types:t,util:y}),this.decode=m(this)({Reader:f,types:t,util:y}),this.verify=g(this)({types:t,util:y}),this.fromObject=v.fromObject(this)({types:t,util:y}),this.toObject=v.toObject(this)({types:t,util:y});var o=b[e];if(o){var r=Object.create(this);r.fromObject=this.fromObject,this.fromObject=o.fromObject.bind(r),r.toObject=this.toObject,this.toObject=o.toObject.bind(r)}return this},o.prototype.encode=function(e,t){return this.setup().encode(e,t)},o.prototype.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},o.prototype.decode=function(e,t){return this.setup().decode(e,t)},o.prototype.decodeDelimited=function(e){return e instanceof f||(e=f.create(e)),this.decode(e,e.uint32())},o.prototype.verify=function(e){return this.setup().verify(e)},o.prototype.fromObject=function(e){return this.setup().fromObject(e)},o.prototype.toObject=function(e,t){return this.setup().toObject(e,t)},o.d=function(e){return function(t){y.decorateType(t,e)}}},function(e,t,i){"use strict";function o(e,t){return e.name+": "+t+(e.repeated&&"array"!==t?"[]":e.map&&"object"!==t?"{k:"+e.keyType+"}":"")+" expected"}function r(e,t,i,r){if(t.resolvedType)if(t.resolvedType instanceof a){e("switch(%s){",r)("default:")("return%j",o(t,"enum value"));for(var n=Object.keys(t.resolvedType.values),s=0;s<n.length;++s)e("case %i:",t.resolvedType.values[n[s]]);e("break")("}")}else e("{")("var e=types[%i].verify(%s);",i,r)("if(e)")("return%j+e",t.name+".")("}");else switch(t.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.isInteger(%s))",r)("return%j",o(t,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",r,r,r,r)("return%j",o(t,"integer|Long"));break;case"float":case"double":e('if(typeof %s!=="number")',r)("return%j",o(t,"number"));break;case"bool":e('if(typeof %s!=="boolean")',r)("return%j",o(t,"boolean"));break;case"string":e("if(!util.isString(%s))",r)("return%j",o(t,"string"));break;case"bytes":e('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',r,r,r)("return%j",o(t,"buffer"))}return e}function n(e,t,i){switch(t.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.key32Re.test(%s))",i)("return%j",o(t,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.key64Re.test(%s))",i)("return%j",o(t,"integer|Long key"));break;case"bool":e("if(!util.key2Re.test(%s))",i)("return%j",o(t,"boolean key"))}return e}function s(e){var t=d.codegen(["m"],e.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),i=e.oneofsArray,s={};i.length&&t("var p={}");for(var a=0;a<e.fieldsArray.length;++a){var p=e._fieldsArray[a].resolve(),l="m"+d.safeProp(p.name);if(p.optional&&t("if(%s!=null&&m.hasOwnProperty(%j)){",l,p.name),p.map)t("if(!util.isObject(%s))",l)("return%j",o(p,"object"))("var k=Object.keys(%s)",l)("for(var i=0;i<k.length;++i){"),n(t,p,"k[i]"),r(t,p,a,l+"[k[i]]")("}");else if(p.repeated)t("if(!Array.isArray(%s))",l)("return%j",o(p,"array"))("for(var i=0;i<%s.length;++i){",l),r(t,p,a,l+"[i]")("}");else{if(p.partOf){var u=d.safeProp(p.partOf.name);1===s[p.partOf.name]&&t("if(p%s===1)",u)("return%j",p.partOf.name+": multiple values"),s[p.partOf.name]=1,t("p%s=1",u)}r(t,p,a,l)}p.optional&&t("}")}return t("return null")}e.exports=s;var a=i(1),d=i(0)},function(e,t,i){"use strict";var o=t,r=i(7);o[".google.protobuf.Any"]={fromObject:function(e){if(e&&e["@type"]){var t=this.lookup(e["@type"]);if(t){var i="."===e["@type"].charAt(0)?e["@type"].substr(1):e["@type"];return this.create({type_url:"/"+i,value:t.encode(t.fromObject(e)).finish()})}}return this.fromObject(e)},toObject:function(e,t){if(t&&t.json&&e.type_url&&e.value){var i=e.type_url.substring(e.type_url.lastIndexOf("/")+1),o=this.lookup(i);o&&(e=o.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof r){var n=e.$type.toObject(e,t);return n["@type"]=e.$type.fullName,n}return this.toObject(e,t)}}},function(e,t,i){"use strict";e.exports=i(37)},function(e,t){e.exports={nested:{apollo:{nested:{dreamview:{nested:{PointCloud:{fields:{num:{rule:"repeated",type:"float",id:1,options:{packed:!1}}}}}}}}}}},function(e,t){e.exports={nested:{apollo:{nested:{dreamview:{nested:{PolygonPoint:{fields:{x:{type:"double",id:1},y:{type:"double",id:2},z:{type:"double",id:3,options:{default:0}}}},Prediction:{fields:{probability:{type:"double",id:1},predictedTrajectory:{rule:"repeated",type:"PolygonPoint",id:2}}},Decision:{fields:{type:{type:"Type",id:1,options:{default:"IGNORE"}},polygonPoint:{rule:"repeated",type:"PolygonPoint",id:2},heading:{type:"double",id:3},latitude:{type:"double",id:4},longitude:{type:"double",id:5},positionX:{type:"double",id:6},positionY:{type:"double",id:7},length:{type:"double",id:8,options:{default:2.8}},width:{type:"double",id:9,options:{default:1.4}},height:{type:"double",id:10,options:{default:1.8}},stopReason:{type:"StopReasonCode",id:11},changeLaneType:{type:"apollo.routing.ChangeLaneType",id:12}},nested:{Type:{values:{IGNORE:0,STOP:1,NUDGE:2,YIELD:3,OVERTAKE:4,FOLLOW:5,SIDEPASS:6}},StopReasonCode:{values:{STOP_REASON_HEAD_VEHICLE:1,STOP_REASON_DESTINATION:2,STOP_REASON_PEDESTRIAN:3,STOP_REASON_OBSTACLE:4,STOP_REASON_SIGNAL:100,STOP_REASON_STOP_SIGN:101,STOP_REASON_YIELD_SIGN:102,STOP_REASON_CLEAR_ZONE:103,STOP_REASON_CROSSWALK:104,STOP_REASON_EMERGENCY:105,STOP_REASON_NOT_READY:106}}}},Object:{fields:{id:{type:"string",id:1},polygonPoint:{rule:"repeated",type:"PolygonPoint",id:2},heading:{type:"double",id:3},latitude:{type:"double",id:4},longitude:{type:"double",id:5},positionX:{type:"double",id:6},positionY:{type:"double",id:7},length:{type:"double",id:8,options:{default:2.8}},width:{type:"double",id:9,options:{default:1.4}},height:{type:"double",id:10,options:{default:1.8}},speed:{type:"double",id:11},speedAcceleration:{type:"double",id:12},speedJerk:{type:"double",id:13},spin:{type:"double",id:14},spinAcceleration:{type:"double",id:15},spinJerk:{type:"double",id:16},speedHeading:{type:"double",id:17},kappa:{type:"double",id:18},signalSet:{rule:"repeated",type:"string",id:19},currentSignal:{type:"string",id:20},timestampSec:{type:"double",id:21},decision:{rule:"repeated",type:"Decision",id:22},throttlePercentage:{type:"double",id:23},brakePercentage:{type:"double",id:24},steeringPercentage:{type:"double",id:25},steeringAngle:{type:"double",id:26},steeringRatio:{type:"double",id:27},disengageType:{type:"DisengageType",id:28},type:{type:"Type",id:29},prediction:{rule:"repeated",type:"Prediction",id:30},confidence:{type:"double",id:31,options:{default:1}}},nested:{DisengageType:{values:{DISENGAGE_NONE:0,DISENGAGE_UNKNOWN:1,DISENGAGE_MANUAL:2,DISENGAGE_EMERGENCY:3,DISENGAGE_AUTO_STEER_ONLY:4,DISENGAGE_AUTO_SPEED_ONLY:5,DISENGAGE_CHASSIS_ERROR:6}},Type:{values:{UNKNOWN:0,UNKNOWN_MOVABLE:1,UNKNOWN_UNMOVABLE:2,PEDESTRIAN:3,BICYCLE:4,VEHICLE:5,VIRTUAL:6,CIPV:7}}}},DelaysInMs:{fields:{chassis:{type:"double",id:1},localization:{type:"double",id:3},perceptionObstacle:{type:"double",id:4},planning:{type:"double",id:5},prediction:{type:"double",id:7},trafficLight:{type:"double",id:8},control:{type:"double",id:9}}},RoutePath:{fields:{point:{rule:"repeated",type:"PolygonPoint",id:1}}},Latency:{fields:{planning:{type:"double",id:1}}},MapElementIds:{fields:{lane:{rule:"repeated",type:"string",id:1},crosswalk:{rule:"repeated",type:"string",id:2},junction:{rule:"repeated",type:"string",id:3},signal:{rule:"repeated",type:"string",id:4},stopSign:{rule:"repeated",type:"string",id:5},yield:{rule:"repeated",type:"string",id:6},overlap:{rule:"repeated",type:"string",id:7},road:{rule:"repeated",type:"string",id:8},clearArea:{rule:"repeated",type:"string",id:9}}},ControlData:{fields:{timestampSec:{type:"double",id:1},stationError:{type:"double",id:2},lateralError:{type:"double",id:3},headingError:{type:"double",id:4}}},SimulationWorld:{fields:{timestamp:{type:"double",id:1},sequenceNum:{type:"uint32",id:2},object:{rule:"repeated",type:"Object",id:3},autoDrivingCar:{type:"Object",id:4},trafficSignal:{type:"Object",id:5},routePath:{rule:"repeated",type:"RoutePath",id:6},routingTime:{type:"double",id:7},planningTrajectory:{rule:"repeated",type:"Object",id:8},mainStop:{type:"Object",id:9,options:{deprecated:!0}},mainDecision:{type:"Object",id:24},speedLimit:{type:"double",id:10},delay:{type:"DelaysInMs",id:11},monitor:{type:"apollo.common.monitor.MonitorMessage",id:12},engageAdvice:{type:"string",id:13},latency:{type:"Latency",id:14},mapElementIds:{type:"MapElementIds",id:15},mapHash:{type:"uint64",id:16},mapRadius:{type:"double",id:17},planningTime:{type:"double",id:18},planningData:{type:"apollo.planning_internal.PlanningData",id:19},gps:{type:"Object",id:20},laneMarker:{type:"apollo.perception.LaneMarkers",id:21},controlData:{type:"ControlData",id:22},navigationPath:{rule:"repeated",type:"apollo.common.Path",id:23}}}}},common:{nested:{DriveEvent:{fields:{header:{type:"apollo.common.Header",id:1},event:{type:"string",id:2},location:{type:"apollo.localization.Pose",id:3}}},EngageAdvice:{fields:{advice:{type:"Advice",id:1,options:{default:"DISALLOW_ENGAGE"}},reason:{type:"string",id:2}},nested:{Advice:{values:{UNKNOWN:0,DISALLOW_ENGAGE:1,READY_TO_ENGAGE:2,KEEP_ENGAGED:3,PREPARE_DISENGAGE:4}}}},ErrorCode:{values:{OK:0,CONTROL_ERROR:1e3,CONTROL_INIT_ERROR:1001,CONTROL_COMPUTE_ERROR:1002,CANBUS_ERROR:2e3,CAN_CLIENT_ERROR_BASE:2100,CAN_CLIENT_ERROR_OPEN_DEVICE_FAILED:2101,CAN_CLIENT_ERROR_FRAME_NUM:2102,CAN_CLIENT_ERROR_SEND_FAILED:2103,CAN_CLIENT_ERROR_RECV_FAILED:2104,LOCALIZATION_ERROR:3e3,LOCALIZATION_ERROR_MSG:3100,LOCALIZATION_ERROR_LIDAR:3200,LOCALIZATION_ERROR_INTEG:3300,LOCALIZATION_ERROR_GNSS:3400,PERCEPTION_ERROR:4e3,PERCEPTION_ERROR_TF:4001,PERCEPTION_ERROR_PROCESS:4002,PERCEPTION_FATAL:4003,PREDICTION_ERROR:5e3,PLANNING_ERROR:6e3,HDMAP_DATA_ERROR:7e3,ROUTING_ERROR:8e3,ROUTING_ERROR_REQUEST:8001,ROUTING_ERROR_RESPONSE:8002,ROUTING_ERROR_NOT_READY:8003,END_OF_INPUT:9e3,HTTP_LOGIC_ERROR:1e4,HTTP_RUNTIME_ERROR:10001,RELATIVE_MAP_ERROR:11e3,RELATIVE_MAP_NOT_READY:11001}},StatusPb:{fields:{errorCode:{type:"ErrorCode",id:1,options:{default:"OK"}},msg:{type:"string",id:2}}},PointENU:{fields:{x:{type:"double",id:1,options:{default:null}},y:{type:"double",id:2,options:{default:null}},z:{type:"double",id:3,options:{default:0}}}},PointLLH:{fields:{lon:{type:"double",id:1,options:{default:null}},lat:{type:"double",id:2,options:{default:null}},height:{type:"double",id:3,options:{default:0}}}},Point2D:{fields:{x:{type:"double",id:1,options:{default:null}},y:{type:"double",id:2,options:{default:null}}}},Point3D:{fields:{x:{type:"double",id:1,options:{default:null}},y:{type:"double",id:2,options:{default:null}},z:{type:"double",id:3,options:{default:null}}}},Quaternion:{fields:{qx:{type:"double",id:1,options:{default:null}},qy:{type:"double",id:2,options:{default:null}},qz:{type:"double",id:3,options:{default:null}},qw:{type:"double",id:4,options:{default:null}}}},Polygon:{fields:{point:{rule:"repeated",type:"Point3D",id:1}}},Header:{fields:{timestampSec:{type:"double",id:1},moduleName:{type:"string",id:2},sequenceNum:{type:"uint32",id:3},lidarTimestamp:{type:"uint64",id:4},cameraTimestamp:{type:"uint64",id:5},radarTimestamp:{type:"uint64",id:6},version:{type:"uint32",id:7,options:{default:1}},status:{type:"StatusPb",id:8}}},SLPoint:{fields:{s:{type:"double",id:1},l:{type:"double",id:2}}},FrenetFramePoint:{fields:{s:{type:"double",id:1},l:{type:"double",id:2},dl:{type:"double",id:3},ddl:{type:"double",id:4}}},SpeedPoint:{fields:{s:{type:"double",id:1},t:{type:"double",id:2},v:{type:"double",id:3},a:{type:"double",id:4},da:{type:"double",id:5}}},PathPoint:{fields:{x:{type:"double",id:1},y:{type:"double",id:2},z:{type:"double",id:3},theta:{type:"double",id:4},kappa:{type:"double",id:5},s:{type:"double",id:6},dkappa:{type:"double",id:7},ddkappa:{type:"double",id:8},laneId:{type:"string",id:9}}},Path:{fields:{name:{type:"string",id:1},pathPoint:{rule:"repeated",type:"PathPoint",id:2}}},TrajectoryPoint:{fields:{pathPoint:{type:"PathPoint",id:1},v:{type:"double",id:2},a:{type:"double",id:3},relativeTime:{type:"double",id:4}}},VehicleSignal:{fields:{turnSignal:{type:"TurnSignal",id:1},highBeam:{type:"bool",id:2},lowBeam:{type:"bool",id:3},horn:{type:"bool",id:4},emergencyLight:{type:"bool",id:5}},nested:{TurnSignal:{values:{TURN_NONE:0,TURN_LEFT:1,TURN_RIGHT:2}}}},monitor:{nested:{MonitorMessageItem:{fields:{source:{type:"MessageSource",id:1,options:{default:"UNKNOWN"}},msg:{type:"string",id:2},logLevel:{type:"LogLevel",id:3,options:{default:"INFO"}}},nested:{MessageSource:{values:{UNKNOWN:1,CANBUS:2,CONTROL:3,DECISION:4,LOCALIZATION:5,PLANNING:6,PREDICTION:7,SIMULATOR:8,HWSYS:9,ROUTING:10,MONITOR:11,HMI:12,RELATIVE_MAP:13}},LogLevel:{values:{INFO:0,WARN:1,ERROR:2,FATAL:3}}}},MonitorMessage:{fields:{header:{type:"apollo.common.Header",id:1},item:{rule:"repeated",type:"MonitorMessageItem",id:2}}}}}}},localization:{nested:{Uncertainty:{fields:{positionStdDev:{type:"apollo.common.Point3D",id:1},orientationStdDev:{type:"apollo.common.Point3D",id:2},linearVelocityStdDev:{type:"apollo.common.Point3D",id:3},linearAccelerationStdDev:{type:"apollo.common.Point3D",id:4},angularVelocityStdDev:{type:"apollo.common.Point3D",id:5}}},LocalizationEstimate:{fields:{header:{type:"apollo.common.Header",id:1},pose:{type:"apollo.localization.Pose",id:2},uncertainty:{type:"Uncertainty",id:3},measurementTime:{type:"double",id:4},trajectoryPoint:{rule:"repeated",type:"apollo.common.TrajectoryPoint",id:5}}},MeasureState:{values:{NOT_VALID:0,NOT_STABLE:1,OK:2,VALID:3}},LocalizationStatus:{fields:{header:{type:"apollo.common.Header",id:1},fusionStatus:{type:"MeasureState",id:2},gnssStatus:{type:"MeasureState",id:3},lidarStatus:{type:"MeasureState",id:4},measurementTime:{type:"double",id:5}}},Pose:{fields:{position:{type:"apollo.common.PointENU",id:1},orientation:{type:"apollo.common.Quaternion",id:2},linearVelocity:{type:"apollo.common.Point3D",id:3},linearAcceleration:{type:"apollo.common.Point3D",id:4},angularVelocity:{type:"apollo.common.Point3D",id:5},heading:{type:"double",id:6},linearAccelerationVrf:{type:"apollo.common.Point3D",id:7},angularVelocityVrf:{type:"apollo.common.Point3D",id:8},eulerAngles:{type:"apollo.common.Point3D",id:9}}}}},canbus:{nested:{Chassis:{fields:{engineStarted:{type:"bool",id:3},engineRpm:{type:"float",id:4,options:{default:null}},speedMps:{type:"float",id:5,options:{default:null}},odometerM:{type:"float",id:6,options:{default:null}},fuelRangeM:{type:"int32",id:7},throttlePercentage:{type:"float",id:8,options:{default:null}},brakePercentage:{type:"float",id:9,options:{default:null}},steeringPercentage:{type:"float",id:11,options:{default:null}},steeringTorqueNm:{type:"float",id:12,options:{default:null}},parkingBrake:{type:"bool",id:13},highBeamSignal:{type:"bool",id:14,options:{deprecated:!0}},lowBeamSignal:{type:"bool",id:15,options:{deprecated:!0}},leftTurnSignal:{type:"bool",id:16,options:{deprecated:!0}},rightTurnSignal:{type:"bool",id:17,options:{deprecated:!0}},horn:{type:"bool",id:18,options:{deprecated:!0}},wiper:{type:"bool",id:19},disengageStatus:{type:"bool",id:20,options:{deprecated:!0}},drivingMode:{type:"DrivingMode",id:21,options:{default:"COMPLETE_MANUAL"}},errorCode:{type:"ErrorCode",id:22,options:{default:"NO_ERROR"}},gearLocation:{type:"GearPosition",id:23},steeringTimestamp:{type:"double",id:24},header:{type:"apollo.common.Header",id:25},chassisErrorMask:{type:"int32",id:26,options:{default:0}},signal:{type:"apollo.common.VehicleSignal",id:27},chassisGps:{type:"ChassisGPS",id:28},engageAdvice:{type:"apollo.common.EngageAdvice",id:29}},nested:{DrivingMode:{values:{COMPLETE_MANUAL:0,COMPLETE_AUTO_DRIVE:1,AUTO_STEER_ONLY:2,AUTO_SPEED_ONLY:3,EMERGENCY_MODE:4}},ErrorCode:{values:{NO_ERROR:0,CMD_NOT_IN_PERIOD:1,CHASSIS_ERROR:2,MANUAL_INTERVENTION:3,CHASSIS_CAN_NOT_IN_PERIOD:4,UNKNOWN_ERROR:5}},GearPosition:{values:{GEAR_NEUTRAL:0,GEAR_DRIVE:1,GEAR_REVERSE:2,GEAR_PARKING:3,GEAR_LOW:4,GEAR_INVALID:5,GEAR_NONE:6}}}},ChassisGPS:{fields:{latitude:{type:"double",id:1},longitude:{type:"double",id:2},gpsValid:{type:"bool",id:3},year:{type:"int32",id:4},month:{type:"int32",id:5},day:{type:"int32",id:6},hours:{type:"int32",id:7},minutes:{type:"int32",id:8},seconds:{type:"int32",id:9},compassDirection:{type:"double",id:10},pdop:{type:"double",id:11},isGpsFault:{type:"bool",id:12},isInferred:{type:"bool",id:13},altitude:{type:"double",id:14},heading:{type:"double",id:15},hdop:{type:"double",id:16},vdop:{type:"double",id:17},quality:{type:"GpsQuality",id:18},numSatellites:{type:"int32",id:19},gpsSpeed:{type:"double",id:20}}},GpsQuality:{values:{FIX_NO:0,FIX_2D:1,FIX_3D:2,FIX_INVALID:3}}}},planning:{nested:{SLBoundary:{fields:{startS:{type:"double",id:1},endS:{type:"double",id:2},startL:{type:"double",id:3},endL:{type:"double",id:4}}},TargetLane:{fields:{id:{type:"string",id:1},startS:{type:"double",id:2},endS:{type:"double",id:3},speedLimit:{type:"double",id:4}}},ObjectIgnore:{fields:{}},StopReasonCode:{values:{STOP_REASON_HEAD_VEHICLE:1,STOP_REASON_DESTINATION:2,STOP_REASON_PEDESTRIAN:3,STOP_REASON_OBSTACLE:4,STOP_REASON_PREPARKING:5,STOP_REASON_SIGNAL:100,STOP_REASON_STOP_SIGN:101,STOP_REASON_YIELD_SIGN:102,STOP_REASON_CLEAR_ZONE:103,STOP_REASON_CROSSWALK:104,STOP_REASON_CREEPER:105,STOP_REASON_REFERENCE_END:106,STOP_REASON_YELLOW_SIGNAL:107}},ObjectStop:{fields:{reasonCode:{type:"StopReasonCode",id:1},distanceS:{type:"double",id:2},stopPoint:{type:"apollo.common.PointENU",id:3},stopHeading:{type:"double",id:4}}},ObjectNudge:{fields:{type:{type:"Type",id:1},distanceL:{type:"double",id:2}},nested:{Type:{values:{LEFT_NUDGE:1,RIGHT_NUDGE:2,NO_NUDGE:3}}}},ObjectYield:{fields:{distanceS:{type:"double",id:1},fencePoint:{type:"apollo.common.PointENU",id:2},fenceHeading:{type:"double",id:3},timeBuffer:{type:"double",id:4}}},ObjectFollow:{fields:{distanceS:{type:"double",id:1},fencePoint:{type:"apollo.common.PointENU",id:2},fenceHeading:{type:"double",id:3}}},ObjectOvertake:{fields:{distanceS:{type:"double",id:1},fencePoint:{type:"apollo.common.PointENU",id:2},fenceHeading:{type:"double",id:3},timeBuffer:{type:"double",id:4}}},ObjectSidePass:{fields:{type:{type:"Type",id:1}},nested:{Type:{values:{LEFT:1,RIGHT:2}}}},ObjectAvoid:{fields:{}},ObjectDecisionType:{oneofs:{objectTag:{oneof:["ignore","stop","follow","yield","overtake","nudge","sidepass","avoid"]}},fields:{ignore:{type:"ObjectIgnore",id:1},stop:{type:"ObjectStop",id:2},follow:{type:"ObjectFollow",id:3},yield:{type:"ObjectYield",id:4},overtake:{type:"ObjectOvertake",id:5},nudge:{type:"ObjectNudge",id:6},sidepass:{type:"ObjectSidePass",id:7},avoid:{type:"ObjectAvoid",id:8}}},ObjectDecision:{fields:{id:{type:"string",id:1},perceptionId:{type:"int32",id:2},objectDecision:{rule:"repeated",type:"ObjectDecisionType",id:3}}},ObjectDecisions:{fields:{decision:{rule:"repeated",type:"ObjectDecision",id:1}}},MainStop:{fields:{reasonCode:{type:"StopReasonCode",id:1},reason:{type:"string",id:2},stopPoint:{type:"apollo.common.PointENU",id:3},stopHeading:{type:"double",id:4},changeLaneType:{type:"apollo.routing.ChangeLaneType",id:5}}},EmergencyStopHardBrake:{fields:{}},EmergencyStopCruiseToStop:{fields:{}},MainEmergencyStop:{oneofs:{task:{oneof:["hardBrake","cruiseToStop"]}},fields:{reasonCode:{type:"ReasonCode",id:1},reason:{type:"string",id:2},hardBrake:{type:"EmergencyStopHardBrake",id:3},cruiseToStop:{type:"EmergencyStopCruiseToStop",id:4}},nested:{ReasonCode:{values:{ESTOP_REASON_INTERNAL_ERR:1,ESTOP_REASON_COLLISION:2,ESTOP_REASON_ST_FIND_PATH:3,ESTOP_REASON_ST_MAKE_DECISION:4,ESTOP_REASON_SENSOR_ERROR:5}}}},MainCruise:{fields:{changeLaneType:{type:"apollo.routing.ChangeLaneType",id:1}}},MainChangeLane:{fields:{type:{type:"Type",id:1},defaultLane:{rule:"repeated",type:"TargetLane",id:2},defaultLaneStop:{type:"MainStop",id:3},targetLaneStop:{type:"MainStop",id:4}},nested:{Type:{values:{LEFT:1,RIGHT:2}}}},MainMissionComplete:{fields:{stopPoint:{type:"apollo.common.PointENU",id:1},stopHeading:{type:"double",id:2}}},MainNotReady:{fields:{reason:{type:"string",id:1}}},MainParking:{fields:{}},MainDecision:{oneofs:{task:{oneof:["cruise","stop","estop","changeLane","missionComplete","notReady","parking"]}},fields:{cruise:{type:"MainCruise",id:1},stop:{type:"MainStop",id:2},estop:{type:"MainEmergencyStop",id:3},changeLane:{type:"MainChangeLane",id:4,options:{deprecated:!0}},missionComplete:{type:"MainMissionComplete",id:6},notReady:{type:"MainNotReady",id:7},parking:{type:"MainParking",id:8},targetLane:{rule:"repeated",type:"TargetLane",id:5,options:{deprecated:!0}}}},DecisionResult:{fields:{mainDecision:{type:"MainDecision",id:1},objectDecision:{type:"ObjectDecisions",id:2},vehicleSignal:{type:"apollo.common.VehicleSignal",id:3}}}}},planning_internal:{nested:{Debug:{fields:{planningData:{type:"PlanningData",id:2}}},SpeedPlan:{fields:{name:{type:"string",id:1},speedPoint:{rule:"repeated",type:"apollo.common.SpeedPoint",id:2}}},StGraphBoundaryDebug:{fields:{name:{type:"string",id:1},point:{rule:"repeated",type:"apollo.common.SpeedPoint",id:2},type:{type:"StBoundaryType",id:3}},nested:{StBoundaryType:{values:{ST_BOUNDARY_TYPE_UNKNOWN:1,ST_BOUNDARY_TYPE_STOP:2,ST_BOUNDARY_TYPE_FOLLOW:3,ST_BOUNDARY_TYPE_YIELD:4,ST_BOUNDARY_TYPE_OVERTAKE:5,ST_BOUNDARY_TYPE_KEEP_CLEAR:6}}}},SLFrameDebug:{fields:{name:{type:"string",id:1},sampledS:{rule:"repeated",type:"double",id:2,options:{packed:!1}},staticObstacleLowerBound:{rule:"repeated",type:"double",id:3,options:{packed:!1}},dynamicObstacleLowerBound:{rule:"repeated",type:"double",id:4,options:{packed:!1}},staticObstacleUpperBound:{rule:"repeated",type:"double",id:5,options:{packed:!1}},dynamicObstacleUpperBound:{rule:"repeated",type:"double",id:6,options:{packed:!1}},mapLowerBound:{rule:"repeated",type:"double",id:7,options:{packed:!1}},mapUpperBound:{rule:"repeated",type:"double",id:8,options:{packed:!1}},slPath:{rule:"repeated",type:"apollo.common.SLPoint",id:9},aggregatedBoundaryS:{rule:"repeated",type:"double",id:10,options:{packed:!1}},aggregatedBoundaryLow:{rule:"repeated",type:"double",id:11,options:{packed:!1}},aggregatedBoundaryHigh:{rule:"repeated",type:"double",id:12,options:{packed:!1}}}},STGraphDebug:{fields:{name:{type:"string",id:1},boundary:{rule:"repeated",type:"StGraphBoundaryDebug",id:2},speedLimit:{rule:"repeated",type:"apollo.common.SpeedPoint",id:3},speedProfile:{rule:"repeated",type:"apollo.common.SpeedPoint",id:4},speedConstraint:{type:"STGraphSpeedConstraint",id:5},kernelCruiseRef:{type:"STGraphKernelCuiseRef",id:6},kernelFollowRef:{type:"STGraphKernelFollowRef",id:7}},nested:{STGraphSpeedConstraint:{fields:{t:{rule:"repeated",type:"double",id:1,options:{packed:!1}},lowerBound:{rule:"repeated",type:"double",id:2,options:{packed:!1}},upperBound:{rule:"repeated",type:"double",id:3,options:{packed:!1}}}},STGraphKernelCuiseRef:{fields:{t:{rule:"repeated",type:"double",id:1,options:{packed:!1}},cruiseLineS:{rule:"repeated",type:"double",id:2,options:{packed:!1}}}},STGraphKernelFollowRef:{fields:{t:{rule:"repeated",type:"double",id:1,options:{packed:!1}},followLineS:{rule:"repeated",type:"double",id:2,options:{packed:!1}}}}}},SignalLightDebug:{fields:{adcSpeed:{type:"double",id:1},adcFrontS:{type:"double",id:2},signal:{rule:"repeated",type:"SignalDebug",id:3}},nested:{SignalDebug:{fields:{lightId:{type:"string",id:1},color:{type:"apollo.perception.TrafficLight.Color",id:2},lightStopS:{type:"double",id:3},adcStopDeacceleration:{type:"double",id:4},isStopWallCreated:{type:"bool",id:5}}}}},DecisionTag:{fields:{deciderTag:{type:"string",id:1},decision:{type:"apollo.planning.ObjectDecisionType",id:2}}},ObstacleDebug:{fields:{id:{type:"string",id:1},slBoundary:{type:"apollo.planning.SLBoundary",id:2},decisionTag:{rule:"repeated",type:"DecisionTag",id:3}}},ReferenceLineDebug:{fields:{id:{type:"string",id:1},length:{type:"double",id:2},cost:{type:"double",id:3},isChangeLanePath:{type:"bool",id:4},isDrivable:{type:"bool",id:5},isProtected:{type:"bool",id:6}}},SampleLayerDebug:{fields:{slPoint:{rule:"repeated",type:"apollo.common.SLPoint",id:1}}},DpPolyGraphDebug:{fields:{sampleLayer:{rule:"repeated",type:"SampleLayerDebug",id:1},minCostPoint:{rule:"repeated",type:"apollo.common.SLPoint",id:2}}},PlanningData:{fields:{adcPosition:{type:"apollo.localization.LocalizationEstimate",id:7},chassis:{type:"apollo.canbus.Chassis",id:8},routing:{type:"apollo.routing.RoutingResponse",id:9},initPoint:{type:"apollo.common.TrajectoryPoint",id:10},path:{rule:"repeated",type:"apollo.common.Path",id:6},speedPlan:{rule:"repeated",type:"SpeedPlan",id:13},stGraph:{rule:"repeated",type:"STGraphDebug",id:14},slFrame:{rule:"repeated",type:"SLFrameDebug",id:15},predictionHeader:{type:"apollo.common.Header",id:16},signalLight:{type:"SignalLightDebug",id:17},obstacle:{rule:"repeated",type:"ObstacleDebug",id:18},referenceLine:{rule:"repeated",type:"ReferenceLineDebug",id:19},dpPolyGraph:{type:"DpPolyGraphDebug",id:20},latticeStImage:{type:"LatticeStTraining",id:21},relativeMap:{type:"apollo.relative_map.MapMsg",id:22},autoTuningTrainingData:{type:"AutoTuningTrainingData",id:23}}},LatticeStPixel:{fields:{s:{type:"int32",id:1},t:{type:"int32",id:2},r:{type:"uint32",id:3},g:{type:"uint32",id:4},b:{type:"uint32",id:5}}},LatticeStTraining:{fields:{pixel:{rule:"repeated",type:"LatticeStPixel",id:1},timestamp:{type:"double",id:2},annotation:{type:"string",id:3},numSGrids:{type:"uint32",id:4},numTGrids:{type:"uint32",id:5},sResolution:{type:"double",id:6},tResolution:{type:"double",id:7}}},CostComponents:{fields:{costComponent:{rule:"repeated",type:"double",id:1,options:{packed:!1}}}},AutoTuningTrainingData:{fields:{teacherComponent:{type:"CostComponents",id:1},studentComponent:{type:"CostComponents",id:2}}},CloudReferenceLineRequest:{fields:{laneSegment:{rule:"repeated",type:"apollo.routing.LaneSegment",id:1}}},CloudReferenceLineRoutingRequest:{fields:{routing:{type:"apollo.routing.RoutingResponse",id:1}}},CloudReferenceLineResponse:{fields:{segment:{rule:"repeated",type:"apollo.common.Path",id:1}}}}},perception:{nested:{TrafficLightBox:{fields:{x:{type:"int32",id:1},y:{type:"int32",id:2},width:{type:"int32",id:3},height:{type:"int32",id:4},color:{type:"TrafficLight.Color",id:5},selected:{type:"bool",id:6}}},TrafficLightDebug:{fields:{cropbox:{type:"TrafficLightBox",id:1},box:{rule:"repeated",type:"TrafficLightBox",id:2},signalNum:{type:"int32",id:3},validPos:{type:"int32",id:4},tsDiffPos:{type:"double",id:5},tsDiffSys:{type:"double",id:6},projectError:{type:"int32",id:7},distanceToStopLine:{type:"double",id:8},cameraId:{type:"int32",id:9}}},TrafficLight:{fields:{color:{type:"Color",id:1},id:{type:"string",id:2},confidence:{type:"double",id:3,options:{default:1}},trackingTime:{type:"double",id:4}},nested:{Color:{values:{UNKNOWN:0,RED:1,YELLOW:2,GREEN:3,BLACK:4}}}},TrafficLightDetection:{fields:{header:{type:"apollo.common.Header",id:2},trafficLight:{rule:"repeated",type:"TrafficLight",id:1},trafficLightDebug:{type:"TrafficLightDebug",id:3},containLights:{type:"bool",id:4}}},Point:{fields:{x:{type:"double",id:1},y:{type:"double",id:2},z:{type:"double",id:3}}},PerceptionObstacle:{fields:{id:{type:"int32",id:1},position:{type:"Point",id:2},theta:{type:"double",id:3},velocity:{type:"Point",id:4},length:{type:"double",id:5},width:{type:"double",id:6},height:{type:"double",id:7},polygonPoint:{rule:"repeated",type:"Point",id:8},trackingTime:{type:"double",id:9},type:{type:"Type",id:10},timestamp:{type:"double",id:11},pointCloud:{rule:"repeated",type:"double",id:12},confidence:{type:"double",id:13,options:{default:1}},confidenceType:{type:"ConfidenceType",id:14,options:{default:"CONFIDENCE_CNN"}}},nested:{Type:{values:{UNKNOWN:0,UNKNOWN_MOVABLE:1,UNKNOWN_UNMOVABLE:2,PEDESTRIAN:3,BICYCLE:4,VEHICLE:5}},ConfidenceType:{values:{CONFIDENCE_UNKNOWN:0,CONFIDENCE_CNN:1,CONFIDENCE_RADAR:2}}}},CIPVInfo:{fields:{cipvId:{type:"int32",id:1},potentialCipvId:{rule:"repeated",type:"int32",id:2,options:{packed:!1}}}},LaneMarker:{fields:{laneType:{type:"apollo.hdmap.LaneBoundaryType.Type",id:1},quality:{type:"double",id:2},modelDegree:{type:"int32",id:3},c0Position:{type:"double",id:4},c1HeadingAngle:{type:"double",id:5},c2Curvature:{type:"double",id:6},c3CurvatureDerivative:{type:"double",id:7},viewRange:{type:"double",id:8},longitudeStart:{type:"double",id:9},longitudeEnd:{type:"double",id:10}}},LaneMarkers:{fields:{leftLaneMarker:{type:"LaneMarker",id:1},rightLaneMarker:{type:"LaneMarker",id:2},nextLeftLaneMarker:{rule:"repeated",type:"LaneMarker",id:3},nextRightLaneMarker:{rule:"repeated",type:"LaneMarker",id:4}}},PerceptionObstacles:{fields:{perceptionObstacle:{rule:"repeated",type:"PerceptionObstacle",id:1},header:{type:"apollo.common.Header",id:2},errorCode:{type:"apollo.common.ErrorCode",id:3,options:{default:"OK"}},laneMarker:{type:"LaneMarkers",id:4},cipvInfo:{type:"CIPVInfo",id:5}}}}},routing:{nested:{LaneWaypoint:{fields:{id:{type:"string",id:1},s:{type:"double",id:2},pose:{type:"apollo.common.PointENU",id:3}}},LaneSegment:{fields:{id:{type:"string",id:1},startS:{type:"double",id:2},endS:{type:"double",id:3}}},RoutingRequest:{fields:{header:{type:"apollo.common.Header",id:1},waypoint:{rule:"repeated",type:"LaneWaypoint",id:2},blacklistedLane:{rule:"repeated",type:"LaneSegment",id:3},blacklistedRoad:{rule:"repeated",type:"string",id:4},broadcast:{type:"bool",id:5,options:{default:!0}}}},Measurement:{fields:{distance:{type:"double",id:1}}},ChangeLaneType:{values:{FORWARD:0,LEFT:1,RIGHT:2}},Passage:{fields:{segment:{rule:"repeated",type:"LaneSegment",id:1},canExit:{type:"bool",id:2},changeLaneType:{type:"ChangeLaneType",id:3,options:{default:"FORWARD"}}}},RoadSegment:{fields:{id:{type:"string",id:1},passage:{rule:"repeated",type:"Passage",id:2}}},RoutingResponse:{fields:{header:{type:"apollo.common.Header",id:1},road:{rule:"repeated",type:"RoadSegment",id:2},measurement:{type:"Measurement",id:3},routingRequest:{type:"RoutingRequest",id:4},mapVersion:{type:"bytes",id:5},status:{type:"apollo.common.StatusPb",id:6}}}}},hdmap:{nested:{Projection:{fields:{proj:{type:"string",id:1}}},Header:{fields:{version:{type:"bytes",id:1},date:{type:"bytes",id:2},projection:{type:"Projection",id:3},district:{type:"bytes",id:4},generation:{type:"bytes",id:5},revMajor:{type:"bytes",id:6},revMinor:{type:"bytes",id:7},left:{type:"double",id:8},top:{type:"double",id:9},right:{type:"double",id:10},bottom:{type:"double",id:11},vendor:{type:"bytes",id:12}}},Map:{fields:{header:{type:"Header",id:1},crosswalk:{rule:"repeated",type:"Crosswalk",id:2},junction:{rule:"repeated",type:"Junction",id:3},lane:{rule:"repeated",type:"Lane",id:4},stopSign:{rule:"repeated",type:"StopSign",id:5},signal:{rule:"repeated",type:"Signal",id:6},yield:{rule:"repeated",type:"YieldSign",id:7},overlap:{rule:"repeated",type:"Overlap",id:8},clearArea:{rule:"repeated",type:"ClearArea",id:9},speedBump:{rule:"repeated",type:"SpeedBump",id:10},road:{rule:"repeated",type:"Road",id:11}}},ClearArea:{fields:{id:{type:"Id",id:1},overlapId:{rule:"repeated",type:"Id",id:2},polygon:{type:"Polygon",id:3}}},Crosswalk:{fields:{id:{type:"Id",id:1},polygon:{type:"Polygon",id:2},overlapId:{rule:"repeated",type:"Id",id:3}}},Polygon:{fields:{point:{rule:"repeated",type:"apollo.common.PointENU",id:1}}},LineSegment:{fields:{point:{rule:"repeated",type:"apollo.common.PointENU",id:1}}},CurveSegment:{oneofs:{curveType:{oneof:["lineSegment"]}},fields:{lineSegment:{type:"LineSegment",id:1},s:{type:"double",id:6},startPosition:{type:"apollo.common.PointENU",id:7},heading:{type:"double",id:8},length:{type:"double",id:9}}},Curve:{fields:{segment:{rule:"repeated",type:"CurveSegment",id:1}}},Id:{fields:{id:{type:"string",id:1}}},Junction:{fields:{id:{type:"Id",id:1},polygon:{type:"Polygon",id:2},overlapId:{rule:"repeated",type:"Id",id:3}}},LaneBoundaryType:{fields:{s:{type:"double",id:1},types:{rule:"repeated",type:"Type",id:2,options:{packed:!1}}},nested:{Type:{values:{UNKNOWN:0,DOTTED_YELLOW:1,DOTTED_WHITE:2,SOLID_YELLOW:3,SOLID_WHITE:4,DOUBLE_YELLOW:5,CURB:6}}}},LaneBoundary:{fields:{curve:{type:"Curve",id:1},length:{type:"double",id:2},virtual:{type:"bool",id:3},boundaryType:{rule:"repeated",type:"LaneBoundaryType",id:4}}},LaneSampleAssociation:{fields:{s:{type:"double",id:1},width:{type:"double",id:2}}},Lane:{fields:{id:{type:"Id",id:1},centralCurve:{type:"Curve",id:2},leftBoundary:{type:"LaneBoundary",id:3},rightBoundary:{type:"LaneBoundary",id:4},length:{type:"double",id:5},speedLimit:{type:"double",id:6},overlapId:{rule:"repeated",type:"Id",id:7},predecessorId:{rule:"repeated",type:"Id",id:8},successorId:{rule:"repeated",type:"Id",id:9},leftNeighborForwardLaneId:{rule:"repeated",type:"Id",id:10},rightNeighborForwardLaneId:{rule:"repeated",type:"Id",id:11},type:{type:"LaneType",id:12},turn:{type:"LaneTurn",id:13},leftNeighborReverseLaneId:{rule:"repeated",type:"Id",id:14},rightNeighborReverseLaneId:{rule:"repeated",type:"Id",id:15},junctionId:{type:"Id",id:16},leftSample:{rule:"repeated",type:"LaneSampleAssociation",id:17},rightSample:{rule:"repeated",type:"LaneSampleAssociation",id:18},direction:{type:"LaneDirection",id:19},leftRoadSample:{rule:"repeated",type:"LaneSampleAssociation",id:20},rightRoadSample:{rule:"repeated",type:"LaneSampleAssociation",id:21}},nested:{LaneType:{values:{NONE:1,CITY_DRIVING:2,BIKING:3,SIDEWALK:4,PARKING:5}},LaneTurn:{values:{NO_TURN:1,LEFT_TURN:2,RIGHT_TURN:3,U_TURN:4}},LaneDirection:{values:{FORWARD:1,BACKWARD:2,BIDIRECTION:3}}}},LaneOverlapInfo:{fields:{startS:{type:"double",id:1},endS:{type:"double",id:2},isMerge:{type:"bool",id:3}}},SignalOverlapInfo:{fields:{}},StopSignOverlapInfo:{fields:{}},CrosswalkOverlapInfo:{fields:{}},JunctionOverlapInfo:{fields:{}},YieldOverlapInfo:{fields:{}},ClearAreaOverlapInfo:{fields:{}},SpeedBumpOverlapInfo:{fields:{}},ParkingSpaceOverlapInfo:{fields:{}},ObjectOverlapInfo:{oneofs:{overlapInfo:{oneof:["laneOverlapInfo","signalOverlapInfo","stopSignOverlapInfo","crosswalkOverlapInfo","junctionOverlapInfo","yieldSignOverlapInfo","clearAreaOverlapInfo","speedBumpOverlapInfo","parkingSpaceOverlapInfo"]}},fields:{id:{type:"Id",id:1},laneOverlapInfo:{type:"LaneOverlapInfo",id:3},signalOverlapInfo:{type:"SignalOverlapInfo",id:4},stopSignOverlapInfo:{type:"StopSignOverlapInfo",id:5},crosswalkOverlapInfo:{type:"CrosswalkOverlapInfo",id:6},junctionOverlapInfo:{type:"JunctionOverlapInfo",id:7},yieldSignOverlapInfo:{type:"YieldOverlapInfo",id:8},clearAreaOverlapInfo:{type:"ClearAreaOverlapInfo",id:9},speedBumpOverlapInfo:{type:"SpeedBumpOverlapInfo",id:10},parkingSpaceOverlapInfo:{type:"ParkingSpaceOverlapInfo",id:11}}},Overlap:{fields:{id:{type:"Id",id:1},object:{rule:"repeated",type:"ObjectOverlapInfo",id:2}}},BoundaryEdge:{fields:{curve:{type:"Curve",id:1},type:{type:"Type",id:2}},nested:{Type:{values:{UNKNOWN:0,NORMAL:1,LEFT_BOUNDARY:2,RIGHT_BOUNDARY:3}}}},BoundaryPolygon:{fields:{edge:{rule:"repeated",type:"BoundaryEdge",id:1}}},RoadBoundary:{fields:{outerPolygon:{type:"BoundaryPolygon",id:1},hole:{rule:"repeated",type:"BoundaryPolygon",id:2}}},RoadROIBoundary:{fields:{id:{type:"Id",id:1},roadBoundaries:{rule:"repeated",type:"RoadBoundary",id:2}}},RoadSection:{fields:{id:{type:"Id",id:1},laneId:{rule:"repeated",type:"Id",id:2},boundary:{type:"RoadBoundary",id:3}}},Road:{fields:{id:{type:"Id",id:1},section:{rule:"repeated",type:"RoadSection",id:2},junctionId:{type:"Id",id:3}}},Subsignal:{fields:{id:{type:"Id",id:1},type:{type:"Type",id:2},location:{type:"apollo.common.PointENU",id:3}},nested:{Type:{values:{UNKNOWN:1,CIRCLE:2,ARROW_LEFT:3,ARROW_FORWARD:4,ARROW_RIGHT:5,ARROW_LEFT_AND_FORWARD:6,ARROW_RIGHT_AND_FORWARD:7,ARROW_U_TURN:8}}}},Signal:{fields:{id:{type:"Id",id:1},boundary:{type:"Polygon",id:2},subsignal:{rule:"repeated",type:"Subsignal",id:3},overlapId:{rule:"repeated",type:"Id",id:4},type:{type:"Type",id:5},stopLine:{rule:"repeated",type:"Curve",id:6}},nested:{Type:{values:{UNKNOWN:1,MIX_2_HORIZONTAL:2,MIX_2_VERTICAL:3,MIX_3_HORIZONTAL:4,MIX_3_VERTICAL:5,SINGLE:6}}}},SpeedBump:{fields:{id:{type:"Id",id:1},overlapId:{rule:"repeated",type:"Id",id:2},position:{rule:"repeated",type:"Curve",id:3}}},SpeedControl:{fields:{name:{type:"string",id:1},polygon:{type:"apollo.hdmap.Polygon",id:2},speedLimit:{type:"double",id:3}}},SpeedControls:{fields:{speedControl:{rule:"repeated",type:"SpeedControl",id:1}}},StopSign:{fields:{id:{type:"Id",id:1},stopLine:{rule:"repeated",type:"Curve",id:2},overlapId:{rule:"repeated",type:"Id",id:3},type:{type:"StopType",id:4}},nested:{StopType:{values:{UNKNOWN:0,ONE_WAY:1,TWO_WAY:2,THREE_WAY:3,FOUR_WAY:4,ALL_WAY:5}}}},YieldSign:{fields:{id:{type:"Id",id:1},stopLine:{rule:"repeated",type:"Curve",id:2},overlapId:{rule:"repeated",type:"Id",id:3}}}}},relative_map:{nested:{NavigationPath:{fields:{path:{type:"apollo.common.Path",id:1},pathPriority:{type:"uint32",id:2}}},NavigationInfo:{fields:{header:{type:"apollo.common.Header",id:1},navigationPath:{rule:"repeated",type:"NavigationPath",id:2}}},MapMsg:{fields:{header:{type:"apollo.common.Header",id:1},hdmap:{type:"apollo.hdmap.Map",id:2},navigationPath:{keyType:"string",type:"NavigationPath",id:3},laneMarker:{type:"apollo.perception.LaneMarkers",id:4},localization:{type:"apollo.localization.LocalizationEstimate",id:5}}},MapGenerationParam:{fields:{defaultLeftWidth:{type:"double",id:1,options:{default:1.75}},defaultRightWidth:{type:"double",id:2,options:{default:1.75}},defaultSpeedLimit:{type:"double",id:3,options:{default:29.0576}}}},NavigationLaneConfig:{fields:{minLaneMarkerQuality:{type:"double",id:1,options:{default:.5}}}},RelativeMapConfig:{fields:{mapParam:{type:"MapGenerationParam",id:1},navigationLane:{type:"NavigationLaneConfig",id:2}}}}}}}}}},function(e,t,i){"use strict";var o=i(25),r=o.Root.fromJSON(i(27)),n=r.lookupType("apollo.dreamview.SimulationWorld"),s=r.lookupType("apollo.hdmap.Map"),a=o.Root.fromJSON(i(26)),d=a.lookupType("apollo.dreamview.PointCloud");self.addEventListener("message",function(e){var t=null,i=e.data.data;switch(e.data.source){case"realtime":"string"==typeof i?t=JSON.parse(i):(t=n.toObject(n.decode(new Uint8Array(i)),{enums:String}),t.type="SimWorldUpdate");break;case"map":t=s.toObject(s.decode(new Uint8Array(i)),{enums:String}),t.type="MapData";break;case"point_cloud":t="string"==typeof i?JSON.parse(i):d.toObject(d.decode(new Uint8Array(i)),{arrays:!0})}t&&self.postMessage(t)})},function(e,t,i){"use strict";var o=t;o.length=function(e){var t=e.length;if(!t)return 0;for(var i=0;--t%4>1&&"="===e.charAt(t);)++i;return Math.ceil(3*e.length)/4-i};for(var r=new Array(64),n=new Array(123),s=0;s<64;)n[r[s]=s<26?s+65:s<52?s+71:s<62?s-4:s-59|43]=s++;o.encode=function(e,t,i){for(var o,n=null,s=[],a=0,d=0;t<i;){var p=e[t++];switch(d){case 0:s[a++]=r[p>>2],o=(3&p)<<4,d=1;break;case 1:s[a++]=r[o|p>>4],o=(15&p)<<2,d=2;break;case 2:s[a++]=r[o|p>>6],s[a++]=r[63&p],d=0}a>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,s)),a=0)}return d&&(s[a++]=r[o],s[a++]=61,1===d&&(s[a++]=61)),n?(a&&n.push(String.fromCharCode.apply(String,s.slice(0,a))),n.join("")):String.fromCharCode.apply(String,s.slice(0,a))};o.decode=function(e,t,i){for(var o,r=i,s=0,a=0;a<e.length;){var d=e.charCodeAt(a++);if(61===d&&s>1)break;if(void 0===(d=n[d]))throw Error("invalid encoding");switch(s){case 0:o=d,s=1;break;case 1:t[i++]=o<<2|(48&d)>>4,o=d,s=2;break;case 2:t[i++]=(15&o)<<4|(60&d)>>2,o=d,s=3;break;case 3:t[i++]=(3&o)<<6|d,s=0}}if(1===s)throw Error("invalid encoding");return i-r},o.test=function(e){return/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e)}},function(e,t,i){"use strict";function o(e,t){function i(e){if("string"!=typeof e){var t=r();if(o.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var s=Object.keys(e),a=new Array(s.length+1),d=new Array(s.length),p=0;p<s.length;)a[p]=s[p],d[p]=e[s[p++]];return a[p]=t,Function.apply(null,a).apply(null,d)}return Function(t)()}for(var l=new Array(arguments.length-1),u=0;u<l.length;)l[u]=arguments[++u];if(u=0,e=e.replace(/%([%dfijs])/g,function(e,t){var i=l[u++];switch(t){case"d":case"f":return String(Number(i));case"i":return String(Math.floor(i));case"j":return JSON.stringify(i);case"s":return String(i)}return"%"}),u!==l.length)throw Error("parameter count mismatch");return n.push(e),i}function r(i){return"function "+(i||t||"")+"("+(e&&e.join(",")||"")+"){\n  "+n.join("\n  ")+"\n}"}"string"==typeof e&&(t=e,e=void 0);var n=[];return i.toString=r,i}e.exports=o,o.verbose=!1},function(e,t,i){"use strict";function o(){this._listeners={}}e.exports=o,o.prototype.on=function(e,t,i){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:i||this}),this},o.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var i=this._listeners[e],o=0;o<i.length;)i[o].fn===t?i.splice(o,1):++o;return this},o.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var i=[],o=1;o<arguments.length;)i.push(arguments[o++]);for(o=0;o<t.length;)t[o].fn.apply(t[o++].ctx,i)}return this}},function(e,t,i){"use strict";function o(e,t,i){return"function"==typeof t?(i=t,t={}):t||(t={}),i?!t.xhr&&s&&s.readFile?s.readFile(e,function(r,n){return r&&"undefined"!=typeof XMLHttpRequest?o.xhr(e,t,i):r?i(r):i(null,t.binary?n:n.toString("utf8"))}):o.xhr(e,t,i):r(o,this,e,t)}e.exports=o;var r=i(11),n=i(12),s=n("fs");o.xhr=function(e,t,i){var o=new XMLHttpRequest;o.onreadystatechange=function(){if(4===o.readyState){if(0!==o.status&&200!==o.status)return i(Error("status "+o.status));if(t.binary){var e=o.response;if(!e){e=[];for(var r=0;r<o.responseText.length;++r)e.push(255&o.responseText.charCodeAt(r))}return i(null,"undefined"!=typeof Uint8Array?new Uint8Array(e):e)}return i(null,o.responseText)}},t.binary&&("overrideMimeType"in o&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.responseType="arraybuffer"),o.open("GET",e),o.send()}},function(e,t,i){"use strict";function o(e){return"undefined"!=typeof Float32Array?function(){function t(e,t,i){n[0]=e,t[i]=s[0],t[i+1]=s[1],t[i+2]=s[2],t[i+3]=s[3]}function i(e,t,i){n[0]=e,t[i]=s[3],t[i+1]=s[2],t[i+2]=s[1],t[i+3]=s[0]}function o(e,t){return s[0]=e[t],s[1]=e[t+1],s[2]=e[t+2],s[3]=e[t+3],n[0]}function r(e,t){return s[3]=e[t],s[2]=e[t+1],s[1]=e[t+2],s[0]=e[t+3],n[0]}var n=new Float32Array([-0]),s=new Uint8Array(n.buffer),a=128===s[3];e.writeFloatLE=a?t:i,e.writeFloatBE=a?i:t,e.readFloatLE=a?o:r,e.readFloatBE=a?r:o}():function(){function t(e,t,i,o){var r=t<0?1:0;if(r&&(t=-t),0===t)e(1/t>0?0:2147483648,i,o);else if(isNaN(t))e(2143289344,i,o);else if(t>3.4028234663852886e38)e((r<<31|2139095040)>>>0,i,o);else if(t<1.1754943508222875e-38)e((r<<31|Math.round(t/1.401298464324817e-45))>>>0,i,o);else{var n=Math.floor(Math.log(t)/Math.LN2),s=8388607&Math.round(t*Math.pow(2,-n)*8388608);e((r<<31|n+127<<23|s)>>>0,i,o)}}function i(e,t,i){var o=e(t,i),r=2*(o>>31)+1,n=o>>>23&255,s=8388607&o;return 255===n?s?NaN:r*(1/0):0===n?1.401298464324817e-45*r*s:r*Math.pow(2,n-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=i.bind(null,s),e.readFloatBE=i.bind(null,a)}(),"undefined"!=typeof Float64Array?function(){function t(e,t,i){n[0]=e,t[i]=s[0],t[i+1]=s[1],t[i+2]=s[2],t[i+3]=s[3],t[i+4]=s[4],t[i+5]=s[5],t[i+6]=s[6],t[i+7]=s[7]}function i(e,t,i){n[0]=e,t[i]=s[7],t[i+1]=s[6],t[i+2]=s[5],t[i+3]=s[4],t[i+4]=s[3],t[i+5]=s[2],t[i+6]=s[1],t[i+7]=s[0]}function o(e,t){return s[0]=e[t],s[1]=e[t+1],s[2]=e[t+2],s[3]=e[t+3],s[4]=e[t+4],s[5]=e[t+5],s[6]=e[t+6],s[7]=e[t+7],n[0]}function r(e,t){return s[7]=e[t],s[6]=e[t+1],s[5]=e[t+2],s[4]=e[t+3],s[3]=e[t+4],s[2]=e[t+5],s[1]=e[t+6],s[0]=e[t+7],n[0]}var n=new Float64Array([-0]),s=new Uint8Array(n.buffer),a=128===s[7];e.writeDoubleLE=a?t:i,e.writeDoubleBE=a?i:t,e.readDoubleLE=a?o:r,e.readDoubleBE=a?r:o}():function(){function t(e,t,i,o,r,n){var s=o<0?1:0;if(s&&(o=-o),0===o)e(0,r,n+t),e(1/o>0?0:2147483648,r,n+i);else if(isNaN(o))e(0,r,n+t),e(2146959360,r,n+i);else if(o>1.7976931348623157e308)e(0,r,n+t),e((s<<31|2146435072)>>>0,r,n+i);else{var a;if(o<2.2250738585072014e-308)a=o/5e-324,e(a>>>0,r,n+t),e((s<<31|a/4294967296)>>>0,r,n+i);else{var d=Math.floor(Math.log(o)/Math.LN2);1024===d&&(d=1023),a=o*Math.pow(2,-d),e(4503599627370496*a>>>0,r,n+t),e((s<<31|d+1023<<20|1048576*a&1048575)>>>0,r,n+i)}}}function i(e,t,i,o,r){var n=e(o,r+t),s=e(o,r+i),a=2*(s>>31)+1,d=s>>>20&2047,p=4294967296*(1048575&s)+n;return 2047===d?p?NaN:a*(1/0):0===d?5e-324*a*p:a*Math.pow(2,d-1075)*(p+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=i.bind(null,s,0,4),e.readDoubleBE=i.bind(null,a,4,0)}(),e}function r(e,t,i){t[i]=255&e,t[i+1]=e>>>8&255,t[i+2]=e>>>16&255,t[i+3]=e>>>24}function n(e,t,i){t[i]=e>>>24,t[i+1]=e>>>16&255,t[i+2]=e>>>8&255,t[i+3]=255&e}function s(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function a(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=o(o)},function(e,t,i){"use strict";var o=t,r=o.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},n=o.normalize=function(e){e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var t=e.split("/"),i=r(e),o="";i&&(o=t.shift()+"/");for(var n=0;n<t.length;)".."===t[n]?n>0&&".."!==t[n-1]?t.splice(--n,2):i?t.splice(n,1):++n:"."===t[n]?t.splice(n,1):++n;return o+t.join("/")};o.resolve=function(e,t,i){return i||(t=n(t)),r(t)?t:(i||(e=n(e)),(e=e.replace(/(?:\/|^)[^\/]+$/,"")).length?n(e+"/"+t):t)}},function(e,t,i){"use strict";function o(e,t,i){var o=i||8192,r=o>>>1,n=null,s=o;return function(i){if(i<1||i>r)return e(i);s+i>o&&(n=e(o),s=0);var a=t.call(n,s,s+=i);return 7&s&&(s=1+(7|s)),a}}e.exports=o},function(e,t,i){"use strict";var o=t;o.length=function(e){for(var t=0,i=0,o=0;o<e.length;++o)i=e.charCodeAt(o),i<128?t+=1:i<2048?t+=2:55296==(64512&i)&&56320==(64512&e.charCodeAt(o+1))?(++o,t+=4):t+=3;return t},o.read=function(e,t,i){if(i-t<1)return"";for(var o,r=null,n=[],s=0;t<i;)o=e[t++],o<128?n[s++]=o:o>191&&o<224?n[s++]=(31&o)<<6|63&e[t++]:o>239&&o<365?(o=((7&o)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,n[s++]=55296+(o>>10),n[s++]=56320+(1023&o)):n[s++]=(15&o)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,n)),s=0);return r?(s&&r.push(String.fromCharCode.apply(String,n.slice(0,s))),r.join("")):String.fromCharCode.apply(String,n.slice(0,s))},o.write=function(e,t,i){for(var o,r,n=i,s=0;s<e.length;++s)o=e.charCodeAt(s),o<128?t[i++]=o:o<2048?(t[i++]=o>>6|192,t[i++]=63&o|128):55296==(64512&o)&&56320==(64512&(r=e.charCodeAt(s+1)))?(o=65536+((1023&o)<<10)+(1023&r),++s,t[i++]=o>>18|240,t[i++]=o>>12&63|128,t[i++]=o>>6&63|128,t[i++]=63&o|128):(t[i++]=o>>12|224,t[i++]=o>>6&63|128,t[i++]=63&o|128);return i-n}},function(e,t,i){"use strict";function o(e,t,i){return"function"==typeof t?(i=t,t=new n.Root):t||(t=new n.Root),t.load(e,i)}function r(e,t){return t||(t=new n.Root),t.loadSync(e)}var n=e.exports=i(38);n.build="light",n.load=o,n.loadSync=r,n.encoder=i(15),n.decoder=i(14),n.verifier=i(23),n.converter=i(13),n.ReflectionObject=i(4),n.Namespace=i(5),n.Root=i(18),n.Enum=i(1),n.Type=i(22),n.Field=i(3),n.OneOf=i(8),n.MapField=i(16),n.Service=i(21),n.Method=i(17),n.Message=i(7),n.wrappers=i(24),n.types=i(6),n.util=i(0),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service),n.Root._configure(n.Type),n.Field._configure(n.Type)},function(e,t,i){"use strict";function o(){r.Reader._configure(r.BufferReader),r.util._configure()}var r=t;r.build="minimal",r.Writer=i(10),r.BufferWriter=i(42),r.Reader=i(9),r.BufferReader=i(39),r.util=i(2),r.rpc=i(20),r.roots=i(19),r.configure=o,r.Writer._configure(r.BufferWriter),o()},function(e,t,i){"use strict";function o(e){r.call(this,e)}e.exports=o;var r=i(9);(o.prototype=Object.create(r.prototype)).constructor=o;var n=i(2);n.Buffer&&(o.prototype._slice=n.Buffer.prototype.slice),o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len))}},function(e,t,i){"use strict";function o(e,t,i){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(i)}e.exports=o;var r=i(2);(o.prototype=Object.create(r.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function e(t,i,o,n,s){if(!n)throw TypeError("request must be specified");var a=this;if(!s)return r.asPromise(e,a,t,i,o,n);if(!a.rpcImpl)return void setTimeout(function(){s(Error("already ended"))},0);try{return a.rpcImpl(t,i[a.requestDelimited?"encodeDelimited":"encode"](n).finish(),function(e,i){if(e)return a.emit("error",e,t),s(e);if(null===i)return void a.end(!0);if(!(i instanceof o))try{i=o[a.responseDelimited?"decodeDelimited":"decode"](i)}catch(e){return a.emit("error",e,t),s(e)}return a.emit("data",i,t),s(null,i)})}catch(e){return a.emit("error",e,t),void setTimeout(function(){s(e)},0)}},o.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},function(e,t,i){"use strict";function o(e,t){this.lo=e>>>0,this.hi=t>>>0}e.exports=o;var r=i(2),n=o.zero=new o(0,0);n.toNumber=function(){return 0},n.zzEncode=n.zzDecode=function(){return this},n.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return n;var t=e<0;t&&(e=-e);var i=e>>>0,r=(e-i)/4294967296>>>0;return t&&(r=~r>>>0,i=~i>>>0,++i>4294967295&&(i=0,++r>4294967295&&(r=0))),new o(i,r)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(r.isString(e)){if(!r.Long)return o.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):n},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,i=~this.hi>>>0;return t||(i=i+1>>>0),-(t+4294967296*i)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?n:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,i=this.hi>>>24;return 0===i?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:i<128?9:10}},function(e,t,i){"use strict";function o(){n.call(this)}function r(e,t,i){e.length<40?s.utf8.write(e,t,i):t.utf8Write(e,i)}e.exports=o;var n=i(10);(o.prototype=Object.create(n.prototype)).constructor=o;var s=i(2),a=s.Buffer;o.alloc=function(e){return(o.alloc=s._Buffer_allocUnsafe)(e)};var d=a&&a.prototype instanceof Uint8Array&&"set"===a.prototype.set.name?function(e,t,i){t.set(e,i)}:function(e,t,i){if(e.copy)e.copy(t,i,0,e.length);else for(var o=0;o<e.length;)t[i++]=e[o++]};o.prototype.bytes=function(e){s.isString(e)&&(e=s._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(d,t,e),this},o.prototype.string=function(e){var t=a.byteLength(e);return this.uint32(t),t&&this._push(r,t,e),this}},function(e,t){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(i=window)}e.exports=i}]);
  //# sourceMappingURL=worker.bundle.js.map