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