@ondewo/ondewo-s2t-client-js
Version:
ONDEWO Speech to Text (S2T) Client library for Js
1 lines • 402 kB
JavaScript
var ondewo_s2t_api;(()=>{var e={339(e,t,o){var r="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,o){e!=Array.prototype&&e!=Object.prototype&&(e[t]=o.value)},n="undefined"!=typeof window&&window===this?this:void 0!==o.g&&null!=o.g?o.g:this;function i(){i=function(){},n.Symbol||(n.Symbol=p)}function s(e,t){this.a=e,r(this,"description",{configurable:!0,writable:!0,value:t})}s.prototype.toString=function(){return this.a};var a,p=(a=0,function e(t){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new s("jscomp_symbol_"+(t||"")+"_"+a++,t)});function l(){i();var e=n.Symbol.iterator;e||(e=n.Symbol.iterator=n.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[e]&&r(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return function(e){return l(),e={next:e},e[n.Symbol.iterator]=function(){return this},e}(function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}(this))}}),l=function(){}}!function(e,t){if(t){var o=n;e=e.split(".");for(var i=0;i<e.length-1;i++){var s=e[i];s in o||(o[s]={}),o=o[s]}(t=t(i=o[e=e[e.length-1]]))!=i&&null!=t&&r(o,e,{configurable:!0,writable:!0,value:t})}}("Array.prototype.entries",function(e){return e||function(){return function(e,t){l(),e instanceof String&&(e+="");var o=0,r={next:function(){if(o<e.length){var n=o++;return{value:t(n,e[n]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r}(this,function(e,t){return[e,t]})}});var u=this||self;function d(e,t,o){e=e.split("."),o=o||u,e[0]in o||void 0===o.execScript||o.execScript("var "+e[0]);for(var r;e.length&&(r=e.shift());)e.length||void 0===t?o=o[r]&&o[r]!==Object.prototype[r]?o[r]:o[r]={}:o[r]=t}function c(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var o=Object.prototype.toString.call(e);if("[object Window]"==o)return"object";if("[object Array]"==o||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==o||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t}function g(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var f="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var h=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t,void 0)}:function(e,t){for(var o=e.length,r="string"==typeof e?e.split(""):e,n=0;n<o;n++)n in r&&t.call(void 0,r[n],n,e)},y=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var o=e.length,r=Array(o),n="string"==typeof e?e.split(""):e,i=0;i<o;i++)i in n&&(r[i]=t.call(void 0,n[i],i,e));return r};function w(e,t,o){return 2>=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,o)}function S(e,t,o,r){var n="Assertion failed";if(o){n+=": "+o;var i=r}else e&&(n+=": "+e,i=t);throw Error(n,i||[])}function m(e,t,o){for(var r=[],n=2;n<arguments.length;++n)r[n-2]=arguments[n];return e||S("",null,t,r),e}function M(e,t){for(var o=[],r=1;r<arguments.length;++r)o[r-1]=arguments[r];throw Error("Failure"+(e?": "+e:""),o)}function P(e,t,o,r){for(var n=[],i=3;i<arguments.length;++i)n[i-3]=arguments[i];e instanceof t||S("Expected instanceof %s but got %s.",[v(t),v(e)],o,n)}function v(e){return e instanceof Function?e.displayName||e.name||"unknown type name":e instanceof Object?e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e):null===e?"null":typeof e}function b(e,t){if(this.c=e,this.b=t,this.a={},this.arrClean=!0,0<this.c.length){for(e=0;e<this.c.length;e++){var o=(t=this.c[e])[0];this.a[o.toString()]=new L(o,t[1])}this.arrClean=!0}}function F(e){this.a=0,this.b=e}function T(e,t){return e.b?(t.a||(t.a=new e.b(t.value)),t.a):t.value}function O(e){e=e.a;var t,o=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.push(t);return o}function L(e,t){this.key=e,this.value=t,this.a=void 0}function C(e){if(8192>=e.length)return String.fromCharCode.apply(null,e);for(var t="",o=0;o<e.length;o+=8192)t+=String.fromCharCode.apply(null,w(e,o,o+8192));return t}d("jspb.Map",b,void 0),b.prototype.g=function(){if(this.arrClean){if(this.b){var e,t=this.a;for(e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var o=t[e].a;o&&o.g()}}}else{for(this.c.length=0,(t=O(this)).sort(),e=0;e<t.length;e++){var r=this.a[t[e]];(o=r.a)&&o.g(),this.c.push([r.key,r.value])}this.arrClean=!0}return this.c},b.prototype.toArray=b.prototype.g,b.prototype.Mc=function(e,t){for(var o=this.g(),r=[],n=0;n<o.length;n++){var i=this.a[o[n][0].toString()];T(this,i);var s=i.a;s?(m(t),r.push([i.key,t(e,s)])):r.push([i.key,i.value])}return r},b.prototype.toObject=b.prototype.Mc,b.fromObject=function(e,t,o){t=new b([],t);for(var r=0;r<e.length;r++){var n=e[r][0],i=o(e[r][1]);t.set(n,i)}return t},F.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},"undefined"!=typeof Symbol&&(F.prototype[Symbol.iterator]=function(){return this}),b.prototype.Jb=function(){return O(this).length},b.prototype.getLength=b.prototype.Jb,b.prototype.clear=function(){this.a={},this.arrClean=!1},b.prototype.clear=b.prototype.clear,b.prototype.Cb=function(e){e=e.toString();var t=this.a.hasOwnProperty(e);return delete this.a[e],this.arrClean=!1,t},b.prototype.del=b.prototype.Cb,b.prototype.Eb=function(){var e=[],t=O(this);t.sort();for(var o=0;o<t.length;o++){var r=this.a[t[o]];e.push([r.key,r.value])}return e},b.prototype.getEntryList=b.prototype.Eb,b.prototype.entries=function(){var e=[],t=O(this);t.sort();for(var o=0;o<t.length;o++){var r=this.a[t[o]];e.push([r.key,T(this,r)])}return new F(e)},b.prototype.entries=b.prototype.entries,b.prototype.keys=function(){var e=[],t=O(this);t.sort();for(var o=0;o<t.length;o++)e.push(this.a[t[o]].key);return new F(e)},b.prototype.keys=b.prototype.keys,b.prototype.values=function(){var e=[],t=O(this);t.sort();for(var o=0;o<t.length;o++)e.push(T(this,this.a[t[o]]));return new F(e)},b.prototype.values=b.prototype.values,b.prototype.forEach=function(e,t){var o=O(this);o.sort();for(var r=0;r<o.length;r++){var n=this.a[o[r]];e.call(t,T(this,n),n.key,this)}},b.prototype.forEach=b.prototype.forEach,b.prototype.set=function(e,t){var o=new L(e);return this.b?(o.a=t,o.value=t.g()):o.value=t,this.a[e.toString()]=o,this.arrClean=!1,this},b.prototype.set=b.prototype.set,b.prototype.get=function(e){if(e=this.a[e.toString()])return T(this,e)},b.prototype.get=b.prototype.get,b.prototype.has=function(e){return e.toString()in this.a},b.prototype.has=b.prototype.has,b.prototype.Jc=function(e,t,o,r,n){var i=O(this);i.sort();for(var s=0;s<i.length;s++){var a=this.a[i[s]];t.Va(e),o.call(t,1,a.key),this.b?r.call(t,2,T(this,a),n):r.call(t,2,a.value),t.Ya()}},b.prototype.serializeBinary=b.prototype.Jc,b.deserializeBinary=function(e,t,o,r,n,i,s){for(;t.oa()&&!t.bb();){var a=t.c;1==a?i=o.call(t):2==a&&(e.b?(m(n),s||(s=new e.b),r.call(t,s,n)):s=r.call(t))}m(null!=i),m(null!=s),e.set(i,s)};var R={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},B={"'":"\\'"},D={},W=null;function z(e,t){void 0===t&&(t=0),N(),t=D[t];for(var o=[],r=0;r<e.length;r+=3){var n=e[r],i=r+1<e.length,s=i?e[r+1]:0,a=r+2<e.length,p=a?e[r+2]:0,l=n>>2;n=(3&n)<<4|s>>4,s=(15&s)<<2|p>>6,p&=63,a||(p=64,i||(s=64)),o.push(t[l],t[n],t[s]||"",t[p]||"")}return o.join("")}function E(e){var t=e.length,o=3*t/4;o%3?o=Math.floor(o):-1!="=.".indexOf(e[t-1])&&(o=-1!="=.".indexOf(e[t-2])?o-2:o-1);var r=new Uint8Array(o),n=0;return function(e,t){function o(t){for(;r<e.length;){var o=e.charAt(r++),n=W[o];if(null!=n)return n;if(!/^[\s\xa0]*$/.test(o))throw Error("Unknown base64 encoding at char: "+o)}return t}N();for(var r=0;;){var n=o(-1),i=o(0),s=o(64),a=o(64);if(64===a&&-1===n)break;t(n<<2|i>>4),64!=s&&(t(i<<4&240|s>>2),64!=a&&t(s<<6&192|a))}}(e,function(e){r[n++]=e}),r.subarray(0,n)}function N(){if(!W){W={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],o=0;5>o;o++){var r=e.concat(t[o].split(""));D[o]=r;for(var n=0;n<r.length;n++){var i=r[n];void 0===W[i]&&(W[i]=n)}}}}d("jspb.ConstBinaryMessage",function(){},void 0),d("jspb.BinaryMessage",function(){},void 0),d("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0),d("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),d("jspb.BinaryConstants.FieldTypeToWireType",function(e){switch(e){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}},void 0),d("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),d("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),d("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),d("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),d("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),d("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),d("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),d("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),d("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),d("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),d("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),d("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),d("jspb.BinaryConstants.TWO_TO_63",0x8000000000000000,void 0),d("jspb.BinaryConstants.TWO_TO_64",0x10000000000000000,void 0),d("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var A=0,k=0;function I(e){var t=e>>>0;e=Math.floor((e-t)/4294967296)>>>0,A=t,k=e}function x(e){var t=0>e,o=(e=Math.abs(e))>>>0;e=Math.floor((e-o)/4294967296),e>>>=0,t&&(e=~e>>>0,4294967295<(o=(~o>>>0)+1)&&(o=0,4294967295<++e&&(e=0))),A=o,k=e}function j(e){var t=0>e;I(e=2*Math.abs(e)),e=A;var o=k;t&&(0==e?0==o?o=e=4294967295:(o--,e=4294967295):e--),A=e,k=o}function _(e){var t=0>e?1:0;if(0===(e=t?-e:e))0<1/e?A=k=0:(k=0,A=2147483648);else if(isNaN(e))k=0,A=2147483647;else if(34028234663852886e22<e)k=0,A=(t<<31|2139095040)>>>0;else if(11754943508222875e-54>e)e=Math.round(e/Math.pow(2,-149)),k=0,A=(t<<31|e)>>>0;else{var o=Math.floor(Math.log(e)/Math.LN2);e*=Math.pow(2,-o),16777216<=(e=Math.round(8388608*e))&&++o,k=0,A=(t<<31|o+127<<23|8388607&e)>>>0}}function U(e){var t=0>e?1:0;if(0===(e=t?-e:e))k=0<1/e?0:2147483648,A=0;else if(isNaN(e))k=2147483647,A=4294967295;else if(17976931348623157e292<e)k=(t<<31|2146435072)>>>0,A=0;else if(22250738585072014e-324>e)e/=Math.pow(2,-1074),k=(t<<31|e/4294967296)>>>0,A=e>>>0;else{var o=e,r=0;if(2<=o)for(;2<=o&&1023>r;)r++,o/=2;else for(;1>o&&-1022<r;)o*=2,r--;e*=Math.pow(2,-r),k=(t<<31|r+1023<<20|1048576*e&1048575)>>>0,A=4503599627370496*e>>>0}}function G(e){var t=e.charCodeAt(4),o=e.charCodeAt(5),r=e.charCodeAt(6),n=e.charCodeAt(7);A=e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)>>>0,k=t+(o<<8)+(r<<16)+(n<<24)>>>0}function V(e,t){return 4294967296*t+(e>>>0)}function q(e,t){var o=2147483648&t;return o&&(t=~t>>>0,0==(e=1+~e>>>0)&&(t=t+1>>>0)),e=V(e,t),o?-e:e}function H(e,t,o){var r=t>>31;return o(e<<1^r,(t<<1|e>>>31)^r)}function J(e,t){return $(e,t,q)}function $(e,t,o){var r=-(1&e);return o((e>>>1|t<<31)^r,t>>>1^r)}function K(e){var t=2*(e>>31)+1,o=e>>>23&255;return e&=8388607,255==o?e?NaN:1/0*t:0==o?t*Math.pow(2,-149)*e:t*Math.pow(2,o-150)*(e+Math.pow(2,23))}function Z(e,t){var o=2*(t>>31)+1,r=t>>>20&2047;return e=4294967296*(1048575&t)+e,2047==r?e?NaN:1/0*o:0==r?o*Math.pow(2,-1074)*e:o*Math.pow(2,r-1075)*(e+4503599627370496)}function X(e,t){return String.fromCharCode(e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255,t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255)}function Y(e,t){function o(e,t){return e=e?String(e):"",t?"0000000".slice(e.length)+e:e}if(2097151>=t)return""+V(e,t);var r=(e>>>24|t<<8)>>>0&16777215;return e=(16777215&e)+6777216*r+6710656*(t=t>>16&65535),r+=8147497*t,t*=2,1e7<=e&&(r+=Math.floor(e/1e7),e%=1e7),1e7<=r&&(t+=Math.floor(r/1e7),r%=1e7),o(t,0)+o(r,t)+o(e,1)}function Q(e,t){var o=2147483648&t;return o&&(t=~t+(0==(e=1+~e>>>0)?1:0)>>>0),e=Y(e,t),o?"-"+e:e}function ee(e,t){G(e),e=A;var o=k;return t?Q(e,o):Y(e,o)}function te(e){function t(e,t){for(var o=0;8>o&&(1!==e||0<t);o++)t=e*r[o]+t,r[o]=255&t,t>>>=8}m(0<e.length);var o=!1;"-"===e[0]&&(o=!0,e=e.slice(1));for(var r=[0,0,0,0,0,0,0,0],n=0;n<e.length;n++)t(10,e.charCodeAt(n)-48);return o&&(function(){for(var e=0;8>e;e++)r[e]=255&~r[e]}(),t(1,1)),C(r)}function oe(e){return String.fromCharCode(10>e?48+e:87+e)}function re(e){return 97<=e?e-97+10:e-48}function ne(e,t,o,r,n){var i=0;if(128>r)for(;t<o&&e[t++]==r;)i++,t+=n;else for(;t<o;){for(var s=r;128<s;){if(e[t++]!=(127&s|128))return i;s>>=7}if(e[t++]!=s)break;i++,t+=n}return i}function ie(e){return e.constructor===Uint8Array?e:e.constructor===ArrayBuffer||e.constructor===Array?new Uint8Array(e):e.constructor===String?E(e):e instanceof Uint8Array?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):(M("Type not convertible to Uint8Array."),new Uint8Array(0))}function se(e,t,o){this.b=null,this.a=this.c=this.h=0,this.v=!1,e&&this.H(e,t,o)}d("jspb.utils.getSplit64Low",function(){return A},void 0),d("jspb.utils.getSplit64High",function(){return k},void 0),d("jspb.utils.splitUint64",I,void 0),d("jspb.utils.splitInt64",x,void 0),d("jspb.utils.splitZigzag64",j,void 0),d("jspb.utils.splitFloat32",_,void 0),d("jspb.utils.splitFloat64",U,void 0),d("jspb.utils.splitHash64",G,void 0),d("jspb.utils.joinUint64",V,void 0),d("jspb.utils.joinInt64",q,void 0),d("jspb.utils.toZigzag64",H,void 0),d("jspb.utils.joinZigzag64",J,void 0),d("jspb.utils.fromZigzag64",$,void 0),d("jspb.utils.joinFloat32",K,void 0),d("jspb.utils.joinFloat64",Z,void 0),d("jspb.utils.joinHash64",X,void 0),d("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0),d("jspb.utils.joinUnsignedDecimalString",Y,void 0),d("jspb.utils.joinSignedDecimalString",Q,void 0),d("jspb.utils.hash64ToDecimalString",ee,void 0),d("jspb.utils.hash64ArrayToDecimalStrings",function(e,t){for(var o=Array(e.length),r=0;r<e.length;r++)o[r]=ee(e[r],t);return o},void 0),d("jspb.utils.decimalStringToHash64",te,void 0),d("jspb.utils.splitDecimalString",function(e){G(te(e))},void 0),d("jspb.utils.hash64ToHexString",function(e){var t=Array(18);t[0]="0",t[1]="x";for(var o=0;8>o;o++){var r=e.charCodeAt(7-o);t[2*o+2]=oe(r>>4),t[2*o+3]=oe(15&r)}return t.join("")},void 0),d("jspb.utils.hexStringToHash64",function(e){m(18==(e=e.toLowerCase()).length),m("0"==e[0]),m("x"==e[1]);for(var t="",o=0;8>o;o++)t=String.fromCharCode(16*re(e.charCodeAt(2*o+2))+re(e.charCodeAt(2*o+3)))+t;return t},void 0),d("jspb.utils.hash64ToNumber",function(e,t){G(e),e=A;var o=k;return t?q(e,o):V(e,o)},void 0),d("jspb.utils.numberToHash64",function(e){return x(e),X(A,k)},void 0),d("jspb.utils.countVarints",function(e,t,o){for(var r=0,n=t;n<o;n++)r+=e[n]>>7;return o-t-r},void 0),d("jspb.utils.countVarintFields",function(e,t,o,r){var n=0;if(128>(r*=8))for(;t<o&&e[t++]==r;)for(n++;;){var i=e[t++];if(!(128&i))break}else for(;t<o;){for(i=r;128<i;){if(e[t]!=(127&i|128))return n;t++,i>>=7}if(e[t++]!=i)break;for(n++;128&(i=e[t++]););}return n},void 0),d("jspb.utils.countFixed32Fields",function(e,t,o,r){return ne(e,t,o,8*r+5,4)},void 0),d("jspb.utils.countFixed64Fields",function(e,t,o,r){return ne(e,t,o,8*r+1,8)},void 0),d("jspb.utils.countDelimitedFields",function(e,t,o,r){var n=0;for(r=8*r+2;t<o;){for(var i=r;128<i;){if(e[t++]!=(127&i|128))return n;i>>=7}if(e[t++]!=i)break;n++;for(var s=0,a=1;s+=(127&(i=e[t++]))*a,a*=128,128&i;);t+=s}return n},void 0),d("jspb.utils.debugBytesToTextFormat",function(e){var t='"';if(e){e=ie(e);for(var o=0;o<e.length;o++)t+="\\x",16>e[o]&&(t+="0"),t+=e[o].toString(16)}return t+'"'},void 0),d("jspb.utils.debugScalarToTextFormat",function(e){if("string"==typeof e){e=String(e);for(var t=['"'],o=0;o<e.length;o++){var r,n=e.charAt(o),i=n.charCodeAt(0),s=o+1;(r=R[n])||(31<i&&127>i||((i=n)in B?n=B[i]:i in R?n=B[i]=R[i]:(31<(r=i.charCodeAt(0))&&127>r?n=i:(256>r?(n="\\x",(16>r||256<r)&&(n+="0")):(n="\\u",4096>r&&(n+="0")),n+=r.toString(16).toUpperCase()),n=B[i]=n)),r=n),t[s]=r}t.push('"'),e=t.join("")}else e=e.toString();return e},void 0),d("jspb.utils.stringToByteArray",function(e){for(var t=new Uint8Array(e.length),o=0;o<e.length;o++){var r=e.charCodeAt(o);if(255<r)throw Error("Conversion error: string contains codepoint outside of byte range");t[o]=r}return t},void 0),d("jspb.utils.byteSourceToUint8Array",ie,void 0),d("jspb.BinaryDecoder",se,void 0);var ae=[];function pe(e,t,o){if(ae.length){var r=ae.pop();return e&&r.H(e,t,o),r}return new se(e,t,o)}function le(e,t,o){this.a=pe(e,t,o),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}se.getInstanceCacheLength=function(){return ae.length},se.alloc=pe,se.prototype.Ca=function(){this.clear(),100>ae.length&&ae.push(this)},se.prototype.free=se.prototype.Ca,se.prototype.clone=function(){return pe(this.b,this.h,this.c-this.h)},se.prototype.clone=se.prototype.clone,se.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},se.prototype.clear=se.prototype.clear,se.prototype.Y=function(){return this.b},se.prototype.getBuffer=se.prototype.Y,se.prototype.H=function(e,t,o){this.b=ie(e),this.h=void 0!==t?t:0,this.c=void 0!==o?this.h+o:this.b.length,this.a=this.h},se.prototype.setBlock=se.prototype.H,se.prototype.Db=function(){return this.c},se.prototype.getEnd=se.prototype.Db,se.prototype.setEnd=function(e){this.c=e},se.prototype.setEnd=se.prototype.setEnd,se.prototype.reset=function(){this.a=this.h},se.prototype.reset=se.prototype.reset,se.prototype.B=function(){return this.a},se.prototype.getCursor=se.prototype.B,se.prototype.Ma=function(e){this.a=e},se.prototype.setCursor=se.prototype.Ma,se.prototype.advance=function(e){this.a+=e,m(this.a<=this.c)},se.prototype.advance=se.prototype.advance,se.prototype.ya=function(){return this.a==this.c},se.prototype.atEnd=se.prototype.ya,se.prototype.Qb=function(){return this.a>this.c},se.prototype.pastEnd=se.prototype.Qb,se.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},se.prototype.getError=se.prototype.getError,se.prototype.w=function(e){for(var t=128,o=0,r=0,n=0;4>n&&128<=t;n++)o|=(127&(t=this.b[this.a++]))<<7*n;if(128<=t&&(o|=(127&(t=this.b[this.a++]))<<28,r|=(127&t)>>4),128<=t)for(n=0;5>n&&128<=t;n++)r|=(127&(t=this.b[this.a++]))<<7*n+3;if(128>t)return e(o>>>0,r>>>0);M("Failed to read varint, encoding is invalid."),this.v=!0},se.prototype.readSplitVarint64=se.prototype.w,se.prototype.ea=function(e){return this.w(function(t,o){return $(t,o,e)})},se.prototype.readSplitZigzagVarint64=se.prototype.ea,se.prototype.ta=function(e){var t=this.b,o=this.a;this.a+=8;for(var r=0,n=0,i=o+7;i>=o;i--)r=r<<8|t[i],n=n<<8|t[i+4];return e(r,n)},se.prototype.readSplitFixed64=se.prototype.ta,se.prototype.kb=function(){for(;128&this.b[this.a];)this.a++;this.a++},se.prototype.skipVarint=se.prototype.kb,se.prototype.mb=function(e){for(;128<e;)this.a--,e>>>=7;this.a--},se.prototype.unskipVarint=se.prototype.mb,se.prototype.o=function(){var e=this.b,t=e[this.a],o=127&t;return 128>t?(this.a+=1,m(this.a<=this.c),o):(o|=(127&(t=e[this.a+1]))<<7,128>t?(this.a+=2,m(this.a<=this.c),o):(o|=(127&(t=e[this.a+2]))<<14,128>t?(this.a+=3,m(this.a<=this.c),o):(o|=(127&(t=e[this.a+3]))<<21,128>t?(this.a+=4,m(this.a<=this.c),o):(o|=(15&(t=e[this.a+4]))<<28,128>t?(this.a+=5,m(this.a<=this.c),o>>>0):(this.a+=5,128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&m(!1),m(this.a<=this.c),o)))))},se.prototype.readUnsignedVarint32=se.prototype.o,se.prototype.da=function(){return~~this.o()},se.prototype.readSignedVarint32=se.prototype.da,se.prototype.O=function(){return this.o().toString()},se.prototype.Ea=function(){return this.da().toString()},se.prototype.readSignedVarint32String=se.prototype.Ea,se.prototype.Ia=function(){var e=this.o();return e>>>1^-(1&e)},se.prototype.readZigzagVarint32=se.prototype.Ia,se.prototype.Ga=function(){return this.w(V)},se.prototype.readUnsignedVarint64=se.prototype.Ga,se.prototype.Ha=function(){return this.w(Y)},se.prototype.readUnsignedVarint64String=se.prototype.Ha,se.prototype.sa=function(){return this.w(q)},se.prototype.readSignedVarint64=se.prototype.sa,se.prototype.Fa=function(){return this.w(Q)},se.prototype.readSignedVarint64String=se.prototype.Fa,se.prototype.Ja=function(){return this.w(J)},se.prototype.readZigzagVarint64=se.prototype.Ja,se.prototype.fb=function(){return this.ea(X)},se.prototype.readZigzagVarintHash64=se.prototype.fb,se.prototype.Ka=function(){return this.ea(Q)},se.prototype.readZigzagVarint64String=se.prototype.Ka,se.prototype.Gc=function(){var e=this.b[this.a];return this.a+=1,m(this.a<=this.c),e},se.prototype.readUint8=se.prototype.Gc,se.prototype.Ec=function(){var e=this.b[this.a],t=this.b[this.a+1];return this.a+=2,m(this.a<=this.c),e|t<<8},se.prototype.readUint16=se.prototype.Ec,se.prototype.m=function(){var e=this.b[this.a],t=this.b[this.a+1],o=this.b[this.a+2],r=this.b[this.a+3];return this.a+=4,m(this.a<=this.c),(e|t<<8|o<<16|r<<24)>>>0},se.prototype.readUint32=se.prototype.m,se.prototype.ga=function(){return V(this.m(),this.m())},se.prototype.readUint64=se.prototype.ga,se.prototype.ha=function(){return Y(this.m(),this.m())},se.prototype.readUint64String=se.prototype.ha,se.prototype.Xb=function(){var e=this.b[this.a];return this.a+=1,m(this.a<=this.c),e<<24>>24},se.prototype.readInt8=se.prototype.Xb,se.prototype.Vb=function(){var e=this.b[this.a],t=this.b[this.a+1];return this.a+=2,m(this.a<=this.c),(e|t<<8)<<16>>16},se.prototype.readInt16=se.prototype.Vb,se.prototype.P=function(){var e=this.b[this.a],t=this.b[this.a+1],o=this.b[this.a+2],r=this.b[this.a+3];return this.a+=4,m(this.a<=this.c),e|t<<8|o<<16|r<<24},se.prototype.readInt32=se.prototype.P,se.prototype.ba=function(){return q(this.m(),this.m())},se.prototype.readInt64=se.prototype.ba,se.prototype.ca=function(){return Q(this.m(),this.m())},se.prototype.readInt64String=se.prototype.ca,se.prototype.aa=function(){return K(this.m())},se.prototype.readFloat=se.prototype.aa,se.prototype.Z=function(){return Z(this.m(),this.m())},se.prototype.readDouble=se.prototype.Z,se.prototype.pa=function(){return!!this.b[this.a++]},se.prototype.readBool=se.prototype.pa,se.prototype.ra=function(){return this.da()},se.prototype.readEnum=se.prototype.ra,se.prototype.fa=function(e){var t=this.b,o=this.a;e=o+e;for(var r=[],n="";o<e;){var i=t[o++];if(128>i)r.push(i);else{if(192>i)continue;if(224>i){var s=t[o++];r.push((31&i)<<6|63&s)}else if(240>i){s=t[o++];var a=t[o++];r.push((15&i)<<12|(63&s)<<6|63&a)}else if(248>i){i=(7&i)<<18|(63&(s=t[o++]))<<12|(63&(a=t[o++]))<<6|63&t[o++],i-=65536,r.push(55296+(i>>10&1023),56320+(1023&i))}}8192<=r.length&&(n+=String.fromCharCode.apply(null,r),r.length=0)}return n+=C(r),this.a=o,n},se.prototype.readString=se.prototype.fa,se.prototype.Dc=function(){var e=this.o();return this.fa(e)},se.prototype.readStringWithLength=se.prototype.Dc,se.prototype.qa=function(e){if(0>e||this.a+e>this.b.length)return this.v=!0,M("Invalid byte length!"),new Uint8Array(0);var t=this.b.subarray(this.a,this.a+e);return this.a+=e,m(this.a<=this.c),t},se.prototype.readBytes=se.prototype.qa,se.prototype.ia=function(){return this.w(X)},se.prototype.readVarintHash64=se.prototype.ia,se.prototype.$=function(){var e=this.b,t=this.a,o=e[t],r=e[t+1],n=e[t+2],i=e[t+3],s=e[t+4],a=e[t+5],p=e[t+6];return e=e[t+7],this.a+=8,String.fromCharCode(o,r,n,i,s,a,p,e)},se.prototype.readFixedHash64=se.prototype.$,d("jspb.BinaryReader",le,void 0);var ue=[];function de(e,t,o){if(ue.length){var r=ue.pop();return e&&r.a.H(e,t,o),r}return new le(e,t,o)}function ce(e,t){m(2==e.b);var o=e.a.o();o=e.a.B()+o;for(var r=[];e.a.B()<o;)r.push(t.call(e.a));return r}function ge(e,t,o,r,n){this.ma=e,this.Ba=t,this.la=o,this.Na=r,this.na=n}function fe(e,t,o,r,n,i){this.Za=e,this.za=t,this.Aa=o,this.Wa=r,this.Ab=n,this.Nb=i}function he(){}le.clearInstanceCache=function(){ue=[]},le.getInstanceCacheLength=function(){return ue.length},le.alloc=de,le.prototype.zb=de,le.prototype.alloc=le.prototype.zb,le.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>ue.length&&ue.push(this)},le.prototype.free=le.prototype.Ca,le.prototype.Fb=function(){return this.O},le.prototype.getFieldCursor=le.prototype.Fb,le.prototype.B=function(){return this.a.B()},le.prototype.getCursor=le.prototype.B,le.prototype.Y=function(){return this.a.Y()},le.prototype.getBuffer=le.prototype.Y,le.prototype.Hb=function(){return this.c},le.prototype.getFieldNumber=le.prototype.Hb,le.prototype.Lb=function(){return this.b},le.prototype.getWireType=le.prototype.Lb,le.prototype.Mb=function(){return 2==this.b},le.prototype.isDelimited=le.prototype.Mb,le.prototype.bb=function(){return 4==this.b},le.prototype.isEndGroup=le.prototype.bb,le.prototype.getError=function(){return this.h||this.a.getError()},le.prototype.getError=le.prototype.getError,le.prototype.H=function(e,t,o){this.a.H(e,t,o),this.b=this.c=-1},le.prototype.setBlock=le.prototype.H,le.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},le.prototype.reset=le.prototype.reset,le.prototype.advance=function(e){this.a.advance(e)},le.prototype.advance=le.prototype.advance,le.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return M("Decoder hit an error"),!1;this.O=this.a.B();var e=this.a.o(),t=e>>>3;return 0!=(e&=7)&&5!=e&&1!=e&&2!=e&&3!=e&&4!=e?(M("Invalid wire type: %s (at position %s)",e,this.O),this.h=!0,!1):(this.c=t,this.b=e,!0)},le.prototype.nextField=le.prototype.oa,le.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},le.prototype.unskipHeader=le.prototype.Oa,le.prototype.Lc=function(){var e=this.c;for(this.Oa();this.oa()&&this.c==e;)this.C();this.a.ya()||this.Oa()},le.prototype.skipMatchingFields=le.prototype.Lc,le.prototype.lb=function(){0!=this.b?(M("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},le.prototype.skipVarintField=le.prototype.lb,le.prototype.gb=function(){if(2!=this.b)M("Invalid wire type for skipDelimitedField"),this.C();else{var e=this.a.o();this.a.advance(e)}},le.prototype.skipDelimitedField=le.prototype.gb,le.prototype.hb=function(){5!=this.b?(M("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},le.prototype.skipFixed32Field=le.prototype.hb,le.prototype.ib=function(){1!=this.b?(M("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},le.prototype.skipFixed64Field=le.prototype.ib,le.prototype.jb=function(){for(var e=this.c;;){if(!this.oa()){M("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(4==this.b){this.c!=e&&(M("Unmatched end-group tag"),this.h=!0);break}this.C()}},le.prototype.skipGroup=le.prototype.jb,le.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:M("Invalid wire encoding for field.")}},le.prototype.skipField=le.prototype.C,le.prototype.Hc=function(e,t){null===this.v&&(this.v={}),m(!this.v[e]),this.v[e]=t},le.prototype.registerReadCallback=le.prototype.Hc,le.prototype.Ic=function(e){return m(null!==this.v),m(e=this.v[e]),e(this)},le.prototype.runReadCallback=le.prototype.Ic,le.prototype.Yb=function(e,t){m(2==this.b);var o=this.a.c,r=this.a.o();r=this.a.B()+r,this.a.setEnd(r),t(e,this),this.a.Ma(r),this.a.setEnd(o)},le.prototype.readMessage=le.prototype.Yb,le.prototype.Ub=function(e,t,o){m(3==this.b),m(this.c==e),o(t,this),this.h||4==this.b||(M("Group submessage did not end with an END_GROUP tag"),this.h=!0)},le.prototype.readGroup=le.prototype.Ub,le.prototype.Gb=function(){m(2==this.b);var e=this.a.o(),t=this.a.B(),o=t+e;return e=pe(this.a.Y(),t,e),this.a.Ma(o),e},le.prototype.getFieldDecoder=le.prototype.Gb,le.prototype.P=function(){return m(0==this.b),this.a.da()},le.prototype.readInt32=le.prototype.P,le.prototype.Wb=function(){return m(0==this.b),this.a.Ea()},le.prototype.readInt32String=le.prototype.Wb,le.prototype.ba=function(){return m(0==this.b),this.a.sa()},le.prototype.readInt64=le.prototype.ba,le.prototype.ca=function(){return m(0==this.b),this.a.Fa()},le.prototype.readInt64String=le.prototype.ca,le.prototype.m=function(){return m(0==this.b),this.a.o()},le.prototype.readUint32=le.prototype.m,le.prototype.Fc=function(){return m(0==this.b),this.a.O()},le.prototype.readUint32String=le.prototype.Fc,le.prototype.ga=function(){return m(0==this.b),this.a.Ga()},le.prototype.readUint64=le.prototype.ga,le.prototype.ha=function(){return m(0==this.b),this.a.Ha()},le.prototype.readUint64String=le.prototype.ha,le.prototype.zc=function(){return m(0==this.b),this.a.Ia()},le.prototype.readSint32=le.prototype.zc,le.prototype.Ac=function(){return m(0==this.b),this.a.Ja()},le.prototype.readSint64=le.prototype.Ac,le.prototype.Bc=function(){return m(0==this.b),this.a.Ka()},le.prototype.readSint64String=le.prototype.Bc,le.prototype.Rb=function(){return m(5==this.b),this.a.m()},le.prototype.readFixed32=le.prototype.Rb,le.prototype.Sb=function(){return m(1==this.b),this.a.ga()},le.prototype.readFixed64=le.prototype.Sb,le.prototype.Tb=function(){return m(1==this.b),this.a.ha()},le.prototype.readFixed64String=le.prototype.Tb,le.prototype.vc=function(){return m(5==this.b),this.a.P()},le.prototype.readSfixed32=le.prototype.vc,le.prototype.wc=function(){return m(5==this.b),this.a.P().toString()},le.prototype.readSfixed32String=le.prototype.wc,le.prototype.xc=function(){return m(1==this.b),this.a.ba()},le.prototype.readSfixed64=le.prototype.xc,le.prototype.yc=function(){return m(1==this.b),this.a.ca()},le.prototype.readSfixed64String=le.prototype.yc,le.prototype.aa=function(){return m(5==this.b),this.a.aa()},le.prototype.readFloat=le.prototype.aa,le.prototype.Z=function(){return m(1==this.b),this.a.Z()},le.prototype.readDouble=le.prototype.Z,le.prototype.pa=function(){return m(0==this.b),!!this.a.o()},le.prototype.readBool=le.prototype.pa,le.prototype.ra=function(){return m(0==this.b),this.a.sa()},le.prototype.readEnum=le.prototype.ra,le.prototype.fa=function(){m(2==this.b);var e=this.a.o();return this.a.fa(e)},le.prototype.readString=le.prototype.fa,le.prototype.qa=function(){m(2==this.b);var e=this.a.o();return this.a.qa(e)},le.prototype.readBytes=le.prototype.qa,le.prototype.ia=function(){return m(0==this.b),this.a.ia()},le.prototype.readVarintHash64=le.prototype.ia,le.prototype.Cc=function(){return m(0==this.b),this.a.fb()},le.prototype.readSintHash64=le.prototype.Cc,le.prototype.w=function(e){return m(0==this.b),this.a.w(e)},le.prototype.readSplitVarint64=le.prototype.w,le.prototype.ea=function(e){return m(0==this.b),this.a.w(function(t,o){return $(t,o,e)})},le.prototype.readSplitZigzagVarint64=le.prototype.ea,le.prototype.$=function(){return m(1==this.b),this.a.$()},le.prototype.readFixedHash64=le.prototype.$,le.prototype.ta=function(e){return m(1==this.b),this.a.ta(e)},le.prototype.readSplitFixed64=le.prototype.ta,le.prototype.gc=function(){return ce(this,this.a.da)},le.prototype.readPackedInt32=le.prototype.gc,le.prototype.hc=function(){return ce(this,this.a.Ea)},le.prototype.readPackedInt32String=le.prototype.hc,le.prototype.ic=function(){return ce(this,this.a.sa)},le.prototype.readPackedInt64=le.prototype.ic,le.prototype.jc=function(){return ce(this,this.a.Fa)},le.prototype.readPackedInt64String=le.prototype.jc,le.prototype.qc=function(){return ce(this,this.a.o)},le.prototype.readPackedUint32=le.prototype.qc,le.prototype.rc=function(){return ce(this,this.a.O)},le.prototype.readPackedUint32String=le.prototype.rc,le.prototype.sc=function(){return ce(this,this.a.Ga)},le.prototype.readPackedUint64=le.prototype.sc,le.prototype.tc=function(){return ce(this,this.a.Ha)},le.prototype.readPackedUint64String=le.prototype.tc,le.prototype.nc=function(){return ce(this,this.a.Ia)},le.prototype.readPackedSint32=le.prototype.nc,le.prototype.oc=function(){return ce(this,this.a.Ja)},le.prototype.readPackedSint64=le.prototype.oc,le.prototype.pc=function(){return ce(this,this.a.Ka)},le.prototype.readPackedSint64String=le.prototype.pc,le.prototype.bc=function(){return ce(this,this.a.m)},le.prototype.readPackedFixed32=le.prototype.bc,le.prototype.cc=function(){return ce(this,this.a.ga)},le.prototype.readPackedFixed64=le.prototype.cc,le.prototype.dc=function(){return ce(this,this.a.ha)},le.prototype.readPackedFixed64String=le.prototype.dc,le.prototype.kc=function(){return ce(this,this.a.P)},le.prototype.readPackedSfixed32=le.prototype.kc,le.prototype.lc=function(){return ce(this,this.a.ba)},le.prototype.readPackedSfixed64=le.prototype.lc,le.prototype.mc=function(){return ce(this,this.a.ca)},le.prototype.readPackedSfixed64String=le.prototype.mc,le.prototype.fc=function(){return ce(this,this.a.aa)},le.prototype.readPackedFloat=le.prototype.fc,le.prototype.$b=function(){return ce(this,this.a.Z)},le.prototype.readPackedDouble=le.prototype.$b,le.prototype.Zb=function(){return ce(this,this.a.pa)},le.prototype.readPackedBool=le.prototype.Zb,le.prototype.ac=function(){return ce(this,this.a.ra)},le.prototype.readPackedEnum=le.prototype.ac,le.prototype.uc=function(){return ce(this,this.a.ia)},le.prototype.readPackedVarintHash64=le.prototype.uc,le.prototype.ec=function(){return ce(this,this.a.$)},le.prototype.readPackedFixedHash64=le.prototype.ec,d("jspb.ExtensionFieldInfo",ge,void 0),d("jspb.ExtensionFieldBinaryInfo",fe,void 0),ge.prototype.F=function(){return!!this.la},ge.prototype.isMessageType=ge.prototype.F,d("jspb.Message",he,void 0),he.GENERATE_TO_OBJECT=!0,he.GENERATE_FROM_OBJECT=!0;var ye="function"==typeof Uint8Array;he.prototype.Ib=function(){return this.b},he.prototype.getJsPbMessageId=he.prototype.Ib,he.initialize=function(e,t,o,r,n,i){if(e.f=null,t||(t=o?[o]:[]),e.b=o?String(o):void 0,e.D=0===o?-1:0,e.u=t,t=-1,!(o=e.u.length)||(t=o-1,null===(o=e.u[t])||"object"!=typeof o||Array.isArray(o)||ye&&o instanceof Uint8Array)?-1<r?(e.G=Math.max(r,t+1-e.D),e.i=null):e.G=Number.MAX_VALUE:(e.G=t-e.D,e.i=o),e.a={},n)for(r=0;r<n.length;r++)(t=n[r])<e.G?(t+=e.D,e.u[t]=e.u[t]||we):(Se(e),e.i[t]=e.i[t]||we);if(i&&i.length)for(r=0;r<i.length;r++)Be(e,i[r])};var we=Object.freeze?Object.freeze([]):[];function Se(e){var t=e.G+e.D;e.u[t]||(e.i=e.u[t]={})}function me(e,t,o){for(var r=[],n=0;n<e.length;n++)r[n]=t.call(e[n],o,e[n]);return r}function Me(e,t){if(t<e.G){t+=e.D;var o=e.u[t];return o===we?e.u[t]=[]:o}if(e.i)return(o=e.i[t])===we?e.i[t]=[]:o}function Pe(e,t){return null==(e=Me(e,t))?e:+e}function ve(e,t){return null==(e=Me(e,t))?e:!!e}function be(e){return null==e||"string"==typeof e?e:ye&&e instanceof Uint8Array?z(e):(M("Cannot coerce to b64 string: "+c(e)),null)}function Fe(e){return null==e||e instanceof Uint8Array?e:"string"==typeof e?E(e):(M("Cannot coerce to Uint8Array: "+c(e)),null)}function Te(e){if(e&&1<e.length){var t=c(e[0]);h(e,function(e){c(e)!=t&&M("Inconsistent type in JSPB repeated field array. Got "+c(e)+" expected "+t)})}}function Oe(e,t,o){return(e=Me(e,t))??o}function Le(e,t,o){return P(e,he),t<e.G?e.u[t+e.D]=o:(Se(e),e.i[t]=o),e}function Ce(e,t,o,r){return P(e,he),o!==r?Le(e,t,o):t<e.G?e.u[t+e.D]=null:(Se(e),delete e.i[t]),e}function Re(e,t,o,r){return P(e,he),(o=Be(e,o))&&o!==t&&void 0!==r&&(e.f&&o in e.f&&(e.f[o]=void 0),Le(e,o,void 0)),Le(e,t,r)}function Be(e,t){for(var o,r,n=0;n<t.length;n++){var i=t[n],s=Me(e,i);null!=s&&(o=i,r=s,Le(e,i,void 0))}return o?(Le(e,o,r),o):0}function De(e,t,o){if(e.f||(e.f={}),!e.f[o]){for(var r=Me(e,o),n=[],i=0;i<r.length;i++)n[i]=new t(r[i]);e.f[o]=n}}function We(e){if(e.f)for(var t in e.f){var o=e.f[t];if(Array.isArray(o))for(var r=0;r<o.length;r++)o[r]&&o[r].g();else o&&o.g()}}function ze(e,t){e=e||{},t=t||{};var o,r={};for(o in e)r[o]=0;for(o in t)r[o]=0;for(o in r)if(!Ee(e[o],t[o]))return!1;return!0}function Ee(e,t){if(e==t)return!0;if(!g(e)||!g(t))return!!("number"==typeof e&&isNaN(e)||"number"==typeof t&&isNaN(t))&&String(e)==String(t);if(e.constructor!=t.constructor)return!1;if(ye&&e.constructor===Uint8Array){if(e.length!=t.length)return!1;for(var o=0;o<e.length;o++)if(e[o]!=t[o])return!1;return!0}if(e.constructor===Array){var r=void 0,n=void 0,i=Math.max(e.length,t.length);for(o=0;o<i;o++){var s=e[o],a=t[o];if(s&&s.constructor==Object&&(m(void 0===r),m(o===e.length-1),r=s,s=void 0),a&&a.constructor==Object&&(m(void 0===n),m(o===t.length-1),n=a,a=void 0),!Ee(s,a))return!1}return!r&&!n||ze(r=r||{},n=n||{})}if(e.constructor===Object)return ze(e,t);throw Error("Invalid type in JSPB array")}function Ne(e){return new e.constructor(Ae(e.g()))}function Ae(e){if(Array.isArray(e)){for(var t=Array(e.length),o=0;o<e.length;o++){var r=e[o];null!=r&&(t[o]="object"==typeof r?Ae(m(r)):r)}return t}if(ye&&e instanceof Uint8Array)return new Uint8Array(e);for(o in t={},e)null!=(r=e[o])&&(t[o]="object"==typeof r?Ae(m(r)):r);return t}he.toObjectList=me,he.toObjectExtension=function(e,t,o,r,n){for(var i in o){var s=o[i],a=r.call(e,s);if(null!=a){for(var p in s.Ba)if(s.Ba.hasOwnProperty(p))break;t[p]=s.Na?s.na?me(a,s.Na,n):s.Na(n,a):a}}},he.serializeBinaryExtensions=function(e,t,o,r){for(var n in o){var i=o[n],s=i.Za;if(!i.Aa)throw Error("Message extension present that was generated without binary serialization support");var a=r.call(e,s);if(null!=a)if(s.F()){if(!i.Wa)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");i.Aa.call(t,s.ma,a,i.Wa)}else i.Aa.call(t,s.ma,a)}},he.readBinaryExtension=function(e,t,o,r,n){var i=o[t.c];if(i){if(o=i.Za,!i.za)throw Error("Deserializing extension whose generated code does not support binary format");if(o.F()){var s=new o.la;i.za.call(t,s,i.Ab)}else s=i.za.call(t);o.na&&!i.Nb?(t=r.call(e,o))?t.push(s):n.call(e,o,[s]):n.call(e,o,s)}else t.C()},he.getField=Me,he.getRepeatedField=function(e,t){return Me(e,t)},he.getOptionalFloatingPointField=Pe,he.getBooleanField=ve,he.getRepeatedFloatingPointField=function(e,t){var o=Me(e,t);if(e.a||(e.a={}),!e.a[t]){for(var r=0;r<o.length;r++)o[r]=+o[r];e.a[t]=!0}return o},he.getRepeatedBooleanField=function(e,t){var o=Me(e,t);if(e.a||(e.a={}),!e.a[t]){for(var r=0;r<o.length;r++)o[r]=!!o[r];e.a[t]=!0}return o},he.bytesAsB64=be,he.bytesAsU8=Fe,he.bytesListAsB64=function(e){return Te(e),e.length&&"string"!=typeof e[0]?y(e,be):e},he.bytesListAsU8=function(e){return Te(e),!e.length||e[0]instanceof Uint8Array?e:y(e,Fe)},he.getFieldWithDefault=Oe,he.getBooleanFieldWithDefault=function(e,t,o){return(e=ve(e,t))??o},he.getFloatingPointFieldWithDefault=function(e,t,o){return(e=Pe(e,t))??o},he.getFieldProto3=Oe,he.getMapField=function(e,t,o,r){if(e.f||(e.f={}),t in e.f)return e.f[t];var n=Me(e,t);if(!n){if(o)return;Le(e,t,n=[])}return e.f[t]=new b(n,r)},he.setField=Le,he.setProto3IntField=function(e,t,o){return Ce(e,t,o,0)},he.setProto3FloatField=function(e,t,o){return Ce(e,t,o,0)},he.setProto3BooleanField=function(e,t,o){return Ce(e,t,o,!1)},he.setProto3StringField=function(e,t,o){return Ce(e,t,o,"")},he.setProto3BytesField=function(e,t,o){return Ce(e,t,o,"")},he.setProto3EnumField=function(e,t,o){return Ce(e,t,o,0)},he.setProto3StringIntField=function(e,t,o){return Ce(e,t,o,"0")},he.addToRepeatedField=function(e,t,o,r){return P(e,he),t=Me(e,t),null!=r?t.splice(r,0,o):t.push(o),e},he.setOneofField=Re,he.computeOneofCase=Be,he.getWrapperField=function(e,t,o,r){if(e.f||(e.f={}),!e.f[o]){var n=Me(e,o);(r||n)&&(e.f[o]=new t(n))}return e.f[o]},he.getRepeatedWrapperField=function(e,t,o){return De(e,t,o),(t=e.f[o])==we&&(t=e.f[o]=[]),t},he.setWrapperField=function(e,t,o){P(e,he),e.f||(e.f={});var r=o?o.g():o;return e.f[t]=o,Le(e,t,r)},he.setOneofWrapperField=function(e,t,o,r){P(e,he),e.f||(e.f={});var n=r?r.g():r;return e.f[t]=r,Re(e,t,o,n)},he.setRepeatedWrapperField=function(e,t,o){P(e,he),e.f||(e.f={}),o=o||[];for(var r=[],n=0;n<o.length;n++)r[n]=o[n].g();return e.f[t]=o,Le(e,t,r)},he.addToRepeatedWrapperField=function(e,t,o,r,n){De(e,r,t);var i=e.f[t];return i||(i=e.f[t]=[]),o=o||new r,e=Me(e,t),null!=n?(i.splice(n,0,o),e.splice(n,0,o.g())):(i.push(o),e.push(o.g())),o},he.toMap=function(e,t,o,r){for(var n={},i=0;i<e.length;i++)n[t.call(e[i])]=o?o.call(e[i],r,e[i]):e[i];return n},he.prototype.g=function(){return We(this),this.u},he.prototype.toArray=he.prototype.g,he.prototype.toString=function(){return We(this),this.u.toString()},he.prototype.getExtension=function(e){if(this.i){this.f||(this.f={});var t=e.ma;if(e.na){if(e.F())return this.f[t]||(this.f[t]=y(this.i[t]||[],function(t){return new e.la(t)})),this.f[t]}else if(e.F())return!this.f[t]&&this.i[t]&&(this.f[t]=new e.la(this.i[t])),this.f[t];return this.i[t]}},he.prototype.getExtension=he.prototype.getExtension,he.prototype.Kc=function(e,t){this.f||(this.f={}),Se(this);var o=e.ma;return e.na?(t=t||[],e.F()?(this.f[o]=t,this.i[o]=y(t,function(e){return e.g()})):this.i[o]=t):e.F()?(this.f[o]=t,this.i[o]=t?t.g():t):this.i[o]=t,this},he.prototype.setExtension=he.prototype.Kc,he.difference=function(e,t){if(!(e instanceof t.constructor))throw Error("Messages have different types.");var o=e.g();t=t.g();var r=[],n=0,i=o.length>t.length?o.length:t.length;for(e.b&&(r[0]=e.b,n=1);n<i;n++)Ee(o[n],t[n])||(r[n]=t[n]);return new e.constructor(r)},he.equals=function(e,t){return e==t||!(!e||!t)&&e instanceof t.constructor&&Ee(e.g(),t.g())},he.compareExtensions=ze,he.compareFields=Ee,he.prototype.Bb=function(){return Ne(this)},he.prototype.cloneMessage=he.prototype.Bb,he.prototype.clone=function(){return Ne(this)},he.prototype.clone=he.prototype.clone,he.clone=function(e){return Ne(e)},he.copyInto=function(e,t){P(e,he),P(t,he),m(e.constructor==t.constructor,"Copy source and target message should have the same type."),e=Ne(e);for(var o=t.g(),r=e.g(),n=o.length=0;n<r.length;n++)o[n]=r[n];t.f=e.f,t.i=e.i},he.registerMessageType=function(e,t){t.we=e};var ke={dump:function(e){return P(e,he,"jspb.Message instance expected"),m(e.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),ke.X(e)}};function Ie(){this.a=[]}function xe(e,t){this.lo=e,this.hi=t}function je(e,t){var o=65535&e,r=65535&t,n=t>>>16;for(t=o*r+65536*(o*n&65535)+65536*((e>>>=16)*r&65535),o=e*n+(o*n>>>16)+(e*r>>>16);4294967296<=t;)t-=4294967296,o+=1;return new xe(t>>>0,o>>>0)}function _e(e){for(var t=new xe(0,0),o=new xe(0,0),r=0;r<e.length;r++){if("0">e[r]||"9"<e[r])return null;o.lo=parseInt(e[r],10),t=t.eb(10).add(o)}return t}function Ue(e,t){this.lo=e,this.hi=t}function Ge(e){var t=0<e.length&&"-"==e[0];return t&&(e=e.substring(1)),null===(e=_e(e))?null:(t&&(e=new xe(0,0).sub(e)),new Ue(e.lo,e.hi))}function Ve(){this.c=[],this.b=0,this.a=new Ie,this.h=[]}function qe(e,t){var o=e.a.end();e.c.push(o),e.c.push(t),e.b+=o.length+t.length}function He(e,t){return $e(e,t,2),t=e.a.end(),e.c.push(t),e.b+=t.length,t.push(e.b),t}function Je(e,t){var o=t.pop();for(m(0<=(o=e.b+e.a.length()-o));127<o;)t.push(127&o|128),o>>>=7,e.b++;t.push(o),e.b++}function $e(e,t,o){m(1<=t&&t==Math.floor(t)),e.a.j(8*t+o)}function Ke(e,t,o){null!=o&&($e(e,t,0),e.a.j(o))}function Ze(e,t,o){null!=o&&($e(e,t,0),e.a.M(o))}d("jspb.debug.dump",ke.dump,void 0),ke.X=function(e){var t=c(e);if("number"==t||"string"==t||"boolean"==t||"null"==t||"undefined"==t||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array)return e;if("array"==t)return function(e,t,o){for(var r=[],n=2;n<arguments.length;++n)r[n-2]=arguments[n];Array.isArray(e)||S("Expected array but got %s: %s.",[c(e),e],t,r)}(e),y(e,ke.X);if(e instanceof b){for(var o={},r=(e=e.entries()).next();!r.done;r=e.next())o[r.value[0]]=ke.X(r.value[1]);return o}P(e,he,"Only messages expected: "+e);var n={$name:(t=e.constructor).name||t.displayName};for(a in t.prototype){var i=/^get([A-Z]\w*)/.exec(a);if(i&&"getExtension"!=a&&"getJsPbMessageId"!=a){var s="has"+i[1];e[s]&&!e[s]()||(s=e[a](),n[ke.$a(i[1])]=ke.X(s))}}if(e.extensionObject_)return n.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",n;for(r in t.extensions)if(/^\d+$/.test(r)){s=t.extensions[r];var a=e.getExtension(s);i=void 0,s=s.Ba;var p=[],l=0;for(i in s)p[l++]=i;i=p[0],null!=a&&(o||(o=n.$extensions={}),o[ke.$a(i)]=ke.X(a))}return n},ke.$a=function(e){return e.replace(/^[A-Z]/,function(e){return e.toLowerCase()})},d("jspb.BinaryEncoder",Ie,void 0),Ie.prototype.length=function(){return this.a.length},Ie.prototype.length=Ie.prototype.length,Ie.prototype.end=function(){var e=this.a;return this.a=[],e},Ie.prototype.end=Ie.prototype.end,Ie.prototype.l=function(e,t){for(m(e==Math.floor(e)),m(t==Math.floor(t)),m(0<=e&&4294967296>e),m(0<=t&&4294967296>t);0<t||127<e;)this.a.push(127&e|128),e=(e>>>7|t<<25)>>>0,t>>>=7;this.a.push(e)},Ie.prototype.writeSplitVarint64=Ie.prototype.l,Ie.prototype.A=function(e,t){m(e==Math.floor(e)),m(t==Math.floor(t)),m(0<=e&&4294967296>e),m(0<=t&&4294967296>t),this.s(e),this.s(t)},Ie.prototype.writeSplitFixed64=Ie.prototype.A,Ie.prototype.j=function(e){for(m(e==Math.floor(e)),m(0<=e&&4294967296>e);127<e;)this.a.push(127&e|128),e>>>=7;this.a.push(e)},Ie.prototype.writeUnsignedVarint32=Ie.prototype.j,Ie.prototype.M=function(e){if(m(e==Math.floor(e)),m(-2147483648<=e&&2147483648>e),0<=e)this.j(e);else{for(var t=0;9>t;t++)this.a.push(127&e|128),e>>=7;this.a.push(1)}},Ie.prototype.writeSignedVarint32=Ie.prototype.M,Ie.prototype.va=function(e){m(e==Math.floor(e)),m(0<=e&&0x10000000000000000>e),x(e),this.l(A,k)},Ie.prototype.writeUnsignedVarint64=Ie.prototype.va,Ie.prototype.ua=function(e){m(e==Math.floor(e)),m(-0x8000000000000000<=e&&0x8000000000000000>e),x(e),this.l(A,k)},Ie.prototype.writeSignedVarint64=Ie.prototype.ua,Ie.prototype.wa=function(e){m(e==Math.floor(e)),m(-2147483648<=e&&2147483648>e),this.j((e<<1^e>>31)>>>0)},Ie.prototype.writeZigzagVarint32=Ie.prototype.wa,Ie.prototype.xa=function(e){m(e==Math.floor(e)),m(-0x8000000000000000<=e&&0x8000000000000000>e),j(e),this.l(A,k)},Ie.prototype.writeZigzagVarint64=Ie.prototype.xa,Ie.prototype.Ta=function(e){this.W(te(e))},Ie.prototype.writeZigzagVarint64String=Ie.prototype.Ta,Ie.prototype.W=function(e){var t=this;G(e),H(A,k,function(e,o){t.l(e>>>0,o>>>0)})},Ie.prototype.writeZigzagVarintHash64=Ie.prototype.W,Ie.prototype.be=function(e){m(e==Math.floor(e)),m(0<=e&&256>e),this.a.push(e>>>0&255)},Ie.prototype.writeUint8=Ie.prototype.be,Ie.prototype.ae=function(e){m(e==Math.floor(e)),m(0<=e&&65536>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255)},Ie.prototype.writeUint16=Ie.prototype.ae,Ie.prototype.s=function(e){m(e==Math.floor(e)),m(0<=e&&4294967296>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255),this.a.push(e>>>16&255),this.a.push(e>>>24&255)},Ie.prototype.writeUint32=Ie.prototype.s,Ie.prototype.V=function(e){m(e==Math.floor(e)),m(0<=e&&0x10000000000000000>e),I(e),this.s(A),this.s(k)},Ie.prototype.writeUint64=Ie.prototype.V,Ie.prototype.Qc=function(e){m(e==Math.floor(e)),m(-128<=e&&128>e),this.a.push(e>>>0&255)},Ie.prototype.writeInt8=Ie.prototype.Qc,Ie.prototype.Pc=function(e){m(e==Math.floor(e)),m(-32768<=e&&32768>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255)},Ie.prototype.writeInt16=Ie.prototype.Pc,Ie.prototype.S=function(e){m(e==Math.floor(e)),m(-2147483648<=e&&2147483648>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255),this.a.push(e>>>16&255),this.a.push(e>>>24&255)},Ie.prototype.writeInt32=Ie.prototype.S,Ie.prototype.T=function(e){m(e==Math.floor(e)),m(-0x8000000000000000<=e&&0x8000000000000000>e),x(e),this.A(A,k)},Ie.prototype.writeInt64=Ie.prototype.T,Ie.prototype.ka=function(e){m(e==Math.floor(e)),m(-0x8000000000000000<=+e&&0x8000000000000000>+e),G(te(e)),this.A(A,k)},Ie.prototype.writeInt64String=Ie.prototype.ka,Ie.prototype.L=function(e){m(1/0===e||-1/0===e||isNaN(e)||-34028234663852886e22<=e&&34028234663852886e22>=e),_(e),this.s(A)},Ie.prototype.writeFloat=Ie.prototype.L,Ie.prototype.J=function(e){m(1/0===e||-1/0===e||isNaN(e)||-17976931348623157e292<=e&&17976931348623157e292>=e),U(e),this.s(A),this.s(k)},Ie.prototype.writeDouble=Ie.prototype.J,Ie.prototype.I=function(e){m("boolean"==typeof e||"number"==typeof e),this.a.push(e?1:0)},Ie.prototype.writeBool=Ie.prototype.I,Ie.prototype.R=function(e){m(e==Math.floor(e)),m(-2147483648<=e&&2147483648>e),this.M(e)},Ie.prototype.writeEnum=Ie.prototype.R,Ie.prototype.ja=function(e){this.a.push.apply(this.a,e)},Ie.prototype.writeBytes=Ie.prototype.ja,Ie.prototype.N=function(e){G(e),this.l(A,k)},Ie.prototype.writeVarintHash64=Ie.prototype.N,Ie.prototype.K=function(e){G(e),this.s(A),this.s(k)},Ie.prototype.writeFixedHash64=Ie.prototype.K,Ie.prototype.U=function(e){var t=this.a.length;!function(e,t,o){for(var r=[],n=2;n<arguments.length;++n)r[n-2]=arguments[n];"string"!=typeof e&&S("Expected string but got %s: %s.",[c(e),e],t,r)}(e);for(var o=0;o<e.length;o++){var r=e.charCodeAt(o);if(128>r)this.a.push(r);else if(2048>r)this.a.push(r>>6|192),this.a.push(63&r|128);else if(65536>r)if(55296<=r&&56319>=r&&o+1<e.length){var n=e.charCodeAt(o+1);56320<=n&&57343>=n&&(r=1024*(r-55296)+n-56320+65536,this.a.push(r>>18|240),this.a.push(r>>12&63|128),this.a.push(r>>6&63|128),this.a.push(63&r|128),o++)}else this.a.push(r>>12|224),this.a.push(r>>6&63|128),this.a.push(63&r|128)}return this.a.length-t},Ie.prototype.writeString=Ie.prototype.U,d("jspb.arith.UInt64",xe,void 0),xe.prototype.cmp=function(e){return this.hi<e.hi||this.hi==e.hi&&this.lo<e.lo?-1:this.hi==e.hi&&this.lo==e.lo?0:1},xe.prototype.cmp=xe.prototype.cmp,xe.prototype.La=function(){return new xe((this.lo>>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},xe.prototype.rightShift=xe.prototype.La,xe.prototype.Da=function(){return new xe(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},xe.prototype.leftShift=xe.prototype.Da,xe.prototype.cb=function(){return!!(2147483648&this.h