dd-trace 5.82.0 → 5.84.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.
Files changed (150) hide show
  1. package/LICENSE-3rdparty.csv +77 -79
  2. package/ci/init.js +6 -6
  3. package/index.d.ts +213 -4
  4. package/loader-hook.mjs +1 -1
  5. package/package.json +59 -56
  6. package/packages/datadog-core/src/storage.js +7 -7
  7. package/packages/datadog-esbuild/index.js +6 -0
  8. package/packages/datadog-instrumentations/src/ai.js +7 -3
  9. package/packages/datadog-instrumentations/src/child_process.js +1 -1
  10. package/packages/datadog-instrumentations/src/cucumber.js +1 -1
  11. package/packages/datadog-instrumentations/src/graphql.js +1 -1
  12. package/packages/datadog-instrumentations/src/helpers/instrumentations.js +4 -3
  13. package/packages/datadog-instrumentations/src/helpers/register.js +3 -7
  14. package/packages/datadog-instrumentations/src/helpers/rewriter/compiler.js +6 -0
  15. package/packages/datadog-instrumentations/src/helpers/rewriter/index.js +2 -1
  16. package/packages/datadog-instrumentations/src/helpers/rewriter/transforms.js +73 -16
  17. package/packages/datadog-instrumentations/src/http/client.js +2 -2
  18. package/packages/datadog-instrumentations/src/jest.js +124 -64
  19. package/packages/datadog-instrumentations/src/koa.js +2 -1
  20. package/packages/datadog-instrumentations/src/light-my-request.js +2 -2
  21. package/packages/datadog-instrumentations/src/mocha/main.js +2 -2
  22. package/packages/datadog-instrumentations/src/mocha/worker.js +1 -1
  23. package/packages/datadog-instrumentations/src/mocha.js +1 -1
  24. package/packages/datadog-instrumentations/src/mysql.js +1 -1
  25. package/packages/datadog-instrumentations/src/mysql2.js +2 -2
  26. package/packages/datadog-instrumentations/src/net.js +13 -5
  27. package/packages/datadog-instrumentations/src/nyc.js +1 -1
  28. package/packages/datadog-instrumentations/src/otel-sdk-trace.js +4 -4
  29. package/packages/datadog-instrumentations/src/pg.js +4 -2
  30. package/packages/datadog-instrumentations/src/playwright.js +15 -11
  31. package/packages/datadog-instrumentations/src/selenium.js +2 -2
  32. package/packages/datadog-instrumentations/src/undici.js +12 -1
  33. package/packages/datadog-plugin-aws-sdk/src/base.js +4 -4
  34. package/packages/datadog-plugin-azure-event-hubs/src/producer.js +2 -2
  35. package/packages/datadog-plugin-azure-service-bus/src/producer.js +2 -2
  36. package/packages/datadog-plugin-cucumber/src/index.js +35 -34
  37. package/packages/datadog-plugin-cypress/src/cypress-plugin.js +2 -2
  38. package/packages/datadog-plugin-dd-trace-api/src/index.js +2 -2
  39. package/packages/datadog-plugin-express/src/code_origin.js +21 -15
  40. package/packages/datadog-plugin-fastify/src/code_origin.js +17 -4
  41. package/packages/datadog-plugin-jest/src/index.js +2 -2
  42. package/packages/datadog-plugin-mocha/src/index.js +2 -2
  43. package/packages/datadog-plugin-mongodb-core/src/index.js +2 -2
  44. package/packages/datadog-plugin-playwright/src/index.js +26 -26
  45. package/packages/datadog-plugin-undici/src/index.js +305 -2
  46. package/packages/datadog-plugin-vitest/src/index.js +5 -5
  47. package/packages/datadog-shimmer/src/shimmer.js +2 -5
  48. package/packages/dd-trace/index.js +19 -0
  49. package/packages/dd-trace/src/agent/info.js +57 -0
  50. package/packages/dd-trace/src/agent/url.js +28 -0
  51. package/packages/dd-trace/src/appsec/iast/taint-tracking/rewriter.js +1 -1
  52. package/packages/dd-trace/src/appsec/index.js +47 -7
  53. package/packages/dd-trace/src/appsec/rasp/index.js +2 -4
  54. package/packages/dd-trace/src/azure_metadata.js +8 -3
  55. package/packages/dd-trace/src/baggage.js +36 -11
  56. package/packages/dd-trace/src/ci-visibility/dynamic-instrumentation/index.js +5 -1
  57. package/packages/dd-trace/src/ci-visibility/early-flake-detection/get-known-tests.js +2 -2
  58. package/packages/dd-trace/src/ci-visibility/exporters/agent-proxy/index.js +3 -4
  59. package/packages/dd-trace/src/ci-visibility/exporters/agentless/coverage-writer.js +2 -2
  60. package/packages/dd-trace/src/ci-visibility/exporters/agentless/di-logs-writer.js +5 -5
  61. package/packages/dd-trace/src/ci-visibility/exporters/agentless/writer.js +2 -2
  62. package/packages/dd-trace/src/ci-visibility/exporters/ci-visibility-exporter.js +5 -11
  63. package/packages/dd-trace/src/ci-visibility/exporters/git/git_metadata.js +3 -3
  64. package/packages/dd-trace/src/ci-visibility/exporters/test-worker/index.js +4 -4
  65. package/packages/dd-trace/src/ci-visibility/exporters/test-worker/writer.js +1 -1
  66. package/packages/dd-trace/src/ci-visibility/intelligent-test-runner/get-skippable-suites.js +2 -2
  67. package/packages/dd-trace/src/ci-visibility/log-submission/log-submission-plugin.js +4 -4
  68. package/packages/dd-trace/src/ci-visibility/requests/get-library-configuration.js +4 -4
  69. package/packages/dd-trace/src/ci-visibility/telemetry.js +6 -2
  70. package/packages/dd-trace/src/ci-visibility/test-management/get-test-management-tests.js +2 -2
  71. package/packages/dd-trace/src/{config_defaults.js → config/defaults.js} +3 -3
  72. package/packages/dd-trace/src/{config-helper.js → config/helper.js} +88 -15
  73. package/packages/dd-trace/src/{config.js → config/index.js} +107 -46
  74. package/packages/dd-trace/src/config/remote_config.js +188 -19
  75. package/packages/dd-trace/src/{config_stable.js → config/stable.js} +20 -32
  76. package/packages/dd-trace/src/{supported-configurations.json → config/supported-configurations.json} +3 -1
  77. package/packages/dd-trace/src/crashtracking/crashtracker.js +2 -5
  78. package/packages/dd-trace/src/datastreams/processor.js +1 -1
  79. package/packages/dd-trace/src/datastreams/writer.js +2 -8
  80. package/packages/dd-trace/src/debugger/devtools_client/condition.js +1 -1
  81. package/packages/dd-trace/src/debugger/devtools_client/config.js +2 -7
  82. package/packages/dd-trace/src/debugger/devtools_client/json-buffer.js +10 -11
  83. package/packages/dd-trace/src/debugger/devtools_client/send.js +3 -3
  84. package/packages/dd-trace/src/debugger/devtools_client/snapshot/constants.js +1 -1
  85. package/packages/dd-trace/src/debugger/index.js +83 -15
  86. package/packages/dd-trace/src/dogstatsd.js +5 -11
  87. package/packages/dd-trace/src/encode/0.4.js +2 -2
  88. package/packages/dd-trace/src/exporter.js +1 -1
  89. package/packages/dd-trace/src/exporters/agent/index.js +5 -11
  90. package/packages/dd-trace/src/exporters/agent/writer.js +12 -16
  91. package/packages/dd-trace/src/exporters/common/{agent-info-exporter.js → buffering-exporter.js} +10 -37
  92. package/packages/dd-trace/src/exporters/common/docker.js +2 -2
  93. package/packages/dd-trace/src/exporters/common/request.js +1 -1
  94. package/packages/dd-trace/src/exporters/common/util.js +2 -2
  95. package/packages/dd-trace/src/exporters/span-stats/index.js +3 -10
  96. package/packages/dd-trace/src/flare/index.js +1 -1
  97. package/packages/dd-trace/src/guardrails/telemetry.js +1 -1
  98. package/packages/dd-trace/src/index.js +4 -4
  99. package/packages/dd-trace/src/lambda/handler.js +2 -2
  100. package/packages/dd-trace/src/lambda/index.js +2 -2
  101. package/packages/dd-trace/src/lambda/runtime/patch.js +2 -2
  102. package/packages/dd-trace/src/lambda/runtime/ritm.js +2 -2
  103. package/packages/dd-trace/src/llmobs/constants/tags.js +8 -1
  104. package/packages/dd-trace/src/llmobs/index.js +2 -2
  105. package/packages/dd-trace/src/llmobs/noop.js +2 -0
  106. package/packages/dd-trace/src/llmobs/plugins/openai/index.js +3 -4
  107. package/packages/dd-trace/src/llmobs/sdk.js +33 -6
  108. package/packages/dd-trace/src/llmobs/span_processor.js +17 -7
  109. package/packages/dd-trace/src/llmobs/tagger.js +175 -1
  110. package/packages/dd-trace/src/llmobs/writers/base.js +118 -45
  111. package/packages/dd-trace/src/llmobs/writers/spans.js +4 -3
  112. package/packages/dd-trace/src/llmobs/writers/util.js +3 -9
  113. package/packages/dd-trace/src/log/index.js +50 -35
  114. package/packages/dd-trace/src/log/writer.js +13 -78
  115. package/packages/dd-trace/src/noop/proxy.js +3 -3
  116. package/packages/dd-trace/src/openfeature/writers/base.js +9 -16
  117. package/packages/dd-trace/src/openfeature/writers/util.js +3 -8
  118. package/packages/dd-trace/src/opentelemetry/otlp/otlp_http_exporter_base.js +2 -2
  119. package/packages/dd-trace/src/opentelemetry/tracer.js +48 -6
  120. package/packages/dd-trace/src/opentracing/propagation/text_map.js +45 -21
  121. package/packages/dd-trace/src/opentracing/span.js +4 -4
  122. package/packages/dd-trace/src/plugin_manager.js +8 -6
  123. package/packages/dd-trace/src/plugins/util/ci.js +5 -8
  124. package/packages/dd-trace/src/plugins/util/git-cache.js +3 -3
  125. package/packages/dd-trace/src/plugins/util/test.js +1 -1
  126. package/packages/dd-trace/src/plugins/util/user-provided-git.js +41 -43
  127. package/packages/dd-trace/src/profiler.js +4 -39
  128. package/packages/dd-trace/src/profiling/config.js +74 -34
  129. package/packages/dd-trace/src/profiling/exporter_cli.js +5 -5
  130. package/packages/dd-trace/src/profiling/exporters/agent.js +1 -1
  131. package/packages/dd-trace/src/profiling/exporters/event_serializer.js +9 -2
  132. package/packages/dd-trace/src/profiling/index.js +1 -1
  133. package/packages/dd-trace/src/profiling/libuv-size.js +1 -1
  134. package/packages/dd-trace/src/profiling/profiler.js +57 -2
  135. package/packages/dd-trace/src/proxy.js +34 -5
  136. package/packages/dd-trace/src/remote_config/capabilities.js +4 -0
  137. package/packages/dd-trace/src/remote_config/index.js +2 -7
  138. package/packages/dd-trace/src/ritm.js +8 -4
  139. package/packages/dd-trace/src/runtime_metrics/runtime_metrics.js +2 -2
  140. package/packages/dd-trace/src/serverless.js +2 -2
  141. package/packages/dd-trace/src/span_processor.js +2 -2
  142. package/packages/dd-trace/src/startup-log.js +7 -16
  143. package/packages/dd-trace/src/telemetry/endpoints.js +67 -5
  144. package/packages/dd-trace/src/telemetry/send-data.js +103 -4
  145. package/packages/dd-trace/src/telemetry/telemetry.js +229 -110
  146. package/vendor/dist/@isaacs/ttlcache/index.js +1 -1
  147. package/vendor/dist/esquery/index.js +1 -1
  148. package/vendor/dist/meriyah/index.js +1 -1
  149. package/vendor/dist/protobufjs/index.js +1 -1
  150. /package/packages/dd-trace/src/{git_properties.js → config/git_properties.js} +0 -0
@@ -1 +1 @@
1
- (()=>{"use strict";var __webpack_modules__={"./@protobufjs/aspromise/index.js":function(e){e.exports=t;function t(e,t){for(var r=Array(arguments.length-1),o=0,s=2,i=!0;s<arguments.length;)r[o++]=arguments[s++];return new Promise(function(s,n){r[o]=function(e){if(i)if(i=!1,e)n(e);else{for(var t=Array(arguments.length-1),r=0;r<t.length;)t[r++]=arguments[r];s.apply(null,t)}};try{e.apply(t||null,r)}catch(e){i&&(i=!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 o=Array(64),s=Array(123),i=0;i<64;)s[o[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var s,i=null,n=[],u=0,f=0;t<r;){var a=e[t++];switch(f){case 0:n[u++]=o[a>>2],s=(3&a)<<4,f=1;break;case 1:n[u++]=o[s|a>>4],s=(15&a)<<2,f=2;break;case 2:n[u++]=o[s|a>>6],n[u++]=o[63&a],f=0}u>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,n)),u=0)}return(f&&(n[u++]=o[s],n[u++]=61,1===f&&(n[u++]=61)),i)?(u&&i.push(String.fromCharCode.apply(String,n.slice(0,u))),i.join("")):String.fromCharCode.apply(String,n.slice(0,u))};var n="invalid encoding";r.decode=function(e,t,r){for(var o,i=r,u=0,f=0;f<e.length;){var a=e.charCodeAt(f++);if(61===a&&u>1)break;if(void 0===(a=s[a]))throw Error(n);switch(u){case 0:o=a,u=1;break;case 1:t[r++]=o<<2|(48&a)>>4,o=a,u=2;break;case 2:t[r++]=(15&o)<<4|(60&a)>>2,o=a,u=3;break;case 3:t[r++]=(3&o)<<6|a,u=0}}if(1===u)throw Error(n);return r-i},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 t(e,r){"string"==typeof e&&(r=e,e=void 0);var o=[];function s(e){if("string"!=typeof e){var r=i();if(t.verbose&&console.log("codegen: "+r),r="return "+r,e){for(var n=Object.keys(e),u=Array(n.length+1),f=Array(n.length),a=0;a<n.length;)u[a]=n[a],f[a]=e[n[a++]];return u[a]=r,Function.apply(null,u).apply(null,f)}return Function(r)()}for(var l=Array(arguments.length-1),p=0;p<l.length;)l[p]=arguments[++p];if(p=0,e=e.replace(/%([%dfijs])/g,function(e,t){var r=l[p++];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"%"}),p!==l.length)throw Error("parameter count mismatch");return o.push(e),s}function i(t){return"function "+(t||r||"")+"("+(e&&e.join(",")||"")+"){\n "+o.join("\n ")+"\n}"}return s.toString=i,s}e.exports=t,t.verbose=!1},"./@protobufjs/eventemitter/index.js":function(e){function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},t.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],o=0;o<r.length;)r[o].fn===t?r.splice(o,1):++o;return this},t.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var r=[],o=1;o<arguments.length;)r.push(arguments[o++]);for(o=0;o<t.length;)t[o].fn.apply(t[o++].ctx,r)}return this}},"./@protobufjs/fetch/index.js":function(e,t,r){e.exports=i;var o=r("./@protobufjs/aspromise/index.js"),s=r("./@protobufjs/inquire/index.js")("fs");function i(e,t,r){return("function"==typeof t?(r=t,t={}):t||(t={}),r)?!t.xhr&&s&&s.readFile?s.readFile(e,function(o,s){return o&&"undefined"!=typeof XMLHttpRequest?i.xhr(e,t,r):o?r(o):r(null,t.binary?s:s.toString("utf8"))}):i.xhr(e,t,r):o(i,this,e,t)}i.xhr=function(e,t,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){if(4===o.readyState){if(0!==o.status&&200!==o.status)return r(Error("status "+o.status));if(t.binary){var e=o.response;if(!e){e=[];for(var s=0;s<o.responseText.length;++s)e.push(255&o.responseText.charCodeAt(s))}return r(null,"undefined"!=typeof Uint8Array?new Uint8Array(e):e)}return r(null,o.responseText)}},t.binary&&("overrideMimeType"in o&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.responseType="arraybuffer"),o.open("GET",e),o.send()}},"./@protobufjs/float/index.js":function(e){function t(e){return"undefined"!=typeof Float32Array?!function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),o=128===r[3];function s(e,o,s){t[0]=e,o[s]=r[0],o[s+1]=r[1],o[s+2]=r[2],o[s+3]=r[3]}function i(e,o,s){t[0]=e,o[s]=r[3],o[s+1]=r[2],o[s+2]=r[1],o[s+3]=r[0]}function n(e,o){return r[0]=e[o],r[1]=e[o+1],r[2]=e[o+2],r[3]=e[o+3],t[0]}function u(e,o){return r[3]=e[o],r[2]=e[o+1],r[1]=e[o+2],r[0]=e[o+3],t[0]}e.writeFloatLE=o?s:i,e.writeFloatBE=o?i:s,e.readFloatLE=o?n:u,e.readFloatBE=o?u:n}():!function(){function t(e,t,r,o){var s=+(t<0);if(s&&(t=-t),0===t)e(1/t>0?0:0x80000000,r,o);else if(isNaN(t))e(0x7fc00000,r,o);else if(t>34028234663852886e22)e((s<<31|0x7f800000)>>>0,r,o);else if(t<11754943508222875e-54)e((s<<31|Math.round(t/1401298464324817e-60))>>>0,r,o);else{var i=Math.floor(Math.log(t)/Math.LN2),n=8388607&Math.round(t*Math.pow(2,-i)*8388608);e((s<<31|i+127<<23|n)>>>0,r,o)}}function n(e,t,r){var o=e(t,r),s=(o>>31)*2+1,i=o>>>23&255,n=8388607&o;return 255===i?n?NaN:1/0*s:0===i?1401298464324817e-60*s*n:s*Math.pow(2,i-150)*(n+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,o),e.readFloatLE=n.bind(null,s),e.readFloatBE=n.bind(null,i)}(),"undefined"!=typeof Float64Array?!function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),o=128===r[7];function s(e,o,s){t[0]=e,o[s]=r[0],o[s+1]=r[1],o[s+2]=r[2],o[s+3]=r[3],o[s+4]=r[4],o[s+5]=r[5],o[s+6]=r[6],o[s+7]=r[7]}function i(e,o,s){t[0]=e,o[s]=r[7],o[s+1]=r[6],o[s+2]=r[5],o[s+3]=r[4],o[s+4]=r[3],o[s+5]=r[2],o[s+6]=r[1],o[s+7]=r[0]}function n(e,o){return r[0]=e[o],r[1]=e[o+1],r[2]=e[o+2],r[3]=e[o+3],r[4]=e[o+4],r[5]=e[o+5],r[6]=e[o+6],r[7]=e[o+7],t[0]}function u(e,o){return r[7]=e[o],r[6]=e[o+1],r[5]=e[o+2],r[4]=e[o+3],r[3]=e[o+4],r[2]=e[o+5],r[1]=e[o+6],r[0]=e[o+7],t[0]}e.writeDoubleLE=o?s:i,e.writeDoubleBE=o?i:s,e.readDoubleLE=o?n:u,e.readDoubleBE=o?u:n}():!function(){function t(e,t,r,o,s,i){var n,u=+(o<0);if(u&&(o=-o),0===o)e(0,s,i+t),e(1/o>0?0:0x80000000,s,i+r);else if(isNaN(o))e(0,s,i+t),e(0x7ff80000,s,i+r);else if(o>17976931348623157e292)e(0,s,i+t),e((u<<31|0x7ff00000)>>>0,s,i+r);else if(o<22250738585072014e-324)e((n=o/5e-324)>>>0,s,i+t),e((u<<31|n/0x100000000)>>>0,s,i+r);else{var f=Math.floor(Math.log(o)/Math.LN2);1024===f&&(f=1023),e(0x10000000000000*(n=o*Math.pow(2,-f))>>>0,s,i+t),e((u<<31|f+1023<<20|1048576*n&1048575)>>>0,s,i+r)}}function n(e,t,r,o,s){var i=e(o,s+t),n=e(o,s+r),u=(n>>31)*2+1,f=n>>>20&2047,a=0x100000000*(1048575&n)+i;return 2047===f?a?NaN:1/0*u:0===f?5e-324*u*a:u*Math.pow(2,f-1075)*(a+0x10000000000000)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,o,4,0),e.readDoubleLE=n.bind(null,s,0,4),e.readDoubleBE=n.bind(null,i,4,0)}(),e}function r(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 o(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 s(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},"./@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,o=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},s=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=o(e),s="";r&&(s=t.shift()+"/");for(var i=0;i<t.length;)".."===t[i]?i>0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return s+t.join("/")};r.resolve=function(e,t,r){return(r||(t=s(t)),o(t))?t:(r||(e=s(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?s(e+"/"+t):t)}},"./@protobufjs/pool/index.js":function(e){e.exports=t;function t(e,t,r){var o=r||8192,s=o>>>1,i=null,n=o;return function(r){if(r<1||r>s)return e(r);n+r>o&&(i=e(o),n=0);var u=t.call(i,n,n+=r);return 7&n&&(n=(7|n)+1),u}}},"./@protobufjs/utf8/index.js":function(e,t){var r=t;r.length=function(e){for(var t=0,r=0,o=0;o<e.length;++o)(r=e.charCodeAt(o))<128?t+=1:r<2048?t+=2:(64512&r)==55296&&(64512&e.charCodeAt(o+1))==56320?(++o,t+=4):t+=3;return t},r.read=function(e,t,r){if(r-t<1)return"";for(var o,s=null,i=[],n=0;t<r;)(o=e[t++])<128?i[n++]=o:o>191&&o<224?i[n++]=(31&o)<<6|63&e[t++]:o>239&&o<365?(o=((7&o)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[n++]=55296+(o>>10),i[n++]=56320+(1023&o)):i[n++]=(15&o)<<12|(63&e[t++])<<6|63&e[t++],n>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,i)),n=0);return s?(n&&s.push(String.fromCharCode.apply(String,i.slice(0,n))),s.join("")):String.fromCharCode.apply(String,i.slice(0,n))},r.write=function(e,t,r){for(var o,s,i=r,n=0;n<e.length;++n)(o=e.charCodeAt(n))<128?t[r++]=o:(o<2048?t[r++]=o>>6|192:((64512&o)==55296&&(64512&(s=e.charCodeAt(n+1)))==56320?(o=65536+((1023&o)<<10)+(1023&s),++n,t[r++]=o>>18|240,t[r++]=o>>12&63|128):t[r++]=o>>12|224,t[r++]=o>>6&63|128),t[r++]=63&o|128);return r-i}},"./protobufjs/index.js":function(e,t,r){e.exports=r("./protobufjs/src/index.js")},"./protobufjs/src/common.js":function(e){e.exports=o;var t,r=/\/|\./;function o(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),o[e]=t}o("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),o("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),o("timestamp",{Timestamp:t}),o("empty",{Empty:{fields:{}}}),o("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}}}}),o("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}}}}),o("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),o.get=function(e){return o[e]||null}},"./protobufjs/src/converter.js":function(e,t,r){var o=t,s=r("./protobufjs/src/enum.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,o){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof s){e("switch(d%s){",o);for(var n=t.resolvedType.values,u=Object.keys(n),f=0;f<u.length;++f)n[u[f]]!==t.typeDefault||i||(e("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',o,o,o),t.repeated||e("break"),i=!0),e("case%j:",u[f])("case %i:",n[u[f]])("m%s=%j",o,n[u[f]])("break");e("}")}else e('if(typeof d%s!=="object")',o)("throw TypeError(%j)",t.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",o,r,o);else{var a=!1;switch(t.type){case"double":case"float":e("m%s=Number(d%s)",o,o);break;case"uint32":case"fixed32":e("m%s=d%s>>>0",o,o);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",o,o);break;case"uint64":a=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",o,o,a)('else if(typeof d%s==="string")',o)("m%s=parseInt(d%s,10)",o,o)('else if(typeof d%s==="number")',o)("m%s=d%s",o,o)('else if(typeof d%s==="object")',o)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",o,o,o,a?"true":"");break;case"bytes":e('if(typeof d%s==="string")',o)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",o,o,o)("else if(d%s.length >= 0)",o)("m%s=d%s",o,o);break;case"string":e("m%s=String(d%s)",o,o);break;case"bool":e("m%s=Boolean(d%s)",o,o)}}return e}function u(e,t,r,o){if(t.resolvedType)t.resolvedType instanceof s?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",o,r,o,o,r,o,o):e("d%s=types[%i].toObject(m%s,o)",o,r,o);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",o,o,o,o);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',o)("d%s=o.longs===String?String(m%s):m%s",o,o,o)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",o,o,o,o,i?"true":"",o);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",o,o,o,o,o);break;default:e("d%s=m%s",o,o)}}return e}o.fromObject=function(e){var t=e.fieldsArray,r=i.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 o=0;o<t.length;++o){var u=t[o].resolve(),f=i.safeProp(u.name);u.map?(r("if(d%s){",f)('if(typeof d%s!=="object")',f)("throw TypeError(%j)",u.fullName+": object expected")("m%s={}",f)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",f),n(r,u,o,f+"[ks[i]]")("}")("}")):u.repeated?(r("if(d%s){",f)("if(!Array.isArray(d%s))",f)("throw TypeError(%j)",u.fullName+": array expected")("m%s=[]",f)("for(var i=0;i<d%s.length;++i){",f),n(r,u,o,f+"[i]")("}")("}")):(u.resolvedType instanceof s||r("if(d%s!=null){",f),n(r,u,o,f),u.resolvedType instanceof s||r("}"))}return r("return m")},o.toObject=function(e){var t=e.fieldsArray.slice().sort(i.compareFieldsById);if(!t.length)return i.codegen()("return {}");for(var r=i.codegen(["m","o"],e.name+"$toObject")("if(!o)")("o={}")("var d={}"),o=[],n=[],f=[],a=0;a<t.length;++a)t[a].partOf||(t[a].resolve().repeated?o:t[a].map?n:f).push(t[a]);if(o.length){for(r("if(o.arrays||o.defaults){"),a=0;a<o.length;++a)r("d%s=[]",i.safeProp(o[a].name));r("}")}if(n.length){for(r("if(o.objects||o.defaults){"),a=0;a<n.length;++a)r("d%s={}",i.safeProp(n[a].name));r("}")}if(f.length){for(r("if(o.defaults){"),a=0;a<f.length;++a){var l=f[a],p=i.safeProp(l.name);if(l.resolvedType instanceof s)r("d%s=o.enums===String?%j:%j",p,l.resolvedType.valuesById[l.typeDefault],l.typeDefault);else if(l.long)r("if(util.Long){")("var n=new util.Long(%i,%i,%j)",l.typeDefault.low,l.typeDefault.high,l.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",p)("}else")("d%s=o.longs===String?%j:%i",p,l.typeDefault.toString(),l.typeDefault.toNumber());else if(l.bytes){var c="["+Array.prototype.slice.call(l.typeDefault).join(",")+"]";r("if(o.bytes===String)d%s=%j",p,String.fromCharCode.apply(String,l.typeDefault))("else{")("d%s=%s",p,c)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",p,p)("}")}else r("d%s=%j",p,l.typeDefault)}r("}")}var h=!1;for(a=0;a<t.length;++a){var l=t[a],d=e._fieldsArray.indexOf(l),p=i.safeProp(l.name);l.map?(h||(h=!0,r("var ks2")),r("if(m%s&&(ks2=Object.keys(m%s)).length){",p,p)("d%s={}",p)("for(var j=0;j<ks2.length;++j){"),u(r,l,d,p+"[ks2[j]]")("}")):l.repeated?(r("if(m%s&&m%s.length){",p,p)("d%s=[]",p)("for(var j=0;j<m%s.length;++j){",p),u(r,l,d,p+"[j]")("}")):(r("if(m%s!=null&&m.hasOwnProperty(%j)){",p,l.name),u(r,l,d,p),l.partOf&&r("if(o.oneofs)")("d%s=%j",i.safeProp(l.partOf.name),l.name)),r("}")}return r("return d")}},"./protobufjs/src/decoder.js":function(e,t,r){e.exports=u;var o=r("./protobufjs/src/enum.js"),s=r("./protobufjs/src/types.js"),i=r("./protobufjs/src/util.js");function n(e){return"missing required '"+e.name+"'"}function u(e){for(var t=i.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 u=e._fieldsArray[r].resolve(),f=u.resolvedType instanceof o?"int32":u.type,a="m"+i.safeProp(u.name);t("case %i: {",u.id),u.map?(t("if(%s===util.emptyObject)",a)("%s={}",a)("var c2 = r.uint32()+r.pos"),void 0!==s.defaults[u.keyType]?t("k=%j",s.defaults[u.keyType]):t("k=null"),void 0!==s.defaults[f]?t("value=%j",s.defaults[f]):t("value=null"),t("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",u.keyType)("case 2:"),void 0===s.basic[f]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",f),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==s.long[u.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',a):t("%s[k]=value",a)):u.repeated?(t("if(!(%s&&%s.length))",a,a)("%s=[]",a),void 0!==s.packed[f]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",a,f)("}else"),void 0===s.basic[f]?t(u.delimited?"%s.push(types[%i].decode(r,undefined,((t&~7)|4)))":"%s.push(types[%i].decode(r,r.uint32()))",a,r):t("%s.push(r.%s())",a,f)):void 0===s.basic[f]?t(u.delimited?"%s=types[%i].decode(r,undefined,((t&~7)|4))":"%s=types[%i].decode(r,r.uint32())",a,r):t("%s=r.%s()",a,f),t("break")("}")}for(t("default:")("r.skipType(t&7)")("break")("}")("}"),r=0;r<e._fieldsArray.length;++r){var l=e._fieldsArray[r];l.required&&t("if(!m.hasOwnProperty(%j))",l.name)("throw util.ProtocolError(%j,{instance:m})",n(l))}return t("return m")}},"./protobufjs/src/encoder.js":function(e,t,r){e.exports=u;var o=r("./protobufjs/src/enum.js"),s=r("./protobufjs/src/types.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,o){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,o,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,o,(t.id<<3|2)>>>0)}function u(e){for(var t,r,u=i.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),f=e.fieldsArray.slice().sort(i.compareFieldsById),t=0;t<f.length;++t){var a=f[t].resolve(),l=e._fieldsArray.indexOf(a),p=a.resolvedType instanceof o?"int32":a.type,c=s.basic[p];r="m"+i.safeProp(a.name),a.map?(u("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",r,a.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",r)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(a.id<<3|2)>>>0,8|s.mapKey[a.keyType],a.keyType),void 0===c?u("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,r):u(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|c,p,r),u("}")("}")):a.repeated?(u("if(%s!=null&&%s.length){",r,r),a.packed&&void 0!==s.packed[p]?u("w.uint32(%i).fork()",(a.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",r)("w.%s(%s[i])",p,r)("w.ldelim()"):(u("for(var i=0;i<%s.length;++i)",r),void 0===c?n(u,a,l,r+"[i]"):u("w.uint32(%i).%s(%s[i])",(a.id<<3|c)>>>0,p,r)),u("}")):(a.optional&&u("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",r,a.name),void 0===c?n(u,a,l,r):u("w.uint32(%i).%s(%s)",(a.id<<3|c)>>>0,p,r))}return u("return w")}},"./protobufjs/src/enum.js":function(e,t,r){e.exports=n;var o=r("./protobufjs/src/object.js");((n.prototype=Object.create(o.prototype)).constructor=n).className="Enum";var s=r("./protobufjs/src/namespace.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,s,i,n){if(o.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=s,this.comments=i||{},this.valuesOptions=n,this._valuesFeatures={},this.reserved=void 0,t)for(var u=Object.keys(t),f=0;f<u.length;++f)"number"==typeof t[u[f]]&&(this.valuesById[this.values[u[f]]=t[u[f]]]=u[f])}n.prototype._resolveFeatures=function(e){return e=this._edition||e,o.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},n.fromJSON=function(e,t){var r=new n(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},n.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return i.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])},n.prototype.add=function(e,t,r,o){if(!i.isString(e))throw TypeError("name must be a string");if(!i.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 o&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=o||null),this.comments[e]=r||null,this},n.prototype.remove=function(e){if(!i.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},n.prototype.isReservedId=function(e){return s.isReservedId(this.reserved,e)},n.prototype.isReservedName=function(e){return s.isReservedName(this.reserved,e)}},"./protobufjs/src/field.js":function(e,t,r){e.exports=a;var o,s=r("./protobufjs/src/object.js");((a.prototype=Object.create(s.prototype)).constructor=a).className="Field";var i=r("./protobufjs/src/enum.js"),n=r("./protobufjs/src/types.js"),u=r("./protobufjs/src/util.js"),f=/^required|optional|repeated$/;function a(e,t,r,o,i,a,l){if(u.isObject(o)?(l=i,a=o,o=i=void 0):u.isObject(i)&&(l=a,a=i,i=void 0),s.call(this,e,a),!u.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!u.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!f.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!u.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!u.Long&&void 0!==n.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}a.fromJSON=function(e,t){var r=new a(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(a.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(a.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(a.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(a.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(a.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),a.prototype.setOption=function(e,t,r){return s.prototype.setOption.call(this,e,t,r)},a.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return u.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])},a.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 o?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 i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=u.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;u.base64.test(this.typeDefault)?u.base64.decode(this.typeDefault,e=u.newBuffer(u.base64.length(this.typeDefault)),0):u.utf8.write(this.typeDefault,e=u.newBuffer(u.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=u.emptyObject:this.repeated?this.defaultValue=u.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),s.prototype.resolve.call(this)},a.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 o&&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},a.prototype._resolveFeatures=function(e){return s.prototype._resolveFeatures.call(this,this._edition||e)},a.d=function(e,t,r,o){return"function"==typeof t?t=u.decorateType(t).name:t&&"object"==typeof t&&(t=u.decorateEnum(t).name),function(s,i){u.decorateType(s.constructor).add(new a(i,e,t,r,{default:o}))}},a._configure=function(e){o=e}},"./protobufjs/src/index-light.js":function(e,t,r){var o=e.exports=r("./protobufjs/src/index-minimal.js");function s(e,t,r){return"function"==typeof t?(r=t,t=new o.Root):t||(t=new o.Root),t.load(e,r)}function i(e,t){return t||(t=new o.Root),t.loadSync(e)}o.build="light",o.load=s,o.loadSync=i,o.encoder=r("./protobufjs/src/encoder.js"),o.decoder=r("./protobufjs/src/decoder.js"),o.verifier=r("./protobufjs/src/verifier.js"),o.converter=r("./protobufjs/src/converter.js"),o.ReflectionObject=r("./protobufjs/src/object.js"),o.Namespace=r("./protobufjs/src/namespace.js"),o.Root=r("./protobufjs/src/root.js"),o.Enum=r("./protobufjs/src/enum.js"),o.Type=r("./protobufjs/src/type.js"),o.Field=r("./protobufjs/src/field.js"),o.OneOf=r("./protobufjs/src/oneof.js"),o.MapField=r("./protobufjs/src/mapfield.js"),o.Service=r("./protobufjs/src/service.js"),o.Method=r("./protobufjs/src/method.js"),o.Message=r("./protobufjs/src/message.js"),o.wrappers=r("./protobufjs/src/wrappers.js"),o.types=r("./protobufjs/src/types.js"),o.util=r("./protobufjs/src/util.js"),o.ReflectionObject._configure(o.Root),o.Namespace._configure(o.Type,o.Service,o.Enum),o.Root._configure(o.Type),o.Field._configure(o.Type)},"./protobufjs/src/index-minimal.js":function(e,t,r){var o=t;function s(){o.util._configure(),o.Writer._configure(o.BufferWriter),o.Reader._configure(o.BufferReader)}o.build="minimal",o.Writer=r("./protobufjs/src/writer.js"),o.BufferWriter=r("./protobufjs/src/writer_buffer.js"),o.Reader=r("./protobufjs/src/reader.js"),o.BufferReader=r("./protobufjs/src/reader_buffer.js"),o.util=r("./protobufjs/src/util/minimal.js"),o.rpc=r("./protobufjs/src/rpc.js"),o.roots=r("./protobufjs/src/roots.js"),o.configure=s,s()},"./protobufjs/src/index.js":function(e,t,r){var o=e.exports=r("./protobufjs/src/index-light.js");o.build="full",o.tokenize=r("./protobufjs/src/tokenize.js"),o.parse=r("./protobufjs/src/parse.js"),o.common=r("./protobufjs/src/common.js"),o.Root._configure(o.Type,o.parse,o.common)},"./protobufjs/src/mapfield.js":function(e,t,r){e.exports=n;var o=r("./protobufjs/src/field.js");((n.prototype=Object.create(o.prototype)).constructor=n).className="MapField";var s=r("./protobufjs/src/types.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,s,n,u){if(o.call(this,e,t,s,void 0,void 0,n,u),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}n.fromJSON=function(e,t){return new n(e,t.id,t.keyType,t.type,t.options,t.comment)},n.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},n.prototype.resolve=function(){if(this.resolved)return this;if(void 0===s.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return o.prototype.resolve.call(this)},n.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(o,s){i.decorateType(o.constructor).add(new n(s,e,t,r))}}},"./protobufjs/src/message.js":function(e,t,r){e.exports=s;var o=r("./protobufjs/src/util/minimal.js");function s(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)this[t[r]]=e[t[r]]}s.create=function(e){return this.$type.create(e)},s.encode=function(e,t){return this.$type.encode(e,t)},s.encodeDelimited=function(e,t){return this.$type.encodeDelimited(e,t)},s.decode=function(e){return this.$type.decode(e)},s.decodeDelimited=function(e){return this.$type.decodeDelimited(e)},s.verify=function(e){return this.$type.verify(e)},s.fromObject=function(e){return this.$type.fromObject(e)},s.toObject=function(e,t){return this.$type.toObject(e,t)},s.prototype.toJSON=function(){return this.$type.toObject(this,o.toJSONOptions)}},"./protobufjs/src/method.js":function(e,t,r){e.exports=i;var o=r("./protobufjs/src/object.js");((i.prototype=Object.create(o.prototype)).constructor=i).className="Method";var s=r("./protobufjs/src/util.js");function i(e,t,r,i,n,u,f,a,l){if(s.isObject(n)?(f=n,n=u=void 0):s.isObject(u)&&(f=u,u=void 0),!(void 0===t||s.isString(t)))throw TypeError("type must be a string");if(!s.isString(r))throw TypeError("requestType must be a string");if(!s.isString(i))throw TypeError("responseType must be a string");o.call(this,e,f),this.type=t||"rpc",this.requestType=r,this.requestStream=!!n||void 0,this.responseType=i,this.responseStream=!!u||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=a,this.parsedOptions=l}i.fromJSON=function(e,t){return new i(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},i.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return s.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])},i.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),o.prototype.resolve.call(this))}},"./protobufjs/src/namespace.js":function(e,t,r){e.exports=p;var o,s,i,n=r("./protobufjs/src/object.js");((p.prototype=Object.create(n.prototype)).constructor=p).className="Namespace";var u=r("./protobufjs/src/field.js"),f=r("./protobufjs/src/util.js"),a=r("./protobufjs/src/oneof.js");function l(e,t){if(e&&e.length){for(var r={},o=0;o<e.length;++o)r[e[o].name]=e[o].toJSON(t);return r}}function p(e,t){n.call(this,e,t),this.nested=void 0,this._nestedArray=null,this._lookupCache={},this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}function c(e){e._nestedArray=null,e._lookupCache={};for(var t=e;t=t.parent;)t._lookupCache={};return e}p.fromJSON=function(e,t){return new p(e,t.options).addJSON(t.nested)},p.arrayToJSON=l,p.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},p.isReservedName=function(e,t){if(e){for(var r=0;r<e.length;++r)if(e[r]===t)return!0}return!1},Object.defineProperty(p.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=f.toArray(this.nested))}}),p.prototype.toJSON=function(e){return f.toObject(["options",this.options,"nested",l(this.nestedArray,e)])},p.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?o.fromJSON:void 0!==r.values?i.fromJSON:void 0!==r.methods?s.fromJSON:void 0!==r.id?u.fromJSON:p.fromJSON)(n[f],r));return this},p.prototype.get=function(e){return this.nested&&this.nested[e]||null},p.prototype.getEnum=function(e){if(this.nested&&this.nested[e]instanceof i)return this.nested[e].values;throw Error("no such enum: "+e)},p.prototype.add=function(e){if(!(e instanceof u&&void 0!==e.extend||e instanceof o||e instanceof a||e instanceof i||e instanceof s||e instanceof p))throw TypeError("object must be a valid nested object");if(this.nested){var t=this.get(e.name);if(t)if(t instanceof p&&e instanceof p&&!(t instanceof o||t instanceof s)){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 o||this instanceof s||this instanceof i||this instanceof u||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),c(this)},p.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),c(this)},p.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 o=e.shift();if(r.nested&&r.nested[o]){if(!((r=r.nested[o])instanceof p))throw Error("path conflicts with non-namespace objects")}else r.add(r=new p(o))}return t&&r.addJSON(t),r},p.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 p?e[t++].resolveAll():e[t++].resolve();return this._needsRecursiveResolve=!1,this},p.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},p.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 o=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var s=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+o];if(s&&(!t||t.indexOf(s.constructor)>-1)||(s=this._lookupImpl(e,o))&&(!t||t.indexOf(s.constructor)>-1))return s;if(r)return null;for(var i=this;i.parent;){if((s=i.parent._lookupImpl(e,o))&&(!t||t.indexOf(s.constructor)>-1))return s;i=i.parent}return null},p.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),o=null;if(r)1===e.length?o=r:r instanceof p&&(e=e.slice(1),o=r._lookupImpl(e,e.join(".")));else for(var s=0;s<this.nestedArray.length;++s)this._nestedArray[s]instanceof p&&(r=this._nestedArray[s]._lookupImpl(e,t))&&(o=r);return this._lookupCache[t]=o,o},p.prototype.lookupType=function(e){var t=this.lookup(e,[o]);if(!t)throw Error("no such type: "+e);return t},p.prototype.lookupEnum=function(e){var t=this.lookup(e,[i]);if(!t)throw Error("no such Enum '"+e+"' in "+this);return t},p.prototype.lookupTypeOrEnum=function(e){var t=this.lookup(e,[o,i]);if(!t)throw Error("no such Type or Enum '"+e+"' in "+this);return t},p.prototype.lookupService=function(e){var t=this.lookup(e,[s]);if(!t)throw Error("no such Service '"+e+"' in "+this);return t},p._configure=function(e,t,r){o=e,s=t,i=r}},"./protobufjs/src/object.js":function(e,t,r){e.exports=a,a.className="ReflectionObject";let o=r("./protobufjs/src/oneof.js");var s,i=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"},u={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE"},f={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"};function a(e,t){if(!i.isString(e))throw TypeError("name must be a string");if(t&&!i.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(a.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(".")}}}),a.prototype.toJSON=function(){throw Error()},a.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 s&&t._handleAdd(this)},a.prototype.onRemove=function(e){var t=e.root;t instanceof s&&t._handleRemove(this),this.parent=null,this.resolved=!1},a.prototype.resolve=function(){return this.resolved||this.root instanceof s&&(this.resolved=!0),this},a.prototype._resolveFeaturesRecursive=function(e){return this._resolveFeatures(this._edition||e)},a.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({},u);else if("proto3"===e)t=Object.assign({},f);else if("2023"===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 o){var s=Object.assign({},this.partOf._features);this._features=Object.assign(s,r||{})}else if(this.declaringField);else if(this.parent){var i=Object.assign({},this.parent._features);this._features=Object.assign(i,r||{})}else throw Error("Unable to find a parent for "+this.fullName);this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},a.prototype._inferLegacyProtoFeatures=function(){return{}},a.prototype.getOption=function(e){if(this.options)return this.options[e]},a.prototype.setOption=function(e,t,r){return this.options||(this.options={}),/^features\./.test(e)?i.setProperty(this.options,e,t,r):r&&void 0!==this.options[e]||(this.getOption(e)!==t&&(this.resolved=!1),this.options[e]=t),this},a.prototype.setParsedOption=function(e,t,r){this.parsedOptions||(this.parsedOptions=[]);var o=this.parsedOptions;if(r){var s=o.find(function(t){return Object.prototype.hasOwnProperty.call(t,e)});if(s){var n=s[e];i.setProperty(n,r,t)}else(s={})[e]=i.setProperty({},r,t),o.push(s)}else{var u={};u[e]=t,o.push(u)}return this},a.prototype.setOptions=function(e,t){if(e)for(var r=Object.keys(e),o=0;o<r.length;++o)this.setOption(r[o],e[r[o]],t);return this},a.prototype.toString=function(){var e=this.constructor.className,t=this.fullName;return t.length?e+" "+t:e},a.prototype._editionToJSON=function(){if(this._edition&&"proto3"!==this._edition)return this._edition},a._configure=function(e){s=e}},"./protobufjs/src/oneof.js":function(e,t,r){e.exports=n;var o=r("./protobufjs/src/object.js");((n.prototype=Object.create(o.prototype)).constructor=n).className="OneOf";var s=r("./protobufjs/src/field.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,s){if(Array.isArray(t)||(r=t,t=void 0),o.call(this,e,r),!(void 0===t||Array.isArray(t)))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=s}function u(e){if(e.parent)for(var t=0;t<e.fieldsArray.length;++t)e.fieldsArray[t].parent||e.parent.add(e.fieldsArray[t])}n.fromJSON=function(e,t){return new n(e,t.oneof,t.options,t.comment)},n.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return i.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:void 0])},n.prototype.add=function(e){if(!(e instanceof s))throw TypeError("field must be a Field");return e.parent&&e.parent!==this.parent&&e.parent.remove(e),this.oneof.push(e.name),this.fieldsArray.push(e),e.partOf=this,u(this),this},n.prototype.remove=function(e){if(!(e instanceof s))throw TypeError("field must be a Field");var t=this.fieldsArray.indexOf(e);if(t<0)throw Error(e+" is not a member of "+this);return this.fieldsArray.splice(t,1),(t=this.oneof.indexOf(e.name))>-1&&this.oneof.splice(t,1),e.partOf=null,this},n.prototype.onAdd=function(e){o.prototype.onAdd.call(this,e);for(var t=this,r=0;r<this.oneof.length;++r){var s=e.get(this.oneof[r]);s&&!s.partOf&&(s.partOf=t,t.fieldsArray.push(s))}u(this)},n.prototype.onRemove=function(e){for(var t,r=0;r<this.fieldsArray.length;++r)(t=this.fieldsArray[r]).parent&&t.parent.remove(t);o.prototype.onRemove.call(this,e)},Object.defineProperty(n.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}}),n.d=function(){for(var e=Array(arguments.length),t=0;t<arguments.length;)e[t]=arguments[t++];return function(t,r){i.decorateType(t.constructor).add(new n(r,e)),Object.defineProperty(t,r,{get:i.oneOfGetter(e),set:i.oneOfSetter(e)})}}},"./protobufjs/src/parse.js":function(e,t,r){e.exports=k,k.filename=null,k.defaults={keepCase:!1};var o=r("./protobufjs/src/tokenize.js"),s=r("./protobufjs/src/root.js"),i=r("./protobufjs/src/type.js"),n=r("./protobufjs/src/field.js"),u=r("./protobufjs/src/mapfield.js"),f=r("./protobufjs/src/oneof.js"),a=r("./protobufjs/src/enum.js"),l=r("./protobufjs/src/service.js"),p=r("./protobufjs/src/method.js"),c=r("./protobufjs/src/object.js"),h=r("./protobufjs/src/types.js"),d=r("./protobufjs/src/util.js"),y=/^[1-9][0-9]*$/,v=/^-?[1-9][0-9]*$/,m=/^0[x][0-9a-fA-F]+$/,b=/^-?0[x][0-9a-fA-F]+$/,j=/^0[0-7]+$/,g=/^-?0[0-7]+$/,w=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,O=/^[a-zA-Z_][a-zA-Z_0-9]*$/,_=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/;function k(e,t,r){t instanceof s||(r=t,t=new s),r||(r=k.defaults);var x,A,E,S,T=r.preferTrailingComment||!1,N=o(e,r.alternateCommentMode||!1),R=N.next,F=N.push,I=N.peek,B=N.skip,P=N.cmnt,D=!0,L="proto2",C=t,J=[],$={},q=r.keepCase?function(e){return e}:d.camelCase;function V(){J.forEach(e=>{e._edition=L,Object.keys($).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,$[t],!0)})})}function z(e,t,r){var o=k.filename;return r||(k.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(o?o+", ":"")+"line "+N.line+")")}function M(){var e,t=[];do{if('"'!==(e=R())&&"'"!==e)throw z(e);t.push(R()),B(e),e=I()}while('"'===e||"'"===e);return t.join("")}function U(e){var t=R();switch(t){case"'":case'"':return F(t),M();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return W(t,!0)}catch(r){if(e&&_.test(t))return t;throw z(t,"value")}}function H(e,t){do if(t&&('"'===(r=I())||"'"===r)){var r,o,s=M();if(e.push(s),L>=2023)throw z(s,"id")}else try{e.push([o=G(R()),B("to",!0)?G(R()):o])}catch(o){if(t&&_.test(r)&&L>=2023)e.push(r);else throw o}while(B(",",!0));var i={options:void 0};i.setOption=function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t},ee(i,function(e){if("option"===e)ef(i,e),B(";");else throw z(e)},function(){ec(i)})}function W(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(m.test(e))return r*parseInt(e,16);if(j.test(e))return r*parseInt(e,8);if(w.test(e))return r*parseFloat(e);throw z(e,"number",t)}function G(e,t){switch(e){case"max":case"MAX":case"Max":return 0x1fffffff;case"0":return 0}if(!t&&"-"===e.charAt(0))throw z(e,"id");if(v.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(g.test(e))return parseInt(e,8);throw z(e,"id")}function X(){if(void 0!==A)throw z("package");if(A=R(),!_.test(A))throw z(A,"name");C=C.define(A),B(";")}function Z(){var e,t=I();switch(t){case"weak":e=S||(S=[]),R();break;case"public":R();default:e=E||(E=[])}t=M(),B(";"),e.push(t)}function K(){if(B("="),(L=M())<2023)throw z(L,"syntax");B(";")}function Q(){if(B("="),!["2023"].includes(L=M()))throw z(L,"edition");B(";")}function Y(e,t){switch(t){case"option":return ef(e,t),B(";"),!0;case"message":return et(e,t),!0;case"enum":return en(e,t),!0;case"service":return eh(e,t),!0;case"extend":return ey(e,t),!0}return!1}function ee(e,t,r){var o,s=N.line;if(e&&("string"!=typeof e.comment&&(e.comment=P()),e.filename=k.filename),B("{",!0)){for(;"}"!==(o=R());)t(o);B(";",!0)}else r&&r(),B(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=P(s)||e.comment)}function et(e,t){if(!O.test(t=R()))throw z(t,"type name");var r=new i(t);ee(r,function(e){if(!Y(r,e))switch(e){case"map":es(r,e);break;case"required":if("proto2"!==L)throw z(e);case"repeated":er(r,e);break;case"optional":if("proto3"===L)er(r,"proto3_optional");else if("proto2"!==L)throw z(e);else er(r,"optional");break;case"oneof":ei(r,e);break;case"extensions":H(r.extensions||(r.extensions=[]));break;case"reserved":H(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===L||!_.test(e))throw z(e);F(e),er(r,"optional")}}),e.add(r),e===C&&J.push(r)}function er(e,t,r){var o=R();if("group"===o)return void eo(e,t);for(;o.endsWith(".")||I().startsWith(".");)o+=R();if(!_.test(o))throw z(o,"type");var s=R();if(!O.test(s))throw z(s,"name");s=q(s),B("=");var i=new n(s,G(R()),o,t,r);if(ee(i,function(e){if("option"===e)ef(i,e),B(";");else throw z(e)},function(){ec(i)}),"proto3_optional"===t){var u=new f("_"+s);i.setOption("proto3_optional",!0),u.add(i),e.add(u)}else e.add(i);e===C&&J.push(i)}function eo(e,t){if(L>=2023)throw z("group");var r=R();if(!O.test(r))throw z(r,"name");var o=d.lcFirst(r);r===o&&(r=d.ucFirst(r)),B("=");var s=G(R()),u=new i(r);u.group=!0;var f=new n(o,s,r,t);f.filename=k.filename,ee(u,function(e){switch(e){case"option":ef(u,e),B(";");break;case"required":case"repeated":er(u,e);break;case"optional":"proto3"===L?er(u,"proto3_optional"):er(u,"optional");break;case"message":et(u,e);break;case"enum":en(u,e);break;case"reserved":H(u.reserved||(u.reserved=[]),!0);break;default:throw z(e)}}),e.add(u).add(f)}function es(e){B("<");var t=R();if(void 0===h.mapKey[t])throw z(t,"type");B(",");var r=R();if(!_.test(r))throw z(r,"type");B(">");var o=R();if(!O.test(o))throw z(o,"name");B("=");var s=new u(q(o),G(R()),t,r);ee(s,function(e){if("option"===e)ef(s,e),B(";");else throw z(e)},function(){ec(s)}),e.add(s)}function ei(e,t){if(!O.test(t=R()))throw z(t,"name");var r=new f(q(t));ee(r,function(e){"option"===e?(ef(r,e),B(";")):(F(e),er(r,"optional"))}),e.add(r)}function en(e,t){if(!O.test(t=R()))throw z(t,"name");var r=new a(t);ee(r,function(e){switch(e){case"option":ef(r,e),B(";");break;case"reserved":H(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:eu(r,e)}}),e.add(r),e===C&&J.push(r)}function eu(e,t){if(!O.test(t))throw z(t,"name");B("=");var r=G(R(),!0),o={options:void 0};o.getOption=function(e){return this.options[e]},o.setOption=function(e,t){c.prototype.setOption.call(o,e,t)},o.setParsedOption=function(){},ee(o,function(e){if("option"===e)ef(o,e),B(";");else throw z(e)},function(){ec(o)}),e.add(t,r,o.comment,o.parsedOptions||o.options)}function ef(e,t){var r,o,s=!0;for("option"===t&&(t=R());"="!==t;){if("("===t){var i=R();B(")"),t="("+i+")"}if(s){if(s=!1,t.includes(".")&&!t.includes("(")){var n=t.split(".");r=n[0]+".",t=n[1];continue}r=t}else o=o?o+=t:t;t=R()}var u=ea(e,o?r.concat(o):r);o=o&&"."===o[0]?o.slice(1):o,ep(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,u,o)}function ea(e,t){if(B("{",!0)){for(var r={};!B("}",!0);){if(!O.test(x=R()))throw z(x,"name");if(null===x)throw z(x,"end of input");var o,s,i=x;if(B(":",!0),"{"===I())o=ea(e,t+"."+x);else if("["===I()){if(o=[],B("[",!0)){do s=U(!0),o.push(s);while(B(",",!0));B("]"),void 0!==s&&el(e,t+"."+x,s)}}else o=U(!0),el(e,t+"."+x,o);var n=r[i];n&&(o=[].concat(n).concat(o)),r[i]=o,B(",",!0),B(";",!0)}return r}var u=U(!0);return el(e,t,u),u}function el(e,t,r){if(C===e&&/^features\./.test(t)){$[t]=r;return}e.setOption&&e.setOption(t,r)}function ep(e,t,r,o){e.setParsedOption&&e.setParsedOption(t,r,o)}function ec(e){if(B("[",!0)){do ef(e,"option");while(B(",",!0));B("]")}return e}function eh(e,t){if(!O.test(t=R()))throw z(t,"service name");var r=new l(t);ee(r,function(e){if(!Y(r,e))if("rpc"===e)ed(r,e);else throw z(e)}),e.add(r),e===C&&J.push(r)}function ed(e,t){var r=P(),o=t;if(!O.test(t=R()))throw z(t,"name");var s,i,n,u,f=t;if(B("("),B("stream",!0)&&(i=!0),!_.test(t=R())||(s=t,B(")"),B("returns"),B("("),B("stream",!0)&&(u=!0),!_.test(t=R())))throw z(t);n=t,B(")");var a=new p(f,o,s,n,i,u);a.comment=r,ee(a,function(e){if("option"===e)ef(a,e),B(";");else throw z(e)}),e.add(a)}function ey(e,t){if(!_.test(t=R()))throw z(t,"reference");var r=t;ee(null,function(t){switch(t){case"required":case"repeated":er(e,t,r);break;case"optional":"proto3"===L?er(e,"proto3_optional",r):er(e,"optional",r);break;default:if("proto2"===L||!_.test(t))throw z(t);F(t),er(e,"optional",r)}})}for(;null!==(x=R());)switch(x){case"package":if(!D)throw z(x);X();break;case"import":if(!D)throw z(x);Z();break;case"syntax":if(!D)throw z(x);K();break;case"edition":if(!D)throw z(x);Q();break;case"option":ef(C,x),B(";",!0);break;default:if(Y(C,x)){D=!1;continue}throw z(x)}return V(),k.filename=null,{package:A,imports:E,weakImports:S,root:t}}},"./protobufjs/src/reader.js":function(e,t,r){e.exports=f;var o,s=r("./protobufjs/src/util/minimal.js"),i=s.LongBits,n=s.utf8;function u(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function f(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 f(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new f(e);throw Error("illegal buffer")},l=function(){return s.Buffer?function(e){return(f.create=function(e){return s.Buffer.isBuffer(e)?new o(e):a(e)})(e)}:a};function p(){var e=new i(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 u(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 u(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 c(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw u(this,8);return new i(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}f.create=l(),f.prototype._slice=s.Array.prototype.subarray||s.Array.prototype.slice,f.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,u(this,10);return e}}(),f.prototype.int32=function(){return 0|this.uint32()},f.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},f.prototype.bool=function(){return 0!==this.uint32()},f.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return c(this.buf,this.pos+=4)},f.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|c(this.buf,this.pos+=4)},f.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var e=s.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},f.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var e=s.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},f.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw u(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var o=s.Buffer;return o?o.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},f.prototype.string=function(){var e=this.bytes();return n.read(e,0,e.length)},f.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw u(this,e);this.pos+=e}else do if(this.pos>=this.len)throw u(this);while(128&this.buf[this.pos++]);return this},f.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},f._configure=function(e){o=e,f.create=l(),o._configure();var t=s.Long?"toLong":"toNumber";s.merge(f.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},"./protobufjs/src/reader_buffer.js":function(e,t,r){e.exports=i;var o=r("./protobufjs/src/reader.js");(i.prototype=Object.create(o.prototype)).constructor=i;var s=r("./protobufjs/src/util/minimal.js");function i(e){o.call(this,e)}i._configure=function(){s.Buffer&&(i.prototype._slice=s.Buffer.prototype.slice)},i.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))},i._configure()},"./protobufjs/src/root.js":function(e,t,r){e.exports=p;var o,s,i,n=r("./protobufjs/src/namespace.js");((p.prototype=Object.create(n.prototype)).constructor=p).className="Root";var u=r("./protobufjs/src/field.js"),f=r("./protobufjs/src/enum.js"),a=r("./protobufjs/src/oneof.js"),l=r("./protobufjs/src/util.js");function p(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function c(){}p.fromJSON=function(e,t){return t||(t=new p),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},p.prototype.resolvePath=l.path.resolve,p.prototype.fetch=l.fetch,p.prototype.load=function e(t,r,o){"function"==typeof r&&(o=r,r=void 0);var n=this;if(!o)return l.asPromise(e,n,t,r);var u=o===c;function f(e,t){if(o){if(u)throw e;t&&t.resolveAll();var r=o;o=null,r(e,t)}}function a(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in i)return r}return null}function p(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){s.filename=e;var o,i=s(t,n,r),p=0;if(i.imports)for(;p<i.imports.length;++p)(o=a(i.imports[p])||n.resolvePath(e,i.imports[p]))&&h(o);if(i.weakImports)for(p=0;p<i.weakImports.length;++p)(o=a(i.weakImports[p])||n.resolvePath(e,i.weakImports[p]))&&h(o,!0)}else n.setOptions(t.options).addJSON(t.nested)}catch(e){f(e)}u||d||f(null,n)}function h(e,t){if(e=a(e)||e,!(n.files.indexOf(e)>-1)){if(n.files.push(e),e in i)return void(u?p(e,i[e]):(++d,setTimeout(function(){--d,p(e,i[e])})));if(u){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){t||f(e);return}p(e,r)}else++d,n.fetch(e,function(r,s){if(--d,o){if(r)return void(t?d||f(null,n):f(r));p(e,s)}})}}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v<t.length;++v)(y=n.resolvePath("",t[v]))&&h(y);return u?n.resolveAll():d||f(null,n),n},p.prototype.loadSync=function(e,t){if(!l.isNode)throw Error("not supported");return this.load(e,t,c)},p.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 h=/^[A-Z]/;function d(e,t){var r=t.parent.lookup(t.extend);if(r){var o=new u(t.fullName,t.id,t.type,t.rule,void 0,t.options);return!!r.get(o.name)||(o.declaringField=t,t.extensionField=o,r.add(o),!0)}return!1}p.prototype._handleAdd=function(e){if(e instanceof u)void 0===e.extend||e.extensionField||d(this,e)||this.deferred.push(e);else if(e instanceof f)h.test(e.name)&&(e.parent[e.name]=e.values);else if(!(e instanceof a)){if(e instanceof o)for(var t=0;t<this.deferred.length;)d(this,this.deferred[t])?this.deferred.splice(t,1):++t;for(var r=0;r<e.nestedArray.length;++r)this._handleAdd(e._nestedArray[r]);h.test(e.name)&&(e.parent[e.name]=e)}(e instanceof o||e instanceof f||e instanceof u)&&(this._fullyQualifiedObjects[e.fullName]=e)},p.prototype._handleRemove=function(e){if(e instanceof u){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)h.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]);h.test(e.name)&&delete e.parent[e.name]}delete this._fullyQualifiedObjects[e.fullName]},p._configure=function(e,t,r){o=e,s=t,i=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=s;var o=r("./protobufjs/src/util/minimal.js");function s(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");o.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!r}(s.prototype=Object.create(o.EventEmitter.prototype)).constructor=s,s.prototype.rpcCall=function e(t,r,s,i,n){if(!i)throw TypeError("request must be specified");var u=this;if(!n)return o.asPromise(e,u,t,r,s,i);if(!u.rpcImpl)return void setTimeout(function(){n(Error("already ended"))},0);try{return u.rpcImpl(t,r[u.requestDelimited?"encodeDelimited":"encode"](i).finish(),function(e,r){if(e)return u.emit("error",e,t),n(e);if(null===r)return void u.end(!0);if(!(r instanceof s))try{r=s[u.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return u.emit("error",e,t),n(e)}return u.emit("data",r,t),n(null,r)})}catch(e){u.emit("error",e,t),setTimeout(function(){n(e)},0);return}},s.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=u;var o=r("./protobufjs/src/namespace.js");((u.prototype=Object.create(o.prototype)).constructor=u).className="Service";var s=r("./protobufjs/src/method.js"),i=r("./protobufjs/src/util.js"),n=r("./protobufjs/src/rpc.js");function u(e,t){o.call(this,e,t),this.methods={},this._methodsArray=null}function f(e){return e._methodsArray=null,e}u.fromJSON=function(e,t){var r=new u(e,t.options);if(t.methods)for(var o=Object.keys(t.methods),i=0;i<o.length;++i)r.add(s.fromJSON(o[i],t.methods[o[i]]));return t.nested&&r.addJSON(t.nested),t.edition&&(r._edition=t.edition),r.comment=t.comment,r._defaultEdition="proto3",r},u.prototype.toJSON=function(e){var t=o.prototype.toJSON.call(this,e),r=!!e&&!!e.keepComments;return i.toObject(["edition",this._editionToJSON(),"options",t&&t.options||void 0,"methods",o.arrayToJSON(this.methodsArray,e)||{},"nested",t&&t.nested||void 0,"comment",r?this.comment:void 0])},Object.defineProperty(u.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=i.toArray(this.methods))}}),u.prototype.get=function(e){return this.methods[e]||o.prototype.get.call(this,e)},u.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;o.prototype.resolve.call(this);for(var e=this.methodsArray,t=0;t<e.length;++t)e[t].resolve();return this},u.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(e=this._edition||e,o.prototype._resolveFeaturesRecursive.call(this,e),this.methodsArray.forEach(t=>{t._resolveFeaturesRecursive(e)})),this},u.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof s?(this.methods[e.name]=e,e.parent=this,f(this)):o.prototype.add.call(this,e)},u.prototype.remove=function(e){if(e instanceof s){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,f(this)}return o.prototype.remove.call(this,e)},u.prototype.create=function(e,t,r){for(var o,s=new n.Service(e,t,r),u=0;u<this.methodsArray.length;++u){var f=i.lcFirst((o=this._methodsArray[u]).resolve().name).replace(/[^$\w_]/g,"");s[f]=i.codegen(["r","c"],i.isReserved(f)?f+"_":f)("return this.rpcCall(m,q,s,r,c)")({m:o,q:o.resolvedRequestType.ctor,s:o.resolvedResponseType.ctor})}return s}},"./protobufjs/src/tokenize.js":function(e){e.exports=p;var t=/[\s{}=;:[\],'"()<>]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,o=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,s=/^ *[*/]+ */,i=/^\s*\*?\/*/,n=/\n/g,u=/\s/,f=/\\(.?)/g,a={0:"\0",r:"\r",n:"\n",t:" "};function l(e){return e.replace(f,function(e,t){switch(t){case"\\":case"":return t;default:return a[t]||""}})}function p(e,f){e=e.toString();var a=0,p=e.length,c=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+c+")")}function b(){var t="'"===v?o:r;t.lastIndex=a-1;var s=t.exec(e);if(!s)throw m("string");return a=t.lastIndex,k(v),v=null,l(s[1])}function j(t){return e.charAt(t)}function g(t,r,o){var u,a={type:e.charAt(t++),lineEmpty:!1,leading:o},l=t-(f?2:3);do if(--l<0||"\n"===(u=e.charAt(l))){a.lineEmpty=!0;break}while(" "===u||" "===u);for(var p=e.substring(t,r).split(n),y=0;y<p.length;++y)p[y]=p[y].replace(f?i:s,"").trim();a.text=p.join("\n").trim(),d[c]=a,h=c}function w(t){var r=O(t),o=e.substring(t,r);return/^\s*\/\//.test(o)}function O(e){for(var t=e;t<p&&"\n"!==j(t);)t++;return t}function _(){if(y.length>0)return y.shift();if(v)return b();var r,o,s,i,n,l=0===a;do{if(a===p)return null;for(r=!1;u.test(s=j(a));)if("\n"===s&&(l=!0,++c),++a===p)return null;if("/"===j(a)){if(++a===p)throw m("comment");if("/"===j(a))if(f){if(i=a,n=!1,w(a-1)){n=!0;do if((a=O(a))===p||(a++,!l))break;while(w(a))}else a=Math.min(p,O(a)+1);n&&(g(i,a,l),l=!0),c++,r=!0}else{for(n="/"===j(i=a+1);"\n"!==j(++a);)if(a===p)return null;++a,n&&(g(i,a-1,l),l=!0),++c,r=!0}else{if("*"!==(s=j(a)))return"/";i=a+1,n=f||"*"===j(i);do{if("\n"===s&&++c,++a===p)throw m("comment");o=s,s=j(a)}while("*"!==o||"/"!==s);++a,n&&(g(i,a-2,l),l=!0),r=!0}}}while(r);var h=a;if(t.lastIndex=0,!t.test(j(h++)))for(;h<p&&!t.test(j(h));)++h;var d=e.substring(a,a=h);return('"'===d||"'"===d)&&(v=d),d}function k(e){y.push(e)}function x(){if(!y.length){var e=_();if(null===e)return null;k(e)}return y[0]}function A(e,t){var r=x();if(r===e)return _(),!0;if(!t)throw m("token '"+r+"', '"+e+"' expected");return!1}function E(e){var t,r=null;return void 0===e?(t=d[c-1],delete d[c-1],t&&(f||"*"===t.type||t.lineEmpty)&&(r=t.leading?t.text:null)):(h<e&&x(),t=d[e],delete d[e],t&&!t.lineEmpty&&(f||"/"===t.type)&&(r=t.leading?null:t.text)),r}return Object.defineProperty({next:_,peek:x,push:k,skip:A,cmnt:E},"line",{get:function(){return c}})}p.unescape=l},"./protobufjs/src/type.js":function(e,t,r){e.exports=b;var o=r("./protobufjs/src/namespace.js");((b.prototype=Object.create(o.prototype)).constructor=b).className="Type";var s=r("./protobufjs/src/enum.js"),i=r("./protobufjs/src/oneof.js"),n=r("./protobufjs/src/field.js"),u=r("./protobufjs/src/mapfield.js"),f=r("./protobufjs/src/service.js"),a=r("./protobufjs/src/message.js"),l=r("./protobufjs/src/reader.js"),p=r("./protobufjs/src/writer.js"),c=r("./protobufjs/src/util.js"),h=r("./protobufjs/src/encoder.js"),d=r("./protobufjs/src/decoder.js"),y=r("./protobufjs/src/verifier.js"),v=r("./protobufjs/src/converter.js"),m=r("./protobufjs/src/wrappers.js");function b(e,t){o.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 j(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(b.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]],o=r.id;if(this._fieldsById[o])throw Error("duplicate id "+o+" in "+this);this._fieldsById[o]=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=b.generateConstructor(this)())},set:function(e){var t=e.prototype;t instanceof a||((e.prototype=new a).constructor=e,c.merge(e.prototype,t)),e.$type=e.prototype.$type=this,c.merge(e,a,!0),this._ctor=e;for(var r=0;r<this.fieldsArray.length;++r)this._fieldsArray[r].resolve();var o={};for(r=0;r<this.oneofsArray.length;++r)o[this._oneofsArray[r].resolve().name]={get:c.oneOfGetter(this._oneofsArray[r].oneof),set:c.oneOfSetter(this._oneofsArray[r].oneof)};r&&Object.defineProperties(e.prototype,o)}}}),b.generateConstructor=function(e){for(var t,r=c.codegen(["p"],e.name),o=0;o<e.fieldsArray.length;++o)(t=e._fieldsArray[o]).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]]")},b.fromJSON=function(e,t){var r=new b(e,t.options);r.extensions=t.extensions,r.reserved=t.reserved;for(var a=Object.keys(t.fields),l=0;l<a.length;++l)r.add((void 0!==t.fields[a[l]].keyType?u.fromJSON:n.fromJSON)(a[l],t.fields[a[l]]));if(t.oneofs)for(a=Object.keys(t.oneofs),l=0;l<a.length;++l)r.add(i.fromJSON(a[l],t.oneofs[a[l]]));if(t.nested)for(a=Object.keys(t.nested),l=0;l<a.length;++l){var p=t.nested[a[l]];r.add((void 0!==p.id?n.fromJSON:void 0!==p.fields?b.fromJSON:void 0!==p.values?s.fromJSON:void 0!==p.methods?f.fromJSON:o.fromJSON)(a[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},b.prototype.toJSON=function(e){var t=o.prototype.toJSON.call(this,e),r=!!e&&!!e.keepComments;return c.toObject(["edition",this._editionToJSON(),"options",t&&t.options||void 0,"oneofs",o.arrayToJSON(this.oneofsArray,e),"fields",o.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])},b.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;o.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},b.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(e=this._edition||e,o.prototype._resolveFeaturesRecursive.call(this,e),this.oneofsArray.forEach(t=>{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)})),this},b.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},b.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),j(this)}return e instanceof i?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),j(this)):o.prototype.add.call(this,e)},b.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),j(this)}if(e instanceof i){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),j(this)}return o.prototype.remove.call(this,e)},b.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},b.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)},b.prototype.create=function(e){return new this.ctor(e)},b.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=h(this)({Writer:p,types:t,util:c}),this.decode=d(this)({Reader:l,types:t,util:c}),this.verify=y(this)({types:t,util:c}),this.fromObject=v.fromObject(this)({types:t,util:c}),this.toObject=v.toObject(this)({types:t,util:c});var o=m[e];if(o){var s=Object.create(this);s.fromObject=this.fromObject,this.fromObject=o.fromObject.bind(s),s.toObject=this.toObject,this.toObject=o.toObject.bind(s)}return this},b.prototype.encode=function(e,t){return this.setup().encode(e,t)},b.prototype.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},b.prototype.decode=function(e,t){return this.setup().decode(e,t)},b.prototype.decodeDelimited=function(e){return e instanceof l||(e=l.create(e)),this.decode(e,e.uint32())},b.prototype.verify=function(e){return this.setup().verify(e)},b.prototype.fromObject=function(e){return this.setup().fromObject(e)},b.prototype.toObject=function(e,t){return this.setup().toObject(e,t)},b.d=function(e){return function(t){c.decorateType(t,e)}}},"./protobufjs/src/types.js":function(e,t,r){var o=t,s=r("./protobufjs/src/util.js"),i=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function n(e,t){var r=0,o={};for(t|=0;r<e.length;)o[i[r+t]]=e[r++];return o}o.basic=n([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),o.defaults=n([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",s.emptyArray,null]),o.long=n([0,0,0,1,1],7),o.mapKey=n([0,0,0,5,5,0,0,0,1,1,0,2],2),o.packed=n([1,5,0,0,0,5,5,0,0,0,1,1,0])},"./protobufjs/src/util.js":function(e,t,r){var o,s,i=e.exports=r("./protobufjs/src/util/minimal.js"),n=r("./protobufjs/src/roots.js");i.codegen=r("./@protobufjs/codegen/index.js"),i.fetch=r("./@protobufjs/fetch/index.js"),i.path=r("./@protobufjs/path/index.js"),i.fs=i.inquire("fs"),i.toArray=function(e){if(e){for(var t=Object.keys(e),r=Array(t.length),o=0;o<t.length;)r[o]=e[t[o++]];return r}return[]},i.toObject=function(e){for(var t={},r=0;r<e.length;){var o=e[r++],s=e[r++];void 0!==s&&(t[o]=s)}return t};var u=/\\/g,f=/"/g;i.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)},i.safeProp=function(e){return!/^[$\w_]+$/.test(e)||i.isReserved(e)?'["'+e.replace(u,"\\\\").replace(f,'\\"')+'"]':"."+e},i.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.substring(1)};var a=/_([a-z])/g;i.camelCase=function(e){return e.substring(0,1)+e.substring(1).replace(a,function(e,t){return t.toUpperCase()})},i.compareFieldsById=function(e,t){return e.id-t.id},i.decorateType=function(e,t){if(e.$type)return t&&e.$type.name!==t&&(i.decorateRoot.remove(e.$type),e.$type.name=t,i.decorateRoot.add(e.$type)),e.$type;o||(o=r("./protobufjs/src/type.js"));var s=new o(t||e.name);return i.decorateRoot.add(s),s.ctor=e,Object.defineProperty(e,"$type",{value:s,enumerable:!1}),Object.defineProperty(e.prototype,"$type",{value:s,enumerable:!1}),s};var l=0;i.decorateEnum=function(e){if(e.$type)return e.$type;s||(s=r("./protobufjs/src/enum.js"));var t=new s("Enum"+l++,e);return i.decorateRoot.add(t),Object.defineProperty(e,"$type",{value:t,enumerable:!1}),t},i.setProperty=function(e,t,r,o){function s(e,t,r){var i=t.shift();if("__proto__"===i||"prototype"===i)return e;if(t.length>0)e[i]=s(e[i]||{},t,r);else{var n=e[i];if(n&&o)return e;n&&(r=[].concat(n).concat(r)),e[i]=r}return e}if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return s(e,t=t.split("."),r)},Object.defineProperty(i,"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=s;var o=r("./protobufjs/src/util/minimal.js");function s(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=s.zero=new s(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var n=s.zeroHash="\0\0\0\0\0\0\0\0";s.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,o=(e-r)/0x100000000>>>0;return t&&(o=~o>>>0,r=~r>>>0,++r>0xffffffff&&(r=0,++o>0xffffffff&&(o=0))),new s(r,o)},s.from=function(e){if("number"==typeof e)return s.fromNumber(e);if(o.isString(e))if(!o.Long)return s.fromNumber(parseInt(e,10));else e=o.Long.fromString(e);return e.low||e.high?new s(e.low>>>0,e.high>>>0):i},s.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},s.prototype.toLong=function(e){return o.Long?new o.Long(0|this.lo,0|this.hi,!!e):{low:0|this.lo,high:0|this.hi,unsigned:!!e}};var u=String.prototype.charCodeAt;s.fromHash=function(e){return e===n?i:new s((u.call(e,0)|u.call(e,1)<<8|u.call(e,2)<<16|u.call(e,3)<<24)>>>0,(u.call(e,4)|u.call(e,5)<<8|u.call(e,6)<<16|u.call(e,7)<<24)>>>0)},s.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)},s.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},s.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},s.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 o=t;function s(e,t,r){for(var o=Object.keys(t),s=0;s<o.length;++s)void 0!==e[o[s]]&&r||(e[o[s]]=t[o[s]]);return e}function i(e){function t(e,r){if(!(this instanceof t))return new t(e,r);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:Error().stack||""}),r&&s(this,r)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,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}}),t}o.asPromise=r("./@protobufjs/aspromise/index.js"),o.base64=r("./@protobufjs/base64/index.js"),o.EventEmitter=r("./@protobufjs/eventemitter/index.js"),o.float=r("./@protobufjs/float/index.js"),o.inquire=r("./@protobufjs/inquire/index.js"),o.utf8=r("./@protobufjs/utf8/index.js"),o.pool=r("./@protobufjs/pool/index.js"),o.LongBits=r("./protobufjs/src/util/longbits.js"),o.isNode=!!("undefined"!=typeof global&&global&&global.process&&global.process.versions&&global.process.versions.node),o.global=o.isNode&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,o.emptyArray=Object.freeze?Object.freeze([]):[],o.emptyObject=Object.freeze?Object.freeze({}):{},o.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},o.isString=function(e){return"string"==typeof e||e instanceof String},o.isObject=function(e){return e&&"object"==typeof e},o.isset=o.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)},o.Buffer=function(){try{var e=o.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(e){return"number"==typeof e?o.Buffer?o._Buffer_allocUnsafe(e):new o.Array(e):o.Buffer?o._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},o.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire("long"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(e){return e?o.LongBits.from(e).toHash():o.LongBits.zeroHash},o.longFromHash=function(e,t){var r=o.LongBits.fromHash(e);return o.Long?o.Long.fromBits(r.lo,r.hi,t):r.toNumber(!!t)},o.merge=s,o.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},o.newError=i,o.ProtocolError=i("ProtocolError"),o.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]}},o.oneOfSetter=function(e){return function(t){for(var r=0;r<e.length;++r)e[r]!==t&&delete this[e[r]]}},o.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},o._configure=function(){var e=o.Buffer;if(!e){o._Buffer_from=o._Buffer_allocUnsafe=null;return}o._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,r){return new e(t,r)},o._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}}},"./protobufjs/src/verifier.js":function(e,t,r){e.exports=f;var o=r("./protobufjs/src/enum.js"),s=r("./protobufjs/src/util.js");function i(e,t){return e.name+": "+t+(e.repeated&&"array"!==t?"[]":e.map&&"object"!==t?"{k:"+e.keyType+"}":"")+" expected"}function n(e,t,r,s){if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(%s){",s)("default:")("return%j",i(t,"enum value"));for(var n=Object.keys(t.resolvedType.values),u=0;u<n.length;++u)e("case %i:",t.resolvedType.values[n[u]]);e("break")("}")}else e("{")("var e=types[%i].verify(%s);",r,s)("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))",s)("return%j",i(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)))",s,s,s,s)("return%j",i(t,"integer|Long"));break;case"float":case"double":e('if(typeof %s!=="number")',s)("return%j",i(t,"number"));break;case"bool":e('if(typeof %s!=="boolean")',s)("return%j",i(t,"boolean"));break;case"string":e("if(!util.isString(%s))",s)("return%j",i(t,"string"));break;case"bytes":e('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',s,s,s)("return%j",i(t,"buffer"))}return e}function u(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",i(t,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.key64Re.test(%s))",r)("return%j",i(t,"integer|Long key"));break;case"bool":e("if(!util.key2Re.test(%s))",r)("return%j",i(t,"boolean key"))}return e}function f(e){var t=s.codegen(["m"],e.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),r=e.oneofsArray,o={};r.length&&t("var p={}");for(var f=0;f<e.fieldsArray.length;++f){var a=e._fieldsArray[f].resolve(),l="m"+s.safeProp(a.name);if(a.optional&&t("if(%s!=null&&m.hasOwnProperty(%j)){",l,a.name),a.map)t("if(!util.isObject(%s))",l)("return%j",i(a,"object"))("var k=Object.keys(%s)",l)("for(var i=0;i<k.length;++i){"),u(t,a,"k[i]"),n(t,a,f,l+"[k[i]]")("}");else if(a.repeated)t("if(!Array.isArray(%s))",l)("return%j",i(a,"array"))("for(var i=0;i<%s.length;++i){",l),n(t,a,f,l+"[i]")("}");else{if(a.partOf){var p=s.safeProp(a.partOf.name);1===o[a.partOf.name]&&t("if(p%s===1)",p)("return%j",a.partOf.name+": multiple values"),o[a.partOf.name]=1,t("p%s=1",p)}n(t,a,f,l)}a.optional&&t("}")}return t("return null")}},"./protobufjs/src/wrappers.js":function(e,t,r){var o=t,s=r("./protobufjs/src/message.js");o[".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 o="."===e["@type"].charAt(0)?e["@type"].slice(1):e["@type"];return -1===o.indexOf("/")&&(o="/"+o),this.create({type_url:o,value:r.encode(r.fromObject(e)).finish()})}}return this.fromObject(e)},toObject:function(e,t){var r="type.googleapis.com/",o="",i="";if(t&&t.json&&e.type_url&&e.value){i=e.type_url.substring(e.type_url.lastIndexOf("/")+1),o=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var n=this.lookup(i);n&&(e=n.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof s){var u=e.$type.toObject(e,t),f="."===e.$type.fullName[0]?e.$type.fullName.slice(1):e.$type.fullName;return""===o&&(o=r),i=o+f,u["@type"]=i,u}return this.toObject(e,t)}}},"./protobufjs/src/writer.js":function(e,t,r){e.exports=p;var o,s=r("./protobufjs/src/util/minimal.js"),i=s.LongBits,n=s.base64,u=s.utf8;function f(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function a(){}function l(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function p(){this.len=0,this.head=new f(a,0,0),this.tail=this.head,this.states=null}var c=function(){return s.Buffer?function(){return(p.create=function(){return new o})()}:function(){return new p}};function h(e,t,r){t[r]=255&e}function d(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e}function y(e,t){this.len=e,this.next=void 0,this.val=t}function v(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 m(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}p.create=c(),p.alloc=function(e){return new s.Array(e)},s.Array!==Array&&(p.alloc=s.pool(p.alloc,s.Array.prototype.subarray)),p.prototype._push=function(e,t,r){return this.tail=this.tail.next=new f(e,t,r),this.len+=t,this},y.prototype=Object.create(f.prototype),y.prototype.fn=d,p.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new y((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this},p.prototype.int32=function(e){return e<0?this._push(v,10,i.fromNumber(e)):this.uint32(e)},p.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},p.prototype.uint64=function(e){var t=i.from(e);return this._push(v,t.length(),t)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(v,t.length(),t)},p.prototype.bool=function(e){return this._push(h,1,+!!e)},p.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(e){var t=i.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(e){return this._push(s.float.writeFloatLE,4,e)},p.prototype.double=function(e){return this._push(s.float.writeDoubleLE,8,e)};var b=s.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var o=0;o<e.length;++o)t[r+o]=e[o]};p.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(h,1,0);if(s.isString(e)){var r=p.alloc(t=n.length(e));n.decode(e,r,0),e=r}return this.uint32(t)._push(b,t,e)},p.prototype.string=function(e){var t=u.length(e);return t?this.uint32(t)._push(u.write,t,e):this._push(h,1,0)},p.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new f(a,0,0),this.len=0,this},p.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new f(a,0,0),this.len=0),this},p.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},p.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},p._configure=function(e){o=e,p.create=c(),o._configure()}},"./protobufjs/src/writer_buffer.js":function(e,t,r){e.exports=i;var o=r("./protobufjs/src/writer.js");(i.prototype=Object.create(o.prototype)).constructor=i;var s=r("./protobufjs/src/util/minimal.js");function i(){o.call(this)}function n(e,t,r){e.length<40?s.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=s._Buffer_allocUnsafe,i.writeBytesBuffer=s.Buffer&&s.Buffer.prototype instanceof Uint8Array&&"set"===s.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 o=0;o<e.length;)t[r++]=e[o++]}},i.prototype.bytes=function(e){s.isString(e)&&(e=s._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=s.Buffer.byteLength(e);return this.uint32(t),t&&this._push(n,t,e),this},i._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":function(e){e.exports=t;function t(e,t){for(var r=Array(arguments.length-1),o=0,s=2,i=!0;s<arguments.length;)r[o++]=arguments[s++];return new Promise(function(s,n){r[o]=function(e){if(i)if(i=!1,e)n(e);else{for(var t=Array(arguments.length-1),r=0;r<t.length;)t[r++]=arguments[r];s.apply(null,t)}};try{e.apply(t||null,r)}catch(e){i&&(i=!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 o=Array(64),s=Array(123),i=0;i<64;)s[o[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var s,i=null,n=[],u=0,a=0;t<r;){var f=e[t++];switch(a){case 0:n[u++]=o[f>>2],s=(3&f)<<4,a=1;break;case 1:n[u++]=o[s|f>>4],s=(15&f)<<2,a=2;break;case 2:n[u++]=o[s|f>>6],n[u++]=o[63&f],a=0}u>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,n)),u=0)}return(a&&(n[u++]=o[s],n[u++]=61,1===a&&(n[u++]=61)),i)?(u&&i.push(String.fromCharCode.apply(String,n.slice(0,u))),i.join("")):String.fromCharCode.apply(String,n.slice(0,u))};var n="invalid encoding";r.decode=function(e,t,r){for(var o,i=r,u=0,a=0;a<e.length;){var f=e.charCodeAt(a++);if(61===f&&u>1)break;if(void 0===(f=s[f]))throw Error(n);switch(u){case 0:o=f,u=1;break;case 1:t[r++]=o<<2|(48&f)>>4,o=f,u=2;break;case 2:t[r++]=(15&o)<<4|(60&f)>>2,o=f,u=3;break;case 3:t[r++]=(3&o)<<6|f,u=0}}if(1===u)throw Error(n);return r-i},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 t(e,r){"string"==typeof e&&(r=e,e=void 0);var o=[];function s(e){if("string"!=typeof e){var r=i();if(t.verbose&&console.log("codegen: "+r),r="return "+r,e){for(var n=Object.keys(e),u=Array(n.length+1),a=Array(n.length),f=0;f<n.length;)u[f]=n[f],a[f]=e[n[f++]];return u[f]=r,Function.apply(null,u).apply(null,a)}return Function(r)()}for(var l=Array(arguments.length-1),p=0;p<l.length;)l[p]=arguments[++p];if(p=0,e=e.replace(/%([%dfijs])/g,function(e,t){var r=l[p++];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"%"}),p!==l.length)throw Error("parameter count mismatch");return o.push(e),s}function i(t){return"function "+(t||r||"")+"("+(e&&e.join(",")||"")+"){\n "+o.join("\n ")+"\n}"}return s.toString=i,s}e.exports=t,t.verbose=!1},"./@protobufjs/eventemitter/index.js":function(e){function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},t.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],o=0;o<r.length;)r[o].fn===t?r.splice(o,1):++o;return this},t.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var r=[],o=1;o<arguments.length;)r.push(arguments[o++]);for(o=0;o<t.length;)t[o].fn.apply(t[o++].ctx,r)}return this}},"./@protobufjs/fetch/index.js":function(e,t,r){e.exports=i;var o=r("./@protobufjs/aspromise/index.js"),s=r("./@protobufjs/inquire/index.js")("fs");function i(e,t,r){return("function"==typeof t?(r=t,t={}):t||(t={}),r)?!t.xhr&&s&&s.readFile?s.readFile(e,function(o,s){return o&&"undefined"!=typeof XMLHttpRequest?i.xhr(e,t,r):o?r(o):r(null,t.binary?s:s.toString("utf8"))}):i.xhr(e,t,r):o(i,this,e,t)}i.xhr=function(e,t,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){if(4===o.readyState){if(0!==o.status&&200!==o.status)return r(Error("status "+o.status));if(t.binary){var e=o.response;if(!e){e=[];for(var s=0;s<o.responseText.length;++s)e.push(255&o.responseText.charCodeAt(s))}return r(null,"undefined"!=typeof Uint8Array?new Uint8Array(e):e)}return r(null,o.responseText)}},t.binary&&("overrideMimeType"in o&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.responseType="arraybuffer"),o.open("GET",e),o.send()}},"./@protobufjs/float/index.js":function(e){function t(e){return"undefined"!=typeof Float32Array?!function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),o=128===r[3];function s(e,o,s){t[0]=e,o[s]=r[0],o[s+1]=r[1],o[s+2]=r[2],o[s+3]=r[3]}function i(e,o,s){t[0]=e,o[s]=r[3],o[s+1]=r[2],o[s+2]=r[1],o[s+3]=r[0]}function n(e,o){return r[0]=e[o],r[1]=e[o+1],r[2]=e[o+2],r[3]=e[o+3],t[0]}function u(e,o){return r[3]=e[o],r[2]=e[o+1],r[1]=e[o+2],r[0]=e[o+3],t[0]}e.writeFloatLE=o?s:i,e.writeFloatBE=o?i:s,e.readFloatLE=o?n:u,e.readFloatBE=o?u:n}():!function(){function t(e,t,r,o){var s=+(t<0);if(s&&(t=-t),0===t)e(1/t>0?0:0x80000000,r,o);else if(isNaN(t))e(0x7fc00000,r,o);else if(t>34028234663852886e22)e((s<<31|0x7f800000)>>>0,r,o);else if(t<11754943508222875e-54)e((s<<31|Math.round(t/1401298464324817e-60))>>>0,r,o);else{var i=Math.floor(Math.log(t)/Math.LN2),n=8388607&Math.round(t*Math.pow(2,-i)*8388608);e((s<<31|i+127<<23|n)>>>0,r,o)}}function n(e,t,r){var o=e(t,r),s=(o>>31)*2+1,i=o>>>23&255,n=8388607&o;return 255===i?n?NaN:1/0*s:0===i?1401298464324817e-60*s*n:s*Math.pow(2,i-150)*(n+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,o),e.readFloatLE=n.bind(null,s),e.readFloatBE=n.bind(null,i)}(),"undefined"!=typeof Float64Array?!function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),o=128===r[7];function s(e,o,s){t[0]=e,o[s]=r[0],o[s+1]=r[1],o[s+2]=r[2],o[s+3]=r[3],o[s+4]=r[4],o[s+5]=r[5],o[s+6]=r[6],o[s+7]=r[7]}function i(e,o,s){t[0]=e,o[s]=r[7],o[s+1]=r[6],o[s+2]=r[5],o[s+3]=r[4],o[s+4]=r[3],o[s+5]=r[2],o[s+6]=r[1],o[s+7]=r[0]}function n(e,o){return r[0]=e[o],r[1]=e[o+1],r[2]=e[o+2],r[3]=e[o+3],r[4]=e[o+4],r[5]=e[o+5],r[6]=e[o+6],r[7]=e[o+7],t[0]}function u(e,o){return r[7]=e[o],r[6]=e[o+1],r[5]=e[o+2],r[4]=e[o+3],r[3]=e[o+4],r[2]=e[o+5],r[1]=e[o+6],r[0]=e[o+7],t[0]}e.writeDoubleLE=o?s:i,e.writeDoubleBE=o?i:s,e.readDoubleLE=o?n:u,e.readDoubleBE=o?u:n}():!function(){function t(e,t,r,o,s,i){var n,u=+(o<0);if(u&&(o=-o),0===o)e(0,s,i+t),e(1/o>0?0:0x80000000,s,i+r);else if(isNaN(o))e(0,s,i+t),e(0x7ff80000,s,i+r);else if(o>17976931348623157e292)e(0,s,i+t),e((u<<31|0x7ff00000)>>>0,s,i+r);else if(o<22250738585072014e-324)e((n=o/5e-324)>>>0,s,i+t),e((u<<31|n/0x100000000)>>>0,s,i+r);else{var a=Math.floor(Math.log(o)/Math.LN2);1024===a&&(a=1023),e(0x10000000000000*(n=o*Math.pow(2,-a))>>>0,s,i+t),e((u<<31|a+1023<<20|1048576*n&1048575)>>>0,s,i+r)}}function n(e,t,r,o,s){var i=e(o,s+t),n=e(o,s+r),u=(n>>31)*2+1,a=n>>>20&2047,f=0x100000000*(1048575&n)+i;return 2047===a?f?NaN:1/0*u:0===a?5e-324*u*f:u*Math.pow(2,a-1075)*(f+0x10000000000000)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,o,4,0),e.readDoubleLE=n.bind(null,s,0,4),e.readDoubleBE=n.bind(null,i,4,0)}(),e}function r(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 o(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 s(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},"./@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,o=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},s=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=o(e),s="";r&&(s=t.shift()+"/");for(var i=0;i<t.length;)".."===t[i]?i>0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return s+t.join("/")};r.resolve=function(e,t,r){return(r||(t=s(t)),o(t))?t:(r||(e=s(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?s(e+"/"+t):t)}},"./@protobufjs/pool/index.js":function(e){e.exports=t;function t(e,t,r){var o=r||8192,s=o>>>1,i=null,n=o;return function(r){if(r<1||r>s)return e(r);n+r>o&&(i=e(o),n=0);var u=t.call(i,n,n+=r);return 7&n&&(n=(7|n)+1),u}}},"./@protobufjs/utf8/index.js":function(e,t){var r=t;r.length=function(e){for(var t=0,r=0,o=0;o<e.length;++o)(r=e.charCodeAt(o))<128?t+=1:r<2048?t+=2:(64512&r)==55296&&(64512&e.charCodeAt(o+1))==56320?(++o,t+=4):t+=3;return t},r.read=function(e,t,r){if(r-t<1)return"";for(var o,s=null,i=[],n=0;t<r;)(o=e[t++])<128?i[n++]=o:o>191&&o<224?i[n++]=(31&o)<<6|63&e[t++]:o>239&&o<365?(o=((7&o)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[n++]=55296+(o>>10),i[n++]=56320+(1023&o)):i[n++]=(15&o)<<12|(63&e[t++])<<6|63&e[t++],n>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,i)),n=0);return s?(n&&s.push(String.fromCharCode.apply(String,i.slice(0,n))),s.join("")):String.fromCharCode.apply(String,i.slice(0,n))},r.write=function(e,t,r){for(var o,s,i=r,n=0;n<e.length;++n)(o=e.charCodeAt(n))<128?t[r++]=o:(o<2048?t[r++]=o>>6|192:((64512&o)==55296&&(64512&(s=e.charCodeAt(n+1)))==56320?(o=65536+((1023&o)<<10)+(1023&s),++n,t[r++]=o>>18|240,t[r++]=o>>12&63|128):t[r++]=o>>12|224,t[r++]=o>>6&63|128),t[r++]=63&o|128);return r-i}},"./protobufjs/index.js":function(e,t,r){e.exports=r("./protobufjs/src/index.js")},"./protobufjs/src/common.js":function(e){e.exports=o;var t,r=/\/|\./;function o(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),o[e]=t}o("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),o("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),o("timestamp",{Timestamp:t}),o("empty",{Empty:{fields:{}}}),o("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}}}}),o("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}}}}),o("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),o.get=function(e){return o[e]||null}},"./protobufjs/src/converter.js":function(e,t,r){var o=t,s=r("./protobufjs/src/enum.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,o){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof s){e("switch(d%s){",o);for(var n=t.resolvedType.values,u=Object.keys(n),a=0;a<u.length;++a)n[u[a]]!==t.typeDefault||i||(e("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',o,o,o),t.repeated||e("break"),i=!0),e("case%j:",u[a])("case %i:",n[u[a]])("m%s=%j",o,n[u[a]])("break");e("}")}else e('if(typeof d%s!=="object")',o)("throw TypeError(%j)",t.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",o,r,o);else{var f=!1;switch(t.type){case"double":case"float":e("m%s=Number(d%s)",o,o);break;case"uint32":case"fixed32":e("m%s=d%s>>>0",o,o);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",o,o);break;case"uint64":f=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",o,o,f)('else if(typeof d%s==="string")',o)("m%s=parseInt(d%s,10)",o,o)('else if(typeof d%s==="number")',o)("m%s=d%s",o,o)('else if(typeof d%s==="object")',o)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",o,o,o,f?"true":"");break;case"bytes":e('if(typeof d%s==="string")',o)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",o,o,o)("else if(d%s.length >= 0)",o)("m%s=d%s",o,o);break;case"string":e("m%s=String(d%s)",o,o);break;case"bool":e("m%s=Boolean(d%s)",o,o)}}return e}function u(e,t,r,o){if(t.resolvedType)t.resolvedType instanceof s?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",o,r,o,o,r,o,o):e("d%s=types[%i].toObject(m%s,o)",o,r,o);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",o,o,o,o);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',o)("d%s=o.longs===String?String(m%s):m%s",o,o,o)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",o,o,o,o,i?"true":"",o);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",o,o,o,o,o);break;default:e("d%s=m%s",o,o)}}return e}o.fromObject=function(e){var t=e.fieldsArray,r=i.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 o=0;o<t.length;++o){var u=t[o].resolve(),a=i.safeProp(u.name);u.map?(r("if(d%s){",a)('if(typeof d%s!=="object")',a)("throw TypeError(%j)",u.fullName+": object expected")("m%s={}",a)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",a),n(r,u,o,a+"[ks[i]]")("}")("}")):u.repeated?(r("if(d%s){",a)("if(!Array.isArray(d%s))",a)("throw TypeError(%j)",u.fullName+": array expected")("m%s=[]",a)("for(var i=0;i<d%s.length;++i){",a),n(r,u,o,a+"[i]")("}")("}")):(u.resolvedType instanceof s||r("if(d%s!=null){",a),n(r,u,o,a),u.resolvedType instanceof s||r("}"))}return r("return m")},o.toObject=function(e){var t=e.fieldsArray.slice().sort(i.compareFieldsById);if(!t.length)return i.codegen()("return {}");for(var r=i.codegen(["m","o"],e.name+"$toObject")("if(!o)")("o={}")("var d={}"),o=[],n=[],a=[],f=0;f<t.length;++f)t[f].partOf||(t[f].resolve().repeated?o:t[f].map?n:a).push(t[f]);if(o.length){for(r("if(o.arrays||o.defaults){"),f=0;f<o.length;++f)r("d%s=[]",i.safeProp(o[f].name));r("}")}if(n.length){for(r("if(o.objects||o.defaults){"),f=0;f<n.length;++f)r("d%s={}",i.safeProp(n[f].name));r("}")}if(a.length){for(r("if(o.defaults){"),f=0;f<a.length;++f){var l=a[f],p=i.safeProp(l.name);if(l.resolvedType instanceof s)r("d%s=o.enums===String?%j:%j",p,l.resolvedType.valuesById[l.typeDefault],l.typeDefault);else if(l.long)r("if(util.Long){")("var n=new util.Long(%i,%i,%j)",l.typeDefault.low,l.typeDefault.high,l.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",p)("}else")("d%s=o.longs===String?%j:%i",p,l.typeDefault.toString(),l.typeDefault.toNumber());else if(l.bytes){var c="["+Array.prototype.slice.call(l.typeDefault).join(",")+"]";r("if(o.bytes===String)d%s=%j",p,String.fromCharCode.apply(String,l.typeDefault))("else{")("d%s=%s",p,c)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",p,p)("}")}else r("d%s=%j",p,l.typeDefault)}r("}")}var h=!1;for(f=0;f<t.length;++f){var l=t[f],d=e._fieldsArray.indexOf(l),p=i.safeProp(l.name);l.map?(h||(h=!0,r("var ks2")),r("if(m%s&&(ks2=Object.keys(m%s)).length){",p,p)("d%s={}",p)("for(var j=0;j<ks2.length;++j){"),u(r,l,d,p+"[ks2[j]]")("}")):l.repeated?(r("if(m%s&&m%s.length){",p,p)("d%s=[]",p)("for(var j=0;j<m%s.length;++j){",p),u(r,l,d,p+"[j]")("}")):(r("if(m%s!=null&&m.hasOwnProperty(%j)){",p,l.name),u(r,l,d,p),l.partOf&&r("if(o.oneofs)")("d%s=%j",i.safeProp(l.partOf.name),l.name)),r("}")}return r("return d")}},"./protobufjs/src/decoder.js":function(e,t,r){e.exports=u;var o=r("./protobufjs/src/enum.js"),s=r("./protobufjs/src/types.js"),i=r("./protobufjs/src/util.js");function n(e){return"missing required '"+e.name+"'"}function u(e){for(var t=i.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 u=e._fieldsArray[r].resolve(),a=u.resolvedType instanceof o?"int32":u.type,f="m"+i.safeProp(u.name);t("case %i: {",u.id),u.map?(t("if(%s===util.emptyObject)",f)("%s={}",f)("var c2 = r.uint32()+r.pos"),void 0!==s.defaults[u.keyType]?t("k=%j",s.defaults[u.keyType]):t("k=null"),void 0!==s.defaults[a]?t("value=%j",s.defaults[a]):t("value=null"),t("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",u.keyType)("case 2:"),void 0===s.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!==s.long[u.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',f):t("%s[k]=value",f)):u.repeated?(t("if(!(%s&&%s.length))",f,f)("%s=[]",f),void 0!==s.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===s.basic[a]?t(u.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===s.basic[a]?t(u.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 l=e._fieldsArray[r];l.required&&t("if(!m.hasOwnProperty(%j))",l.name)("throw util.ProtocolError(%j,{instance:m})",n(l))}return t("return m")}},"./protobufjs/src/encoder.js":function(e,t,r){e.exports=u;var o=r("./protobufjs/src/enum.js"),s=r("./protobufjs/src/types.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,o){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,o,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,o,(t.id<<3|2)>>>0)}function u(e){for(var t,r,u=i.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),a=e.fieldsArray.slice().sort(i.compareFieldsById),t=0;t<a.length;++t){var f=a[t].resolve(),l=e._fieldsArray.indexOf(f),p=f.resolvedType instanceof o?"int32":f.type,c=s.basic[p];r="m"+i.safeProp(f.name),f.map?(u("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|s.mapKey[f.keyType],f.keyType),void 0===c?u("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,r):u(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|c,p,r),u("}")("}")):f.repeated?(u("if(%s!=null&&%s.length){",r,r),f.packed&&void 0!==s.packed[p]?u("w.uint32(%i).fork()",(f.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",r)("w.%s(%s[i])",p,r)("w.ldelim()"):(u("for(var i=0;i<%s.length;++i)",r),void 0===c?n(u,f,l,r+"[i]"):u("w.uint32(%i).%s(%s[i])",(f.id<<3|c)>>>0,p,r)),u("}")):(f.optional&&u("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",r,f.name),void 0===c?n(u,f,l,r):u("w.uint32(%i).%s(%s)",(f.id<<3|c)>>>0,p,r))}return u("return w")}},"./protobufjs/src/enum.js":function(e,t,r){e.exports=n;var o=r("./protobufjs/src/object.js");((n.prototype=Object.create(o.prototype)).constructor=n).className="Enum";var s=r("./protobufjs/src/namespace.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,s,i,n){if(o.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=s,this.comments=i||{},this.valuesOptions=n,this._valuesFeatures={},this.reserved=void 0,t)for(var u=Object.keys(t),a=0;a<u.length;++a)"number"==typeof t[u[a]]&&(this.valuesById[this.values[u[a]]=t[u[a]]]=u[a])}n.prototype._resolveFeatures=function(e){return e=this._edition||e,o.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},n.fromJSON=function(e,t){var r=new n(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},n.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return i.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])},n.prototype.add=function(e,t,r,o){if(!i.isString(e))throw TypeError("name must be a string");if(!i.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 o&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=o||null),this.comments[e]=r||null,this},n.prototype.remove=function(e){if(!i.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},n.prototype.isReservedId=function(e){return s.isReservedId(this.reserved,e)},n.prototype.isReservedName=function(e){return s.isReservedName(this.reserved,e)}},"./protobufjs/src/field.js":function(e,t,r){e.exports=f;var o,s=r("./protobufjs/src/object.js");((f.prototype=Object.create(s.prototype)).constructor=f).className="Field";var i=r("./protobufjs/src/enum.js"),n=r("./protobufjs/src/types.js"),u=r("./protobufjs/src/util.js"),a=/^required|optional|repeated$/;function f(e,t,r,o,i,f,l){if(u.isObject(o)?(l=i,f=o,o=i=void 0):u.isObject(i)&&(l=f,f=i,i=void 0),s.call(this,e,f),!u.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!u.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!a.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!u.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!u.Long&&void 0!==n.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}f.fromJSON=function(e,t){var r=new f(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(f.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(f.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(f.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(f.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(f.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),f.prototype.setOption=function(e,t,r){return s.prototype.setOption.call(this,e,t,r)},f.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return u.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])},f.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 o?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 i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=u.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;u.base64.test(this.typeDefault)?u.base64.decode(this.typeDefault,e=u.newBuffer(u.base64.length(this.typeDefault)),0):u.utf8.write(this.typeDefault,e=u.newBuffer(u.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=u.emptyObject:this.repeated?this.defaultValue=u.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),s.prototype.resolve.call(this)},f.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 o&&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},f.prototype._resolveFeatures=function(e){return s.prototype._resolveFeatures.call(this,this._edition||e)},f.d=function(e,t,r,o){return"function"==typeof t?t=u.decorateType(t).name:t&&"object"==typeof t&&(t=u.decorateEnum(t).name),function(s,i){u.decorateType(s.constructor).add(new f(i,e,t,r,{default:o}))}},f._configure=function(e){o=e}},"./protobufjs/src/index-light.js":function(e,t,r){var o=e.exports=r("./protobufjs/src/index-minimal.js");function s(e,t,r){return"function"==typeof t?(r=t,t=new o.Root):t||(t=new o.Root),t.load(e,r)}function i(e,t){return t||(t=new o.Root),t.loadSync(e)}o.build="light",o.load=s,o.loadSync=i,o.encoder=r("./protobufjs/src/encoder.js"),o.decoder=r("./protobufjs/src/decoder.js"),o.verifier=r("./protobufjs/src/verifier.js"),o.converter=r("./protobufjs/src/converter.js"),o.ReflectionObject=r("./protobufjs/src/object.js"),o.Namespace=r("./protobufjs/src/namespace.js"),o.Root=r("./protobufjs/src/root.js"),o.Enum=r("./protobufjs/src/enum.js"),o.Type=r("./protobufjs/src/type.js"),o.Field=r("./protobufjs/src/field.js"),o.OneOf=r("./protobufjs/src/oneof.js"),o.MapField=r("./protobufjs/src/mapfield.js"),o.Service=r("./protobufjs/src/service.js"),o.Method=r("./protobufjs/src/method.js"),o.Message=r("./protobufjs/src/message.js"),o.wrappers=r("./protobufjs/src/wrappers.js"),o.types=r("./protobufjs/src/types.js"),o.util=r("./protobufjs/src/util.js"),o.ReflectionObject._configure(o.Root),o.Namespace._configure(o.Type,o.Service,o.Enum),o.Root._configure(o.Type),o.Field._configure(o.Type)},"./protobufjs/src/index-minimal.js":function(e,t,r){var o=t;function s(){o.util._configure(),o.Writer._configure(o.BufferWriter),o.Reader._configure(o.BufferReader)}o.build="minimal",o.Writer=r("./protobufjs/src/writer.js"),o.BufferWriter=r("./protobufjs/src/writer_buffer.js"),o.Reader=r("./protobufjs/src/reader.js"),o.BufferReader=r("./protobufjs/src/reader_buffer.js"),o.util=r("./protobufjs/src/util/minimal.js"),o.rpc=r("./protobufjs/src/rpc.js"),o.roots=r("./protobufjs/src/roots.js"),o.configure=s,s()},"./protobufjs/src/index.js":function(e,t,r){var o=e.exports=r("./protobufjs/src/index-light.js");o.build="full",o.tokenize=r("./protobufjs/src/tokenize.js"),o.parse=r("./protobufjs/src/parse.js"),o.common=r("./protobufjs/src/common.js"),o.Root._configure(o.Type,o.parse,o.common)},"./protobufjs/src/mapfield.js":function(e,t,r){e.exports=n;var o=r("./protobufjs/src/field.js");((n.prototype=Object.create(o.prototype)).constructor=n).className="MapField";var s=r("./protobufjs/src/types.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,s,n,u){if(o.call(this,e,t,s,void 0,void 0,n,u),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}n.fromJSON=function(e,t){return new n(e,t.id,t.keyType,t.type,t.options,t.comment)},n.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},n.prototype.resolve=function(){if(this.resolved)return this;if(void 0===s.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return o.prototype.resolve.call(this)},n.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(o,s){i.decorateType(o.constructor).add(new n(s,e,t,r))}}},"./protobufjs/src/message.js":function(e,t,r){e.exports=s;var o=r("./protobufjs/src/util/minimal.js");function s(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)this[t[r]]=e[t[r]]}s.create=function(e){return this.$type.create(e)},s.encode=function(e,t){return this.$type.encode(e,t)},s.encodeDelimited=function(e,t){return this.$type.encodeDelimited(e,t)},s.decode=function(e){return this.$type.decode(e)},s.decodeDelimited=function(e){return this.$type.decodeDelimited(e)},s.verify=function(e){return this.$type.verify(e)},s.fromObject=function(e){return this.$type.fromObject(e)},s.toObject=function(e,t){return this.$type.toObject(e,t)},s.prototype.toJSON=function(){return this.$type.toObject(this,o.toJSONOptions)}},"./protobufjs/src/method.js":function(e,t,r){e.exports=i;var o=r("./protobufjs/src/object.js");((i.prototype=Object.create(o.prototype)).constructor=i).className="Method";var s=r("./protobufjs/src/util.js");function i(e,t,r,i,n,u,a,f,l){if(s.isObject(n)?(a=n,n=u=void 0):s.isObject(u)&&(a=u,u=void 0),!(void 0===t||s.isString(t)))throw TypeError("type must be a string");if(!s.isString(r))throw TypeError("requestType must be a string");if(!s.isString(i))throw TypeError("responseType must be a string");o.call(this,e,a),this.type=t||"rpc",this.requestType=r,this.requestStream=!!n||void 0,this.responseType=i,this.responseStream=!!u||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=f,this.parsedOptions=l}i.fromJSON=function(e,t){return new i(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},i.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return s.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])},i.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),o.prototype.resolve.call(this))}},"./protobufjs/src/namespace.js":function(e,t,r){e.exports=p;var o,s,i,n=r("./protobufjs/src/object.js");((p.prototype=Object.create(n.prototype)).constructor=p).className="Namespace";var u=r("./protobufjs/src/field.js"),a=r("./protobufjs/src/util.js"),f=r("./protobufjs/src/oneof.js");function l(e,t){if(e&&e.length){for(var r={},o=0;o<e.length;++o)r[e[o].name]=e[o].toJSON(t);return r}}function p(e,t){n.call(this,e,t),this.nested=void 0,this._nestedArray=null,this._lookupCache={},this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}function c(e){e._nestedArray=null,e._lookupCache={};for(var t=e;t=t.parent;)t._lookupCache={};return e}p.fromJSON=function(e,t){return new p(e,t.options).addJSON(t.nested)},p.arrayToJSON=l,p.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},p.isReservedName=function(e,t){if(e){for(var r=0;r<e.length;++r)if(e[r]===t)return!0}return!1},Object.defineProperty(p.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=a.toArray(this.nested))}}),p.prototype.toJSON=function(e){return a.toObject(["options",this.options,"nested",l(this.nestedArray,e)])},p.prototype.addJSON=function(e){var t=this;if(e)for(var r,n=Object.keys(e),a=0;a<n.length;++a)r=e[n[a]],t.add((void 0!==r.fields?o.fromJSON:void 0!==r.values?i.fromJSON:void 0!==r.methods?s.fromJSON:void 0!==r.id?u.fromJSON:p.fromJSON)(n[a],r));return this},p.prototype.get=function(e){return this.nested&&this.nested[e]||null},p.prototype.getEnum=function(e){if(this.nested&&this.nested[e]instanceof i)return this.nested[e].values;throw Error("no such enum: "+e)},p.prototype.add=function(e){if(!(e instanceof u&&void 0!==e.extend||e instanceof o||e instanceof f||e instanceof i||e instanceof s||e instanceof p))throw TypeError("object must be a valid nested object");if(this.nested){var t=this.get(e.name);if(t)if(t instanceof p&&e instanceof p&&!(t instanceof o||t instanceof s)){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 o||this instanceof s||this instanceof i||this instanceof u||e._edition||(e._edition=e._defaultEdition),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;for(var a=this;a=a.parent;)a._needsRecursiveFeatureResolution=!0,a._needsRecursiveResolve=!0;return e.onAdd(this),c(this)},p.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),c(this)},p.prototype.define=function(e,t){if(a.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 o=e.shift();if(r.nested&&r.nested[o]){if(!((r=r.nested[o])instanceof p))throw Error("path conflicts with non-namespace objects")}else r.add(r=new p(o))}return t&&r.addJSON(t),r},p.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 p?e[t++].resolveAll():e[t++].resolve();return this._needsRecursiveResolve=!1,this},p.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},p.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),a.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var o=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var s=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+o];if(s&&(!t||t.indexOf(s.constructor)>-1)||(s=this._lookupImpl(e,o))&&(!t||t.indexOf(s.constructor)>-1))return s;if(r)return null;for(var i=this;i.parent;){if((s=i.parent._lookupImpl(e,o))&&(!t||t.indexOf(s.constructor)>-1))return s;i=i.parent}return null},p.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),o=null;if(r)1===e.length?o=r:r instanceof p&&(e=e.slice(1),o=r._lookupImpl(e,e.join(".")));else for(var s=0;s<this.nestedArray.length;++s)this._nestedArray[s]instanceof p&&(r=this._nestedArray[s]._lookupImpl(e,t))&&(o=r);return this._lookupCache[t]=o,o},p.prototype.lookupType=function(e){var t=this.lookup(e,[o]);if(!t)throw Error("no such type: "+e);return t},p.prototype.lookupEnum=function(e){var t=this.lookup(e,[i]);if(!t)throw Error("no such Enum '"+e+"' in "+this);return t},p.prototype.lookupTypeOrEnum=function(e){var t=this.lookup(e,[o,i]);if(!t)throw Error("no such Type or Enum '"+e+"' in "+this);return t},p.prototype.lookupService=function(e){var t=this.lookup(e,[s]);if(!t)throw Error("no such Service '"+e+"' in "+this);return t},p._configure=function(e,t,r){o=e,s=t,i=r}},"./protobufjs/src/object.js":function(e,t,r){e.exports=l,l.className="ReflectionObject";let o=r("./protobufjs/src/oneof.js");var s,i=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"},u={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"},a={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"},f={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"};function l(e,t){if(!i.isString(e))throw TypeError("name must be a string");if(t&&!i.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(l.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(".")}}}),l.prototype.toJSON=function(){throw Error()},l.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 s&&t._handleAdd(this)},l.prototype.onRemove=function(e){var t=e.root;t instanceof s&&t._handleRemove(this),this.parent=null,this.resolved=!1},l.prototype.resolve=function(){return this.resolved||this.root instanceof s&&(this.resolved=!0),this},l.prototype._resolveFeaturesRecursive=function(e){return this._resolveFeatures(this._edition||e)},l.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({},a);else if("proto3"===e)t=Object.assign({},f);else if("2023"===e)t=Object.assign({},u);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 o){var s=Object.assign({},this.partOf._features);this._features=Object.assign(s,r||{})}else if(this.declaringField);else if(this.parent){var i=Object.assign({},this.parent._features);this._features=Object.assign(i,r||{})}else throw Error("Unable to find a parent for "+this.fullName);this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},l.prototype._inferLegacyProtoFeatures=function(){return{}},l.prototype.getOption=function(e){if(this.options)return this.options[e]},l.prototype.setOption=function(e,t,r){return this.options||(this.options={}),/^features\./.test(e)?i.setProperty(this.options,e,t,r):r&&void 0!==this.options[e]||(this.getOption(e)!==t&&(this.resolved=!1),this.options[e]=t),this},l.prototype.setParsedOption=function(e,t,r){this.parsedOptions||(this.parsedOptions=[]);var o=this.parsedOptions;if(r){var s=o.find(function(t){return Object.prototype.hasOwnProperty.call(t,e)});if(s){var n=s[e];i.setProperty(n,r,t)}else(s={})[e]=i.setProperty({},r,t),o.push(s)}else{var u={};u[e]=t,o.push(u)}return this},l.prototype.setOptions=function(e,t){if(e)for(var r=Object.keys(e),o=0;o<r.length;++o)this.setOption(r[o],e[r[o]],t);return this},l.prototype.toString=function(){var e=this.constructor.className,t=this.fullName;return t.length?e+" "+t:e},l.prototype._editionToJSON=function(){if(this._edition&&"proto3"!==this._edition)return this._edition},l._configure=function(e){s=e}},"./protobufjs/src/oneof.js":function(e,t,r){e.exports=n;var o=r("./protobufjs/src/object.js");((n.prototype=Object.create(o.prototype)).constructor=n).className="OneOf";var s=r("./protobufjs/src/field.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,s){if(Array.isArray(t)||(r=t,t=void 0),o.call(this,e,r),!(void 0===t||Array.isArray(t)))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=s}function u(e){if(e.parent)for(var t=0;t<e.fieldsArray.length;++t)e.fieldsArray[t].parent||e.parent.add(e.fieldsArray[t])}n.fromJSON=function(e,t){return new n(e,t.oneof,t.options,t.comment)},n.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return i.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:void 0])},n.prototype.add=function(e){if(!(e instanceof s))throw TypeError("field must be a Field");return e.parent&&e.parent!==this.parent&&e.parent.remove(e),this.oneof.push(e.name),this.fieldsArray.push(e),e.partOf=this,u(this),this},n.prototype.remove=function(e){if(!(e instanceof s))throw TypeError("field must be a Field");var t=this.fieldsArray.indexOf(e);if(t<0)throw Error(e+" is not a member of "+this);return this.fieldsArray.splice(t,1),(t=this.oneof.indexOf(e.name))>-1&&this.oneof.splice(t,1),e.partOf=null,this},n.prototype.onAdd=function(e){o.prototype.onAdd.call(this,e);for(var t=this,r=0;r<this.oneof.length;++r){var s=e.get(this.oneof[r]);s&&!s.partOf&&(s.partOf=t,t.fieldsArray.push(s))}u(this)},n.prototype.onRemove=function(e){for(var t,r=0;r<this.fieldsArray.length;++r)(t=this.fieldsArray[r]).parent&&t.parent.remove(t);o.prototype.onRemove.call(this,e)},Object.defineProperty(n.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}}),n.d=function(){for(var e=Array(arguments.length),t=0;t<arguments.length;)e[t]=arguments[t++];return function(t,r){i.decorateType(t.constructor).add(new n(r,e)),Object.defineProperty(t,r,{get:i.oneOfGetter(e),set:i.oneOfSetter(e)})}}},"./protobufjs/src/parse.js":function(e,t,r){e.exports=k,k.filename=null,k.defaults={keepCase:!1};var o=r("./protobufjs/src/tokenize.js"),s=r("./protobufjs/src/root.js"),i=r("./protobufjs/src/type.js"),n=r("./protobufjs/src/field.js"),u=r("./protobufjs/src/mapfield.js"),a=r("./protobufjs/src/oneof.js"),f=r("./protobufjs/src/enum.js"),l=r("./protobufjs/src/service.js"),p=r("./protobufjs/src/method.js"),c=r("./protobufjs/src/object.js"),h=r("./protobufjs/src/types.js"),d=r("./protobufjs/src/util.js"),y=/^[1-9][0-9]*$/,v=/^-?[1-9][0-9]*$/,m=/^0[x][0-9a-fA-F]+$/,b=/^-?0[x][0-9a-fA-F]+$/,j=/^0[0-7]+$/,g=/^-?0[0-7]+$/,w=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,_=/^[a-zA-Z_][a-zA-Z_0-9]*$/,O=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/;function k(e,t,r){t instanceof s||(r=t,t=new s),r||(r=k.defaults);var x,A,E,T,S=r.preferTrailingComment||!1,N=o(e,r.alternateCommentMode||!1),R=N.next,I=N.push,F=N.peek,L=N.skip,P=N.cmnt,B=!0,D="proto2",C=t,J=[],$={},V=r.keepCase?function(e){return e}:d.camelCase;function q(){J.forEach(e=>{e._edition=D,Object.keys($).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,$[t],!0)})})}function z(e,t,r){var o=k.filename;return r||(k.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(o?o+", ":"")+"line "+N.line+")")}function M(){var e,t=[];do{if('"'!==(e=R())&&"'"!==e)throw z(e);t.push(R()),L(e),e=F()}while('"'===e||"'"===e);return t.join("")}function U(e){var t=R();switch(t){case"'":case'"':return I(t),M();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return H(t,!0)}catch(r){if(e&&O.test(t))return t;throw z(t,"value")}}function X(e,t){do if(t&&('"'===(r=F())||"'"===r)){var r,o,s=M();if(e.push(s),D>=2023)throw z(s,"id")}else try{e.push([o=G(R()),L("to",!0)?G(R()):o])}catch(o){if(t&&O.test(r)&&D>=2023)e.push(r);else throw o}while(L(",",!0));var i={options:void 0};i.setOption=function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t},ee(i,function(e){if("option"===e)ea(i,e),L(";");else throw z(e)},function(){ec(i)})}function H(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(m.test(e))return r*parseInt(e,16);if(j.test(e))return r*parseInt(e,8);if(w.test(e))return r*parseFloat(e);throw z(e,"number",t)}function G(e,t){switch(e){case"max":case"MAX":case"Max":return 0x1fffffff;case"0":return 0}if(!t&&"-"===e.charAt(0))throw z(e,"id");if(v.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(g.test(e))return parseInt(e,8);throw z(e,"id")}function W(){if(void 0!==A)throw z("package");if(A=R(),!O.test(A))throw z(A,"name");C=C.define(A),L(";")}function Y(){var e,t=F();switch(t){case"option":if(D<"2024")throw z("option");R(),M(),L(";");return;case"weak":e=T||(T=[]),R();break;case"public":R();default:e=E||(E=[])}t=M(),L(";"),e.push(t)}function K(){if(L("="),(D=M())<2023)throw z(D,"syntax");L(";")}function Z(){if(L("="),!["2023","2024"].includes(D=M()))throw z(D,"edition");L(";")}function Q(e,t){switch(t){case"option":return ea(e,t),L(";"),!0;case"message":return et(e,t),!0;case"enum":return en(e,t),!0;case"export":case"local":if(D<"2024"||"export"===(t=R())||"local"===t||"message"!==t&&"enum"!==t)break;return Q(e,t);case"service":return eh(e,t),!0;case"extend":return ey(e,t),!0}return!1}function ee(e,t,r){var o,s=N.line;if(e&&("string"!=typeof e.comment&&(e.comment=P()),e.filename=k.filename),L("{",!0)){for(;"}"!==(o=R());)t(o);L(";",!0)}else r&&r(),L(";"),e&&("string"!=typeof e.comment||S)&&(e.comment=P(s)||e.comment)}function et(e,t){if(!_.test(t=R()))throw z(t,"type name");var r=new i(t);ee(r,function(e){if(!Q(r,e))switch(e){case"map":es(r,e);break;case"required":if("proto2"!==D)throw z(e);case"repeated":er(r,e);break;case"optional":if("proto3"===D)er(r,"proto3_optional");else if("proto2"!==D)throw z(e);else er(r,"optional");break;case"oneof":ei(r,e);break;case"extensions":X(r.extensions||(r.extensions=[]));break;case"reserved":X(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===D||!O.test(e))throw z(e);I(e),er(r,"optional")}}),e.add(r),e===C&&J.push(r)}function er(e,t,r){var o=R();if("group"===o)return void eo(e,t);for(;o.endsWith(".")||F().startsWith(".");)o+=R();if(!O.test(o))throw z(o,"type");var s=R();if(!_.test(s))throw z(s,"name");s=V(s),L("=");var i=new n(s,G(R()),o,t,r);if(ee(i,function(e){if("option"===e)ea(i,e),L(";");else throw z(e)},function(){ec(i)}),"proto3_optional"===t){var u=new a("_"+s);i.setOption("proto3_optional",!0),u.add(i),e.add(u)}else e.add(i);e===C&&J.push(i)}function eo(e,t){if(D>=2023)throw z("group");var r=R();if(!_.test(r))throw z(r,"name");var o=d.lcFirst(r);r===o&&(r=d.ucFirst(r)),L("=");var s=G(R()),u=new i(r);u.group=!0;var a=new n(o,s,r,t);a.filename=k.filename,ee(u,function(e){switch(e){case"option":ea(u,e),L(";");break;case"required":case"repeated":er(u,e);break;case"optional":"proto3"===D?er(u,"proto3_optional"):er(u,"optional");break;case"message":et(u,e);break;case"enum":en(u,e);break;case"reserved":X(u.reserved||(u.reserved=[]),!0);break;case"export":case"local":if(D<"2024")throw z(e);switch(e=R()){case"message":case"enum":et(u,e);break;default:throw z(e)}break;default:throw z(e)}}),e.add(u).add(a)}function es(e){L("<");var t=R();if(void 0===h.mapKey[t])throw z(t,"type");L(",");var r=R();if(!O.test(r))throw z(r,"type");L(">");var o=R();if(!_.test(o))throw z(o,"name");L("=");var s=new u(V(o),G(R()),t,r);ee(s,function(e){if("option"===e)ea(s,e),L(";");else throw z(e)},function(){ec(s)}),e.add(s)}function ei(e,t){if(!_.test(t=R()))throw z(t,"name");var r=new a(V(t));ee(r,function(e){"option"===e?(ea(r,e),L(";")):(I(e),er(r,"optional"))}),e.add(r)}function en(e,t){if(!_.test(t=R()))throw z(t,"name");var r=new f(t);ee(r,function(e){switch(e){case"option":ea(r,e),L(";");break;case"reserved":X(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:eu(r,e)}}),e.add(r),e===C&&J.push(r)}function eu(e,t){if(!_.test(t))throw z(t,"name");L("=");var r=G(R(),!0),o={options:void 0};o.getOption=function(e){return this.options[e]},o.setOption=function(e,t){c.prototype.setOption.call(o,e,t)},o.setParsedOption=function(){},ee(o,function(e){if("option"===e)ea(o,e),L(";");else throw z(e)},function(){ec(o)}),e.add(t,r,o.comment,o.parsedOptions||o.options)}function ea(e,t){var r,o,s=!0;for("option"===t&&(t=R());"="!==t;){if("("===t){var i=R();L(")"),t="("+i+")"}if(s){if(s=!1,t.includes(".")&&!t.includes("(")){var n=t.split(".");r=n[0]+".",t=n[1];continue}r=t}else o=o?o+=t:t;t=R()}var u=ef(e,o?r.concat(o):r);o=o&&"."===o[0]?o.slice(1):o,ep(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,u,o)}function ef(e,t){if(L("{",!0)){for(var r={};!L("}",!0);){if(!_.test(x=R()))throw z(x,"name");if(null===x)throw z(x,"end of input");var o,s,i=x;if(L(":",!0),"{"===F())o=ef(e,t+"."+x);else if("["===F()){if(o=[],L("[",!0)){do s=U(!0),o.push(s);while(L(",",!0));L("]"),void 0!==s&&el(e,t+"."+x,s)}}else o=U(!0),el(e,t+"."+x,o);var n=r[i];n&&(o=[].concat(n).concat(o)),r[i]=o,L(",",!0),L(";",!0)}return r}var u=U(!0);return el(e,t,u),u}function el(e,t,r){if(C===e&&/^features\./.test(t)){$[t]=r;return}e.setOption&&e.setOption(t,r)}function ep(e,t,r,o){e.setParsedOption&&e.setParsedOption(t,r,o)}function ec(e){if(L("[",!0)){do ea(e,"option");while(L(",",!0));L("]")}return e}function eh(e,t){if(!_.test(t=R()))throw z(t,"service name");var r=new l(t);ee(r,function(e){if(!Q(r,e))if("rpc"===e)ed(r,e);else throw z(e)}),e.add(r),e===C&&J.push(r)}function ed(e,t){var r=P(),o=t;if(!_.test(t=R()))throw z(t,"name");var s,i,n,u,a=t;if(L("("),L("stream",!0)&&(i=!0),!O.test(t=R())||(s=t,L(")"),L("returns"),L("("),L("stream",!0)&&(u=!0),!O.test(t=R())))throw z(t);n=t,L(")");var f=new p(a,o,s,n,i,u);f.comment=r,ee(f,function(e){if("option"===e)ea(f,e),L(";");else throw z(e)}),e.add(f)}function ey(e,t){if(!O.test(t=R()))throw z(t,"reference");var r=t;ee(null,function(t){switch(t){case"required":case"repeated":er(e,t,r);break;case"optional":"proto3"===D?er(e,"proto3_optional",r):er(e,"optional",r);break;default:if("proto2"===D||!O.test(t))throw z(t);I(t),er(e,"optional",r)}})}for(;null!==(x=R());)switch(x){case"package":if(!B)throw z(x);W();break;case"import":if(!B)throw z(x);Y();break;case"syntax":if(!B)throw z(x);K();break;case"edition":if(!B)throw z(x);Z();break;case"option":ea(C,x),L(";",!0);break;default:if(Q(C,x)){B=!1;continue}throw z(x)}return q(),k.filename=null,{package:A,imports:E,weakImports:T,root:t}}},"./protobufjs/src/reader.js":function(e,t,r){e.exports=a;var o,s=r("./protobufjs/src/util/minimal.js"),i=s.LongBits,n=s.utf8;function u(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function a(e){this.buf=e,this.pos=0,this.len=e.length}var f="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new a(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new a(e);throw Error("illegal buffer")},l=function(){return s.Buffer?function(e){return(a.create=function(e){return s.Buffer.isBuffer(e)?new o(e):f(e)})(e)}:f};function p(){var e=new i(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 u(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 u(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 c(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw u(this,8);return new i(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}a.create=l(),a.prototype._slice=s.Array.prototype.subarray||s.Array.prototype.slice,a.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,u(this,10);return e}}(),a.prototype.int32=function(){return 0|this.uint32()},a.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},a.prototype.bool=function(){return 0!==this.uint32()},a.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return c(this.buf,this.pos+=4)},a.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|c(this.buf,this.pos+=4)},a.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var e=s.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},a.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var e=s.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},a.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw u(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var o=s.Buffer;return o?o.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},a.prototype.string=function(){var e=this.bytes();return n.read(e,0,e.length)},a.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw u(this,e);this.pos+=e}else do if(this.pos>=this.len)throw u(this);while(128&this.buf[this.pos++]);return this},a.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},a._configure=function(e){o=e,a.create=l(),o._configure();var t=s.Long?"toLong":"toNumber";s.merge(a.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},"./protobufjs/src/reader_buffer.js":function(e,t,r){e.exports=i;var o=r("./protobufjs/src/reader.js");(i.prototype=Object.create(o.prototype)).constructor=i;var s=r("./protobufjs/src/util/minimal.js");function i(e){o.call(this,e)}i._configure=function(){s.Buffer&&(i.prototype._slice=s.Buffer.prototype.slice)},i.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))},i._configure()},"./protobufjs/src/root.js":function(e,t,r){e.exports=p;var o,s,i,n=r("./protobufjs/src/namespace.js");((p.prototype=Object.create(n.prototype)).constructor=p).className="Root";var u=r("./protobufjs/src/field.js"),a=r("./protobufjs/src/enum.js"),f=r("./protobufjs/src/oneof.js"),l=r("./protobufjs/src/util.js");function p(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function c(){}p.fromJSON=function(e,t){return t||(t=new p),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},p.prototype.resolvePath=l.path.resolve,p.prototype.fetch=l.fetch,p.prototype.load=function e(t,r,o){"function"==typeof r&&(o=r,r=void 0);var n=this;if(!o)return l.asPromise(e,n,t,r);var u=o===c;function a(e,t){if(o){if(u)throw e;t&&t.resolveAll();var r=o;o=null,r(e,t)}}function f(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in i)return r}return null}function p(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){s.filename=e;var o,i=s(t,n,r),p=0;if(i.imports)for(;p<i.imports.length;++p)(o=f(i.imports[p])||n.resolvePath(e,i.imports[p]))&&h(o);if(i.weakImports)for(p=0;p<i.weakImports.length;++p)(o=f(i.weakImports[p])||n.resolvePath(e,i.weakImports[p]))&&h(o,!0)}else n.setOptions(t.options).addJSON(t.nested)}catch(e){a(e)}u||d||a(null,n)}function h(e,t){if(e=f(e)||e,!(n.files.indexOf(e)>-1)){if(n.files.push(e),e in i)return void(u?p(e,i[e]):(++d,setTimeout(function(){--d,p(e,i[e])})));if(u){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){t||a(e);return}p(e,r)}else++d,n.fetch(e,function(r,s){if(--d,o){if(r)return void(t?d||a(null,n):a(r));p(e,s)}})}}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v<t.length;++v)(y=n.resolvePath("",t[v]))&&h(y);return u?n.resolveAll():d||a(null,n),n},p.prototype.loadSync=function(e,t){if(!l.isNode)throw Error("not supported");return this.load(e,t,c)},p.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 h=/^[A-Z]/;function d(e,t){var r=t.parent.lookup(t.extend);if(r){var o=new u(t.fullName,t.id,t.type,t.rule,void 0,t.options);return!!r.get(o.name)||(o.declaringField=t,t.extensionField=o,r.add(o),!0)}return!1}p.prototype._handleAdd=function(e){if(e instanceof u)void 0===e.extend||e.extensionField||d(this,e)||this.deferred.push(e);else if(e instanceof a)h.test(e.name)&&(e.parent[e.name]=e.values);else if(!(e instanceof f)){if(e instanceof o)for(var t=0;t<this.deferred.length;)d(this,this.deferred[t])?this.deferred.splice(t,1):++t;for(var r=0;r<e.nestedArray.length;++r)this._handleAdd(e._nestedArray[r]);h.test(e.name)&&(e.parent[e.name]=e)}(e instanceof o||e instanceof a||e instanceof u)&&(this._fullyQualifiedObjects[e.fullName]=e)},p.prototype._handleRemove=function(e){if(e instanceof u){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 a)h.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]);h.test(e.name)&&delete e.parent[e.name]}delete this._fullyQualifiedObjects[e.fullName]},p._configure=function(e,t,r){o=e,s=t,i=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=s;var o=r("./protobufjs/src/util/minimal.js");function s(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");o.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!r}(s.prototype=Object.create(o.EventEmitter.prototype)).constructor=s,s.prototype.rpcCall=function e(t,r,s,i,n){if(!i)throw TypeError("request must be specified");var u=this;if(!n)return o.asPromise(e,u,t,r,s,i);if(!u.rpcImpl)return void setTimeout(function(){n(Error("already ended"))},0);try{return u.rpcImpl(t,r[u.requestDelimited?"encodeDelimited":"encode"](i).finish(),function(e,r){if(e)return u.emit("error",e,t),n(e);if(null===r)return void u.end(!0);if(!(r instanceof s))try{r=s[u.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return u.emit("error",e,t),n(e)}return u.emit("data",r,t),n(null,r)})}catch(e){u.emit("error",e,t),setTimeout(function(){n(e)},0);return}},s.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=u;var o=r("./protobufjs/src/namespace.js");((u.prototype=Object.create(o.prototype)).constructor=u).className="Service";var s=r("./protobufjs/src/method.js"),i=r("./protobufjs/src/util.js"),n=r("./protobufjs/src/rpc.js");function u(e,t){o.call(this,e,t),this.methods={},this._methodsArray=null}function a(e){return e._methodsArray=null,e}u.fromJSON=function(e,t){var r=new u(e,t.options);if(t.methods)for(var o=Object.keys(t.methods),i=0;i<o.length;++i)r.add(s.fromJSON(o[i],t.methods[o[i]]));return t.nested&&r.addJSON(t.nested),t.edition&&(r._edition=t.edition),r.comment=t.comment,r._defaultEdition="proto3",r},u.prototype.toJSON=function(e){var t=o.prototype.toJSON.call(this,e),r=!!e&&!!e.keepComments;return i.toObject(["edition",this._editionToJSON(),"options",t&&t.options||void 0,"methods",o.arrayToJSON(this.methodsArray,e)||{},"nested",t&&t.nested||void 0,"comment",r?this.comment:void 0])},Object.defineProperty(u.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=i.toArray(this.methods))}}),u.prototype.get=function(e){return this.methods[e]||o.prototype.get.call(this,e)},u.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;o.prototype.resolve.call(this);for(var e=this.methodsArray,t=0;t<e.length;++t)e[t].resolve();return this},u.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(e=this._edition||e,o.prototype._resolveFeaturesRecursive.call(this,e),this.methodsArray.forEach(t=>{t._resolveFeaturesRecursive(e)})),this},u.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof s?(this.methods[e.name]=e,e.parent=this,a(this)):o.prototype.add.call(this,e)},u.prototype.remove=function(e){if(e instanceof s){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,a(this)}return o.prototype.remove.call(this,e)},u.prototype.create=function(e,t,r){for(var o,s=new n.Service(e,t,r),u=0;u<this.methodsArray.length;++u){var a=i.lcFirst((o=this._methodsArray[u]).resolve().name).replace(/[^$\w_]/g,"");s[a]=i.codegen(["r","c"],i.isReserved(a)?a+"_":a)("return this.rpcCall(m,q,s,r,c)")({m:o,q:o.resolvedRequestType.ctor,s:o.resolvedResponseType.ctor})}return s}},"./protobufjs/src/tokenize.js":function(e){e.exports=p;var t=/[\s{}=;:[\],'"()<>]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,o=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,s=/^ *[*/]+ */,i=/^\s*\*?\/*/,n=/\n/g,u=/\s/,a=/\\(.?)/g,f={0:"\0",r:"\r",n:"\n",t:" "};function l(e){return e.replace(a,function(e,t){switch(t){case"\\":case"":return t;default:return f[t]||""}})}function p(e,a){e=e.toString();var f=0,p=e.length,c=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+c+")")}function b(){var t="'"===v?o:r;t.lastIndex=f-1;var s=t.exec(e);if(!s)throw m("string");return f=t.lastIndex,k(v),v=null,l(s[1])}function j(t){return e.charAt(t)}function g(t,r,o){var u,f={type:e.charAt(t++),lineEmpty:!1,leading:o},l=t-(a?2:3);do if(--l<0||"\n"===(u=e.charAt(l))){f.lineEmpty=!0;break}while(" "===u||" "===u);for(var p=e.substring(t,r).split(n),y=0;y<p.length;++y)p[y]=p[y].replace(a?i:s,"").trim();f.text=p.join("\n").trim(),d[c]=f,h=c}function w(t){var r=_(t),o=e.substring(t,r);return/^\s*\/\//.test(o)}function _(e){for(var t=e;t<p&&"\n"!==j(t);)t++;return t}function O(){if(y.length>0)return y.shift();if(v)return b();var r,o,s,i,n,l=0===f;do{if(f===p)return null;for(r=!1;u.test(s=j(f));)if("\n"===s&&(l=!0,++c),++f===p)return null;if("/"===j(f)){if(++f===p)throw m("comment");if("/"===j(f))if(a){if(i=f,n=!1,w(f-1)){n=!0;do if((f=_(f))===p||(f++,!l))break;while(w(f))}else f=Math.min(p,_(f)+1);n&&(g(i,f,l),l=!0),c++,r=!0}else{for(n="/"===j(i=f+1);"\n"!==j(++f);)if(f===p)return null;++f,n&&(g(i,f-1,l),l=!0),++c,r=!0}else{if("*"!==(s=j(f)))return"/";i=f+1,n=a||"*"===j(i);do{if("\n"===s&&++c,++f===p)throw m("comment");o=s,s=j(f)}while("*"!==o||"/"!==s);++f,n&&(g(i,f-2,l),l=!0),r=!0}}}while(r);var h=f;if(t.lastIndex=0,!t.test(j(h++)))for(;h<p&&!t.test(j(h));)++h;var d=e.substring(f,f=h);return('"'===d||"'"===d)&&(v=d),d}function k(e){y.push(e)}function x(){if(!y.length){var e=O();if(null===e)return null;k(e)}return y[0]}function A(e,t){var r=x();if(r===e)return O(),!0;if(!t)throw m("token '"+r+"', '"+e+"' expected");return!1}function E(e){var t,r=null;return void 0===e?(t=d[c-1],delete d[c-1],t&&(a||"*"===t.type||t.lineEmpty)&&(r=t.leading?t.text:null)):(h<e&&x(),t=d[e],delete d[e],t&&!t.lineEmpty&&(a||"/"===t.type)&&(r=t.leading?null:t.text)),r}return Object.defineProperty({next:O,peek:x,push:k,skip:A,cmnt:E},"line",{get:function(){return c}})}p.unescape=l},"./protobufjs/src/type.js":function(e,t,r){e.exports=b;var o=r("./protobufjs/src/namespace.js");((b.prototype=Object.create(o.prototype)).constructor=b).className="Type";var s=r("./protobufjs/src/enum.js"),i=r("./protobufjs/src/oneof.js"),n=r("./protobufjs/src/field.js"),u=r("./protobufjs/src/mapfield.js"),a=r("./protobufjs/src/service.js"),f=r("./protobufjs/src/message.js"),l=r("./protobufjs/src/reader.js"),p=r("./protobufjs/src/writer.js"),c=r("./protobufjs/src/util.js"),h=r("./protobufjs/src/encoder.js"),d=r("./protobufjs/src/decoder.js"),y=r("./protobufjs/src/verifier.js"),v=r("./protobufjs/src/converter.js"),m=r("./protobufjs/src/wrappers.js");function b(e,t){o.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 j(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(b.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]],o=r.id;if(this._fieldsById[o])throw Error("duplicate id "+o+" in "+this);this._fieldsById[o]=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=b.generateConstructor(this)())},set:function(e){var t=e.prototype;t instanceof f||((e.prototype=new f).constructor=e,c.merge(e.prototype,t)),e.$type=e.prototype.$type=this,c.merge(e,f,!0),this._ctor=e;for(var r=0;r<this.fieldsArray.length;++r)this._fieldsArray[r].resolve();var o={};for(r=0;r<this.oneofsArray.length;++r)o[this._oneofsArray[r].resolve().name]={get:c.oneOfGetter(this._oneofsArray[r].oneof),set:c.oneOfSetter(this._oneofsArray[r].oneof)};r&&Object.defineProperties(e.prototype,o)}}}),b.generateConstructor=function(e){for(var t,r=c.codegen(["p"],e.name),o=0;o<e.fieldsArray.length;++o)(t=e._fieldsArray[o]).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]]")},b.fromJSON=function(e,t){var r=new b(e,t.options);r.extensions=t.extensions,r.reserved=t.reserved;for(var f=Object.keys(t.fields),l=0;l<f.length;++l)r.add((void 0!==t.fields[f[l]].keyType?u.fromJSON:n.fromJSON)(f[l],t.fields[f[l]]));if(t.oneofs)for(f=Object.keys(t.oneofs),l=0;l<f.length;++l)r.add(i.fromJSON(f[l],t.oneofs[f[l]]));if(t.nested)for(f=Object.keys(t.nested),l=0;l<f.length;++l){var p=t.nested[f[l]];r.add((void 0!==p.id?n.fromJSON:void 0!==p.fields?b.fromJSON:void 0!==p.values?s.fromJSON:void 0!==p.methods?a.fromJSON:o.fromJSON)(f[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},b.prototype.toJSON=function(e){var t=o.prototype.toJSON.call(this,e),r=!!e&&!!e.keepComments;return c.toObject(["edition",this._editionToJSON(),"options",t&&t.options||void 0,"oneofs",o.arrayToJSON(this.oneofsArray,e),"fields",o.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])},b.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;o.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},b.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(e=this._edition||e,o.prototype._resolveFeaturesRecursive.call(this,e),this.oneofsArray.forEach(t=>{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)})),this},b.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},b.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),j(this)}return e instanceof i?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),j(this)):o.prototype.add.call(this,e)},b.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),j(this)}if(e instanceof i){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),j(this)}return o.prototype.remove.call(this,e)},b.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},b.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)},b.prototype.create=function(e){return new this.ctor(e)},b.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=h(this)({Writer:p,types:t,util:c}),this.decode=d(this)({Reader:l,types:t,util:c}),this.verify=y(this)({types:t,util:c}),this.fromObject=v.fromObject(this)({types:t,util:c}),this.toObject=v.toObject(this)({types:t,util:c});var o=m[e];if(o){var s=Object.create(this);s.fromObject=this.fromObject,this.fromObject=o.fromObject.bind(s),s.toObject=this.toObject,this.toObject=o.toObject.bind(s)}return this},b.prototype.encode=function(e,t){return this.setup().encode(e,t)},b.prototype.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},b.prototype.decode=function(e,t){return this.setup().decode(e,t)},b.prototype.decodeDelimited=function(e){return e instanceof l||(e=l.create(e)),this.decode(e,e.uint32())},b.prototype.verify=function(e){return this.setup().verify(e)},b.prototype.fromObject=function(e){return this.setup().fromObject(e)},b.prototype.toObject=function(e,t){return this.setup().toObject(e,t)},b.d=function(e){return function(t){c.decorateType(t,e)}}},"./protobufjs/src/types.js":function(e,t,r){var o=t,s=r("./protobufjs/src/util.js"),i=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function n(e,t){var r=0,o={};for(t|=0;r<e.length;)o[i[r+t]]=e[r++];return o}o.basic=n([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),o.defaults=n([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",s.emptyArray,null]),o.long=n([0,0,0,1,1],7),o.mapKey=n([0,0,0,5,5,0,0,0,1,1,0,2],2),o.packed=n([1,5,0,0,0,5,5,0,0,0,1,1,0])},"./protobufjs/src/util.js":function(e,t,r){var o,s,i=e.exports=r("./protobufjs/src/util/minimal.js"),n=r("./protobufjs/src/roots.js");i.codegen=r("./@protobufjs/codegen/index.js"),i.fetch=r("./@protobufjs/fetch/index.js"),i.path=r("./@protobufjs/path/index.js"),i.fs=i.inquire("fs"),i.toArray=function(e){if(e){for(var t=Object.keys(e),r=Array(t.length),o=0;o<t.length;)r[o]=e[t[o++]];return r}return[]},i.toObject=function(e){for(var t={},r=0;r<e.length;){var o=e[r++],s=e[r++];void 0!==s&&(t[o]=s)}return t};var u=/\\/g,a=/"/g;i.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)},i.safeProp=function(e){return!/^[$\w_]+$/.test(e)||i.isReserved(e)?'["'+e.replace(u,"\\\\").replace(a,'\\"')+'"]':"."+e},i.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.substring(1)};var f=/_([a-z])/g;i.camelCase=function(e){return e.substring(0,1)+e.substring(1).replace(f,function(e,t){return t.toUpperCase()})},i.compareFieldsById=function(e,t){return e.id-t.id},i.decorateType=function(e,t){if(e.$type)return t&&e.$type.name!==t&&(i.decorateRoot.remove(e.$type),e.$type.name=t,i.decorateRoot.add(e.$type)),e.$type;o||(o=r("./protobufjs/src/type.js"));var s=new o(t||e.name);return i.decorateRoot.add(s),s.ctor=e,Object.defineProperty(e,"$type",{value:s,enumerable:!1}),Object.defineProperty(e.prototype,"$type",{value:s,enumerable:!1}),s};var l=0;i.decorateEnum=function(e){if(e.$type)return e.$type;s||(s=r("./protobufjs/src/enum.js"));var t=new s("Enum"+l++,e);return i.decorateRoot.add(t),Object.defineProperty(e,"$type",{value:t,enumerable:!1}),t},i.setProperty=function(e,t,r,o){function s(e,t,r){var i=t.shift();if("__proto__"===i||"prototype"===i)return e;if(t.length>0)e[i]=s(e[i]||{},t,r);else{var n=e[i];if(n&&o)return e;n&&(r=[].concat(n).concat(r)),e[i]=r}return e}if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return s(e,t=t.split("."),r)},Object.defineProperty(i,"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=s;var o=r("./protobufjs/src/util/minimal.js");function s(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=s.zero=new s(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var n=s.zeroHash="\0\0\0\0\0\0\0\0";s.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,o=(e-r)/0x100000000>>>0;return t&&(o=~o>>>0,r=~r>>>0,++r>0xffffffff&&(r=0,++o>0xffffffff&&(o=0))),new s(r,o)},s.from=function(e){if("number"==typeof e)return s.fromNumber(e);if(o.isString(e))if(!o.Long)return s.fromNumber(parseInt(e,10));else e=o.Long.fromString(e);return e.low||e.high?new s(e.low>>>0,e.high>>>0):i},s.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},s.prototype.toLong=function(e){return o.Long?new o.Long(0|this.lo,0|this.hi,!!e):{low:0|this.lo,high:0|this.hi,unsigned:!!e}};var u=String.prototype.charCodeAt;s.fromHash=function(e){return e===n?i:new s((u.call(e,0)|u.call(e,1)<<8|u.call(e,2)<<16|u.call(e,3)<<24)>>>0,(u.call(e,4)|u.call(e,5)<<8|u.call(e,6)<<16|u.call(e,7)<<24)>>>0)},s.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)},s.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},s.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},s.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 o=t;function s(e,t,r){for(var o=Object.keys(t),s=0;s<o.length;++s)void 0!==e[o[s]]&&r||(e[o[s]]=t[o[s]]);return e}function i(e){function t(e,r){if(!(this instanceof t))return new t(e,r);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:Error().stack||""}),r&&s(this,r)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,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}}),t}o.asPromise=r("./@protobufjs/aspromise/index.js"),o.base64=r("./@protobufjs/base64/index.js"),o.EventEmitter=r("./@protobufjs/eventemitter/index.js"),o.float=r("./@protobufjs/float/index.js"),o.inquire=r("./@protobufjs/inquire/index.js"),o.utf8=r("./@protobufjs/utf8/index.js"),o.pool=r("./@protobufjs/pool/index.js"),o.LongBits=r("./protobufjs/src/util/longbits.js"),o.isNode=!!("undefined"!=typeof global&&global&&global.process&&global.process.versions&&global.process.versions.node),o.global=o.isNode&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,o.emptyArray=Object.freeze?Object.freeze([]):[],o.emptyObject=Object.freeze?Object.freeze({}):{},o.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},o.isString=function(e){return"string"==typeof e||e instanceof String},o.isObject=function(e){return e&&"object"==typeof e},o.isset=o.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)},o.Buffer=function(){try{var e=o.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(e){return"number"==typeof e?o.Buffer?o._Buffer_allocUnsafe(e):new o.Array(e):o.Buffer?o._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},o.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire("long"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(e){return e?o.LongBits.from(e).toHash():o.LongBits.zeroHash},o.longFromHash=function(e,t){var r=o.LongBits.fromHash(e);return o.Long?o.Long.fromBits(r.lo,r.hi,t):r.toNumber(!!t)},o.merge=s,o.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},o.newError=i,o.ProtocolError=i("ProtocolError"),o.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]}},o.oneOfSetter=function(e){return function(t){for(var r=0;r<e.length;++r)e[r]!==t&&delete this[e[r]]}},o.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},o._configure=function(){var e=o.Buffer;if(!e){o._Buffer_from=o._Buffer_allocUnsafe=null;return}o._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,r){return new e(t,r)},o._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}}},"./protobufjs/src/verifier.js":function(e,t,r){e.exports=a;var o=r("./protobufjs/src/enum.js"),s=r("./protobufjs/src/util.js");function i(e,t){return e.name+": "+t+(e.repeated&&"array"!==t?"[]":e.map&&"object"!==t?"{k:"+e.keyType+"}":"")+" expected"}function n(e,t,r,s){if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(%s){",s)("default:")("return%j",i(t,"enum value"));for(var n=Object.keys(t.resolvedType.values),u=0;u<n.length;++u)e("case %i:",t.resolvedType.values[n[u]]);e("break")("}")}else e("{")("var e=types[%i].verify(%s);",r,s)("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))",s)("return%j",i(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)))",s,s,s,s)("return%j",i(t,"integer|Long"));break;case"float":case"double":e('if(typeof %s!=="number")',s)("return%j",i(t,"number"));break;case"bool":e('if(typeof %s!=="boolean")',s)("return%j",i(t,"boolean"));break;case"string":e("if(!util.isString(%s))",s)("return%j",i(t,"string"));break;case"bytes":e('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',s,s,s)("return%j",i(t,"buffer"))}return e}function u(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",i(t,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.key64Re.test(%s))",r)("return%j",i(t,"integer|Long key"));break;case"bool":e("if(!util.key2Re.test(%s))",r)("return%j",i(t,"boolean key"))}return e}function a(e){var t=s.codegen(["m"],e.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),r=e.oneofsArray,o={};r.length&&t("var p={}");for(var a=0;a<e.fieldsArray.length;++a){var f=e._fieldsArray[a].resolve(),l="m"+s.safeProp(f.name);if(f.optional&&t("if(%s!=null&&m.hasOwnProperty(%j)){",l,f.name),f.map)t("if(!util.isObject(%s))",l)("return%j",i(f,"object"))("var k=Object.keys(%s)",l)("for(var i=0;i<k.length;++i){"),u(t,f,"k[i]"),n(t,f,a,l+"[k[i]]")("}");else if(f.repeated)t("if(!Array.isArray(%s))",l)("return%j",i(f,"array"))("for(var i=0;i<%s.length;++i){",l),n(t,f,a,l+"[i]")("}");else{if(f.partOf){var p=s.safeProp(f.partOf.name);1===o[f.partOf.name]&&t("if(p%s===1)",p)("return%j",f.partOf.name+": multiple values"),o[f.partOf.name]=1,t("p%s=1",p)}n(t,f,a,l)}f.optional&&t("}")}return t("return null")}},"./protobufjs/src/wrappers.js":function(e,t,r){var o=t,s=r("./protobufjs/src/message.js");o[".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 o="."===e["@type"].charAt(0)?e["@type"].slice(1):e["@type"];return -1===o.indexOf("/")&&(o="/"+o),this.create({type_url:o,value:r.encode(r.fromObject(e)).finish()})}}return this.fromObject(e)},toObject:function(e,t){var r="type.googleapis.com/",o="",i="";if(t&&t.json&&e.type_url&&e.value){i=e.type_url.substring(e.type_url.lastIndexOf("/")+1),o=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var n=this.lookup(i);n&&(e=n.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof s){var u=e.$type.toObject(e,t),a="."===e.$type.fullName[0]?e.$type.fullName.slice(1):e.$type.fullName;return""===o&&(o=r),i=o+a,u["@type"]=i,u}return this.toObject(e,t)}}},"./protobufjs/src/writer.js":function(e,t,r){e.exports=p;var o,s=r("./protobufjs/src/util/minimal.js"),i=s.LongBits,n=s.base64,u=s.utf8;function a(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function f(){}function l(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function p(){this.len=0,this.head=new a(f,0,0),this.tail=this.head,this.states=null}var c=function(){return s.Buffer?function(){return(p.create=function(){return new o})()}:function(){return new p}};function h(e,t,r){t[r]=255&e}function d(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e}function y(e,t){this.len=e,this.next=void 0,this.val=t}function v(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 m(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}p.create=c(),p.alloc=function(e){return new s.Array(e)},s.Array!==Array&&(p.alloc=s.pool(p.alloc,s.Array.prototype.subarray)),p.prototype._push=function(e,t,r){return this.tail=this.tail.next=new a(e,t,r),this.len+=t,this},y.prototype=Object.create(a.prototype),y.prototype.fn=d,p.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new y((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this},p.prototype.int32=function(e){return e<0?this._push(v,10,i.fromNumber(e)):this.uint32(e)},p.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},p.prototype.uint64=function(e){var t=i.from(e);return this._push(v,t.length(),t)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(v,t.length(),t)},p.prototype.bool=function(e){return this._push(h,1,+!!e)},p.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(e){var t=i.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(e){return this._push(s.float.writeFloatLE,4,e)},p.prototype.double=function(e){return this._push(s.float.writeDoubleLE,8,e)};var b=s.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var o=0;o<e.length;++o)t[r+o]=e[o]};p.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(h,1,0);if(s.isString(e)){var r=p.alloc(t=n.length(e));n.decode(e,r,0),e=r}return this.uint32(t)._push(b,t,e)},p.prototype.string=function(e){var t=u.length(e);return t?this.uint32(t)._push(u.write,t,e):this._push(h,1,0)},p.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new a(f,0,0),this.len=0,this},p.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 a(f,0,0),this.len=0),this},p.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},p.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},p._configure=function(e){o=e,p.create=c(),o._configure()}},"./protobufjs/src/writer_buffer.js":function(e,t,r){e.exports=i;var o=r("./protobufjs/src/writer.js");(i.prototype=Object.create(o.prototype)).constructor=i;var s=r("./protobufjs/src/util/minimal.js");function i(){o.call(this)}function n(e,t,r){e.length<40?s.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=s._Buffer_allocUnsafe,i.writeBytesBuffer=s.Buffer&&s.Buffer.prototype instanceof Uint8Array&&"set"===s.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 o=0;o<e.length;)t[r++]=e[o++]}},i.prototype.bytes=function(e){s.isString(e)&&(e=s._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=s.Buffer.byteLength(e);return this.uint32(t),t&&this._push(n,t,e),this},i._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__})();