dd-trace 5.88.0 → 5.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE-3rdparty.csv +0 -3
- package/ext/tags.js +2 -0
- package/index.d.ts +40 -0
- package/package.json +18 -14
- package/packages/datadog-instrumentations/src/azure-durable-functions.js +75 -0
- package/packages/datadog-instrumentations/src/cucumber.js +40 -1
- package/packages/datadog-instrumentations/src/elasticsearch.js +12 -3
- package/packages/datadog-instrumentations/src/helpers/hooks.js +1 -0
- package/packages/datadog-instrumentations/src/helpers/rewriter/index.js +26 -111
- package/packages/datadog-instrumentations/src/helpers/rewriter/{compiler.js → orchestrion/compiler.js} +5 -5
- package/packages/datadog-instrumentations/src/helpers/rewriter/orchestrion/index.js +43 -0
- package/packages/datadog-instrumentations/src/helpers/rewriter/orchestrion/matcher.js +49 -0
- package/packages/datadog-instrumentations/src/helpers/rewriter/orchestrion/transformer.js +121 -0
- package/packages/datadog-instrumentations/src/helpers/rewriter/{transforms.js → orchestrion/transforms.js} +6 -6
- package/packages/datadog-instrumentations/src/jest.js +123 -43
- package/packages/datadog-instrumentations/src/mocha/main.js +10 -4
- package/packages/datadog-instrumentations/src/mocha/utils.js +6 -0
- package/packages/datadog-instrumentations/src/mocha/worker.js +10 -2
- package/packages/datadog-instrumentations/src/playwright.js +20 -2
- package/packages/datadog-instrumentations/src/prisma.js +4 -2
- package/packages/datadog-instrumentations/src/vitest.js +16 -0
- package/packages/datadog-plugin-apollo/src/gateway/execute.js +8 -0
- package/packages/datadog-plugin-apollo/src/gateway/fetch.js +5 -0
- package/packages/datadog-plugin-apollo/src/gateway/plan.js +8 -0
- package/packages/datadog-plugin-apollo/src/gateway/postprocessing.js +5 -0
- package/packages/datadog-plugin-apollo/src/gateway/request.js +4 -3
- package/packages/datadog-plugin-apollo/src/gateway/validate.js +4 -3
- package/packages/datadog-plugin-apollo/src/index.js +28 -0
- package/packages/datadog-plugin-azure-durable-functions/src/index.js +49 -0
- package/packages/datadog-plugin-cypress/src/cypress-plugin.js +47 -6
- package/packages/datadog-plugin-cypress/src/source-map-utils.js +297 -0
- package/packages/datadog-plugin-cypress/src/support.js +4 -1
- package/packages/datadog-plugin-jest/src/index.js +6 -0
- package/packages/datadog-plugin-playwright/src/index.js +35 -8
- package/packages/dd-trace/src/aiguard/noop.js +1 -1
- package/packages/dd-trace/src/aiguard/sdk.js +18 -5
- package/packages/dd-trace/src/appsec/api_security_sampler.js +22 -1
- package/packages/dd-trace/src/appsec/index.js +11 -1
- package/packages/dd-trace/src/appsec/reporter.js +28 -11
- package/packages/dd-trace/src/appsec/waf/index.js +1 -1
- package/packages/dd-trace/src/appsec/waf/waf_context_wrapper.js +4 -4
- package/packages/dd-trace/src/ci-visibility/exporters/ci-visibility-exporter.js +1 -0
- package/packages/dd-trace/src/config/index.js +3 -0
- package/packages/dd-trace/src/config/supported-configurations.json +17 -0
- package/packages/dd-trace/src/constants.js +1 -0
- package/packages/dd-trace/src/datastreams/checkpointer.js +13 -0
- package/packages/dd-trace/src/datastreams/index.js +3 -0
- package/packages/dd-trace/src/datastreams/manager.js +9 -0
- package/packages/dd-trace/src/datastreams/processor.js +126 -3
- package/packages/dd-trace/src/encode/agentless-ci-visibility.js +1 -8
- package/packages/dd-trace/src/encode/agentless-json.js +82 -23
- package/packages/dd-trace/src/exporters/agent/writer.js +7 -8
- package/packages/dd-trace/src/exporters/agentless/index.js +58 -15
- package/packages/dd-trace/src/exporters/agentless/writer.js +35 -18
- package/packages/dd-trace/src/llmobs/constants/tags.js +2 -0
- package/packages/dd-trace/src/llmobs/plugins/anthropic.js +9 -0
- package/packages/dd-trace/src/llmobs/tagger.js +8 -0
- package/packages/dd-trace/src/opentracing/propagation/text_map.js +1 -0
- package/packages/dd-trace/src/pkg.js +1 -1
- package/packages/dd-trace/src/plugins/apollo.js +7 -2
- package/packages/dd-trace/src/plugins/index.js +1 -0
- package/packages/dd-trace/src/plugins/util/ci.js +95 -3
- package/packages/dd-trace/src/plugins/util/inferred_proxy.js +36 -2
- package/packages/dd-trace/src/plugins/util/web.js +31 -11
- package/packages/dd-trace/src/proxy.js +2 -1
- package/packages/dd-trace/src/runtime_metrics/runtime_metrics.js +7 -0
- package/packages/dd-trace/src/service-naming/schemas/v0/serverless.js +4 -0
- package/packages/dd-trace/src/service-naming/schemas/v1/serverless.js +4 -0
- package/packages/dd-trace/src/standalone/product.js +2 -1
- package/packages/dd-trace/src/startup-log.js +52 -18
- package/vendor/dist/@datadog/sketches-js/index.js +1 -1
- package/vendor/dist/@datadog/source-map/index.js +1 -1
- package/vendor/dist/@isaacs/ttlcache/index.js +1 -1
- package/vendor/dist/@opentelemetry/core/index.js +1 -1
- package/vendor/dist/@opentelemetry/resources/index.js +1 -1
- package/vendor/dist/astring/index.js +1 -1
- package/vendor/dist/crypto-randomuuid/index.js +1 -1
- package/vendor/dist/escape-string-regexp/index.js +1 -1
- package/vendor/dist/esquery/index.js +1 -1
- package/vendor/dist/ignore/index.js +1 -1
- package/vendor/dist/istanbul-lib-coverage/index.js +1 -1
- package/vendor/dist/jest-docblock/index.js +1 -1
- package/vendor/dist/jsonpath-plus/index.js +1 -1
- package/vendor/dist/limiter/index.js +1 -1
- package/vendor/dist/lodash.sortby/index.js +1 -1
- package/vendor/dist/lru-cache/index.js +1 -1
- package/vendor/dist/meriyah/index.js +1 -1
- package/vendor/dist/module-details-from-path/index.js +1 -1
- package/vendor/dist/mutexify/promise/index.js +1 -1
- package/vendor/dist/opentracing/index.js +1 -1
- package/vendor/dist/path-to-regexp/index.js +1 -1
- package/vendor/dist/pprof-format/index.js +1 -1
- package/vendor/dist/protobufjs/index.js +1 -1
- package/vendor/dist/protobufjs/minimal/index.js +1 -1
- package/vendor/dist/retry/index.js +1 -1
- package/vendor/dist/rfdc/index.js +1 -1
- package/vendor/dist/semifies/index.js +1 -1
- package/vendor/dist/shell-quote/index.js +1 -1
- package/vendor/dist/source-map/index.js +1 -1
- package/vendor/dist/source-map/lib/util/index.js +1 -1
- package/vendor/dist/tlhunter-sorted-set/index.js +1 -1
- package/vendor/dist/ttl-set/index.js +1 -1
- package/packages/datadog-instrumentations/src/helpers/rewriter/transformer.js +0 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var __webpack_modules__={"./@protobufjs/aspromise/index.js":function(e){e.exports=asPromise;function asPromise(e,t){for(var r=Array(arguments.length-1),i=0,o=2,s=!0;o<arguments.length;)r[i++]=arguments[o++];return new Promise(function(o,n){r[i]=function(e){if(s)if(s=!1,e)n(e);else{for(var t=Array(arguments.length-1),r=0;r<t.length;)t[r++]=arguments[r];o.apply(null,t)}};try{e.apply(t||null,r)}catch(e){s&&(s=!1,n(e))}})}},"./@protobufjs/base64/index.js":function(e,t){var r=t;r.length=function(e){var t=e.length;if(!t)return 0;for(var r=0;--t%4>1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var i=Array(64),o=Array(123),s=0;s<64;)o[i[s]=s<26?s+65:s<52?s+71:s<62?s-4:s-59|43]=s++;r.encode=function(e,t,r){for(var o,s=null,n=[],a=0,f=0;t<r;){var u=e[t++];switch(f){case 0:n[a++]=i[u>>2],o=(3&u)<<4,f=1;break;case 1:n[a++]=i[o|u>>4],o=(15&u)<<2,f=2;break;case 2:n[a++]=i[o|u>>6],n[a++]=i[63&u],f=0}a>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,n)),a=0)}return(f&&(n[a++]=i[o],n[a++]=61,1===f&&(n[a++]=61)),s)?(a&&s.push(String.fromCharCode.apply(String,n.slice(0,a))),s.join("")):String.fromCharCode.apply(String,n.slice(0,a))};var n="invalid encoding";r.decode=function(e,t,r){for(var i,s=r,a=0,f=0;f<e.length;){var u=e.charCodeAt(f++);if(61===u&&a>1)break;if(void 0===(u=o[u]))throw Error(n);switch(a){case 0:i=u,a=1;break;case 1:t[r++]=i<<2|(48&u)>>4,i=u,a=2;break;case 2:t[r++]=(15&i)<<4|(60&u)>>2,i=u,a=3;break;case 3:t[r++]=(3&i)<<6|u,a=0}}if(1===a)throw Error(n);return r-s},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},"./@protobufjs/codegen/index.js":function(e){function codegen(e,t){"string"==typeof e&&(t=e,e=void 0);var r=[];function Codegen(e){if("string"!=typeof e){var t=toString();if(codegen.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var i=Object.keys(e),o=Array(i.length+1),s=Array(i.length),n=0;n<i.length;)o[n]=i[n],s[n]=e[i[n++]];return o[n]=t,Function.apply(null,o).apply(null,s)}return Function(t)()}for(var a=Array(arguments.length-1),f=0;f<a.length;)a[f]=arguments[++f];if(f=0,e=e.replace(/%([%dfijs])/g,function(e,t){var r=a[f++];switch(t){case"d":case"f":return String(Number(r));case"i":return String(Math.floor(r));case"j":return JSON.stringify(r);case"s":return String(r)}return"%"}),f!==a.length)throw Error("parameter count mismatch");return r.push(e),Codegen}function toString(i){return"function "+(i||t||"")+"("+(e&&e.join(",")||"")+"){\n "+r.join("\n ")+"\n}"}return Codegen.toString=toString,Codegen}e.exports=codegen,codegen.verbose=!1},"./@protobufjs/eventemitter/index.js":function(e){function EventEmitter(){this._listeners={}}e.exports=EventEmitter,EventEmitter.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},EventEmitter.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],i=0;i<r.length;)r[i].fn===t?r.splice(i,1):++i;return this},EventEmitter.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var r=[],i=1;i<arguments.length;)r.push(arguments[i++]);for(i=0;i<t.length;)t[i].fn.apply(t[i++].ctx,r)}return this}},"./@protobufjs/fetch/index.js":function(e,t,r){e.exports=fetch;var i=r("./@protobufjs/aspromise/index.js"),o=r("./@protobufjs/inquire/index.js")("fs");function fetch(e,t,r){return("function"==typeof t?(r=t,t={}):t||(t={}),r)?!t.xhr&&o&&o.readFile?o.readFile(e,function(i,o){return i&&"undefined"!=typeof XMLHttpRequest?fetch.xhr(e,t,r):i?r(i):r(null,t.binary?o:o.toString("utf8"))}):fetch.xhr(e,t,r):i(fetch,this,e,t)}fetch.xhr=function(e,t,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){if(4===i.readyState){if(0!==i.status&&200!==i.status)return r(Error("status "+i.status));if(t.binary){var e=i.response;if(!e){e=[];for(var o=0;o<i.responseText.length;++o)e.push(255&i.responseText.charCodeAt(o))}return r(null,"undefined"!=typeof Uint8Array?new Uint8Array(e):e)}return r(null,i.responseText)}},t.binary&&("overrideMimeType"in i&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.responseType="arraybuffer"),i.open("GET",e),i.send()}},"./@protobufjs/float/index.js":function(e){function factory(e){return"undefined"!=typeof Float32Array?!function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),i=128===r[3];function writeFloat_f32_cpy(e,i,o){t[0]=e,i[o]=r[0],i[o+1]=r[1],i[o+2]=r[2],i[o+3]=r[3]}function writeFloat_f32_rev(e,i,o){t[0]=e,i[o]=r[3],i[o+1]=r[2],i[o+2]=r[1],i[o+3]=r[0]}function readFloat_f32_cpy(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],t[0]}function readFloat_f32_rev(e,i){return r[3]=e[i],r[2]=e[i+1],r[1]=e[i+2],r[0]=e[i+3],t[0]}e.writeFloatLE=i?writeFloat_f32_cpy:writeFloat_f32_rev,e.writeFloatBE=i?writeFloat_f32_rev:writeFloat_f32_cpy,e.readFloatLE=i?readFloat_f32_cpy:readFloat_f32_rev,e.readFloatBE=i?readFloat_f32_rev:readFloat_f32_cpy}():!function(){function writeFloat_ieee754(e,t,r,i){var o=+(t<0);if(o&&(t=-t),0===t)e(1/t>0?0:0x80000000,r,i);else if(isNaN(t))e(0x7fc00000,r,i);else if(t>34028234663852886e22)e((o<<31|0x7f800000)>>>0,r,i);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,i);else{var s=Math.floor(Math.log(t)/Math.LN2),n=8388607&Math.round(t*Math.pow(2,-s)*8388608);e((o<<31|s+127<<23|n)>>>0,r,i)}}function readFloat_ieee754(e,t,r){var i=e(t,r),o=(i>>31)*2+1,s=i>>>23&255,n=8388607&i;return 255===s?n?NaN:1/0*o:0===s?1401298464324817e-60*o*n:o*Math.pow(2,s-150)*(n+8388608)}e.writeFloatLE=writeFloat_ieee754.bind(null,writeUintLE),e.writeFloatBE=writeFloat_ieee754.bind(null,writeUintBE),e.readFloatLE=readFloat_ieee754.bind(null,readUintLE),e.readFloatBE=readFloat_ieee754.bind(null,readUintBE)}(),"undefined"!=typeof Float64Array?!function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),i=128===r[7];function writeDouble_f64_cpy(e,i,o){t[0]=e,i[o]=r[0],i[o+1]=r[1],i[o+2]=r[2],i[o+3]=r[3],i[o+4]=r[4],i[o+5]=r[5],i[o+6]=r[6],i[o+7]=r[7]}function writeDouble_f64_rev(e,i,o){t[0]=e,i[o]=r[7],i[o+1]=r[6],i[o+2]=r[5],i[o+3]=r[4],i[o+4]=r[3],i[o+5]=r[2],i[o+6]=r[1],i[o+7]=r[0]}function readDouble_f64_cpy(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],r[4]=e[i+4],r[5]=e[i+5],r[6]=e[i+6],r[7]=e[i+7],t[0]}function readDouble_f64_rev(e,i){return r[7]=e[i],r[6]=e[i+1],r[5]=e[i+2],r[4]=e[i+3],r[3]=e[i+4],r[2]=e[i+5],r[1]=e[i+6],r[0]=e[i+7],t[0]}e.writeDoubleLE=i?writeDouble_f64_cpy:writeDouble_f64_rev,e.writeDoubleBE=i?writeDouble_f64_rev:writeDouble_f64_cpy,e.readDoubleLE=i?readDouble_f64_cpy:readDouble_f64_rev,e.readDoubleBE=i?readDouble_f64_rev:readDouble_f64_cpy}():!function(){function writeDouble_ieee754(e,t,r,i,o,s){var n,a=+(i<0);if(a&&(i=-i),0===i)e(0,o,s+t),e(1/i>0?0:0x80000000,o,s+r);else if(isNaN(i))e(0,o,s+t),e(0x7ff80000,o,s+r);else if(i>17976931348623157e292)e(0,o,s+t),e((a<<31|0x7ff00000)>>>0,o,s+r);else if(i<22250738585072014e-324)e((n=i/5e-324)>>>0,o,s+t),e((a<<31|n/0x100000000)>>>0,o,s+r);else{var f=Math.floor(Math.log(i)/Math.LN2);1024===f&&(f=1023),e(0x10000000000000*(n=i*Math.pow(2,-f))>>>0,o,s+t),e((a<<31|f+1023<<20|1048576*n&1048575)>>>0,o,s+r)}}function readDouble_ieee754(e,t,r,i,o){var s=e(i,o+t),n=e(i,o+r),a=(n>>31)*2+1,f=n>>>20&2047,u=0x100000000*(1048575&n)+s;return 2047===f?u?NaN:1/0*a:0===f?5e-324*a*u:a*Math.pow(2,f-1075)*(u+0x10000000000000)}e.writeDoubleLE=writeDouble_ieee754.bind(null,writeUintLE,0,4),e.writeDoubleBE=writeDouble_ieee754.bind(null,writeUintBE,4,0),e.readDoubleLE=readDouble_ieee754.bind(null,readUintLE,0,4),e.readDoubleBE=readDouble_ieee754.bind(null,readUintBE,4,0)}(),e}function writeUintLE(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function writeUintBE(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function readUintLE(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function readUintBE(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=factory(factory)},"./@protobufjs/inquire/index.js":function(module){module.exports=inquire;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}},"./@protobufjs/path/index.js":function(e,t){var r=t,i=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=i(e),o="";r&&(o=t.shift()+"/");for(var s=0;s<t.length;)".."===t[s]?s>0&&".."!==t[s-1]?t.splice(--s,2):r?t.splice(s,1):++s:"."===t[s]?t.splice(s,1):++s;return o+t.join("/")};r.resolve=function(e,t,r){return(r||(t=o(t)),i(t))?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},"./@protobufjs/pool/index.js":function(e){e.exports=pool;function pool(e,t,r){var i=r||8192,o=i>>>1,s=null,n=i;return function(r){if(r<1||r>o)return e(r);n+r>i&&(s=e(i),n=0);var a=t.call(s,n,n+=r);return 7&n&&(n=(7|n)+1),a}}},"./@protobufjs/utf8/index.js":function(e,t){var r=t;r.length=function(e){for(var t=0,r=0,i=0;i<e.length;++i)(r=e.charCodeAt(i))<128?t+=1:r<2048?t+=2:(64512&r)==55296&&(64512&e.charCodeAt(i+1))==56320?(++i,t+=4):t+=3;return t},r.read=function(e,t,r){if(r-t<1)return"";for(var i,o=null,s=[],n=0;t<r;)(i=e[t++])<128?s[n++]=i:i>191&&i<224?s[n++]=(31&i)<<6|63&e[t++]:i>239&&i<365?(i=((7&i)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,s[n++]=55296+(i>>10),s[n++]=56320+(1023&i)):s[n++]=(15&i)<<12|(63&e[t++])<<6|63&e[t++],n>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),n=0);return o?(n&&o.push(String.fromCharCode.apply(String,s.slice(0,n))),o.join("")):String.fromCharCode.apply(String,s.slice(0,n))},r.write=function(e,t,r){for(var i,o,s=r,n=0;n<e.length;++n)(i=e.charCodeAt(n))<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)==55296&&(64512&(o=e.charCodeAt(n+1)))==56320?(i=65536+((1023&i)<<10)+(1023&o),++n,t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128);return r-s}},"./protobufjs/index.js":function(e,t,r){e.exports=r("./protobufjs/src/index.js")},"./protobufjs/src/common.js":function(e){e.exports=common;var t,r=/\/|\./;function common(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),common[e]=t}common("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),common("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),common("timestamp",{Timestamp:t}),common("empty",{Empty:{fields:{}}}),common("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),common("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),common("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),common.get=function(e){return common[e]||null}},"./protobufjs/src/converter.js":function(e,t,r){var i=t,o=r("./protobufjs/src/enum.js"),s=r("./protobufjs/src/util.js");function genValuePartial_fromObject(e,t,r,i){var s=!1;if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(d%s){",i);for(var n=t.resolvedType.values,a=Object.keys(n),f=0;f<a.length;++f)n[a[f]]!==t.typeDefault||s||(e("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',i,i,i),t.repeated||e("break"),s=!0),e("case%j:",a[f])("case %i:",n[a[f]])("m%s=%j",i,n[a[f]])("break");e("}")}else e('if(typeof d%s!=="object")',i)("throw TypeError(%j)",t.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",i,r,i);else{var u=!1;switch(t.type){case"double":case"float":e("m%s=Number(d%s)",i,i);break;case"uint32":case"fixed32":e("m%s=d%s>>>0",i,i);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",i,i);break;case"uint64":u=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",i,i,u)('else if(typeof d%s==="string")',i)("m%s=parseInt(d%s,10)",i,i)('else if(typeof d%s==="number")',i)("m%s=d%s",i,i)('else if(typeof d%s==="object")',i)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",i,i,i,u?"true":"");break;case"bytes":e('if(typeof d%s==="string")',i)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",i,i,i)("else if(d%s.length >= 0)",i)("m%s=d%s",i,i);break;case"string":e("m%s=String(d%s)",i,i);break;case"bool":e("m%s=Boolean(d%s)",i,i)}}return e}function genValuePartial_toObject(e,t,r,i){if(t.resolvedType)t.resolvedType instanceof o?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",i,r,i,i,r,i,i):e("d%s=types[%i].toObject(m%s,o)",i,r,i);else{var s=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",i,i,i,i);break;case"uint64":s=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',i)("d%s=o.longs===String?String(m%s):m%s",i,i,i)("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",i,i,i,i,s?"true":"",i);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",i,i,i,i,i);break;default:e("d%s=m%s",i,i)}}return e}i.fromObject=function(e){var t=e.fieldsArray,r=s.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var i=0;i<t.length;++i){var n=t[i].resolve(),a=s.safeProp(n.name);n.map?(r("if(d%s){",a)('if(typeof d%s!=="object")',a)("throw TypeError(%j)",n.fullName+": object expected")("m%s={}",a)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",a),genValuePartial_fromObject(r,n,i,a+"[ks[i]]")("}")("}")):n.repeated?(r("if(d%s){",a)("if(!Array.isArray(d%s))",a)("throw TypeError(%j)",n.fullName+": array expected")("m%s=[]",a)("for(var i=0;i<d%s.length;++i){",a),genValuePartial_fromObject(r,n,i,a+"[i]")("}")("}")):(n.resolvedType instanceof o||r("if(d%s!=null){",a),genValuePartial_fromObject(r,n,i,a),n.resolvedType instanceof o||r("}"))}return r("return m")},i.toObject=function(e){var t=e.fieldsArray.slice().sort(s.compareFieldsById);if(!t.length)return s.codegen()("return {}");for(var r=s.codegen(["m","o"],e.name+"$toObject")("if(!o)")("o={}")("var d={}"),i=[],n=[],a=[],f=0;f<t.length;++f)t[f].partOf||(t[f].resolve().repeated?i:t[f].map?n:a).push(t[f]);if(i.length){for(r("if(o.arrays||o.defaults){"),f=0;f<i.length;++f)r("d%s=[]",s.safeProp(i[f].name));r("}")}if(n.length){for(r("if(o.objects||o.defaults){"),f=0;f<n.length;++f)r("d%s={}",s.safeProp(n[f].name));r("}")}if(a.length){for(r("if(o.defaults){"),f=0;f<a.length;++f){var u=a[f],l=s.safeProp(u.name);if(u.resolvedType instanceof o)r("d%s=o.enums===String?%j:%j",l,u.resolvedType.valuesById[u.typeDefault],u.typeDefault);else if(u.long)r("if(util.Long){")("var n=new util.Long(%i,%i,%j)",u.typeDefault.low,u.typeDefault.high,u.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",l)("}else")("d%s=o.longs===String?%j:%i",l,u.typeDefault.toString(),u.typeDefault.toNumber());else if(u.bytes){var p="["+Array.prototype.slice.call(u.typeDefault).join(",")+"]";r("if(o.bytes===String)d%s=%j",l,String.fromCharCode.apply(String,u.typeDefault))("else{")("d%s=%s",l,p)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",l,l)("}")}else r("d%s=%j",l,u.typeDefault)}r("}")}var c=!1;for(f=0;f<t.length;++f){var u=t[f],d=e._fieldsArray.indexOf(u),l=s.safeProp(u.name);u.map?(c||(c=!0,r("var ks2")),r("if(m%s&&(ks2=Object.keys(m%s)).length){",l,l)("d%s={}",l)("for(var j=0;j<ks2.length;++j){"),genValuePartial_toObject(r,u,d,l+"[ks2[j]]")("}")):u.repeated?(r("if(m%s&&m%s.length){",l,l)("d%s=[]",l)("for(var j=0;j<m%s.length;++j){",l),genValuePartial_toObject(r,u,d,l+"[j]")("}")):(r("if(m%s!=null&&m.hasOwnProperty(%j)){",l,u.name),genValuePartial_toObject(r,u,d,l),u.partOf&&r("if(o.oneofs)")("d%s=%j",s.safeProp(u.partOf.name),u.name)),r("}")}return r("return d")}},"./protobufjs/src/decoder.js":function(e,t,r){e.exports=decoder;var i=r("./protobufjs/src/enum.js"),o=r("./protobufjs/src/types.js"),s=r("./protobufjs/src/util.js");function missing(e){return"missing required '"+e.name+"'"}function decoder(e){for(var t=s.codegen(["r","l","e"],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,value":""))("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){"),r=0;r<e.fieldsArray.length;++r){var n=e._fieldsArray[r].resolve(),a=n.resolvedType instanceof i?"int32":n.type,f="m"+s.safeProp(n.name);t("case %i: {",n.id),n.map?(t("if(%s===util.emptyObject)",f)("%s={}",f)("var c2 = r.uint32()+r.pos"),void 0!==o.defaults[n.keyType]?t("k=%j",o.defaults[n.keyType]):t("k=null"),void 0!==o.defaults[a]?t("value=%j",o.defaults[a]):t("value=null"),t("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",n.keyType)("case 2:"),void 0===o.basic[a]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",a),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==o.long[n.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',f):t("%s[k]=value",f)):n.repeated?(t("if(!(%s&&%s.length))",f,f)("%s=[]",f),void 0!==o.packed[a]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",f,a)("}else"),void 0===o.basic[a]?t(n.delimited?"%s.push(types[%i].decode(r,undefined,((t&~7)|4)))":"%s.push(types[%i].decode(r,r.uint32()))",f,r):t("%s.push(r.%s())",f,a)):void 0===o.basic[a]?t(n.delimited?"%s=types[%i].decode(r,undefined,((t&~7)|4))":"%s=types[%i].decode(r,r.uint32())",f,r):t("%s=r.%s()",f,a),t("break")("}")}for(t("default:")("r.skipType(t&7)")("break")("}")("}"),r=0;r<e._fieldsArray.length;++r){var u=e._fieldsArray[r];u.required&&t("if(!m.hasOwnProperty(%j))",u.name)("throw util.ProtocolError(%j,{instance:m})",missing(u))}return t("return m")}},"./protobufjs/src/encoder.js":function(e,t,r){e.exports=encoder;var i=r("./protobufjs/src/enum.js"),o=r("./protobufjs/src/types.js"),s=r("./protobufjs/src/util.js");function genTypePartial(e,t,r,i){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,i,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,i,(t.id<<3|2)>>>0)}function encoder(e){for(var t,r,n=s.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),a=e.fieldsArray.slice().sort(s.compareFieldsById),t=0;t<a.length;++t){var f=a[t].resolve(),u=e._fieldsArray.indexOf(f),l=f.resolvedType instanceof i?"int32":f.type,p=o.basic[l];r="m"+s.safeProp(f.name),f.map?(n("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",r,f.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",r)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(f.id<<3|2)>>>0,8|o.mapKey[f.keyType],f.keyType),void 0===p?n("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",u,r):n(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,l,r),n("}")("}")):f.repeated?(n("if(%s!=null&&%s.length){",r,r),f.packed&&void 0!==o.packed[l]?n("w.uint32(%i).fork()",(f.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",r)("w.%s(%s[i])",l,r)("w.ldelim()"):(n("for(var i=0;i<%s.length;++i)",r),void 0===p?genTypePartial(n,f,u,r+"[i]"):n("w.uint32(%i).%s(%s[i])",(f.id<<3|p)>>>0,l,r)),n("}")):(f.optional&&n("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",r,f.name),void 0===p?genTypePartial(n,f,u,r):n("w.uint32(%i).%s(%s)",(f.id<<3|p)>>>0,l,r))}return n("return w")}},"./protobufjs/src/enum.js":function(e,t,r){e.exports=Enum;var i=r("./protobufjs/src/object.js");((Enum.prototype=Object.create(i.prototype)).constructor=Enum).className="Enum";var o=r("./protobufjs/src/namespace.js"),s=r("./protobufjs/src/util.js");function Enum(e,t,r,o,s,n){if(i.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=s||{},this.valuesOptions=n,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),f=0;f<a.length;++f)"number"==typeof t[a[f]]&&(this.valuesById[this.values[a[f]]=t[a[f]]]=a[f])}Enum.prototype._resolveFeatures=function(e){return e=this._edition||e,i.prototype._resolveFeatures.call(this,e),Object.keys(this.values).forEach(e=>{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},Enum.fromJSON=function(e,t){var r=new Enum(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Enum.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return s.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},Enum.prototype.add=function(e,t,r,i){if(!s.isString(e))throw TypeError("name must be a string");if(!s.isInteger(t))throw TypeError("id must be an integer");if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return i&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=i||null),this.comments[e]=r||null,this},Enum.prototype.remove=function(e){if(!s.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},Enum.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},Enum.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},"./protobufjs/src/field.js":function(e,t,r){e.exports=Field;var i,o=r("./protobufjs/src/object.js");((Field.prototype=Object.create(o.prototype)).constructor=Field).className="Field";var s=r("./protobufjs/src/enum.js"),n=r("./protobufjs/src/types.js"),a=r("./protobufjs/src/util.js"),f=/^required|optional|repeated$/;function Field(e,t,r,i,s,u,l){if(a.isObject(i)?(l=s,u=i,i=s=void 0):a.isObject(s)&&(l=u,u=s,s=void 0),o.call(this,e,u),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==i&&!f.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==s&&!a.isString(s))throw TypeError("extend must be a string");"proto3_optional"===i&&(i="optional"),this.rule=i&&"optional"!==i?i:void 0,this.type=r,this.id=t,this.extend=s||void 0,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==n.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}Field.fromJSON=function(e,t){var r=new Field(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(Field.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(Field.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(Field.prototype,"delimited",{get:function(){return this.resolvedType instanceof i&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(Field.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(Field.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),Field.prototype.setOption=function(e,t,r){return o.prototype.setOption.call(this,e,t,r)},Field.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},Field.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=n.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof i?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof s&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof s||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof i&&(this.parent.ctor.prototype[this.name]=this.defaultValue),o.prototype.resolve.call(this)},Field.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===n.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof i&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},Field.prototype._resolveFeatures=function(e){return o.prototype._resolveFeatures.call(this,this._edition||e)},Field.d=function(e,t,r,i){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,s){a.decorateType(o.constructor).add(new Field(s,e,t,r,{default:i}))}},Field._configure=function(e){i=e}},"./protobufjs/src/index-light.js":function(e,t,r){var i=e.exports=r("./protobufjs/src/index-minimal.js");function load(e,t,r){return"function"==typeof t?(r=t,t=new i.Root):t||(t=new i.Root),t.load(e,r)}function loadSync(e,t){return t||(t=new i.Root),t.loadSync(e)}i.build="light",i.load=load,i.loadSync=loadSync,i.encoder=r("./protobufjs/src/encoder.js"),i.decoder=r("./protobufjs/src/decoder.js"),i.verifier=r("./protobufjs/src/verifier.js"),i.converter=r("./protobufjs/src/converter.js"),i.ReflectionObject=r("./protobufjs/src/object.js"),i.Namespace=r("./protobufjs/src/namespace.js"),i.Root=r("./protobufjs/src/root.js"),i.Enum=r("./protobufjs/src/enum.js"),i.Type=r("./protobufjs/src/type.js"),i.Field=r("./protobufjs/src/field.js"),i.OneOf=r("./protobufjs/src/oneof.js"),i.MapField=r("./protobufjs/src/mapfield.js"),i.Service=r("./protobufjs/src/service.js"),i.Method=r("./protobufjs/src/method.js"),i.Message=r("./protobufjs/src/message.js"),i.wrappers=r("./protobufjs/src/wrappers.js"),i.types=r("./protobufjs/src/types.js"),i.util=r("./protobufjs/src/util.js"),i.ReflectionObject._configure(i.Root),i.Namespace._configure(i.Type,i.Service,i.Enum),i.Root._configure(i.Type),i.Field._configure(i.Type)},"./protobufjs/src/index-minimal.js":function(e,t,r){var i=t;function configure(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=r("./protobufjs/src/writer.js"),i.BufferWriter=r("./protobufjs/src/writer_buffer.js"),i.Reader=r("./protobufjs/src/reader.js"),i.BufferReader=r("./protobufjs/src/reader_buffer.js"),i.util=r("./protobufjs/src/util/minimal.js"),i.rpc=r("./protobufjs/src/rpc.js"),i.roots=r("./protobufjs/src/roots.js"),i.configure=configure,configure()},"./protobufjs/src/index.js":function(e,t,r){var i=e.exports=r("./protobufjs/src/index-light.js");i.build="full",i.tokenize=r("./protobufjs/src/tokenize.js"),i.parse=r("./protobufjs/src/parse.js"),i.common=r("./protobufjs/src/common.js"),i.Root._configure(i.Type,i.parse,i.common)},"./protobufjs/src/mapfield.js":function(e,t,r){e.exports=MapField;var i=r("./protobufjs/src/field.js");((MapField.prototype=Object.create(i.prototype)).constructor=MapField).className="MapField";var o=r("./protobufjs/src/types.js"),s=r("./protobufjs/src/util.js");function MapField(e,t,r,o,n,a){if(i.call(this,e,t,o,void 0,void 0,n,a),!s.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}MapField.fromJSON=function(e,t){return new MapField(e,t.id,t.keyType,t.type,t.options,t.comment)},MapField.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return s.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},MapField.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return i.prototype.resolve.call(this)},MapField.d=function(e,t,r){return"function"==typeof r?r=s.decorateType(r).name:r&&"object"==typeof r&&(r=s.decorateEnum(r).name),function(i,o){s.decorateType(i.constructor).add(new MapField(o,e,t,r))}}},"./protobufjs/src/message.js":function(e,t,r){e.exports=Message;var i=r("./protobufjs/src/util/minimal.js");function Message(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)this[t[r]]=e[t[r]]}Message.create=function(e){return this.$type.create(e)},Message.encode=function(e,t){return this.$type.encode(e,t)},Message.encodeDelimited=function(e,t){return this.$type.encodeDelimited(e,t)},Message.decode=function(e){return this.$type.decode(e)},Message.decodeDelimited=function(e){return this.$type.decodeDelimited(e)},Message.verify=function(e){return this.$type.verify(e)},Message.fromObject=function(e){return this.$type.fromObject(e)},Message.toObject=function(e,t){return this.$type.toObject(e,t)},Message.prototype.toJSON=function(){return this.$type.toObject(this,i.toJSONOptions)}},"./protobufjs/src/method.js":function(e,t,r){e.exports=Method;var i=r("./protobufjs/src/object.js");((Method.prototype=Object.create(i.prototype)).constructor=Method).className="Method";var o=r("./protobufjs/src/util.js");function Method(e,t,r,s,n,a,f,u,l){if(o.isObject(n)?(f=n,n=a=void 0):o.isObject(a)&&(f=a,a=void 0),!(void 0===t||o.isString(t)))throw TypeError("type must be a string");if(!o.isString(r))throw TypeError("requestType must be a string");if(!o.isString(s))throw TypeError("responseType must be a string");i.call(this,e,f),this.type=t||"rpc",this.requestType=r,this.requestStream=!!n||void 0,this.responseType=s,this.responseStream=!!a||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=u,this.parsedOptions=l}Method.fromJSON=function(e,t){return new Method(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},Method.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return o.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0,"parsedOptions",this.parsedOptions])},Method.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),i.prototype.resolve.call(this))}},"./protobufjs/src/namespace.js":function(e,t,r){e.exports=Namespace;var i,o,s,n=r("./protobufjs/src/object.js");((Namespace.prototype=Object.create(n.prototype)).constructor=Namespace).className="Namespace";var a=r("./protobufjs/src/field.js"),f=r("./protobufjs/src/util.js"),u=r("./protobufjs/src/oneof.js");function arrayToJSON(e,t){if(e&&e.length){for(var r={},i=0;i<e.length;++i)r[e[i].name]=e[i].toJSON(t);return r}}function Namespace(e,t){n.call(this,e,t),this.nested=void 0,this._nestedArray=null,this._lookupCache={},this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}function clearCache(e){e._nestedArray=null,e._lookupCache={};for(var t=e;t=t.parent;)t._lookupCache={};return e}Namespace.fromJSON=function(e,t){return new Namespace(e,t.options).addJSON(t.nested)},Namespace.arrayToJSON=arrayToJSON,Namespace.isReservedId=function(e,t){if(e){for(var r=0;r<e.length;++r)if("string"!=typeof e[r]&&e[r][0]<=t&&e[r][1]>t)return!0}return!1},Namespace.isReservedName=function(e,t){if(e){for(var r=0;r<e.length;++r)if(e[r]===t)return!0}return!1},Object.defineProperty(Namespace.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=f.toArray(this.nested))}}),Namespace.prototype.toJSON=function(e){return f.toObject(["options",this.options,"nested",arrayToJSON(this.nestedArray,e)])},Namespace.prototype.addJSON=function(e){var t=this;if(e)for(var r,n=Object.keys(e),f=0;f<n.length;++f)r=e[n[f]],t.add((void 0!==r.fields?i.fromJSON:void 0!==r.values?s.fromJSON:void 0!==r.methods?o.fromJSON:void 0!==r.id?a.fromJSON:Namespace.fromJSON)(n[f],r));return this},Namespace.prototype.get=function(e){return this.nested&&this.nested[e]||null},Namespace.prototype.getEnum=function(e){if(this.nested&&this.nested[e]instanceof s)return this.nested[e].values;throw Error("no such enum: "+e)},Namespace.prototype.add=function(e){if(!(e instanceof a&&void 0!==e.extend||e instanceof i||e instanceof u||e instanceof s||e instanceof o||e instanceof Namespace))throw TypeError("object must be a valid nested object");if(this.nested){var t=this.get(e.name);if(t)if(t instanceof Namespace&&e instanceof Namespace&&!(t instanceof i||t instanceof o)){for(var r=t.nestedArray,n=0;n<r.length;++n)e.add(r[n]);this.remove(t),this.nested||(this.nested={}),e.setOptions(t.options,!0)}else throw Error("duplicate name '"+e.name+"' in "+this)}else this.nested={};this.nested[e.name]=e,this instanceof i||this instanceof o||this instanceof s||this instanceof a||e._edition||(e._edition=e._defaultEdition),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;for(var f=this;f=f.parent;)f._needsRecursiveFeatureResolution=!0,f._needsRecursiveResolve=!0;return e.onAdd(this),clearCache(this)},Namespace.prototype.remove=function(e){if(!(e instanceof n))throw TypeError("object must be a ReflectionObject");if(e.parent!==this)throw Error(e+" is not a member of "+this);return delete this.nested[e.name],Object.keys(this.nested).length||(this.nested=void 0),e.onRemove(this),clearCache(this)},Namespace.prototype.define=function(e,t){if(f.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 r=this;e.length>0;){var i=e.shift();if(r.nested&&r.nested[i]){if(!((r=r.nested[i])instanceof Namespace))throw Error("path conflicts with non-namespace objects")}else r.add(r=new Namespace(i))}return t&&r.addJSON(t),r},Namespace.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t<e.length;)e[t]instanceof Namespace?e[t++].resolveAll():e[t++].resolve();return this._needsRecursiveResolve=!1,this},Namespace.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(this._needsRecursiveFeatureResolution=!1,e=this._edition||e,n.prototype._resolveFeaturesRecursive.call(this,e),this.nestedArray.forEach(t=>{t._resolveFeaturesRecursive(e)})),this},Namespace.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),f.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var i=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+i];if(o&&(!t||t.indexOf(o.constructor)>-1)||(o=this._lookupImpl(e,i))&&(!t||t.indexOf(o.constructor)>-1))return o;if(r)return null;for(var s=this;s.parent;){if((o=s.parent._lookupImpl(e,i))&&(!t||t.indexOf(o.constructor)>-1))return o;s=s.parent}return null},Namespace.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),i=null;if(r)1===e.length?i=r:r instanceof Namespace&&(e=e.slice(1),i=r._lookupImpl(e,e.join(".")));else for(var o=0;o<this.nestedArray.length;++o)this._nestedArray[o]instanceof Namespace&&(r=this._nestedArray[o]._lookupImpl(e,t))&&(i=r);return this._lookupCache[t]=i,i},Namespace.prototype.lookupType=function(e){var t=this.lookup(e,[i]);if(!t)throw Error("no such type: "+e);return t},Namespace.prototype.lookupEnum=function(e){var t=this.lookup(e,[s]);if(!t)throw Error("no such Enum '"+e+"' in "+this);return t},Namespace.prototype.lookupTypeOrEnum=function(e){var t=this.lookup(e,[i,s]);if(!t)throw Error("no such Type or Enum '"+e+"' in "+this);return t},Namespace.prototype.lookupService=function(e){var t=this.lookup(e,[o]);if(!t)throw Error("no such Service '"+e+"' in "+this);return t},Namespace._configure=function(e,t,r){i=e,o=t,s=r}},"./protobufjs/src/object.js":function(e,t,r){e.exports=ReflectionObject,ReflectionObject.className="ReflectionObject";let i=r("./protobufjs/src/oneof.js");var o,s=r("./protobufjs/src/util.js"),n={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE2024",default_symbol_visibility:"EXPORT_TOP_LEVEL"},a={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"},f={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"},u={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"};function ReflectionObject(e,t){if(!s.isString(e))throw TypeError("name must be a string");if(t&&!s.isObject(t))throw TypeError("options must be an object");this.options=t,this.parsedOptions=null,this.name=e,this._edition=null,this._defaultEdition="proto2",this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(ReflectionObject.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),ReflectionObject.prototype.toJSON=function(){throw Error()},ReflectionObject.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof o&&t._handleAdd(this)},ReflectionObject.prototype.onRemove=function(e){var t=e.root;t instanceof o&&t._handleRemove(this),this.parent=null,this.resolved=!1},ReflectionObject.prototype.resolve=function(){return this.resolved||this.root instanceof o&&(this.resolved=!0),this},ReflectionObject.prototype._resolveFeaturesRecursive=function(e){return this._resolveFeatures(this._edition||e)},ReflectionObject.prototype._resolveFeatures=function(e){if(!this._featuresResolved){var t={};if(!e)throw Error("Unknown edition for "+this.fullName);var r=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures(e));if(this._edition){if("proto2"===e)t=Object.assign({},f);else if("proto3"===e)t=Object.assign({},u);else if("2023"===e)t=Object.assign({},a);else if("2024"===e)t=Object.assign({},n);else throw Error("Unknown edition: "+e);this._features=Object.assign(t,r||{}),this._featuresResolved=!0;return}if(this.partOf instanceof i){var o=Object.assign({},this.partOf._features);this._features=Object.assign(o,r||{})}else if(this.declaringField);else if(this.parent){var s=Object.assign({},this.parent._features);this._features=Object.assign(s,r||{})}else throw Error("Unable to find a parent for "+this.fullName);this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},ReflectionObject.prototype._inferLegacyProtoFeatures=function(){return{}},ReflectionObject.prototype.getOption=function(e){if(this.options)return this.options[e]},ReflectionObject.prototype.setOption=function(e,t,r){return this.options||(this.options={}),/^features\./.test(e)?s.setProperty(this.options,e,t,r):r&&void 0!==this.options[e]||(this.getOption(e)!==t&&(this.resolved=!1),this.options[e]=t),this},ReflectionObject.prototype.setParsedOption=function(e,t,r){this.parsedOptions||(this.parsedOptions=[]);var i=this.parsedOptions;if(r){var o=i.find(function(t){return Object.prototype.hasOwnProperty.call(t,e)});if(o){var n=o[e];s.setProperty(n,r,t)}else(o={})[e]=s.setProperty({},r,t),i.push(o)}else{var a={};a[e]=t,i.push(a)}return this},ReflectionObject.prototype.setOptions=function(e,t){if(e)for(var r=Object.keys(e),i=0;i<r.length;++i)this.setOption(r[i],e[r[i]],t);return this},ReflectionObject.prototype.toString=function(){var e=this.constructor.className,t=this.fullName;return t.length?e+" "+t:e},ReflectionObject.prototype._editionToJSON=function(){if(this._edition&&"proto3"!==this._edition)return this._edition},ReflectionObject._configure=function(e){o=e}},"./protobufjs/src/oneof.js":function(e,t,r){e.exports=OneOf;var i=r("./protobufjs/src/object.js");((OneOf.prototype=Object.create(i.prototype)).constructor=OneOf).className="OneOf";var o=r("./protobufjs/src/field.js"),s=r("./protobufjs/src/util.js");function OneOf(e,t,r,o){if(Array.isArray(t)||(r=t,t=void 0),i.call(this,e,r),!(void 0===t||Array.isArray(t)))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=o}function addFieldsToParent(e){if(e.parent)for(var t=0;t<e.fieldsArray.length;++t)e.fieldsArray[t].parent||e.parent.add(e.fieldsArray[t])}OneOf.fromJSON=function(e,t){return new OneOf(e,t.oneof,t.options,t.comment)},OneOf.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return s.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:void 0])},OneOf.prototype.add=function(e){if(!(e instanceof o))throw TypeError("field must be a Field");return e.parent&&e.parent!==this.parent&&e.parent.remove(e),this.oneof.push(e.name),this.fieldsArray.push(e),e.partOf=this,addFieldsToParent(this),this},OneOf.prototype.remove=function(e){if(!(e instanceof o))throw TypeError("field must be a Field");var t=this.fieldsArray.indexOf(e);if(t<0)throw Error(e+" is not a member of "+this);return this.fieldsArray.splice(t,1),(t=this.oneof.indexOf(e.name))>-1&&this.oneof.splice(t,1),e.partOf=null,this},OneOf.prototype.onAdd=function(e){i.prototype.onAdd.call(this,e);for(var t=this,r=0;r<this.oneof.length;++r){var o=e.get(this.oneof[r]);o&&!o.partOf&&(o.partOf=t,t.fieldsArray.push(o))}addFieldsToParent(this)},OneOf.prototype.onRemove=function(e){for(var t,r=0;r<this.fieldsArray.length;++r)(t=this.fieldsArray[r]).parent&&t.parent.remove(t);i.prototype.onRemove.call(this,e)},Object.defineProperty(OneOf.prototype,"isProto3Optional",{get:function(){if(null==this.fieldsArray||1!==this.fieldsArray.length)return!1;var e=this.fieldsArray[0];return null!=e.options&&!0===e.options.proto3_optional}}),OneOf.d=function(){for(var e=Array(arguments.length),t=0;t<arguments.length;)e[t]=arguments[t++];return function(t,r){s.decorateType(t.constructor).add(new OneOf(r,e)),Object.defineProperty(t,r,{get:s.oneOfGetter(e),set:s.oneOfSetter(e)})}}},"./protobufjs/src/parse.js":function(e,t,r){e.exports=parse,parse.filename=null,parse.defaults={keepCase:!1};var i=r("./protobufjs/src/tokenize.js"),o=r("./protobufjs/src/root.js"),s=r("./protobufjs/src/type.js"),n=r("./protobufjs/src/field.js"),a=r("./protobufjs/src/mapfield.js"),f=r("./protobufjs/src/oneof.js"),u=r("./protobufjs/src/enum.js"),l=r("./protobufjs/src/service.js"),p=r("./protobufjs/src/method.js"),c=r("./protobufjs/src/object.js"),d=r("./protobufjs/src/types.js"),h=r("./protobufjs/src/util.js"),y=/^[1-9][0-9]*$/,m=/^-?[1-9][0-9]*$/,v=/^0[x][0-9a-fA-F]+$/,b=/^-?0[x][0-9a-fA-F]+$/,g=/^0[0-7]+$/,j=/^-?0[0-7]+$/,O=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,_=/^[a-zA-Z_][a-zA-Z_0-9]*$/,w=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/;function parse(e,t,r){t instanceof o||(r=t,t=new o),r||(r=parse.defaults);var k,E,x,A,S=r.preferTrailingComment||!1,R=i(e,r.alternateCommentMode||!1),T=R.next,N=R.push,F=R.peek,B=R.skip,L=R.cmnt,I=!0,P="proto2",C=t,D=[],V={},M=r.keepCase?function(e){return e}:h.camelCase;function resolveFileFeatures(){D.forEach(e=>{e._edition=P,Object.keys(V).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,V[t],!0)})})}function illegal(e,t,r){var i=parse.filename;return r||(parse.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(i?i+", ":"")+"line "+R.line+")")}function readString(){var e,t=[];do{if('"'!==(e=T())&&"'"!==e)throw illegal(e);t.push(T()),B(e),e=F()}while('"'===e||"'"===e);return t.join("")}function readValue(e){var t=T();switch(t){case"'":case'"':return N(t),readString();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return parseNumber(t,!0)}catch(r){if(e&&w.test(t))return t;throw illegal(t,"value")}}function readRanges(e,t){do if(t&&('"'===(r=F())||"'"===r)){var r,i,o=readString();if(e.push(o),P>=2023)throw illegal(o,"id")}else try{e.push([i=parseId(T()),B("to",!0)?parseId(T()):i])}catch(i){if(t&&w.test(r)&&P>=2023)e.push(r);else throw i}while(B(",",!0));var s={options:void 0};s.setOption=function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t},ifBlock(s,function(e){if("option"===e)parseOption(s,e),B(";");else throw illegal(e)},function(){parseInlineOptions(s)})}function parseNumber(e,t){var r=1;switch("-"===e.charAt(0)&&(r=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return 1/0*r;case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(y.test(e))return r*parseInt(e,10);if(v.test(e))return r*parseInt(e,16);if(g.test(e))return r*parseInt(e,8);if(O.test(e))return r*parseFloat(e);throw illegal(e,"number",t)}function parseId(e,t){switch(e){case"max":case"MAX":case"Max":return 0x1fffffff;case"0":return 0}if(!t&&"-"===e.charAt(0))throw illegal(e,"id");if(m.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(j.test(e))return parseInt(e,8);throw illegal(e,"id")}function parsePackage(){if(void 0!==E)throw illegal("package");if(E=T(),!w.test(E))throw illegal(E,"name");C=C.define(E),B(";")}function parseImport(){var e,t=F();switch(t){case"option":if(P<"2024")throw illegal("option");T(),readString(),B(";");return;case"weak":e=A||(A=[]),T();break;case"public":T();default:e=x||(x=[])}t=readString(),B(";"),e.push(t)}function parseSyntax(){if(B("="),(P=readString())<2023)throw illegal(P,"syntax");B(";")}function parseEdition(){if(B("="),!["2023","2024"].includes(P=readString()))throw illegal(P,"edition");B(";")}function parseCommon(e,t){switch(t){case"option":return parseOption(e,t),B(";"),!0;case"message":return parseType(e,t),!0;case"enum":return parseEnum(e,t),!0;case"export":case"local":if(P<"2024"||"export"===(t=T())||"local"===t||"message"!==t&&"enum"!==t)break;return parseCommon(e,t);case"service":return parseService(e,t),!0;case"extend":return parseExtension(e,t),!0}return!1}function ifBlock(e,t,r){var i,o=R.line;if(e&&("string"!=typeof e.comment&&(e.comment=L()),e.filename=parse.filename),B("{",!0)){for(;"}"!==(i=T());)t(i);B(";",!0)}else r&&r(),B(";"),e&&("string"!=typeof e.comment||S)&&(e.comment=L(o)||e.comment)}function parseType(e,t){if(!_.test(t=T()))throw illegal(t,"type name");var r=new s(t);ifBlock(r,function(e){if(!parseCommon(r,e))switch(e){case"map":parseMapField(r,e);break;case"required":if("proto2"!==P)throw illegal(e);case"repeated":parseField(r,e);break;case"optional":if("proto3"===P)parseField(r,"proto3_optional");else if("proto2"!==P)throw illegal(e);else parseField(r,"optional");break;case"oneof":parseOneOf(r,e);break;case"extensions":readRanges(r.extensions||(r.extensions=[]));break;case"reserved":readRanges(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===P||!w.test(e))throw illegal(e);N(e),parseField(r,"optional")}}),e.add(r),e===C&&D.push(r)}function parseField(e,t,r){var i=T();if("group"===i)return void parseGroup(e,t);for(;i.endsWith(".")||F().startsWith(".");)i+=T();if(!w.test(i))throw illegal(i,"type");var o=T();if(!_.test(o))throw illegal(o,"name");o=M(o),B("=");var s=new n(o,parseId(T()),i,t,r);if(ifBlock(s,function(e){if("option"===e)parseOption(s,e),B(";");else throw illegal(e)},function(){parseInlineOptions(s)}),"proto3_optional"===t){var a=new f("_"+o);s.setOption("proto3_optional",!0),a.add(s),e.add(a)}else e.add(s);e===C&&D.push(s)}function parseGroup(e,t){if(P>=2023)throw illegal("group");var r=T();if(!_.test(r))throw illegal(r,"name");var i=h.lcFirst(r);r===i&&(r=h.ucFirst(r)),B("=");var o=parseId(T()),a=new s(r);a.group=!0;var f=new n(i,o,r,t);f.filename=parse.filename,ifBlock(a,function(e){switch(e){case"option":parseOption(a,e),B(";");break;case"required":case"repeated":parseField(a,e);break;case"optional":"proto3"===P?parseField(a,"proto3_optional"):parseField(a,"optional");break;case"message":parseType(a,e);break;case"enum":parseEnum(a,e);break;case"reserved":readRanges(a.reserved||(a.reserved=[]),!0);break;case"export":case"local":if(P<"2024")throw illegal(e);switch(e=T()){case"message":case"enum":parseType(a,e);break;default:throw illegal(e)}break;default:throw illegal(e)}}),e.add(a).add(f)}function parseMapField(e){B("<");var t=T();if(void 0===d.mapKey[t])throw illegal(t,"type");B(",");var r=T();if(!w.test(r))throw illegal(r,"type");B(">");var i=T();if(!_.test(i))throw illegal(i,"name");B("=");var o=new a(M(i),parseId(T()),t,r);ifBlock(o,function(e){if("option"===e)parseOption(o,e),B(";");else throw illegal(e)},function(){parseInlineOptions(o)}),e.add(o)}function parseOneOf(e,t){if(!_.test(t=T()))throw illegal(t,"name");var r=new f(M(t));ifBlock(r,function(e){"option"===e?(parseOption(r,e),B(";")):(N(e),parseField(r,"optional"))}),e.add(r)}function parseEnum(e,t){if(!_.test(t=T()))throw illegal(t,"name");var r=new u(t);ifBlock(r,function(e){switch(e){case"option":parseOption(r,e),B(";");break;case"reserved":readRanges(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:parseEnumValue(r,e)}}),e.add(r),e===C&&D.push(r)}function parseEnumValue(e,t){if(!_.test(t))throw illegal(t,"name");B("=");var r=parseId(T(),!0),i={options:void 0};i.getOption=function(e){return this.options[e]},i.setOption=function(e,t){c.prototype.setOption.call(i,e,t)},i.setParsedOption=function(){},ifBlock(i,function(e){if("option"===e)parseOption(i,e),B(";");else throw illegal(e)},function(){parseInlineOptions(i)}),e.add(t,r,i.comment,i.parsedOptions||i.options)}function parseOption(e,t){var r,i,o=!0;for("option"===t&&(t=T());"="!==t;){if("("===t){var s=T();B(")"),t="("+s+")"}if(o){if(o=!1,t.includes(".")&&!t.includes("(")){var n=t.split(".");r=n[0]+".",t=n[1];continue}r=t}else i=i?i+=t:t;t=T()}var a=parseOptionValue(e,i?r.concat(i):r);i=i&&"."===i[0]?i.slice(1):i,setParsedOption(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,i)}function parseOptionValue(e,t){if(B("{",!0)){for(var r={};!B("}",!0);){if(!_.test(k=T()))throw illegal(k,"name");if(null===k)throw illegal(k,"end of input");var i,o,s=k;if(B(":",!0),"{"===F())i=parseOptionValue(e,t+"."+k);else if("["===F()){if(i=[],B("[",!0)){do o=readValue(!0),i.push(o);while(B(",",!0));B("]"),void 0!==o&&setOption(e,t+"."+k,o)}}else i=readValue(!0),setOption(e,t+"."+k,i);var n=r[s];n&&(i=[].concat(n).concat(i)),r[s]=i,B(",",!0),B(";",!0)}return r}var a=readValue(!0);return setOption(e,t,a),a}function setOption(e,t,r){if(C===e&&/^features\./.test(t)){V[t]=r;return}e.setOption&&e.setOption(t,r)}function setParsedOption(e,t,r,i){e.setParsedOption&&e.setParsedOption(t,r,i)}function parseInlineOptions(e){if(B("[",!0)){do parseOption(e,"option");while(B(",",!0));B("]")}return e}function parseService(e,t){if(!_.test(t=T()))throw illegal(t,"service name");var r=new l(t);ifBlock(r,function(e){if(!parseCommon(r,e))if("rpc"===e)parseMethod(r,e);else throw illegal(e)}),e.add(r),e===C&&D.push(r)}function parseMethod(e,t){var r=L(),i=t;if(!_.test(t=T()))throw illegal(t,"name");var o,s,n,a,f=t;if(B("("),B("stream",!0)&&(s=!0),!w.test(t=T())||(o=t,B(")"),B("returns"),B("("),B("stream",!0)&&(a=!0),!w.test(t=T())))throw illegal(t);n=t,B(")");var u=new p(f,i,o,n,s,a);u.comment=r,ifBlock(u,function(e){if("option"===e)parseOption(u,e),B(";");else throw illegal(e)}),e.add(u)}function parseExtension(e,t){if(!w.test(t=T()))throw illegal(t,"reference");var r=t;ifBlock(null,function(t){switch(t){case"required":case"repeated":parseField(e,t,r);break;case"optional":"proto3"===P?parseField(e,"proto3_optional",r):parseField(e,"optional",r);break;default:if("proto2"===P||!w.test(t))throw illegal(t);N(t),parseField(e,"optional",r)}})}for(;null!==(k=T());)switch(k){case"package":if(!I)throw illegal(k);parsePackage();break;case"import":if(!I)throw illegal(k);parseImport();break;case"syntax":if(!I)throw illegal(k);parseSyntax();break;case"edition":if(!I)throw illegal(k);parseEdition();break;case"option":parseOption(C,k),B(";",!0);break;default:if(parseCommon(C,k)){I=!1;continue}throw illegal(k)}return resolveFileFeatures(),parse.filename=null,{package:E,imports:x,weakImports:A,root:t}}},"./protobufjs/src/reader.js":function(e,t,r){e.exports=Reader;var i,o=r("./protobufjs/src/util/minimal.js"),s=o.LongBits,n=o.utf8;function indexOutOfRange(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function Reader(e){this.buf=e,this.pos=0,this.len=e.length}var a="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new Reader(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new Reader(e);throw Error("illegal buffer")},create=function(){return o.Buffer?function(e){return(Reader.create=function(e){return o.Buffer.isBuffer(e)?new i(e):a(e)})(e)}:a};function readLongVarint(){var e=new s(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw indexOutOfRange(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw indexOutOfRange(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function readFixed32_end(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new s(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader.create=create(),Reader.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,Reader.prototype.uint32=function(){var e=0xffffffff;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(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,indexOutOfRange(this,10);return e}}(),Reader.prototype.int32=function(){return 0|this.uint32()},Reader.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},Reader.prototype.bool=function(){return 0!==this.uint32()},Reader.prototype.fixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.sfixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return 0|readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.float=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},Reader.prototype.double=function(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},Reader.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw indexOutOfRange(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var i=o.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},Reader.prototype.string=function(){var e=this.bytes();return n.read(e,0,e.length)},Reader.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw indexOutOfRange(this,e);this.pos+=e}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(128&this.buf[this.pos++]);return this},Reader.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(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},Reader._configure=function(e){i=e,Reader.create=create(),i._configure();var t=o.Long?"toLong":"toNumber";o.merge(Reader.prototype,{int64:function(){return readLongVarint.call(this)[t](!1)},uint64:function(){return readLongVarint.call(this)[t](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[t](!1)},fixed64:function(){return readFixed64.call(this)[t](!0)},sfixed64:function(){return readFixed64.call(this)[t](!1)}})}},"./protobufjs/src/reader_buffer.js":function(e,t,r){e.exports=BufferReader;var i=r("./protobufjs/src/reader.js");(BufferReader.prototype=Object.create(i.prototype)).constructor=BufferReader;var o=r("./protobufjs/src/util/minimal.js");function BufferReader(e){i.call(this,e)}BufferReader._configure=function(){o.Buffer&&(BufferReader.prototype._slice=o.Buffer.prototype.slice)},BufferReader.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},BufferReader._configure()},"./protobufjs/src/root.js":function(e,t,r){e.exports=Root;var i,o,s,n=r("./protobufjs/src/namespace.js");((Root.prototype=Object.create(n.prototype)).constructor=Root).className="Root";var a=r("./protobufjs/src/field.js"),f=r("./protobufjs/src/enum.js"),u=r("./protobufjs/src/oneof.js"),l=r("./protobufjs/src/util.js");function Root(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function SYNC(){}Root.fromJSON=function(e,t){return t||(t=new Root),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},Root.prototype.resolvePath=l.path.resolve,Root.prototype.fetch=l.fetch,Root.prototype.load=function load(e,t,r){"function"==typeof t&&(r=t,t=void 0);var i=this;if(!r)return l.asPromise(load,i,e,t);var n=r===SYNC;function finish(e,t){if(r){if(n)throw e;t&&t.resolveAll();var i=r;r=null,i(e,t)}}function getBundledFileName(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function process(e,r){try{if(l.isString(r)&&"{"===r.charAt(0)&&(r=JSON.parse(r)),l.isString(r)){o.filename=e;var s,f=o(r,i,t),u=0;if(f.imports)for(;u<f.imports.length;++u)(s=getBundledFileName(f.imports[u])||i.resolvePath(e,f.imports[u]))&&fetch(s);if(f.weakImports)for(u=0;u<f.weakImports.length;++u)(s=getBundledFileName(f.weakImports[u])||i.resolvePath(e,f.weakImports[u]))&&fetch(s,!0)}else i.setOptions(r.options).addJSON(r.nested)}catch(e){finish(e)}n||a||finish(null,i)}function fetch(e,t){if(e=getBundledFileName(e)||e,!(i.files.indexOf(e)>-1)){if(i.files.push(e),e in s)return void(n?process(e,s[e]):(++a,setTimeout(function(){--a,process(e,s[e])})));if(n){var o;try{o=l.fs.readFileSync(e).toString("utf8")}catch(e){t||finish(e);return}process(e,o)}else++a,i.fetch(e,function(o,s){if(--a,r){if(o)return void(t?a||finish(null,i):finish(o));process(e,s)}})}}var a=0;l.isString(e)&&(e=[e]);for(var f,u=0;u<e.length;++u)(f=i.resolvePath("",e[u]))&&fetch(f);return n?i.resolveAll():a||finish(null,i),i},Root.prototype.loadSync=function(e,t){if(!l.isNode)throw Error("not supported");return this.load(e,t,SYNC)},Root.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(e){return"'extend "+e.extend+"' in "+e.parent.fullName}).join(", "));return n.prototype.resolveAll.call(this)};var p=/^[A-Z]/;function tryHandleExtension(e,t){var r=t.parent.lookup(t.extend);if(r){var i=new a(t.fullName,t.id,t.type,t.rule,void 0,t.options);return!!r.get(i.name)||(i.declaringField=t,t.extensionField=i,r.add(i),!0)}return!1}Root.prototype._handleAdd=function(e){if(e instanceof a)void 0===e.extend||e.extensionField||tryHandleExtension(this,e)||this.deferred.push(e);else if(e instanceof f)p.test(e.name)&&(e.parent[e.name]=e.values);else if(!(e instanceof u)){if(e instanceof i)for(var t=0;t<this.deferred.length;)tryHandleExtension(this,this.deferred[t])?this.deferred.splice(t,1):++t;for(var r=0;r<e.nestedArray.length;++r)this._handleAdd(e._nestedArray[r]);p.test(e.name)&&(e.parent[e.name]=e)}(e instanceof i||e instanceof f||e instanceof a)&&(this._fullyQualifiedObjects[e.fullName]=e)},Root.prototype._handleRemove=function(e){if(e instanceof a){if(void 0!==e.extend)if(e.extensionField)e.extensionField.parent.remove(e.extensionField),e.extensionField=null;else{var t=this.deferred.indexOf(e);t>-1&&this.deferred.splice(t,1)}}else if(e instanceof f)p.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r<e.nestedArray.length;++r)this._handleRemove(e._nestedArray[r]);p.test(e.name)&&delete e.parent[e.name]}delete this._fullyQualifiedObjects[e.fullName]},Root._configure=function(e,t,r){i=e,o=t,s=r}},"./protobufjs/src/roots.js":function(e){e.exports={}},"./protobufjs/src/rpc.js":function(e,t,r){t.Service=r("./protobufjs/src/rpc/service.js")},"./protobufjs/src/rpc/service.js":function(e,t,r){e.exports=Service;var i=r("./protobufjs/src/util/minimal.js");function Service(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!r}(Service.prototype=Object.create(i.EventEmitter.prototype)).constructor=Service,Service.prototype.rpcCall=function rpcCall(e,t,r,o,s){if(!o)throw TypeError("request must be specified");var n=this;if(!s)return i.asPromise(rpcCall,n,e,t,r,o);if(!n.rpcImpl)return void setTimeout(function(){s(Error("already ended"))},0);try{return n.rpcImpl(e,t[n.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(t,i){if(t)return n.emit("error",t,e),s(t);if(null===i)return void n.end(!0);if(!(i instanceof r))try{i=r[n.responseDelimited?"decodeDelimited":"decode"](i)}catch(t){return n.emit("error",t,e),s(t)}return n.emit("data",i,e),s(null,i)})}catch(t){n.emit("error",t,e),setTimeout(function(){s(t)},0);return}},Service.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},"./protobufjs/src/service.js":function(e,t,r){e.exports=Service;var i=r("./protobufjs/src/namespace.js");((Service.prototype=Object.create(i.prototype)).constructor=Service).className="Service";var o=r("./protobufjs/src/method.js"),s=r("./protobufjs/src/util.js"),n=r("./protobufjs/src/rpc.js");function Service(e,t){i.call(this,e,t),this.methods={},this._methodsArray=null}function clearCache(e){return e._methodsArray=null,e}Service.fromJSON=function(e,t){var r=new Service(e,t.options);if(t.methods)for(var i=Object.keys(t.methods),s=0;s<i.length;++s)r.add(o.fromJSON(i[s],t.methods[i[s]]));return t.nested&&r.addJSON(t.nested),t.edition&&(r._edition=t.edition),r.comment=t.comment,r._defaultEdition="proto3",r},Service.prototype.toJSON=function(e){var t=i.prototype.toJSON.call(this,e),r=!!e&&!!e.keepComments;return s.toObject(["edition",this._editionToJSON(),"options",t&&t.options||void 0,"methods",i.arrayToJSON(this.methodsArray,e)||{},"nested",t&&t.nested||void 0,"comment",r?this.comment:void 0])},Object.defineProperty(Service.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=s.toArray(this.methods))}}),Service.prototype.get=function(e){return this.methods[e]||i.prototype.get.call(this,e)},Service.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;i.prototype.resolve.call(this);for(var e=this.methodsArray,t=0;t<e.length;++t)e[t].resolve();return this},Service.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(e=this._edition||e,i.prototype._resolveFeaturesRecursive.call(this,e),this.methodsArray.forEach(t=>{t._resolveFeaturesRecursive(e)})),this},Service.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?(this.methods[e.name]=e,e.parent=this,clearCache(this)):i.prototype.add.call(this,e)},Service.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,clearCache(this)}return i.prototype.remove.call(this,e)},Service.prototype.create=function(e,t,r){for(var i,o=new n.Service(e,t,r),a=0;a<this.methodsArray.length;++a){var f=s.lcFirst((i=this._methodsArray[a]).resolve().name).replace(/[^$\w_]/g,"");o[f]=s.codegen(["r","c"],s.isReserved(f)?f+"_":f)("return this.rpcCall(m,q,s,r,c)")({m:i,q:i.resolvedRequestType.ctor,s:i.resolvedResponseType.ctor})}return o}},"./protobufjs/src/tokenize.js":function(e){e.exports=tokenize;var t=/[\s{}=;:[\],'"()<>]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,i=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,s=/^\s*\*?\/*/,n=/\n/g,a=/\s/,f=/\\(.?)/g,u={0:"\0",r:"\r",n:"\n",t:" "};function unescape(e){return e.replace(f,function(e,t){switch(t){case"\\":case"":return t;default:return u[t]||""}})}function tokenize(e,f){e=e.toString();var u=0,l=e.length,p=1,c=0,d={},h=[],y=null;function illegal(e){return Error("illegal "+e+" (line "+p+")")}function readString(){var t="'"===y?i:r;t.lastIndex=u-1;var o=t.exec(e);if(!o)throw illegal("string");return u=t.lastIndex,push(y),y=null,unescape(o[1])}function charAt(t){return e.charAt(t)}function setComment(t,r,i){var a,u={type:e.charAt(t++),lineEmpty:!1,leading:i},l=t-(f?2:3);do if(--l<0||"\n"===(a=e.charAt(l))){u.lineEmpty=!0;break}while(" "===a||" "===a);for(var h=e.substring(t,r).split(n),y=0;y<h.length;++y)h[y]=h[y].replace(f?s:o,"").trim();u.text=h.join("\n").trim(),d[p]=u,c=p}function isDoubleSlashCommentLine(t){var r=findEndOfLine(t),i=e.substring(t,r);return/^\s*\/\//.test(i)}function findEndOfLine(e){for(var t=e;t<l&&"\n"!==charAt(t);)t++;return t}function next(){if(h.length>0)return h.shift();if(y)return readString();var r,i,o,s,n,c=0===u;do{if(u===l)return null;for(r=!1;a.test(o=charAt(u));)if("\n"===o&&(c=!0,++p),++u===l)return null;if("/"===charAt(u)){if(++u===l)throw illegal("comment");if("/"===charAt(u))if(f){if(s=u,n=!1,isDoubleSlashCommentLine(u-1)){n=!0;do if((u=findEndOfLine(u))===l||(u++,!c))break;while(isDoubleSlashCommentLine(u))}else u=Math.min(l,findEndOfLine(u)+1);n&&(setComment(s,u,c),c=!0),p++,r=!0}else{for(n="/"===charAt(s=u+1);"\n"!==charAt(++u);)if(u===l)return null;++u,n&&(setComment(s,u-1,c),c=!0),++p,r=!0}else{if("*"!==(o=charAt(u)))return"/";s=u+1,n=f||"*"===charAt(s);do{if("\n"===o&&++p,++u===l)throw illegal("comment");i=o,o=charAt(u)}while("*"!==i||"/"!==o);++u,n&&(setComment(s,u-2,c),c=!0),r=!0}}}while(r);var d=u;if(t.lastIndex=0,!t.test(charAt(d++)))for(;d<l&&!t.test(charAt(d));)++d;var m=e.substring(u,u=d);return('"'===m||"'"===m)&&(y=m),m}function push(e){h.push(e)}function peek(){if(!h.length){var e=next();if(null===e)return null;push(e)}return h[0]}function skip(e,t){var r=peek();if(r===e)return next(),!0;if(!t)throw illegal("token '"+r+"', '"+e+"' expected");return!1}function cmnt(e){var t,r=null;return void 0===e?(t=d[p-1],delete d[p-1],t&&(f||"*"===t.type||t.lineEmpty)&&(r=t.leading?t.text:null)):(c<e&&peek(),t=d[e],delete d[e],t&&!t.lineEmpty&&(f||"/"===t.type)&&(r=t.leading?null:t.text)),r}return Object.defineProperty({next:next,peek:peek,push:push,skip:skip,cmnt:cmnt},"line",{get:function(){return p}})}tokenize.unescape=unescape},"./protobufjs/src/type.js":function(e,t,r){e.exports=Type;var i=r("./protobufjs/src/namespace.js");((Type.prototype=Object.create(i.prototype)).constructor=Type).className="Type";var o=r("./protobufjs/src/enum.js"),s=r("./protobufjs/src/oneof.js"),n=r("./protobufjs/src/field.js"),a=r("./protobufjs/src/mapfield.js"),f=r("./protobufjs/src/service.js"),u=r("./protobufjs/src/message.js"),l=r("./protobufjs/src/reader.js"),p=r("./protobufjs/src/writer.js"),c=r("./protobufjs/src/util.js"),d=r("./protobufjs/src/encoder.js"),h=r("./protobufjs/src/decoder.js"),y=r("./protobufjs/src/verifier.js"),m=r("./protobufjs/src/converter.js"),v=r("./protobufjs/src/wrappers.js");function Type(e,t){i.call(this,e,t),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function clearCache(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(Type.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t<e.length;++t){var r=this.fields[e[t]],i=r.id;if(this._fieldsById[i])throw Error("duplicate id "+i+" in "+this);this._fieldsById[i]=r}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=c.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=c.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=Type.generateConstructor(this)())},set:function(e){var t=e.prototype;t instanceof u||((e.prototype=new u).constructor=e,c.merge(e.prototype,t)),e.$type=e.prototype.$type=this,c.merge(e,u,!0),this._ctor=e;for(var r=0;r<this.fieldsArray.length;++r)this._fieldsArray[r].resolve();var i={};for(r=0;r<this.oneofsArray.length;++r)i[this._oneofsArray[r].resolve().name]={get:c.oneOfGetter(this._oneofsArray[r].oneof),set:c.oneOfSetter(this._oneofsArray[r].oneof)};r&&Object.defineProperties(e.prototype,i)}}}),Type.generateConstructor=function(e){for(var t,r=c.codegen(["p"],e.name),i=0;i<e.fieldsArray.length;++i)(t=e._fieldsArray[i]).map?r("this%s={}",c.safeProp(t.name)):t.repeated&&r("this%s=[]",c.safeProp(t.name));return r("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")},Type.fromJSON=function(e,t){var r=new Type(e,t.options);r.extensions=t.extensions,r.reserved=t.reserved;for(var u=Object.keys(t.fields),l=0;l<u.length;++l)r.add((void 0!==t.fields[u[l]].keyType?a.fromJSON:n.fromJSON)(u[l],t.fields[u[l]]));if(t.oneofs)for(u=Object.keys(t.oneofs),l=0;l<u.length;++l)r.add(s.fromJSON(u[l],t.oneofs[u[l]]));if(t.nested)for(u=Object.keys(t.nested),l=0;l<u.length;++l){var p=t.nested[u[l]];r.add((void 0!==p.id?n.fromJSON:void 0!==p.fields?Type.fromJSON:void 0!==p.values?o.fromJSON:void 0!==p.methods?f.fromJSON:i.fromJSON)(u[l],p))}return t.extensions&&t.extensions.length&&(r.extensions=t.extensions),t.reserved&&t.reserved.length&&(r.reserved=t.reserved),t.group&&(r.group=!0),t.comment&&(r.comment=t.comment),t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Type.prototype.toJSON=function(e){var t=i.prototype.toJSON.call(this,e),r=!!e&&!!e.keepComments;return c.toObject(["edition",this._editionToJSON(),"options",t&&t.options||void 0,"oneofs",i.arrayToJSON(this.oneofsArray,e),"fields",i.arrayToJSON(this.fieldsArray.filter(function(e){return!e.declaringField}),e)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",t&&t.nested||void 0,"comment",r?this.comment:void 0])},Type.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;i.prototype.resolveAll.call(this);var e=this.oneofsArray;for(r=0;r<e.length;)e[r++].resolve();for(var t=this.fieldsArray,r=0;r<t.length;)t[r++].resolve();return this},Type.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(e=this._edition||e,i.prototype._resolveFeaturesRecursive.call(this,e),this.oneofsArray.forEach(t=>{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)})),this},Type.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},Type.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof n&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),clearCache(this)}return e instanceof s?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),clearCache(this)):i.prototype.add.call(this,e)},Type.prototype.remove=function(e){if(e instanceof n&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),clearCache(this)}if(e instanceof s){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),clearCache(this)}return i.prototype.remove.call(this,e)},Type.prototype.isReservedId=function(e){return i.isReservedId(this.reserved,e)},Type.prototype.isReservedName=function(e){return i.isReservedName(this.reserved,e)},Type.prototype.create=function(e){return new this.ctor(e)},Type.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r<this.fieldsArray.length;++r)t.push(this._fieldsArray[r].resolve().resolvedType);this.encode=d(this)({Writer:p,types:t,util:c}),this.decode=h(this)({Reader:l,types:t,util:c}),this.verify=y(this)({types:t,util:c}),this.fromObject=m.fromObject(this)({types:t,util:c}),this.toObject=m.toObject(this)({types:t,util:c});var i=v[e];if(i){var o=Object.create(this);o.fromObject=this.fromObject,this.fromObject=i.fromObject.bind(o),o.toObject=this.toObject,this.toObject=i.toObject.bind(o)}return this},Type.prototype.encode=function(e,t){return this.setup().encode(e,t)},Type.prototype.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Type.prototype.decode=function(e,t){return this.setup().decode(e,t)},Type.prototype.decodeDelimited=function(e){return e instanceof l||(e=l.create(e)),this.decode(e,e.uint32())},Type.prototype.verify=function(e){return this.setup().verify(e)},Type.prototype.fromObject=function(e){return this.setup().fromObject(e)},Type.prototype.toObject=function(e,t){return this.setup().toObject(e,t)},Type.d=function(e){return function(t){c.decorateType(t,e)}}},"./protobufjs/src/types.js":function(e,t,r){var i=t,o=r("./protobufjs/src/util.js"),s=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function bake(e,t){var r=0,i={};for(t|=0;r<e.length;)i[s[r+t]]=e[r++];return i}i.basic=bake([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),i.defaults=bake([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",o.emptyArray,null]),i.long=bake([0,0,0,1,1],7),i.mapKey=bake([0,0,0,5,5,0,0,0,1,1,0,2],2),i.packed=bake([1,5,0,0,0,5,5,0,0,0,1,1,0])},"./protobufjs/src/util.js":function(e,t,r){var i,o,s=e.exports=r("./protobufjs/src/util/minimal.js"),n=r("./protobufjs/src/roots.js");s.codegen=r("./@protobufjs/codegen/index.js"),s.fetch=r("./@protobufjs/fetch/index.js"),s.path=r("./@protobufjs/path/index.js"),s.fs=s.inquire("fs"),s.toArray=function(e){if(e){for(var t=Object.keys(e),r=Array(t.length),i=0;i<t.length;)r[i]=e[t[i++]];return r}return[]},s.toObject=function(e){for(var t={},r=0;r<e.length;){var i=e[r++],o=e[r++];void 0!==o&&(t[i]=o)}return t};var a=/\\/g,f=/"/g;s.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)},s.safeProp=function(e){return!/^[$\w_]+$/.test(e)||s.isReserved(e)?'["'+e.replace(a,"\\\\").replace(f,'\\"')+'"]':"."+e},s.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.substring(1)};var u=/_([a-z])/g;s.camelCase=function(e){return e.substring(0,1)+e.substring(1).replace(u,function(e,t){return t.toUpperCase()})},s.compareFieldsById=function(e,t){return e.id-t.id},s.decorateType=function(e,t){if(e.$type)return t&&e.$type.name!==t&&(s.decorateRoot.remove(e.$type),e.$type.name=t,s.decorateRoot.add(e.$type)),e.$type;i||(i=r("./protobufjs/src/type.js"));var o=new i(t||e.name);return s.decorateRoot.add(o),o.ctor=e,Object.defineProperty(e,"$type",{value:o,enumerable:!1}),Object.defineProperty(e.prototype,"$type",{value:o,enumerable:!1}),o};var l=0;s.decorateEnum=function(e){if(e.$type)return e.$type;o||(o=r("./protobufjs/src/enum.js"));var t=new o("Enum"+l++,e);return s.decorateRoot.add(t),Object.defineProperty(e,"$type",{value:t,enumerable:!1}),t},s.setProperty=function(e,t,r,i){function setProp(e,t,r){var o=t.shift();if("__proto__"===o||"prototype"===o)return e;if(t.length>0)e[o]=setProp(e[o]||{},t,r);else{var s=e[o];if(s&&i)return e;s&&(r=[].concat(s).concat(r)),e[o]=r}return e}if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return setProp(e,t=t.split("."),r)},Object.defineProperty(s,"decorateRoot",{get:function(){return n.decorated||(n.decorated=new(r("./protobufjs/src/root.js")))}})},"./protobufjs/src/util/longbits.js":function(e,t,r){e.exports=LongBits;var i=r("./protobufjs/src/util/minimal.js");function LongBits(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=LongBits.zero=new LongBits(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=LongBits.zeroHash="\0\0\0\0\0\0\0\0";LongBits.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var r=e>>>0,i=(e-r)/0x100000000>>>0;return t&&(i=~i>>>0,r=~r>>>0,++r>0xffffffff&&(r=0,++i>0xffffffff&&(i=0))),new LongBits(r,i)},LongBits.from=function(e){if("number"==typeof e)return LongBits.fromNumber(e);if(i.isString(e))if(!i.Long)return LongBits.fromNumber(parseInt(e,10));else e=i.Long.fromString(e);return e.low||e.high?new LongBits(e.low>>>0,e.high>>>0):o},LongBits.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+0x100000000*r)}return this.lo+0x100000000*this.hi},LongBits.prototype.toLong=function(e){return i.Long?new i.Long(0|this.lo,0|this.hi,!!e):{low:0|this.lo,high:0|this.hi,unsigned:!!e}};var n=String.prototype.charCodeAt;LongBits.fromHash=function(e){return e===s?o:new LongBits((n.call(e,0)|n.call(e,1)<<8|n.call(e,2)<<16|n.call(e,3)<<24)>>>0,(n.call(e,4)|n.call(e,5)<<8|n.call(e,6)<<16|n.call(e,7)<<24)>>>0)},LongBits.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},LongBits.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},LongBits.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},LongBits.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},"./protobufjs/src/util/minimal.js":function(e,t,r){var i=t;function merge(e,t,r){for(var i=Object.keys(t),o=0;o<i.length;++o)void 0!==e[i[o]]&&r||(e[i[o]]=t[i[o]]);return e}function newError(e){function CustomError(e,t){if(!(this instanceof CustomError))return new CustomError(e,t);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,CustomError):Object.defineProperty(this,"stack",{value:Error().stack||""}),t&&merge(this,t)}return CustomError.prototype=Object.create(Error.prototype,{constructor:{value:CustomError,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),CustomError}i.asPromise=r("./@protobufjs/aspromise/index.js"),i.base64=r("./@protobufjs/base64/index.js"),i.EventEmitter=r("./@protobufjs/eventemitter/index.js"),i.float=r("./@protobufjs/float/index.js"),i.inquire=r("./@protobufjs/inquire/index.js"),i.utf8=r("./@protobufjs/utf8/index.js"),i.pool=r("./@protobufjs/pool/index.js"),i.LongBits=r("./protobufjs/src/util/longbits.js"),i.isNode=!!("undefined"!=typeof global&&global&&global.process&&global.process.versions&&global.process.versions.node),i.global=i.isNode&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},i.isString=function(e){return"string"==typeof e||e instanceof String},i.isObject=function(e){return e&&"object"==typeof e},i.isset=i.isSet=function(e,t){var r=e[t];return!!(null!=r&&e.hasOwnProperty(t))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},i.Buffer=function(){try{var e=i.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(e){return"number"==typeof e?i.Buffer?i._Buffer_allocUnsafe(e):new i.Array(e):i.Buffer?i._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(e){return e?i.LongBits.from(e).toHash():i.LongBits.zeroHash},i.longFromHash=function(e,t){var r=i.LongBits.fromHash(e);return i.Long?i.Long.fromBits(r.lo,r.hi,t):r.toNumber(!!t)},i.merge=merge,i.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},i.newError=newError,i.ProtocolError=newError("ProtocolError"),i.oneOfGetter=function(e){for(var t={},r=0;r<e.length;++r)t[e[r]]=1;return function(){for(var e=Object.keys(this),r=e.length-1;r>-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},i.oneOfSetter=function(e){return function(t){for(var r=0;r<e.length;++r)e[r]!==t&&delete this[e[r]]}},i.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},i._configure=function(){var e=i.Buffer;if(!e){i._Buffer_from=i._Buffer_allocUnsafe=null;return}i._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,r){return new e(t,r)},i._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}}},"./protobufjs/src/verifier.js":function(e,t,r){e.exports=verifier;var i=r("./protobufjs/src/enum.js"),o=r("./protobufjs/src/util.js");function invalid(e,t){return e.name+": "+t+(e.repeated&&"array"!==t?"[]":e.map&&"object"!==t?"{k:"+e.keyType+"}":"")+" expected"}function genVerifyValue(e,t,r,o){if(t.resolvedType)if(t.resolvedType instanceof i){e("switch(%s){",o)("default:")("return%j",invalid(t,"enum value"));for(var s=Object.keys(t.resolvedType.values),n=0;n<s.length;++n)e("case %i:",t.resolvedType.values[s[n]]);e("break")("}")}else e("{")("var e=types[%i].verify(%s);",r,o)("if(e)")("return%j+e",t.name+".")("}");else switch(t.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.isInteger(%s))",o)("return%j",invalid(t,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",o,o,o,o)("return%j",invalid(t,"integer|Long"));break;case"float":case"double":e('if(typeof %s!=="number")',o)("return%j",invalid(t,"number"));break;case"bool":e('if(typeof %s!=="boolean")',o)("return%j",invalid(t,"boolean"));break;case"string":e("if(!util.isString(%s))",o)("return%j",invalid(t,"string"));break;case"bytes":e('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',o,o,o)("return%j",invalid(t,"buffer"))}return e}function genVerifyKey(e,t,r){switch(t.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.key32Re.test(%s))",r)("return%j",invalid(t,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.key64Re.test(%s))",r)("return%j",invalid(t,"integer|Long key"));break;case"bool":e("if(!util.key2Re.test(%s))",r)("return%j",invalid(t,"boolean key"))}return e}function verifier(e){var t=o.codegen(["m"],e.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),r=e.oneofsArray,i={};r.length&&t("var p={}");for(var s=0;s<e.fieldsArray.length;++s){var n=e._fieldsArray[s].resolve(),a="m"+o.safeProp(n.name);if(n.optional&&t("if(%s!=null&&m.hasOwnProperty(%j)){",a,n.name),n.map)t("if(!util.isObject(%s))",a)("return%j",invalid(n,"object"))("var k=Object.keys(%s)",a)("for(var i=0;i<k.length;++i){"),genVerifyKey(t,n,"k[i]"),genVerifyValue(t,n,s,a+"[k[i]]")("}");else if(n.repeated)t("if(!Array.isArray(%s))",a)("return%j",invalid(n,"array"))("for(var i=0;i<%s.length;++i){",a),genVerifyValue(t,n,s,a+"[i]")("}");else{if(n.partOf){var f=o.safeProp(n.partOf.name);1===i[n.partOf.name]&&t("if(p%s===1)",f)("return%j",n.partOf.name+": multiple values"),i[n.partOf.name]=1,t("p%s=1",f)}genVerifyValue(t,n,s,a)}n.optional&&t("}")}return t("return null")}},"./protobufjs/src/wrappers.js":function(e,t,r){var i=t,o=r("./protobufjs/src/message.js");i[".google.protobuf.Any"]={fromObject:function(e){if(e&&e["@type"]){var t=e["@type"].substring(e["@type"].lastIndexOf("/")+1),r=this.lookup(t);if(r){var i="."===e["@type"].charAt(0)?e["@type"].slice(1):e["@type"];return -1===i.indexOf("/")&&(i="/"+i),this.create({type_url:i,value:r.encode(r.fromObject(e)).finish()})}}return this.fromObject(e)},toObject:function(e,t){var r="type.googleapis.com/",i="",s="";if(t&&t.json&&e.type_url&&e.value){s=e.type_url.substring(e.type_url.lastIndexOf("/")+1),i=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var n=this.lookup(s);n&&(e=n.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof o){var a=e.$type.toObject(e,t),f="."===e.$type.fullName[0]?e.$type.fullName.slice(1):e.$type.fullName;return""===i&&(i=r),s=i+f,a["@type"]=s,a}return this.toObject(e,t)}}},"./protobufjs/src/writer.js":function(e,t,r){e.exports=Writer;var i,o=r("./protobufjs/src/util/minimal.js"),s=o.LongBits,n=o.base64,a=o.utf8;function Op(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function noop(){}function State(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function Writer(){this.len=0,this.head=new Op(noop,0,0),this.tail=this.head,this.states=null}var create=function(){return o.Buffer?function(){return(Writer.create=function(){return new i})()}:function(){return new Writer}};function writeByte(e,t,r){t[r]=255&e}function writeVarint32(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e}function VarintOp(e,t){this.len=e,this.next=void 0,this.val=t}function writeVarint64(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function writeFixed32(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}Writer.create=create(),Writer.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(Writer.alloc=o.pool(Writer.alloc,o.Array.prototype.subarray)),Writer.prototype._push=function(e,t,r){return this.tail=this.tail.next=new Op(e,t,r),this.len+=t,this},VarintOp.prototype=Object.create(Op.prototype),VarintOp.prototype.fn=writeVarint32,Writer.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new VarintOp((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this},Writer.prototype.int32=function(e){return e<0?this._push(writeVarint64,10,s.fromNumber(e)):this.uint32(e)},Writer.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},Writer.prototype.uint64=function(e){var t=s.from(e);return this._push(writeVarint64,t.length(),t)},Writer.prototype.int64=Writer.prototype.uint64,Writer.prototype.sint64=function(e){var t=s.from(e).zzEncode();return this._push(writeVarint64,t.length(),t)},Writer.prototype.bool=function(e){return this._push(writeByte,1,+!!e)},Writer.prototype.fixed32=function(e){return this._push(writeFixed32,4,e>>>0)},Writer.prototype.sfixed32=Writer.prototype.fixed32,Writer.prototype.fixed64=function(e){var t=s.from(e);return this._push(writeFixed32,4,t.lo)._push(writeFixed32,4,t.hi)},Writer.prototype.sfixed64=Writer.prototype.fixed64,Writer.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},Writer.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var f=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var i=0;i<e.length;++i)t[r+i]=e[i]};Writer.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(writeByte,1,0);if(o.isString(e)){var r=Writer.alloc(t=n.length(e));n.decode(e,r,0),e=r}return this.uint32(t)._push(f,t,e)},Writer.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(writeByte,1,0)},Writer.prototype.fork=function(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this},Writer.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this},Writer.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},Writer.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},Writer._configure=function(e){i=e,Writer.create=create(),i._configure()}},"./protobufjs/src/writer_buffer.js":function(e,t,r){e.exports=BufferWriter;var i=r("./protobufjs/src/writer.js");(BufferWriter.prototype=Object.create(i.prototype)).constructor=BufferWriter;var o=r("./protobufjs/src/util/minimal.js");function BufferWriter(){i.call(this)}function writeStringBuffer(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}BufferWriter._configure=function(){BufferWriter.alloc=o._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var i=0;i<e.length;)t[r++]=e[i++]}},BufferWriter.prototype.bytes=function(e){o.isString(e)&&(e=o._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(BufferWriter.writeBytesBuffer,t,e),this},BufferWriter.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(writeStringBuffer,t,e),this},BufferWriter._configure()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}var __webpack_exports__=__webpack_require__("./protobufjs/index.js");module.exports=__webpack_exports__})();
|
|
1
|
+
(()=>{"use strict";var __webpack_modules__={"./@protobufjs/aspromise/index.js"(e){e.exports=asPromise;function asPromise(e,t){for(var r=Array(arguments.length-1),i=0,o=2,s=!0;o<arguments.length;)r[i++]=arguments[o++];return new Promise(function(o,n){r[i]=function(e){if(s)if(s=!1,e)n(e);else{for(var t=Array(arguments.length-1),r=0;r<t.length;)t[r++]=arguments[r];o.apply(null,t)}};try{e.apply(t||null,r)}catch(e){s&&(s=!1,n(e))}})}},"./@protobufjs/base64/index.js"(e,t){var r=t;r.length=function(e){var t=e.length;if(!t)return 0;for(var r=0;--t%4>1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var i=Array(64),o=Array(123),s=0;s<64;)o[i[s]=s<26?s+65:s<52?s+71:s<62?s-4:s-59|43]=s++;r.encode=function(e,t,r){for(var o,s=null,n=[],a=0,f=0;t<r;){var u=e[t++];switch(f){case 0:n[a++]=i[u>>2],o=(3&u)<<4,f=1;break;case 1:n[a++]=i[o|u>>4],o=(15&u)<<2,f=2;break;case 2:n[a++]=i[o|u>>6],n[a++]=i[63&u],f=0}a>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,n)),a=0)}return(f&&(n[a++]=i[o],n[a++]=61,1===f&&(n[a++]=61)),s)?(a&&s.push(String.fromCharCode.apply(String,n.slice(0,a))),s.join("")):String.fromCharCode.apply(String,n.slice(0,a))};var n="invalid encoding";r.decode=function(e,t,r){for(var i,s=r,a=0,f=0;f<e.length;){var u=e.charCodeAt(f++);if(61===u&&a>1)break;if(void 0===(u=o[u]))throw Error(n);switch(a){case 0:i=u,a=1;break;case 1:t[r++]=i<<2|(48&u)>>4,i=u,a=2;break;case 2:t[r++]=(15&i)<<4|(60&u)>>2,i=u,a=3;break;case 3:t[r++]=(3&i)<<6|u,a=0}}if(1===a)throw Error(n);return r-s},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},"./@protobufjs/codegen/index.js"(e){function codegen(e,t){"string"==typeof e&&(t=e,e=void 0);var r=[];function Codegen(e){if("string"!=typeof e){var t=toString();if(codegen.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var i=Object.keys(e),o=Array(i.length+1),s=Array(i.length),n=0;n<i.length;)o[n]=i[n],s[n]=e[i[n++]];return o[n]=t,Function.apply(null,o).apply(null,s)}return Function(t)()}for(var a=Array(arguments.length-1),f=0;f<a.length;)a[f]=arguments[++f];if(f=0,e=e.replace(/%([%dfijs])/g,function(e,t){var r=a[f++];switch(t){case"d":case"f":return String(Number(r));case"i":return String(Math.floor(r));case"j":return JSON.stringify(r);case"s":return String(r)}return"%"}),f!==a.length)throw Error("parameter count mismatch");return r.push(e),Codegen}function toString(i){return"function "+(i||t||"")+"("+(e&&e.join(",")||"")+"){\n "+r.join("\n ")+"\n}"}return Codegen.toString=toString,Codegen}e.exports=codegen,codegen.verbose=!1},"./@protobufjs/eventemitter/index.js"(e){function EventEmitter(){this._listeners={}}e.exports=EventEmitter,EventEmitter.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},EventEmitter.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],i=0;i<r.length;)r[i].fn===t?r.splice(i,1):++i;return this},EventEmitter.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var r=[],i=1;i<arguments.length;)r.push(arguments[i++]);for(i=0;i<t.length;)t[i].fn.apply(t[i++].ctx,r)}return this}},"./@protobufjs/fetch/index.js"(e,t,r){e.exports=fetch;var i=r("./@protobufjs/aspromise/index.js"),o=r("./@protobufjs/inquire/index.js")("fs");function fetch(e,t,r){return("function"==typeof t?(r=t,t={}):t||(t={}),r)?!t.xhr&&o&&o.readFile?o.readFile(e,function(i,o){return i&&"u">typeof XMLHttpRequest?fetch.xhr(e,t,r):i?r(i):r(null,t.binary?o:o.toString("utf8"))}):fetch.xhr(e,t,r):i(fetch,this,e,t)}fetch.xhr=function(e,t,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){if(4===i.readyState){if(0!==i.status&&200!==i.status)return r(Error("status "+i.status));if(t.binary){var e=i.response;if(!e){e=[];for(var o=0;o<i.responseText.length;++o)e.push(255&i.responseText.charCodeAt(o))}return r(null,"u">typeof Uint8Array?new Uint8Array(e):e)}return r(null,i.responseText)}},t.binary&&("overrideMimeType"in i&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.responseType="arraybuffer"),i.open("GET",e),i.send()}},"./@protobufjs/float/index.js"(e){function factory(e){return"u">typeof Float32Array?!function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),i=128===r[3];function writeFloat_f32_cpy(e,i,o){t[0]=e,i[o]=r[0],i[o+1]=r[1],i[o+2]=r[2],i[o+3]=r[3]}function writeFloat_f32_rev(e,i,o){t[0]=e,i[o]=r[3],i[o+1]=r[2],i[o+2]=r[1],i[o+3]=r[0]}function readFloat_f32_cpy(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],t[0]}function readFloat_f32_rev(e,i){return r[3]=e[i],r[2]=e[i+1],r[1]=e[i+2],r[0]=e[i+3],t[0]}e.writeFloatLE=i?writeFloat_f32_cpy:writeFloat_f32_rev,e.writeFloatBE=i?writeFloat_f32_rev:writeFloat_f32_cpy,e.readFloatLE=i?readFloat_f32_cpy:readFloat_f32_rev,e.readFloatBE=i?readFloat_f32_rev:readFloat_f32_cpy}():!function(){function writeFloat_ieee754(e,t,r,i){var o=+(t<0);if(o&&(t=-t),0===t)e(1/t>0?0:0x80000000,r,i);else if(isNaN(t))e(0x7fc00000,r,i);else if(t>34028234663852886e22)e((o<<31|0x7f800000)>>>0,r,i);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,i);else{var s=Math.floor(Math.log(t)/Math.LN2),n=8388607&Math.round(t*Math.pow(2,-s)*8388608);e((o<<31|s+127<<23|n)>>>0,r,i)}}function readFloat_ieee754(e,t,r){var i=e(t,r),o=(i>>31)*2+1,s=i>>>23&255,n=8388607&i;return 255===s?n?NaN:1/0*o:0===s?1401298464324817e-60*o*n:o*Math.pow(2,s-150)*(n+8388608)}e.writeFloatLE=writeFloat_ieee754.bind(null,writeUintLE),e.writeFloatBE=writeFloat_ieee754.bind(null,writeUintBE),e.readFloatLE=readFloat_ieee754.bind(null,readUintLE),e.readFloatBE=readFloat_ieee754.bind(null,readUintBE)}(),"u">typeof Float64Array?!function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),i=128===r[7];function writeDouble_f64_cpy(e,i,o){t[0]=e,i[o]=r[0],i[o+1]=r[1],i[o+2]=r[2],i[o+3]=r[3],i[o+4]=r[4],i[o+5]=r[5],i[o+6]=r[6],i[o+7]=r[7]}function writeDouble_f64_rev(e,i,o){t[0]=e,i[o]=r[7],i[o+1]=r[6],i[o+2]=r[5],i[o+3]=r[4],i[o+4]=r[3],i[o+5]=r[2],i[o+6]=r[1],i[o+7]=r[0]}function readDouble_f64_cpy(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],r[4]=e[i+4],r[5]=e[i+5],r[6]=e[i+6],r[7]=e[i+7],t[0]}function readDouble_f64_rev(e,i){return r[7]=e[i],r[6]=e[i+1],r[5]=e[i+2],r[4]=e[i+3],r[3]=e[i+4],r[2]=e[i+5],r[1]=e[i+6],r[0]=e[i+7],t[0]}e.writeDoubleLE=i?writeDouble_f64_cpy:writeDouble_f64_rev,e.writeDoubleBE=i?writeDouble_f64_rev:writeDouble_f64_cpy,e.readDoubleLE=i?readDouble_f64_cpy:readDouble_f64_rev,e.readDoubleBE=i?readDouble_f64_rev:readDouble_f64_cpy}():!function(){function writeDouble_ieee754(e,t,r,i,o,s){var n,a=+(i<0);if(a&&(i=-i),0===i)e(0,o,s+t),e(1/i>0?0:0x80000000,o,s+r);else if(isNaN(i))e(0,o,s+t),e(0x7ff80000,o,s+r);else if(i>17976931348623157e292)e(0,o,s+t),e((a<<31|0x7ff00000)>>>0,o,s+r);else if(i<22250738585072014e-324)e((n=i/5e-324)>>>0,o,s+t),e((a<<31|n/0x100000000)>>>0,o,s+r);else{var f=Math.floor(Math.log(i)/Math.LN2);1024===f&&(f=1023),e(0x10000000000000*(n=i*Math.pow(2,-f))>>>0,o,s+t),e((a<<31|f+1023<<20|1048576*n&1048575)>>>0,o,s+r)}}function readDouble_ieee754(e,t,r,i,o){var s=e(i,o+t),n=e(i,o+r),a=(n>>31)*2+1,f=n>>>20&2047,u=0x100000000*(1048575&n)+s;return 2047===f?u?NaN:1/0*a:0===f?5e-324*a*u:a*Math.pow(2,f-1075)*(u+0x10000000000000)}e.writeDoubleLE=writeDouble_ieee754.bind(null,writeUintLE,0,4),e.writeDoubleBE=writeDouble_ieee754.bind(null,writeUintBE,4,0),e.readDoubleLE=readDouble_ieee754.bind(null,readUintLE,0,4),e.readDoubleBE=readDouble_ieee754.bind(null,readUintBE,4,0)}(),e}function writeUintLE(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function writeUintBE(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function readUintLE(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function readUintBE(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=factory(factory)},"./@protobufjs/inquire/index.js"(module){module.exports=inquire;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}},"./@protobufjs/path/index.js"(e,t){var r=t,i=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=i(e),o="";r&&(o=t.shift()+"/");for(var s=0;s<t.length;)".."===t[s]?s>0&&".."!==t[s-1]?t.splice(--s,2):r?t.splice(s,1):++s:"."===t[s]?t.splice(s,1):++s;return o+t.join("/")};r.resolve=function(e,t,r){return(r||(t=o(t)),i(t))?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},"./@protobufjs/pool/index.js"(e){e.exports=pool;function pool(e,t,r){var i=r||8192,o=i>>>1,s=null,n=i;return function(r){if(r<1||r>o)return e(r);n+r>i&&(s=e(i),n=0);var a=t.call(s,n,n+=r);return 7&n&&(n=(7|n)+1),a}}},"./@protobufjs/utf8/index.js"(e,t){var r=t;r.length=function(e){for(var t=0,r=0,i=0;i<e.length;++i)(r=e.charCodeAt(i))<128?t+=1:r<2048?t+=2:(64512&r)==55296&&(64512&e.charCodeAt(i+1))==56320?(++i,t+=4):t+=3;return t},r.read=function(e,t,r){if(r-t<1)return"";for(var i,o=null,s=[],n=0;t<r;)(i=e[t++])<128?s[n++]=i:i>191&&i<224?s[n++]=(31&i)<<6|63&e[t++]:i>239&&i<365?(i=((7&i)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,s[n++]=55296+(i>>10),s[n++]=56320+(1023&i)):s[n++]=(15&i)<<12|(63&e[t++])<<6|63&e[t++],n>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),n=0);return o?(n&&o.push(String.fromCharCode.apply(String,s.slice(0,n))),o.join("")):String.fromCharCode.apply(String,s.slice(0,n))},r.write=function(e,t,r){for(var i,o,s=r,n=0;n<e.length;++n)(i=e.charCodeAt(n))<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)==55296&&(64512&(o=e.charCodeAt(n+1)))==56320?(i=65536+((1023&i)<<10)+(1023&o),++n,t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128);return r-s}},"./protobufjs/index.js"(e,t,r){e.exports=r("./protobufjs/src/index.js")},"./protobufjs/src/common.js"(e){e.exports=common;var t,r=/\/|\./;function common(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),common[e]=t}common("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),common("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),common("timestamp",{Timestamp:t}),common("empty",{Empty:{fields:{}}}),common("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),common("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),common("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),common.get=function(e){return common[e]||null}},"./protobufjs/src/converter.js"(e,t,r){var i=t,o=r("./protobufjs/src/enum.js"),s=r("./protobufjs/src/util.js");function genValuePartial_fromObject(e,t,r,i){var s=!1;if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(d%s){",i);for(var n=t.resolvedType.values,a=Object.keys(n),f=0;f<a.length;++f)n[a[f]]!==t.typeDefault||s||(e("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',i,i,i),t.repeated||e("break"),s=!0),e("case%j:",a[f])("case %i:",n[a[f]])("m%s=%j",i,n[a[f]])("break");e("}")}else e('if(typeof d%s!=="object")',i)("throw TypeError(%j)",t.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",i,r,i);else{var u=!1;switch(t.type){case"double":case"float":e("m%s=Number(d%s)",i,i);break;case"uint32":case"fixed32":e("m%s=d%s>>>0",i,i);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",i,i);break;case"uint64":u=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",i,i,u)('else if(typeof d%s==="string")',i)("m%s=parseInt(d%s,10)",i,i)('else if(typeof d%s==="number")',i)("m%s=d%s",i,i)('else if(typeof d%s==="object")',i)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",i,i,i,u?"true":"");break;case"bytes":e('if(typeof d%s==="string")',i)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",i,i,i)("else if(d%s.length >= 0)",i)("m%s=d%s",i,i);break;case"string":e("m%s=String(d%s)",i,i);break;case"bool":e("m%s=Boolean(d%s)",i,i)}}return e}function genValuePartial_toObject(e,t,r,i){if(t.resolvedType)t.resolvedType instanceof o?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",i,r,i,i,r,i,i):e("d%s=types[%i].toObject(m%s,o)",i,r,i);else{var s=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",i,i,i,i);break;case"uint64":s=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',i)("d%s=o.longs===String?String(m%s):m%s",i,i,i)("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",i,i,i,i,s?"true":"",i);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",i,i,i,i,i);break;default:e("d%s=m%s",i,i)}}return e}i.fromObject=function(e){var t=e.fieldsArray,r=s.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var i=0;i<t.length;++i){var n=t[i].resolve(),a=s.safeProp(n.name);n.map?(r("if(d%s){",a)('if(typeof d%s!=="object")',a)("throw TypeError(%j)",n.fullName+": object expected")("m%s={}",a)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",a),genValuePartial_fromObject(r,n,i,a+"[ks[i]]")("}")("}")):n.repeated?(r("if(d%s){",a)("if(!Array.isArray(d%s))",a)("throw TypeError(%j)",n.fullName+": array expected")("m%s=[]",a)("for(var i=0;i<d%s.length;++i){",a),genValuePartial_fromObject(r,n,i,a+"[i]")("}")("}")):(n.resolvedType instanceof o||r("if(d%s!=null){",a),genValuePartial_fromObject(r,n,i,a),n.resolvedType instanceof o||r("}"))}return r("return m")},i.toObject=function(e){var t=e.fieldsArray.slice().sort(s.compareFieldsById);if(!t.length)return s.codegen()("return {}");for(var r=s.codegen(["m","o"],e.name+"$toObject")("if(!o)")("o={}")("var d={}"),i=[],n=[],a=[],f=0;f<t.length;++f)t[f].partOf||(t[f].resolve().repeated?i:t[f].map?n:a).push(t[f]);if(i.length){for(r("if(o.arrays||o.defaults){"),f=0;f<i.length;++f)r("d%s=[]",s.safeProp(i[f].name));r("}")}if(n.length){for(r("if(o.objects||o.defaults){"),f=0;f<n.length;++f)r("d%s={}",s.safeProp(n[f].name));r("}")}if(a.length){for(r("if(o.defaults){"),f=0;f<a.length;++f){var u=a[f],l=s.safeProp(u.name);if(u.resolvedType instanceof o)r("d%s=o.enums===String?%j:%j",l,u.resolvedType.valuesById[u.typeDefault],u.typeDefault);else if(u.long)r("if(util.Long){")("var n=new util.Long(%i,%i,%j)",u.typeDefault.low,u.typeDefault.high,u.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",l)("}else")("d%s=o.longs===String?%j:%i",l,u.typeDefault.toString(),u.typeDefault.toNumber());else if(u.bytes){var p="["+Array.prototype.slice.call(u.typeDefault).join(",")+"]";r("if(o.bytes===String)d%s=%j",l,String.fromCharCode.apply(String,u.typeDefault))("else{")("d%s=%s",l,p)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",l,l)("}")}else r("d%s=%j",l,u.typeDefault)}r("}")}var c=!1;for(f=0;f<t.length;++f){var u=t[f],d=e._fieldsArray.indexOf(u),l=s.safeProp(u.name);u.map?(c||(c=!0,r("var ks2")),r("if(m%s&&(ks2=Object.keys(m%s)).length){",l,l)("d%s={}",l)("for(var j=0;j<ks2.length;++j){"),genValuePartial_toObject(r,u,d,l+"[ks2[j]]")("}")):u.repeated?(r("if(m%s&&m%s.length){",l,l)("d%s=[]",l)("for(var j=0;j<m%s.length;++j){",l),genValuePartial_toObject(r,u,d,l+"[j]")("}")):(r("if(m%s!=null&&m.hasOwnProperty(%j)){",l,u.name),genValuePartial_toObject(r,u,d,l),u.partOf&&r("if(o.oneofs)")("d%s=%j",s.safeProp(u.partOf.name),u.name)),r("}")}return r("return d")}},"./protobufjs/src/decoder.js"(e,t,r){e.exports=decoder;var i=r("./protobufjs/src/enum.js"),o=r("./protobufjs/src/types.js"),s=r("./protobufjs/src/util.js");function missing(e){return"missing required '"+e.name+"'"}function decoder(e){for(var t=s.codegen(["r","l","e"],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,value":""))("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){"),r=0;r<e.fieldsArray.length;++r){var n=e._fieldsArray[r].resolve(),a=n.resolvedType instanceof i?"int32":n.type,f="m"+s.safeProp(n.name);t("case %i: {",n.id),n.map?(t("if(%s===util.emptyObject)",f)("%s={}",f)("var c2 = r.uint32()+r.pos"),void 0!==o.defaults[n.keyType]?t("k=%j",o.defaults[n.keyType]):t("k=null"),void 0!==o.defaults[a]?t("value=%j",o.defaults[a]):t("value=null"),t("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",n.keyType)("case 2:"),void 0===o.basic[a]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",a),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==o.long[n.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',f):t("%s[k]=value",f)):n.repeated?(t("if(!(%s&&%s.length))",f,f)("%s=[]",f),void 0!==o.packed[a]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",f,a)("}else"),void 0===o.basic[a]?t(n.delimited?"%s.push(types[%i].decode(r,undefined,((t&~7)|4)))":"%s.push(types[%i].decode(r,r.uint32()))",f,r):t("%s.push(r.%s())",f,a)):void 0===o.basic[a]?t(n.delimited?"%s=types[%i].decode(r,undefined,((t&~7)|4))":"%s=types[%i].decode(r,r.uint32())",f,r):t("%s=r.%s()",f,a),t("break")("}")}for(t("default:")("r.skipType(t&7)")("break")("}")("}"),r=0;r<e._fieldsArray.length;++r){var u=e._fieldsArray[r];u.required&&t("if(!m.hasOwnProperty(%j))",u.name)("throw util.ProtocolError(%j,{instance:m})",missing(u))}return t("return m")}},"./protobufjs/src/encoder.js"(e,t,r){e.exports=encoder;var i=r("./protobufjs/src/enum.js"),o=r("./protobufjs/src/types.js"),s=r("./protobufjs/src/util.js");function genTypePartial(e,t,r,i){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,i,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,i,(t.id<<3|2)>>>0)}function encoder(e){for(var t,r,n=s.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),a=e.fieldsArray.slice().sort(s.compareFieldsById),t=0;t<a.length;++t){var f=a[t].resolve(),u=e._fieldsArray.indexOf(f),l=f.resolvedType instanceof i?"int32":f.type,p=o.basic[l];r="m"+s.safeProp(f.name),f.map?(n("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",r,f.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",r)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(f.id<<3|2)>>>0,8|o.mapKey[f.keyType],f.keyType),void 0===p?n("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",u,r):n(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,l,r),n("}")("}")):f.repeated?(n("if(%s!=null&&%s.length){",r,r),f.packed&&void 0!==o.packed[l]?n("w.uint32(%i).fork()",(f.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",r)("w.%s(%s[i])",l,r)("w.ldelim()"):(n("for(var i=0;i<%s.length;++i)",r),void 0===p?genTypePartial(n,f,u,r+"[i]"):n("w.uint32(%i).%s(%s[i])",(f.id<<3|p)>>>0,l,r)),n("}")):(f.optional&&n("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",r,f.name),void 0===p?genTypePartial(n,f,u,r):n("w.uint32(%i).%s(%s)",(f.id<<3|p)>>>0,l,r))}return n("return w")}},"./protobufjs/src/enum.js"(e,t,r){e.exports=Enum;var i=r("./protobufjs/src/object.js");((Enum.prototype=Object.create(i.prototype)).constructor=Enum).className="Enum";var o=r("./protobufjs/src/namespace.js"),s=r("./protobufjs/src/util.js");function Enum(e,t,r,o,s,n){if(i.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=s||{},this.valuesOptions=n,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),f=0;f<a.length;++f)"number"==typeof t[a[f]]&&(this.valuesById[this.values[a[f]]=t[a[f]]]=a[f])}Enum.prototype._resolveFeatures=function(e){return e=this._edition||e,i.prototype._resolveFeatures.call(this,e),Object.keys(this.values).forEach(e=>{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},Enum.fromJSON=function(e,t){var r=new Enum(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Enum.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return s.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},Enum.prototype.add=function(e,t,r,i){if(!s.isString(e))throw TypeError("name must be a string");if(!s.isInteger(t))throw TypeError("id must be an integer");if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return i&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=i||null),this.comments[e]=r||null,this},Enum.prototype.remove=function(e){if(!s.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},Enum.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},Enum.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},"./protobufjs/src/field.js"(e,t,r){e.exports=Field;var i,o=r("./protobufjs/src/object.js");((Field.prototype=Object.create(o.prototype)).constructor=Field).className="Field";var s=r("./protobufjs/src/enum.js"),n=r("./protobufjs/src/types.js"),a=r("./protobufjs/src/util.js"),f=/^required|optional|repeated$/;function Field(e,t,r,i,s,u,l){if(a.isObject(i)?(l=s,u=i,i=s=void 0):a.isObject(s)&&(l=u,u=s,s=void 0),o.call(this,e,u),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==i&&!f.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==s&&!a.isString(s))throw TypeError("extend must be a string");"proto3_optional"===i&&(i="optional"),this.rule=i&&"optional"!==i?i:void 0,this.type=r,this.id=t,this.extend=s||void 0,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==n.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}Field.fromJSON=function(e,t){var r=new Field(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(Field.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(Field.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(Field.prototype,"delimited",{get:function(){return this.resolvedType instanceof i&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(Field.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(Field.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),Field.prototype.setOption=function(e,t,r){return o.prototype.setOption.call(this,e,t,r)},Field.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},Field.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=n.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof i?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof s&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof s||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof i&&(this.parent.ctor.prototype[this.name]=this.defaultValue),o.prototype.resolve.call(this)},Field.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===n.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof i&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},Field.prototype._resolveFeatures=function(e){return o.prototype._resolveFeatures.call(this,this._edition||e)},Field.d=function(e,t,r,i){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,s){a.decorateType(o.constructor).add(new Field(s,e,t,r,{default:i}))}},Field._configure=function(e){i=e}},"./protobufjs/src/index-light.js"(e,t,r){var i=e.exports=r("./protobufjs/src/index-minimal.js");function load(e,t,r){return"function"==typeof t?(r=t,t=new i.Root):t||(t=new i.Root),t.load(e,r)}function loadSync(e,t){return t||(t=new i.Root),t.loadSync(e)}i.build="light",i.load=load,i.loadSync=loadSync,i.encoder=r("./protobufjs/src/encoder.js"),i.decoder=r("./protobufjs/src/decoder.js"),i.verifier=r("./protobufjs/src/verifier.js"),i.converter=r("./protobufjs/src/converter.js"),i.ReflectionObject=r("./protobufjs/src/object.js"),i.Namespace=r("./protobufjs/src/namespace.js"),i.Root=r("./protobufjs/src/root.js"),i.Enum=r("./protobufjs/src/enum.js"),i.Type=r("./protobufjs/src/type.js"),i.Field=r("./protobufjs/src/field.js"),i.OneOf=r("./protobufjs/src/oneof.js"),i.MapField=r("./protobufjs/src/mapfield.js"),i.Service=r("./protobufjs/src/service.js"),i.Method=r("./protobufjs/src/method.js"),i.Message=r("./protobufjs/src/message.js"),i.wrappers=r("./protobufjs/src/wrappers.js"),i.types=r("./protobufjs/src/types.js"),i.util=r("./protobufjs/src/util.js"),i.ReflectionObject._configure(i.Root),i.Namespace._configure(i.Type,i.Service,i.Enum),i.Root._configure(i.Type),i.Field._configure(i.Type)},"./protobufjs/src/index-minimal.js"(e,t,r){var i=t;function configure(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=r("./protobufjs/src/writer.js"),i.BufferWriter=r("./protobufjs/src/writer_buffer.js"),i.Reader=r("./protobufjs/src/reader.js"),i.BufferReader=r("./protobufjs/src/reader_buffer.js"),i.util=r("./protobufjs/src/util/minimal.js"),i.rpc=r("./protobufjs/src/rpc.js"),i.roots=r("./protobufjs/src/roots.js"),i.configure=configure,configure()},"./protobufjs/src/index.js"(e,t,r){var i=e.exports=r("./protobufjs/src/index-light.js");i.build="full",i.tokenize=r("./protobufjs/src/tokenize.js"),i.parse=r("./protobufjs/src/parse.js"),i.common=r("./protobufjs/src/common.js"),i.Root._configure(i.Type,i.parse,i.common)},"./protobufjs/src/mapfield.js"(e,t,r){e.exports=MapField;var i=r("./protobufjs/src/field.js");((MapField.prototype=Object.create(i.prototype)).constructor=MapField).className="MapField";var o=r("./protobufjs/src/types.js"),s=r("./protobufjs/src/util.js");function MapField(e,t,r,o,n,a){if(i.call(this,e,t,o,void 0,void 0,n,a),!s.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}MapField.fromJSON=function(e,t){return new MapField(e,t.id,t.keyType,t.type,t.options,t.comment)},MapField.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return s.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},MapField.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return i.prototype.resolve.call(this)},MapField.d=function(e,t,r){return"function"==typeof r?r=s.decorateType(r).name:r&&"object"==typeof r&&(r=s.decorateEnum(r).name),function(i,o){s.decorateType(i.constructor).add(new MapField(o,e,t,r))}}},"./protobufjs/src/message.js"(e,t,r){e.exports=Message;var i=r("./protobufjs/src/util/minimal.js");function Message(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)this[t[r]]=e[t[r]]}Message.create=function(e){return this.$type.create(e)},Message.encode=function(e,t){return this.$type.encode(e,t)},Message.encodeDelimited=function(e,t){return this.$type.encodeDelimited(e,t)},Message.decode=function(e){return this.$type.decode(e)},Message.decodeDelimited=function(e){return this.$type.decodeDelimited(e)},Message.verify=function(e){return this.$type.verify(e)},Message.fromObject=function(e){return this.$type.fromObject(e)},Message.toObject=function(e,t){return this.$type.toObject(e,t)},Message.prototype.toJSON=function(){return this.$type.toObject(this,i.toJSONOptions)}},"./protobufjs/src/method.js"(e,t,r){e.exports=Method;var i=r("./protobufjs/src/object.js");((Method.prototype=Object.create(i.prototype)).constructor=Method).className="Method";var o=r("./protobufjs/src/util.js");function Method(e,t,r,s,n,a,f,u,l){if(o.isObject(n)?(f=n,n=a=void 0):o.isObject(a)&&(f=a,a=void 0),!(void 0===t||o.isString(t)))throw TypeError("type must be a string");if(!o.isString(r))throw TypeError("requestType must be a string");if(!o.isString(s))throw TypeError("responseType must be a string");i.call(this,e,f),this.type=t||"rpc",this.requestType=r,this.requestStream=!!n||void 0,this.responseType=s,this.responseStream=!!a||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=u,this.parsedOptions=l}Method.fromJSON=function(e,t){return new Method(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},Method.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return o.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0,"parsedOptions",this.parsedOptions])},Method.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),i.prototype.resolve.call(this))}},"./protobufjs/src/namespace.js"(e,t,r){e.exports=Namespace;var i,o,s,n=r("./protobufjs/src/object.js");((Namespace.prototype=Object.create(n.prototype)).constructor=Namespace).className="Namespace";var a=r("./protobufjs/src/field.js"),f=r("./protobufjs/src/util.js"),u=r("./protobufjs/src/oneof.js");function arrayToJSON(e,t){if(e&&e.length){for(var r={},i=0;i<e.length;++i)r[e[i].name]=e[i].toJSON(t);return r}}function Namespace(e,t){n.call(this,e,t),this.nested=void 0,this._nestedArray=null,this._lookupCache={},this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}function clearCache(e){e._nestedArray=null,e._lookupCache={};for(var t=e;t=t.parent;)t._lookupCache={};return e}Namespace.fromJSON=function(e,t){return new Namespace(e,t.options).addJSON(t.nested)},Namespace.arrayToJSON=arrayToJSON,Namespace.isReservedId=function(e,t){if(e){for(var r=0;r<e.length;++r)if("string"!=typeof e[r]&&e[r][0]<=t&&e[r][1]>t)return!0}return!1},Namespace.isReservedName=function(e,t){if(e){for(var r=0;r<e.length;++r)if(e[r]===t)return!0}return!1},Object.defineProperty(Namespace.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=f.toArray(this.nested))}}),Namespace.prototype.toJSON=function(e){return f.toObject(["options",this.options,"nested",arrayToJSON(this.nestedArray,e)])},Namespace.prototype.addJSON=function(e){var t=this;if(e)for(var r,n=Object.keys(e),f=0;f<n.length;++f)r=e[n[f]],t.add((void 0!==r.fields?i.fromJSON:void 0!==r.values?s.fromJSON:void 0!==r.methods?o.fromJSON:void 0!==r.id?a.fromJSON:Namespace.fromJSON)(n[f],r));return this},Namespace.prototype.get=function(e){return this.nested&&this.nested[e]||null},Namespace.prototype.getEnum=function(e){if(this.nested&&this.nested[e]instanceof s)return this.nested[e].values;throw Error("no such enum: "+e)},Namespace.prototype.add=function(e){if(!(e instanceof a&&void 0!==e.extend||e instanceof i||e instanceof u||e instanceof s||e instanceof o||e instanceof Namespace))throw TypeError("object must be a valid nested object");if(this.nested){var t=this.get(e.name);if(t)if(t instanceof Namespace&&e instanceof Namespace&&!(t instanceof i||t instanceof o)){for(var r=t.nestedArray,n=0;n<r.length;++n)e.add(r[n]);this.remove(t),this.nested||(this.nested={}),e.setOptions(t.options,!0)}else throw Error("duplicate name '"+e.name+"' in "+this)}else this.nested={};this.nested[e.name]=e,this instanceof i||this instanceof o||this instanceof s||this instanceof a||e._edition||(e._edition=e._defaultEdition),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;for(var f=this;f=f.parent;)f._needsRecursiveFeatureResolution=!0,f._needsRecursiveResolve=!0;return e.onAdd(this),clearCache(this)},Namespace.prototype.remove=function(e){if(!(e instanceof n))throw TypeError("object must be a ReflectionObject");if(e.parent!==this)throw Error(e+" is not a member of "+this);return delete this.nested[e.name],Object.keys(this.nested).length||(this.nested=void 0),e.onRemove(this),clearCache(this)},Namespace.prototype.define=function(e,t){if(f.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 r=this;e.length>0;){var i=e.shift();if(r.nested&&r.nested[i]){if(!((r=r.nested[i])instanceof Namespace))throw Error("path conflicts with non-namespace objects")}else r.add(r=new Namespace(i))}return t&&r.addJSON(t),r},Namespace.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t<e.length;)e[t]instanceof Namespace?e[t++].resolveAll():e[t++].resolve();return this._needsRecursiveResolve=!1,this},Namespace.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(this._needsRecursiveFeatureResolution=!1,e=this._edition||e,n.prototype._resolveFeaturesRecursive.call(this,e),this.nestedArray.forEach(t=>{t._resolveFeaturesRecursive(e)})),this},Namespace.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),f.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var i=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+i];if(o&&(!t||t.indexOf(o.constructor)>-1)||(o=this._lookupImpl(e,i))&&(!t||t.indexOf(o.constructor)>-1))return o;if(r)return null;for(var s=this;s.parent;){if((o=s.parent._lookupImpl(e,i))&&(!t||t.indexOf(o.constructor)>-1))return o;s=s.parent}return null},Namespace.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),i=null;if(r)1===e.length?i=r:r instanceof Namespace&&(e=e.slice(1),i=r._lookupImpl(e,e.join(".")));else for(var o=0;o<this.nestedArray.length;++o)this._nestedArray[o]instanceof Namespace&&(r=this._nestedArray[o]._lookupImpl(e,t))&&(i=r);return this._lookupCache[t]=i,i},Namespace.prototype.lookupType=function(e){var t=this.lookup(e,[i]);if(!t)throw Error("no such type: "+e);return t},Namespace.prototype.lookupEnum=function(e){var t=this.lookup(e,[s]);if(!t)throw Error("no such Enum '"+e+"' in "+this);return t},Namespace.prototype.lookupTypeOrEnum=function(e){var t=this.lookup(e,[i,s]);if(!t)throw Error("no such Type or Enum '"+e+"' in "+this);return t},Namespace.prototype.lookupService=function(e){var t=this.lookup(e,[o]);if(!t)throw Error("no such Service '"+e+"' in "+this);return t},Namespace._configure=function(e,t,r){i=e,o=t,s=r}},"./protobufjs/src/object.js"(e,t,r){e.exports=ReflectionObject,ReflectionObject.className="ReflectionObject";let i=r("./protobufjs/src/oneof.js");var o,s=r("./protobufjs/src/util.js"),n={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE2024",default_symbol_visibility:"EXPORT_TOP_LEVEL"},a={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"},f={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"},u={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"};function ReflectionObject(e,t){if(!s.isString(e))throw TypeError("name must be a string");if(t&&!s.isObject(t))throw TypeError("options must be an object");this.options=t,this.parsedOptions=null,this.name=e,this._edition=null,this._defaultEdition="proto2",this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(ReflectionObject.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),ReflectionObject.prototype.toJSON=function(){throw Error()},ReflectionObject.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof o&&t._handleAdd(this)},ReflectionObject.prototype.onRemove=function(e){var t=e.root;t instanceof o&&t._handleRemove(this),this.parent=null,this.resolved=!1},ReflectionObject.prototype.resolve=function(){return this.resolved||this.root instanceof o&&(this.resolved=!0),this},ReflectionObject.prototype._resolveFeaturesRecursive=function(e){return this._resolveFeatures(this._edition||e)},ReflectionObject.prototype._resolveFeatures=function(e){if(!this._featuresResolved){var t={};if(!e)throw Error("Unknown edition for "+this.fullName);var r=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures(e));if(this._edition){if("proto2"===e)t=Object.assign({},f);else if("proto3"===e)t=Object.assign({},u);else if("2023"===e)t=Object.assign({},a);else if("2024"===e)t=Object.assign({},n);else throw Error("Unknown edition: "+e);this._features=Object.assign(t,r||{}),this._featuresResolved=!0;return}if(this.partOf instanceof i){var o=Object.assign({},this.partOf._features);this._features=Object.assign(o,r||{})}else if(this.declaringField);else if(this.parent){var s=Object.assign({},this.parent._features);this._features=Object.assign(s,r||{})}else throw Error("Unable to find a parent for "+this.fullName);this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},ReflectionObject.prototype._inferLegacyProtoFeatures=function(){return{}},ReflectionObject.prototype.getOption=function(e){if(this.options)return this.options[e]},ReflectionObject.prototype.setOption=function(e,t,r){return this.options||(this.options={}),/^features\./.test(e)?s.setProperty(this.options,e,t,r):r&&void 0!==this.options[e]||(this.getOption(e)!==t&&(this.resolved=!1),this.options[e]=t),this},ReflectionObject.prototype.setParsedOption=function(e,t,r){this.parsedOptions||(this.parsedOptions=[]);var i=this.parsedOptions;if(r){var o=i.find(function(t){return Object.prototype.hasOwnProperty.call(t,e)});if(o){var n=o[e];s.setProperty(n,r,t)}else(o={})[e]=s.setProperty({},r,t),i.push(o)}else{var a={};a[e]=t,i.push(a)}return this},ReflectionObject.prototype.setOptions=function(e,t){if(e)for(var r=Object.keys(e),i=0;i<r.length;++i)this.setOption(r[i],e[r[i]],t);return this},ReflectionObject.prototype.toString=function(){var e=this.constructor.className,t=this.fullName;return t.length?e+" "+t:e},ReflectionObject.prototype._editionToJSON=function(){if(this._edition&&"proto3"!==this._edition)return this._edition},ReflectionObject._configure=function(e){o=e}},"./protobufjs/src/oneof.js"(e,t,r){e.exports=OneOf;var i=r("./protobufjs/src/object.js");((OneOf.prototype=Object.create(i.prototype)).constructor=OneOf).className="OneOf";var o=r("./protobufjs/src/field.js"),s=r("./protobufjs/src/util.js");function OneOf(e,t,r,o){if(Array.isArray(t)||(r=t,t=void 0),i.call(this,e,r),!(void 0===t||Array.isArray(t)))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=o}function addFieldsToParent(e){if(e.parent)for(var t=0;t<e.fieldsArray.length;++t)e.fieldsArray[t].parent||e.parent.add(e.fieldsArray[t])}OneOf.fromJSON=function(e,t){return new OneOf(e,t.oneof,t.options,t.comment)},OneOf.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return s.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:void 0])},OneOf.prototype.add=function(e){if(!(e instanceof o))throw TypeError("field must be a Field");return e.parent&&e.parent!==this.parent&&e.parent.remove(e),this.oneof.push(e.name),this.fieldsArray.push(e),e.partOf=this,addFieldsToParent(this),this},OneOf.prototype.remove=function(e){if(!(e instanceof o))throw TypeError("field must be a Field");var t=this.fieldsArray.indexOf(e);if(t<0)throw Error(e+" is not a member of "+this);return this.fieldsArray.splice(t,1),(t=this.oneof.indexOf(e.name))>-1&&this.oneof.splice(t,1),e.partOf=null,this},OneOf.prototype.onAdd=function(e){i.prototype.onAdd.call(this,e);for(var t=this,r=0;r<this.oneof.length;++r){var o=e.get(this.oneof[r]);o&&!o.partOf&&(o.partOf=t,t.fieldsArray.push(o))}addFieldsToParent(this)},OneOf.prototype.onRemove=function(e){for(var t,r=0;r<this.fieldsArray.length;++r)(t=this.fieldsArray[r]).parent&&t.parent.remove(t);i.prototype.onRemove.call(this,e)},Object.defineProperty(OneOf.prototype,"isProto3Optional",{get:function(){if(null==this.fieldsArray||1!==this.fieldsArray.length)return!1;var e=this.fieldsArray[0];return null!=e.options&&!0===e.options.proto3_optional}}),OneOf.d=function(){for(var e=Array(arguments.length),t=0;t<arguments.length;)e[t]=arguments[t++];return function(t,r){s.decorateType(t.constructor).add(new OneOf(r,e)),Object.defineProperty(t,r,{get:s.oneOfGetter(e),set:s.oneOfSetter(e)})}}},"./protobufjs/src/parse.js"(e,t,r){e.exports=parse,parse.filename=null,parse.defaults={keepCase:!1};var i=r("./protobufjs/src/tokenize.js"),o=r("./protobufjs/src/root.js"),s=r("./protobufjs/src/type.js"),n=r("./protobufjs/src/field.js"),a=r("./protobufjs/src/mapfield.js"),f=r("./protobufjs/src/oneof.js"),u=r("./protobufjs/src/enum.js"),l=r("./protobufjs/src/service.js"),p=r("./protobufjs/src/method.js"),c=r("./protobufjs/src/object.js"),d=r("./protobufjs/src/types.js"),h=r("./protobufjs/src/util.js"),y=/^[1-9][0-9]*$/,m=/^-?[1-9][0-9]*$/,v=/^0[x][0-9a-fA-F]+$/,b=/^-?0[x][0-9a-fA-F]+$/,g=/^0[0-7]+$/,j=/^-?0[0-7]+$/,O=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,_=/^[a-zA-Z_][a-zA-Z_0-9]*$/,w=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/;function parse(e,t,r){t instanceof o||(r=t,t=new o),r||(r=parse.defaults);var k,E,x,A,S=r.preferTrailingComment||!1,R=i(e,r.alternateCommentMode||!1),T=R.next,N=R.push,F=R.peek,B=R.skip,L=R.cmnt,I=!0,P="proto2",C=t,D=[],V={},M=r.keepCase?function(e){return e}:h.camelCase;function resolveFileFeatures(){D.forEach(e=>{e._edition=P,Object.keys(V).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,V[t],!0)})})}function illegal(e,t,r){var i=parse.filename;return r||(parse.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(i?i+", ":"")+"line "+R.line+")")}function readString(){var e,t=[];do{if('"'!==(e=T())&&"'"!==e)throw illegal(e);t.push(T()),B(e),e=F()}while('"'===e||"'"===e);return t.join("")}function readValue(e){var t=T();switch(t){case"'":case'"':return N(t),readString();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return parseNumber(t,!0)}catch(r){if(e&&w.test(t))return t;throw illegal(t,"value")}}function readRanges(e,t){do if(t&&('"'===(r=F())||"'"===r)){var r,i,o=readString();if(e.push(o),P>=2023)throw illegal(o,"id")}else try{e.push([i=parseId(T()),B("to",!0)?parseId(T()):i])}catch(i){if(t&&w.test(r)&&P>=2023)e.push(r);else throw i}while(B(",",!0));var s={options:void 0};s.setOption=function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t},ifBlock(s,function(e){if("option"===e)parseOption(s,e),B(";");else throw illegal(e)},function(){parseInlineOptions(s)})}function parseNumber(e,t){var r=1;switch("-"===e.charAt(0)&&(r=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return 1/0*r;case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(y.test(e))return r*parseInt(e,10);if(v.test(e))return r*parseInt(e,16);if(g.test(e))return r*parseInt(e,8);if(O.test(e))return r*parseFloat(e);throw illegal(e,"number",t)}function parseId(e,t){switch(e){case"max":case"MAX":case"Max":return 0x1fffffff;case"0":return 0}if(!t&&"-"===e.charAt(0))throw illegal(e,"id");if(m.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(j.test(e))return parseInt(e,8);throw illegal(e,"id")}function parsePackage(){if(void 0!==E)throw illegal("package");if(E=T(),!w.test(E))throw illegal(E,"name");C=C.define(E),B(";")}function parseImport(){var e,t=F();switch(t){case"option":if(P<"2024")throw illegal("option");T(),readString(),B(";");return;case"weak":e=A||(A=[]),T();break;case"public":T();default:e=x||(x=[])}t=readString(),B(";"),e.push(t)}function parseSyntax(){if(B("="),(P=readString())<2023)throw illegal(P,"syntax");B(";")}function parseEdition(){if(B("="),!["2023","2024"].includes(P=readString()))throw illegal(P,"edition");B(";")}function parseCommon(e,t){switch(t){case"option":return parseOption(e,t),B(";"),!0;case"message":return parseType(e,t),!0;case"enum":return parseEnum(e,t),!0;case"export":case"local":if(P<"2024"||"export"===(t=T())||"local"===t||"message"!==t&&"enum"!==t)break;return parseCommon(e,t);case"service":return parseService(e,t),!0;case"extend":return parseExtension(e,t),!0}return!1}function ifBlock(e,t,r){var i,o=R.line;if(e&&("string"!=typeof e.comment&&(e.comment=L()),e.filename=parse.filename),B("{",!0)){for(;"}"!==(i=T());)t(i);B(";",!0)}else r&&r(),B(";"),e&&("string"!=typeof e.comment||S)&&(e.comment=L(o)||e.comment)}function parseType(e,t){if(!_.test(t=T()))throw illegal(t,"type name");var r=new s(t);ifBlock(r,function(e){if(!parseCommon(r,e))switch(e){case"map":parseMapField(r,e);break;case"required":if("proto2"!==P)throw illegal(e);case"repeated":parseField(r,e);break;case"optional":if("proto3"===P)parseField(r,"proto3_optional");else if("proto2"!==P)throw illegal(e);else parseField(r,"optional");break;case"oneof":parseOneOf(r,e);break;case"extensions":readRanges(r.extensions||(r.extensions=[]));break;case"reserved":readRanges(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===P||!w.test(e))throw illegal(e);N(e),parseField(r,"optional")}}),e.add(r),e===C&&D.push(r)}function parseField(e,t,r){var i=T();if("group"===i)return void parseGroup(e,t);for(;i.endsWith(".")||F().startsWith(".");)i+=T();if(!w.test(i))throw illegal(i,"type");var o=T();if(!_.test(o))throw illegal(o,"name");o=M(o),B("=");var s=new n(o,parseId(T()),i,t,r);if(ifBlock(s,function(e){if("option"===e)parseOption(s,e),B(";");else throw illegal(e)},function(){parseInlineOptions(s)}),"proto3_optional"===t){var a=new f("_"+o);s.setOption("proto3_optional",!0),a.add(s),e.add(a)}else e.add(s);e===C&&D.push(s)}function parseGroup(e,t){if(P>=2023)throw illegal("group");var r=T();if(!_.test(r))throw illegal(r,"name");var i=h.lcFirst(r);r===i&&(r=h.ucFirst(r)),B("=");var o=parseId(T()),a=new s(r);a.group=!0;var f=new n(i,o,r,t);f.filename=parse.filename,ifBlock(a,function(e){switch(e){case"option":parseOption(a,e),B(";");break;case"required":case"repeated":parseField(a,e);break;case"optional":"proto3"===P?parseField(a,"proto3_optional"):parseField(a,"optional");break;case"message":parseType(a,e);break;case"enum":parseEnum(a,e);break;case"reserved":readRanges(a.reserved||(a.reserved=[]),!0);break;case"export":case"local":if(P<"2024")throw illegal(e);switch(e=T()){case"message":case"enum":parseType(a,e);break;default:throw illegal(e)}break;default:throw illegal(e)}}),e.add(a).add(f)}function parseMapField(e){B("<");var t=T();if(void 0===d.mapKey[t])throw illegal(t,"type");B(",");var r=T();if(!w.test(r))throw illegal(r,"type");B(">");var i=T();if(!_.test(i))throw illegal(i,"name");B("=");var o=new a(M(i),parseId(T()),t,r);ifBlock(o,function(e){if("option"===e)parseOption(o,e),B(";");else throw illegal(e)},function(){parseInlineOptions(o)}),e.add(o)}function parseOneOf(e,t){if(!_.test(t=T()))throw illegal(t,"name");var r=new f(M(t));ifBlock(r,function(e){"option"===e?(parseOption(r,e),B(";")):(N(e),parseField(r,"optional"))}),e.add(r)}function parseEnum(e,t){if(!_.test(t=T()))throw illegal(t,"name");var r=new u(t);ifBlock(r,function(e){switch(e){case"option":parseOption(r,e),B(";");break;case"reserved":readRanges(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:parseEnumValue(r,e)}}),e.add(r),e===C&&D.push(r)}function parseEnumValue(e,t){if(!_.test(t))throw illegal(t,"name");B("=");var r=parseId(T(),!0),i={options:void 0};i.getOption=function(e){return this.options[e]},i.setOption=function(e,t){c.prototype.setOption.call(i,e,t)},i.setParsedOption=function(){},ifBlock(i,function(e){if("option"===e)parseOption(i,e),B(";");else throw illegal(e)},function(){parseInlineOptions(i)}),e.add(t,r,i.comment,i.parsedOptions||i.options)}function parseOption(e,t){var r,i,o=!0;for("option"===t&&(t=T());"="!==t;){if("("===t){var s=T();B(")"),t="("+s+")"}if(o){if(o=!1,t.includes(".")&&!t.includes("(")){var n=t.split(".");r=n[0]+".",t=n[1];continue}r=t}else i=i?i+=t:t;t=T()}var a=parseOptionValue(e,i?r.concat(i):r);i=i&&"."===i[0]?i.slice(1):i,setParsedOption(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,i)}function parseOptionValue(e,t){if(B("{",!0)){for(var r={};!B("}",!0);){if(!_.test(k=T()))throw illegal(k,"name");if(null===k)throw illegal(k,"end of input");var i,o,s=k;if(B(":",!0),"{"===F())i=parseOptionValue(e,t+"."+k);else if("["===F()){if(i=[],B("[",!0)){do o=readValue(!0),i.push(o);while(B(",",!0));B("]"),void 0!==o&&setOption(e,t+"."+k,o)}}else i=readValue(!0),setOption(e,t+"."+k,i);var n=r[s];n&&(i=[].concat(n).concat(i)),r[s]=i,B(",",!0),B(";",!0)}return r}var a=readValue(!0);return setOption(e,t,a),a}function setOption(e,t,r){if(C===e&&/^features\./.test(t)){V[t]=r;return}e.setOption&&e.setOption(t,r)}function setParsedOption(e,t,r,i){e.setParsedOption&&e.setParsedOption(t,r,i)}function parseInlineOptions(e){if(B("[",!0)){do parseOption(e,"option");while(B(",",!0));B("]")}return e}function parseService(e,t){if(!_.test(t=T()))throw illegal(t,"service name");var r=new l(t);ifBlock(r,function(e){if(!parseCommon(r,e))if("rpc"===e)parseMethod(r,e);else throw illegal(e)}),e.add(r),e===C&&D.push(r)}function parseMethod(e,t){var r=L(),i=t;if(!_.test(t=T()))throw illegal(t,"name");var o,s,n,a,f=t;if(B("("),B("stream",!0)&&(s=!0),!w.test(t=T())||(o=t,B(")"),B("returns"),B("("),B("stream",!0)&&(a=!0),!w.test(t=T())))throw illegal(t);n=t,B(")");var u=new p(f,i,o,n,s,a);u.comment=r,ifBlock(u,function(e){if("option"===e)parseOption(u,e),B(";");else throw illegal(e)}),e.add(u)}function parseExtension(e,t){if(!w.test(t=T()))throw illegal(t,"reference");var r=t;ifBlock(null,function(t){switch(t){case"required":case"repeated":parseField(e,t,r);break;case"optional":"proto3"===P?parseField(e,"proto3_optional",r):parseField(e,"optional",r);break;default:if("proto2"===P||!w.test(t))throw illegal(t);N(t),parseField(e,"optional",r)}})}for(;null!==(k=T());)switch(k){case"package":if(!I)throw illegal(k);parsePackage();break;case"import":if(!I)throw illegal(k);parseImport();break;case"syntax":if(!I)throw illegal(k);parseSyntax();break;case"edition":if(!I)throw illegal(k);parseEdition();break;case"option":parseOption(C,k),B(";",!0);break;default:if(parseCommon(C,k)){I=!1;continue}throw illegal(k)}return resolveFileFeatures(),parse.filename=null,{package:E,imports:x,weakImports:A,root:t}}},"./protobufjs/src/reader.js"(e,t,r){e.exports=Reader;var i,o=r("./protobufjs/src/util/minimal.js"),s=o.LongBits,n=o.utf8;function indexOutOfRange(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function Reader(e){this.buf=e,this.pos=0,this.len=e.length}var a="u">typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new Reader(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new Reader(e);throw Error("illegal buffer")},create=function(){return o.Buffer?function(e){return(Reader.create=function(e){return o.Buffer.isBuffer(e)?new i(e):a(e)})(e)}:a};function readLongVarint(){var e=new s(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw indexOutOfRange(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw indexOutOfRange(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function readFixed32_end(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new s(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader.create=create(),Reader.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,Reader.prototype.uint32=function(){var e=0xffffffff;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(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,indexOutOfRange(this,10);return e}}(),Reader.prototype.int32=function(){return 0|this.uint32()},Reader.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},Reader.prototype.bool=function(){return 0!==this.uint32()},Reader.prototype.fixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.sfixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return 0|readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.float=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},Reader.prototype.double=function(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},Reader.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw indexOutOfRange(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var i=o.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},Reader.prototype.string=function(){var e=this.bytes();return n.read(e,0,e.length)},Reader.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw indexOutOfRange(this,e);this.pos+=e}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(128&this.buf[this.pos++]);return this},Reader.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(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},Reader._configure=function(e){i=e,Reader.create=create(),i._configure();var t=o.Long?"toLong":"toNumber";o.merge(Reader.prototype,{int64:function(){return readLongVarint.call(this)[t](!1)},uint64:function(){return readLongVarint.call(this)[t](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[t](!1)},fixed64:function(){return readFixed64.call(this)[t](!0)},sfixed64:function(){return readFixed64.call(this)[t](!1)}})}},"./protobufjs/src/reader_buffer.js"(e,t,r){e.exports=BufferReader;var i=r("./protobufjs/src/reader.js");(BufferReader.prototype=Object.create(i.prototype)).constructor=BufferReader;var o=r("./protobufjs/src/util/minimal.js");function BufferReader(e){i.call(this,e)}BufferReader._configure=function(){o.Buffer&&(BufferReader.prototype._slice=o.Buffer.prototype.slice)},BufferReader.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},BufferReader._configure()},"./protobufjs/src/root.js"(e,t,r){e.exports=Root;var i,o,s,n=r("./protobufjs/src/namespace.js");((Root.prototype=Object.create(n.prototype)).constructor=Root).className="Root";var a=r("./protobufjs/src/field.js"),f=r("./protobufjs/src/enum.js"),u=r("./protobufjs/src/oneof.js"),l=r("./protobufjs/src/util.js");function Root(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function SYNC(){}Root.fromJSON=function(e,t){return t||(t=new Root),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},Root.prototype.resolvePath=l.path.resolve,Root.prototype.fetch=l.fetch,Root.prototype.load=function load(e,t,r){"function"==typeof t&&(r=t,t=void 0);var i=this;if(!r)return l.asPromise(load,i,e,t);var n=r===SYNC;function finish(e,t){if(r){if(n)throw e;t&&t.resolveAll();var i=r;r=null,i(e,t)}}function getBundledFileName(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function process(e,r){try{if(l.isString(r)&&"{"===r.charAt(0)&&(r=JSON.parse(r)),l.isString(r)){o.filename=e;var s,f=o(r,i,t),u=0;if(f.imports)for(;u<f.imports.length;++u)(s=getBundledFileName(f.imports[u])||i.resolvePath(e,f.imports[u]))&&fetch(s);if(f.weakImports)for(u=0;u<f.weakImports.length;++u)(s=getBundledFileName(f.weakImports[u])||i.resolvePath(e,f.weakImports[u]))&&fetch(s,!0)}else i.setOptions(r.options).addJSON(r.nested)}catch(e){finish(e)}n||a||finish(null,i)}function fetch(e,t){if(e=getBundledFileName(e)||e,!(i.files.indexOf(e)>-1)){if(i.files.push(e),e in s)return void(n?process(e,s[e]):(++a,setTimeout(function(){--a,process(e,s[e])})));if(n){var o;try{o=l.fs.readFileSync(e).toString("utf8")}catch(e){t||finish(e);return}process(e,o)}else++a,i.fetch(e,function(o,s){if(--a,r){if(o)return void(t?a||finish(null,i):finish(o));process(e,s)}})}}var a=0;l.isString(e)&&(e=[e]);for(var f,u=0;u<e.length;++u)(f=i.resolvePath("",e[u]))&&fetch(f);return n?i.resolveAll():a||finish(null,i),i},Root.prototype.loadSync=function(e,t){if(!l.isNode)throw Error("not supported");return this.load(e,t,SYNC)},Root.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(e){return"'extend "+e.extend+"' in "+e.parent.fullName}).join(", "));return n.prototype.resolveAll.call(this)};var p=/^[A-Z]/;function tryHandleExtension(e,t){var r=t.parent.lookup(t.extend);if(r){var i=new a(t.fullName,t.id,t.type,t.rule,void 0,t.options);return!!r.get(i.name)||(i.declaringField=t,t.extensionField=i,r.add(i),!0)}return!1}Root.prototype._handleAdd=function(e){if(e instanceof a)void 0===e.extend||e.extensionField||tryHandleExtension(this,e)||this.deferred.push(e);else if(e instanceof f)p.test(e.name)&&(e.parent[e.name]=e.values);else if(!(e instanceof u)){if(e instanceof i)for(var t=0;t<this.deferred.length;)tryHandleExtension(this,this.deferred[t])?this.deferred.splice(t,1):++t;for(var r=0;r<e.nestedArray.length;++r)this._handleAdd(e._nestedArray[r]);p.test(e.name)&&(e.parent[e.name]=e)}(e instanceof i||e instanceof f||e instanceof a)&&(this._fullyQualifiedObjects[e.fullName]=e)},Root.prototype._handleRemove=function(e){if(e instanceof a){if(void 0!==e.extend)if(e.extensionField)e.extensionField.parent.remove(e.extensionField),e.extensionField=null;else{var t=this.deferred.indexOf(e);t>-1&&this.deferred.splice(t,1)}}else if(e instanceof f)p.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r<e.nestedArray.length;++r)this._handleRemove(e._nestedArray[r]);p.test(e.name)&&delete e.parent[e.name]}delete this._fullyQualifiedObjects[e.fullName]},Root._configure=function(e,t,r){i=e,o=t,s=r}},"./protobufjs/src/roots.js"(e){e.exports={}},"./protobufjs/src/rpc.js"(e,t,r){t.Service=r("./protobufjs/src/rpc/service.js")},"./protobufjs/src/rpc/service.js"(e,t,r){e.exports=Service;var i=r("./protobufjs/src/util/minimal.js");function Service(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!r}(Service.prototype=Object.create(i.EventEmitter.prototype)).constructor=Service,Service.prototype.rpcCall=function rpcCall(e,t,r,o,s){if(!o)throw TypeError("request must be specified");var n=this;if(!s)return i.asPromise(rpcCall,n,e,t,r,o);if(!n.rpcImpl)return void setTimeout(function(){s(Error("already ended"))},0);try{return n.rpcImpl(e,t[n.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(t,i){if(t)return n.emit("error",t,e),s(t);if(null===i)return void n.end(!0);if(!(i instanceof r))try{i=r[n.responseDelimited?"decodeDelimited":"decode"](i)}catch(t){return n.emit("error",t,e),s(t)}return n.emit("data",i,e),s(null,i)})}catch(t){n.emit("error",t,e),setTimeout(function(){s(t)},0);return}},Service.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},"./protobufjs/src/service.js"(e,t,r){e.exports=Service;var i=r("./protobufjs/src/namespace.js");((Service.prototype=Object.create(i.prototype)).constructor=Service).className="Service";var o=r("./protobufjs/src/method.js"),s=r("./protobufjs/src/util.js"),n=r("./protobufjs/src/rpc.js");function Service(e,t){i.call(this,e,t),this.methods={},this._methodsArray=null}function clearCache(e){return e._methodsArray=null,e}Service.fromJSON=function(e,t){var r=new Service(e,t.options);if(t.methods)for(var i=Object.keys(t.methods),s=0;s<i.length;++s)r.add(o.fromJSON(i[s],t.methods[i[s]]));return t.nested&&r.addJSON(t.nested),t.edition&&(r._edition=t.edition),r.comment=t.comment,r._defaultEdition="proto3",r},Service.prototype.toJSON=function(e){var t=i.prototype.toJSON.call(this,e),r=!!e&&!!e.keepComments;return s.toObject(["edition",this._editionToJSON(),"options",t&&t.options||void 0,"methods",i.arrayToJSON(this.methodsArray,e)||{},"nested",t&&t.nested||void 0,"comment",r?this.comment:void 0])},Object.defineProperty(Service.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=s.toArray(this.methods))}}),Service.prototype.get=function(e){return this.methods[e]||i.prototype.get.call(this,e)},Service.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;i.prototype.resolve.call(this);for(var e=this.methodsArray,t=0;t<e.length;++t)e[t].resolve();return this},Service.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(e=this._edition||e,i.prototype._resolveFeaturesRecursive.call(this,e),this.methodsArray.forEach(t=>{t._resolveFeaturesRecursive(e)})),this},Service.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?(this.methods[e.name]=e,e.parent=this,clearCache(this)):i.prototype.add.call(this,e)},Service.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,clearCache(this)}return i.prototype.remove.call(this,e)},Service.prototype.create=function(e,t,r){for(var i,o=new n.Service(e,t,r),a=0;a<this.methodsArray.length;++a){var f=s.lcFirst((i=this._methodsArray[a]).resolve().name).replace(/[^$\w_]/g,"");o[f]=s.codegen(["r","c"],s.isReserved(f)?f+"_":f)("return this.rpcCall(m,q,s,r,c)")({m:i,q:i.resolvedRequestType.ctor,s:i.resolvedResponseType.ctor})}return o}},"./protobufjs/src/tokenize.js"(e){e.exports=tokenize;var t=/[\s{}=;:[\],'"()<>]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,i=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,s=/^\s*\*?\/*/,n=/\n/g,a=/\s/,f=/\\(.?)/g,u={0:"\0",r:"\r",n:"\n",t:" "};function unescape(e){return e.replace(f,function(e,t){switch(t){case"\\":case"":return t;default:return u[t]||""}})}function tokenize(e,f){e=e.toString();var u=0,l=e.length,p=1,c=0,d={},h=[],y=null;function illegal(e){return Error("illegal "+e+" (line "+p+")")}function readString(){var t="'"===y?i:r;t.lastIndex=u-1;var o=t.exec(e);if(!o)throw illegal("string");return u=t.lastIndex,push(y),y=null,unescape(o[1])}function charAt(t){return e.charAt(t)}function setComment(t,r,i){var a,u={type:e.charAt(t++),lineEmpty:!1,leading:i},l=t-(f?2:3);do if(--l<0||"\n"===(a=e.charAt(l))){u.lineEmpty=!0;break}while(" "===a||" "===a);for(var h=e.substring(t,r).split(n),y=0;y<h.length;++y)h[y]=h[y].replace(f?s:o,"").trim();u.text=h.join("\n").trim(),d[p]=u,c=p}function isDoubleSlashCommentLine(t){var r=findEndOfLine(t),i=e.substring(t,r);return/^\s*\/\//.test(i)}function findEndOfLine(e){for(var t=e;t<l&&"\n"!==charAt(t);)t++;return t}function next(){if(h.length>0)return h.shift();if(y)return readString();var r,i,o,s,n,c=0===u;do{if(u===l)return null;for(r=!1;a.test(o=charAt(u));)if("\n"===o&&(c=!0,++p),++u===l)return null;if("/"===charAt(u)){if(++u===l)throw illegal("comment");if("/"===charAt(u))if(f){if(s=u,n=!1,isDoubleSlashCommentLine(u-1)){n=!0;do if((u=findEndOfLine(u))===l||(u++,!c))break;while(isDoubleSlashCommentLine(u))}else u=Math.min(l,findEndOfLine(u)+1);n&&(setComment(s,u,c),c=!0),p++,r=!0}else{for(n="/"===charAt(s=u+1);"\n"!==charAt(++u);)if(u===l)return null;++u,n&&(setComment(s,u-1,c),c=!0),++p,r=!0}else{if("*"!==(o=charAt(u)))return"/";s=u+1,n=f||"*"===charAt(s);do{if("\n"===o&&++p,++u===l)throw illegal("comment");i=o,o=charAt(u)}while("*"!==i||"/"!==o);++u,n&&(setComment(s,u-2,c),c=!0),r=!0}}}while(r);var d=u;if(t.lastIndex=0,!t.test(charAt(d++)))for(;d<l&&!t.test(charAt(d));)++d;var m=e.substring(u,u=d);return('"'===m||"'"===m)&&(y=m),m}function push(e){h.push(e)}function peek(){if(!h.length){var e=next();if(null===e)return null;push(e)}return h[0]}function skip(e,t){var r=peek();if(r===e)return next(),!0;if(!t)throw illegal("token '"+r+"', '"+e+"' expected");return!1}function cmnt(e){var t,r=null;return void 0===e?(t=d[p-1],delete d[p-1],t&&(f||"*"===t.type||t.lineEmpty)&&(r=t.leading?t.text:null)):(c<e&&peek(),t=d[e],delete d[e],t&&!t.lineEmpty&&(f||"/"===t.type)&&(r=t.leading?null:t.text)),r}return Object.defineProperty({next:next,peek:peek,push:push,skip:skip,cmnt:cmnt},"line",{get:function(){return p}})}tokenize.unescape=unescape},"./protobufjs/src/type.js"(e,t,r){e.exports=Type;var i=r("./protobufjs/src/namespace.js");((Type.prototype=Object.create(i.prototype)).constructor=Type).className="Type";var o=r("./protobufjs/src/enum.js"),s=r("./protobufjs/src/oneof.js"),n=r("./protobufjs/src/field.js"),a=r("./protobufjs/src/mapfield.js"),f=r("./protobufjs/src/service.js"),u=r("./protobufjs/src/message.js"),l=r("./protobufjs/src/reader.js"),p=r("./protobufjs/src/writer.js"),c=r("./protobufjs/src/util.js"),d=r("./protobufjs/src/encoder.js"),h=r("./protobufjs/src/decoder.js"),y=r("./protobufjs/src/verifier.js"),m=r("./protobufjs/src/converter.js"),v=r("./protobufjs/src/wrappers.js");function Type(e,t){i.call(this,e,t),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function clearCache(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(Type.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t<e.length;++t){var r=this.fields[e[t]],i=r.id;if(this._fieldsById[i])throw Error("duplicate id "+i+" in "+this);this._fieldsById[i]=r}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=c.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=c.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=Type.generateConstructor(this)())},set:function(e){var t=e.prototype;t instanceof u||((e.prototype=new u).constructor=e,c.merge(e.prototype,t)),e.$type=e.prototype.$type=this,c.merge(e,u,!0),this._ctor=e;for(var r=0;r<this.fieldsArray.length;++r)this._fieldsArray[r].resolve();var i={};for(r=0;r<this.oneofsArray.length;++r)i[this._oneofsArray[r].resolve().name]={get:c.oneOfGetter(this._oneofsArray[r].oneof),set:c.oneOfSetter(this._oneofsArray[r].oneof)};r&&Object.defineProperties(e.prototype,i)}}}),Type.generateConstructor=function(e){for(var t,r=c.codegen(["p"],e.name),i=0;i<e.fieldsArray.length;++i)(t=e._fieldsArray[i]).map?r("this%s={}",c.safeProp(t.name)):t.repeated&&r("this%s=[]",c.safeProp(t.name));return r("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")},Type.fromJSON=function(e,t){var r=new Type(e,t.options);r.extensions=t.extensions,r.reserved=t.reserved;for(var u=Object.keys(t.fields),l=0;l<u.length;++l)r.add((void 0!==t.fields[u[l]].keyType?a.fromJSON:n.fromJSON)(u[l],t.fields[u[l]]));if(t.oneofs)for(u=Object.keys(t.oneofs),l=0;l<u.length;++l)r.add(s.fromJSON(u[l],t.oneofs[u[l]]));if(t.nested)for(u=Object.keys(t.nested),l=0;l<u.length;++l){var p=t.nested[u[l]];r.add((void 0!==p.id?n.fromJSON:void 0!==p.fields?Type.fromJSON:void 0!==p.values?o.fromJSON:void 0!==p.methods?f.fromJSON:i.fromJSON)(u[l],p))}return t.extensions&&t.extensions.length&&(r.extensions=t.extensions),t.reserved&&t.reserved.length&&(r.reserved=t.reserved),t.group&&(r.group=!0),t.comment&&(r.comment=t.comment),t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Type.prototype.toJSON=function(e){var t=i.prototype.toJSON.call(this,e),r=!!e&&!!e.keepComments;return c.toObject(["edition",this._editionToJSON(),"options",t&&t.options||void 0,"oneofs",i.arrayToJSON(this.oneofsArray,e),"fields",i.arrayToJSON(this.fieldsArray.filter(function(e){return!e.declaringField}),e)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",t&&t.nested||void 0,"comment",r?this.comment:void 0])},Type.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;i.prototype.resolveAll.call(this);var e=this.oneofsArray;for(r=0;r<e.length;)e[r++].resolve();for(var t=this.fieldsArray,r=0;r<t.length;)t[r++].resolve();return this},Type.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(e=this._edition||e,i.prototype._resolveFeaturesRecursive.call(this,e),this.oneofsArray.forEach(t=>{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)})),this},Type.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},Type.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof n&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),clearCache(this)}return e instanceof s?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),clearCache(this)):i.prototype.add.call(this,e)},Type.prototype.remove=function(e){if(e instanceof n&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),clearCache(this)}if(e instanceof s){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),clearCache(this)}return i.prototype.remove.call(this,e)},Type.prototype.isReservedId=function(e){return i.isReservedId(this.reserved,e)},Type.prototype.isReservedName=function(e){return i.isReservedName(this.reserved,e)},Type.prototype.create=function(e){return new this.ctor(e)},Type.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r<this.fieldsArray.length;++r)t.push(this._fieldsArray[r].resolve().resolvedType);this.encode=d(this)({Writer:p,types:t,util:c}),this.decode=h(this)({Reader:l,types:t,util:c}),this.verify=y(this)({types:t,util:c}),this.fromObject=m.fromObject(this)({types:t,util:c}),this.toObject=m.toObject(this)({types:t,util:c});var i=v[e];if(i){var o=Object.create(this);o.fromObject=this.fromObject,this.fromObject=i.fromObject.bind(o),o.toObject=this.toObject,this.toObject=i.toObject.bind(o)}return this},Type.prototype.encode=function(e,t){return this.setup().encode(e,t)},Type.prototype.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Type.prototype.decode=function(e,t){return this.setup().decode(e,t)},Type.prototype.decodeDelimited=function(e){return e instanceof l||(e=l.create(e)),this.decode(e,e.uint32())},Type.prototype.verify=function(e){return this.setup().verify(e)},Type.prototype.fromObject=function(e){return this.setup().fromObject(e)},Type.prototype.toObject=function(e,t){return this.setup().toObject(e,t)},Type.d=function(e){return function(t){c.decorateType(t,e)}}},"./protobufjs/src/types.js"(e,t,r){var i=t,o=r("./protobufjs/src/util.js"),s=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function bake(e,t){var r=0,i={};for(t|=0;r<e.length;)i[s[r+t]]=e[r++];return i}i.basic=bake([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),i.defaults=bake([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",o.emptyArray,null]),i.long=bake([0,0,0,1,1],7),i.mapKey=bake([0,0,0,5,5,0,0,0,1,1,0,2],2),i.packed=bake([1,5,0,0,0,5,5,0,0,0,1,1,0])},"./protobufjs/src/util.js"(e,t,r){var i,o,s=e.exports=r("./protobufjs/src/util/minimal.js"),n=r("./protobufjs/src/roots.js");s.codegen=r("./@protobufjs/codegen/index.js"),s.fetch=r("./@protobufjs/fetch/index.js"),s.path=r("./@protobufjs/path/index.js"),s.fs=s.inquire("fs"),s.toArray=function(e){if(e){for(var t=Object.keys(e),r=Array(t.length),i=0;i<t.length;)r[i]=e[t[i++]];return r}return[]},s.toObject=function(e){for(var t={},r=0;r<e.length;){var i=e[r++],o=e[r++];void 0!==o&&(t[i]=o)}return t};var a=/\\/g,f=/"/g;s.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)},s.safeProp=function(e){return!/^[$\w_]+$/.test(e)||s.isReserved(e)?'["'+e.replace(a,"\\\\").replace(f,'\\"')+'"]':"."+e},s.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.substring(1)};var u=/_([a-z])/g;s.camelCase=function(e){return e.substring(0,1)+e.substring(1).replace(u,function(e,t){return t.toUpperCase()})},s.compareFieldsById=function(e,t){return e.id-t.id},s.decorateType=function(e,t){if(e.$type)return t&&e.$type.name!==t&&(s.decorateRoot.remove(e.$type),e.$type.name=t,s.decorateRoot.add(e.$type)),e.$type;i||(i=r("./protobufjs/src/type.js"));var o=new i(t||e.name);return s.decorateRoot.add(o),o.ctor=e,Object.defineProperty(e,"$type",{value:o,enumerable:!1}),Object.defineProperty(e.prototype,"$type",{value:o,enumerable:!1}),o};var l=0;s.decorateEnum=function(e){if(e.$type)return e.$type;o||(o=r("./protobufjs/src/enum.js"));var t=new o("Enum"+l++,e);return s.decorateRoot.add(t),Object.defineProperty(e,"$type",{value:t,enumerable:!1}),t},s.setProperty=function(e,t,r,i){function setProp(e,t,r){var o=t.shift();if("__proto__"===o||"prototype"===o)return e;if(t.length>0)e[o]=setProp(e[o]||{},t,r);else{var s=e[o];if(s&&i)return e;s&&(r=[].concat(s).concat(r)),e[o]=r}return e}if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return setProp(e,t=t.split("."),r)},Object.defineProperty(s,"decorateRoot",{get:function(){return n.decorated||(n.decorated=new(r("./protobufjs/src/root.js")))}})},"./protobufjs/src/util/longbits.js"(e,t,r){e.exports=LongBits;var i=r("./protobufjs/src/util/minimal.js");function LongBits(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=LongBits.zero=new LongBits(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=LongBits.zeroHash="\0\0\0\0\0\0\0\0";LongBits.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var r=e>>>0,i=(e-r)/0x100000000>>>0;return t&&(i=~i>>>0,r=~r>>>0,++r>0xffffffff&&(r=0,++i>0xffffffff&&(i=0))),new LongBits(r,i)},LongBits.from=function(e){if("number"==typeof e)return LongBits.fromNumber(e);if(i.isString(e))if(!i.Long)return LongBits.fromNumber(parseInt(e,10));else e=i.Long.fromString(e);return e.low||e.high?new LongBits(e.low>>>0,e.high>>>0):o},LongBits.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+0x100000000*r)}return this.lo+0x100000000*this.hi},LongBits.prototype.toLong=function(e){return i.Long?new i.Long(0|this.lo,0|this.hi,!!e):{low:0|this.lo,high:0|this.hi,unsigned:!!e}};var n=String.prototype.charCodeAt;LongBits.fromHash=function(e){return e===s?o:new LongBits((n.call(e,0)|n.call(e,1)<<8|n.call(e,2)<<16|n.call(e,3)<<24)>>>0,(n.call(e,4)|n.call(e,5)<<8|n.call(e,6)<<16|n.call(e,7)<<24)>>>0)},LongBits.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},LongBits.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},LongBits.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},LongBits.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},"./protobufjs/src/util/minimal.js"(e,t,r){var i=t;function merge(e,t,r){for(var i=Object.keys(t),o=0;o<i.length;++o)void 0!==e[i[o]]&&r||(e[i[o]]=t[i[o]]);return e}function newError(e){function CustomError(e,t){if(!(this instanceof CustomError))return new CustomError(e,t);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,CustomError):Object.defineProperty(this,"stack",{value:Error().stack||""}),t&&merge(this,t)}return CustomError.prototype=Object.create(Error.prototype,{constructor:{value:CustomError,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),CustomError}i.asPromise=r("./@protobufjs/aspromise/index.js"),i.base64=r("./@protobufjs/base64/index.js"),i.EventEmitter=r("./@protobufjs/eventemitter/index.js"),i.float=r("./@protobufjs/float/index.js"),i.inquire=r("./@protobufjs/inquire/index.js"),i.utf8=r("./@protobufjs/utf8/index.js"),i.pool=r("./@protobufjs/pool/index.js"),i.LongBits=r("./protobufjs/src/util/longbits.js"),i.isNode=!!("u">typeof global&&global&&global.process&&global.process.versions&&global.process.versions.node),i.global=i.isNode&&global||"u">typeof window&&window||"u">typeof self&&self||this,i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},i.isString=function(e){return"string"==typeof e||e instanceof String},i.isObject=function(e){return e&&"object"==typeof e},i.isset=i.isSet=function(e,t){var r=e[t];return!!(null!=r&&e.hasOwnProperty(t))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},i.Buffer=function(){try{var e=i.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(e){return"number"==typeof e?i.Buffer?i._Buffer_allocUnsafe(e):new i.Array(e):i.Buffer?i._Buffer_from(e):"u"<typeof Uint8Array?e:new Uint8Array(e)},i.Array="u">typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(e){return e?i.LongBits.from(e).toHash():i.LongBits.zeroHash},i.longFromHash=function(e,t){var r=i.LongBits.fromHash(e);return i.Long?i.Long.fromBits(r.lo,r.hi,t):r.toNumber(!!t)},i.merge=merge,i.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},i.newError=newError,i.ProtocolError=newError("ProtocolError"),i.oneOfGetter=function(e){for(var t={},r=0;r<e.length;++r)t[e[r]]=1;return function(){for(var e=Object.keys(this),r=e.length-1;r>-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},i.oneOfSetter=function(e){return function(t){for(var r=0;r<e.length;++r)e[r]!==t&&delete this[e[r]]}},i.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},i._configure=function(){var e=i.Buffer;if(!e){i._Buffer_from=i._Buffer_allocUnsafe=null;return}i._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,r){return new e(t,r)},i._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}}},"./protobufjs/src/verifier.js"(e,t,r){e.exports=verifier;var i=r("./protobufjs/src/enum.js"),o=r("./protobufjs/src/util.js");function invalid(e,t){return e.name+": "+t+(e.repeated&&"array"!==t?"[]":e.map&&"object"!==t?"{k:"+e.keyType+"}":"")+" expected"}function genVerifyValue(e,t,r,o){if(t.resolvedType)if(t.resolvedType instanceof i){e("switch(%s){",o)("default:")("return%j",invalid(t,"enum value"));for(var s=Object.keys(t.resolvedType.values),n=0;n<s.length;++n)e("case %i:",t.resolvedType.values[s[n]]);e("break")("}")}else e("{")("var e=types[%i].verify(%s);",r,o)("if(e)")("return%j+e",t.name+".")("}");else switch(t.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.isInteger(%s))",o)("return%j",invalid(t,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",o,o,o,o)("return%j",invalid(t,"integer|Long"));break;case"float":case"double":e('if(typeof %s!=="number")',o)("return%j",invalid(t,"number"));break;case"bool":e('if(typeof %s!=="boolean")',o)("return%j",invalid(t,"boolean"));break;case"string":e("if(!util.isString(%s))",o)("return%j",invalid(t,"string"));break;case"bytes":e('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',o,o,o)("return%j",invalid(t,"buffer"))}return e}function genVerifyKey(e,t,r){switch(t.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.key32Re.test(%s))",r)("return%j",invalid(t,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.key64Re.test(%s))",r)("return%j",invalid(t,"integer|Long key"));break;case"bool":e("if(!util.key2Re.test(%s))",r)("return%j",invalid(t,"boolean key"))}return e}function verifier(e){var t=o.codegen(["m"],e.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),r=e.oneofsArray,i={};r.length&&t("var p={}");for(var s=0;s<e.fieldsArray.length;++s){var n=e._fieldsArray[s].resolve(),a="m"+o.safeProp(n.name);if(n.optional&&t("if(%s!=null&&m.hasOwnProperty(%j)){",a,n.name),n.map)t("if(!util.isObject(%s))",a)("return%j",invalid(n,"object"))("var k=Object.keys(%s)",a)("for(var i=0;i<k.length;++i){"),genVerifyKey(t,n,"k[i]"),genVerifyValue(t,n,s,a+"[k[i]]")("}");else if(n.repeated)t("if(!Array.isArray(%s))",a)("return%j",invalid(n,"array"))("for(var i=0;i<%s.length;++i){",a),genVerifyValue(t,n,s,a+"[i]")("}");else{if(n.partOf){var f=o.safeProp(n.partOf.name);1===i[n.partOf.name]&&t("if(p%s===1)",f)("return%j",n.partOf.name+": multiple values"),i[n.partOf.name]=1,t("p%s=1",f)}genVerifyValue(t,n,s,a)}n.optional&&t("}")}return t("return null")}},"./protobufjs/src/wrappers.js"(e,t,r){var i=t,o=r("./protobufjs/src/message.js");i[".google.protobuf.Any"]={fromObject:function(e){if(e&&e["@type"]){var t=e["@type"].substring(e["@type"].lastIndexOf("/")+1),r=this.lookup(t);if(r){var i="."===e["@type"].charAt(0)?e["@type"].slice(1):e["@type"];return -1===i.indexOf("/")&&(i="/"+i),this.create({type_url:i,value:r.encode(r.fromObject(e)).finish()})}}return this.fromObject(e)},toObject:function(e,t){var r="type.googleapis.com/",i="",s="";if(t&&t.json&&e.type_url&&e.value){s=e.type_url.substring(e.type_url.lastIndexOf("/")+1),i=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var n=this.lookup(s);n&&(e=n.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof o){var a=e.$type.toObject(e,t),f="."===e.$type.fullName[0]?e.$type.fullName.slice(1):e.$type.fullName;return""===i&&(i=r),s=i+f,a["@type"]=s,a}return this.toObject(e,t)}}},"./protobufjs/src/writer.js"(e,t,r){e.exports=Writer;var i,o=r("./protobufjs/src/util/minimal.js"),s=o.LongBits,n=o.base64,a=o.utf8;function Op(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function noop(){}function State(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function Writer(){this.len=0,this.head=new Op(noop,0,0),this.tail=this.head,this.states=null}var create=function(){return o.Buffer?function(){return(Writer.create=function(){return new i})()}:function(){return new Writer}};function writeByte(e,t,r){t[r]=255&e}function writeVarint32(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e}function VarintOp(e,t){this.len=e,this.next=void 0,this.val=t}function writeVarint64(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function writeFixed32(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}Writer.create=create(),Writer.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(Writer.alloc=o.pool(Writer.alloc,o.Array.prototype.subarray)),Writer.prototype._push=function(e,t,r){return this.tail=this.tail.next=new Op(e,t,r),this.len+=t,this},VarintOp.prototype=Object.create(Op.prototype),VarintOp.prototype.fn=writeVarint32,Writer.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new VarintOp((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this},Writer.prototype.int32=function(e){return e<0?this._push(writeVarint64,10,s.fromNumber(e)):this.uint32(e)},Writer.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},Writer.prototype.uint64=function(e){var t=s.from(e);return this._push(writeVarint64,t.length(),t)},Writer.prototype.int64=Writer.prototype.uint64,Writer.prototype.sint64=function(e){var t=s.from(e).zzEncode();return this._push(writeVarint64,t.length(),t)},Writer.prototype.bool=function(e){return this._push(writeByte,1,+!!e)},Writer.prototype.fixed32=function(e){return this._push(writeFixed32,4,e>>>0)},Writer.prototype.sfixed32=Writer.prototype.fixed32,Writer.prototype.fixed64=function(e){var t=s.from(e);return this._push(writeFixed32,4,t.lo)._push(writeFixed32,4,t.hi)},Writer.prototype.sfixed64=Writer.prototype.fixed64,Writer.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},Writer.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var f=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var i=0;i<e.length;++i)t[r+i]=e[i]};Writer.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(writeByte,1,0);if(o.isString(e)){var r=Writer.alloc(t=n.length(e));n.decode(e,r,0),e=r}return this.uint32(t)._push(f,t,e)},Writer.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(writeByte,1,0)},Writer.prototype.fork=function(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this},Writer.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this},Writer.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},Writer.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},Writer._configure=function(e){i=e,Writer.create=create(),i._configure()}},"./protobufjs/src/writer_buffer.js"(e,t,r){e.exports=BufferWriter;var i=r("./protobufjs/src/writer.js");(BufferWriter.prototype=Object.create(i.prototype)).constructor=BufferWriter;var o=r("./protobufjs/src/util/minimal.js");function BufferWriter(){i.call(this)}function writeStringBuffer(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}BufferWriter._configure=function(){BufferWriter.alloc=o._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var i=0;i<e.length;)t[r++]=e[i++]}},BufferWriter.prototype.bytes=function(e){o.isString(e)&&(e=o._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(BufferWriter.writeBytesBuffer,t,e),this},BufferWriter.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(writeStringBuffer,t,e),this},BufferWriter._configure()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}var __webpack_exports__=__webpack_require__("./protobufjs/index.js");module.exports=__webpack_exports__})();
|