mimc-min_1_0_2.js 305 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717
  1. var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{i:e,v:f}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
  2. $jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,b,c,d){if(b){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}};
  3. $jscomp.polyfill("Array.prototype.findIndex",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).i}},"es6","es3");$jscomp.checkStringArgs=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
  4. $jscomp.polyfill("String.prototype.repeat",function(a){return a?a:function(a){var b=$jscomp.checkStringArgs(this,null,"repeat");if(0>a||1342177279<a)throw new RangeError("Invalid count value");a|=0;for(var d="";a;)if(a&1&&(d+=b),a>>>=1)b+=b;return d}},"es6","es3");$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6","es3");$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
  5. $jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var a=0;return function(b){return $jscomp.SYMBOL_PREFIX+(b||"")+a++}}();
  6. $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var b=0;return $jscomp.iteratorPrototype(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})};
  7. $jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};$jscomp.makeIterator=function(a){$jscomp.initSymbolIterator();var b=a[Symbol.iterator];return b?b.call(a):$jscomp.arrayIterator(a)};$jscomp.owns=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
  8. $jscomp.polyfill("WeakMap",function(a){function b(a){$jscomp.owns(a,d)||$jscomp.defineProperty(a,d,{value:{}})}function c(a){var c=Object[a];c&&(Object[a]=function(a){b(a);return c(a)})}if(function(){if(!a||!Object.seal)return!1;try{var b=Object.seal({}),c=Object.seal({}),d=new a([[b,2],[c,3]]);if(2!=d.get(b)||3!=d.get(c))return!1;d.delete(b);d.set(c,4);return!d.has(b)&&4==d.get(c)}catch(G){return!1}}())return a;var d="$jscomp_hidden_"+Math.random().toString().substring(2);c("freeze");c("preventExtensions");
  9. c("seal");var e=0,f=function(a){this.id_=(e+=Math.random()+1).toString();if(a){$jscomp.initSymbol();$jscomp.initSymbolIterator();a=$jscomp.makeIterator(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};f.prototype.set=function(a,c){b(a);if(!$jscomp.owns(a,d))throw Error("WeakMap key fail: "+a);a[d][this.id_]=c;return this};f.prototype.get=function(a){return $jscomp.owns(a,d)?a[d][this.id_]:void 0};f.prototype.has=function(a){return $jscomp.owns(a,d)&&$jscomp.owns(a[d],this.id_)};f.prototype.delete=
  10. function(a){return $jscomp.owns(a,d)&&$jscomp.owns(a[d],this.id_)?delete a[d][this.id_]:!1};return f},"es6","es3");$jscomp.MapEntry=function(){};
  11. $jscomp.polyfill("Map",function(a){if(!$jscomp.ASSUME_NO_NATIVE_MAP&&function(){if(!a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),c=new a($jscomp.makeIterator([[b,"s"]]));if("s"!=c.get(b)||1!=c.size||c.get({x:4})||c.set({x:4},"t")!=c||2!=c.size)return!1;var d=c.entries(),e=d.next();if(e.done||e.value[0]!=b||"s"!=e.value[1])return!1;e=d.next();return e.done||4!=e.value[0].x||"t"!=e.value[1]||!d.next().done?!1:!0}catch(v){return!1}}())return a;$jscomp.initSymbol();
  12. $jscomp.initSymbolIterator();var b=new WeakMap,c=function(a){this.data_={};this.head_=f();this.size=0;if(a){a=$jscomp.makeIterator(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};c.prototype.set=function(a,b){var c=d(this,a);c.list||(c.list=this.data_[c.id]=[]);c.entry?c.entry.value=b:(c.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:a,value:b},c.list.push(c.entry),this.head_.previous.next=c.entry,this.head_.previous=c.entry,this.size++);return this};c.prototype.delete=
  13. function(a){a=d(this,a);return a.entry&&a.list?(a.list.splice(a.index,1),a.list.length||delete this.data_[a.id],a.entry.previous.next=a.entry.next,a.entry.next.previous=a.entry.previous,a.entry.head=null,this.size--,!0):!1};c.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=f();this.size=0};c.prototype.has=function(a){return!!d(this,a).entry};c.prototype.get=function(a){return(a=d(this,a).entry)&&a.value};c.prototype.entries=function(){return e(this,function(a){return[a.key,
  14. a.value]})};c.prototype.keys=function(){return e(this,function(a){return a.key})};c.prototype.values=function(){return e(this,function(a){return a.value})};c.prototype.forEach=function(a,b){for(var c=this.entries(),d;!(d=c.next()).done;)d=d.value,a.call(b,d[1],d[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(a,c){var d=c&&typeof c;"object"==d||"function"==d?b.has(c)?d=b.get(c):(d=""+ ++g,b.set(c,d)):d="p_"+c;var e=a.data_[d];if(e&&$jscomp.owns(a.data_,d))for(a=0;a<e.length;a++){var f=
  15. e[a];if(c!==c&&f.key!==f.key||c===f.key)return{id:d,list:e,index:a,entry:f}}return{id:d,list:e,index:-1,entry:void 0}},e=function(a,b){var c=a.head_;return $jscomp.iteratorPrototype(function(){if(c){for(;c.head!=a.head_;)c=c.previous;for(;c.next!=c.head;)return c=c.next,{done:!1,value:b(c)};c=null}return{done:!0,value:void 0}})},f=function(){var a={};return a.previous=a.next=a.head=a},g=0;return c},"es6","es3");
  16. $jscomp.polyfill("Set",function(a){if(!$jscomp.ASSUME_NO_NATIVE_SET&&function(){if(!a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),d=new a($jscomp.makeIterator([b]));if(!d.has(b)||1!=d.size||d.add(b)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=b||f.value[1]!=b)return!1;f=e.next();return f.done||f.value[0]==b||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;
  17. $jscomp.initSymbol();$jscomp.initSymbolIterator();var b=function(a){this.map_=new Map;if(a){a=$jscomp.makeIterator(a);for(var b;!(b=a.next()).done;)this.add(b.value)}this.size=this.map_.size};b.prototype.add=function(a){this.map_.set(a,a);this.size=this.map_.size;return this};b.prototype.delete=function(a){a=this.map_.delete(a);this.size=this.map_.size;return a};b.prototype.clear=function(){this.map_.clear();this.size=0};b.prototype.has=function(a){return this.map_.has(a)};b.prototype.entries=function(){return this.map_.entries()};
  18. b.prototype.values=function(){return this.map_.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(a,b){var c=this;this.map_.forEach(function(d){return a.call(b,d,d,c)})};return b},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=this;goog.isDef=function(a){return void 0!==a};goog.isString=function(a){return"string"==typeof a};goog.isBoolean=function(a){return"boolean"==typeof a};
  19. goog.isNumber=function(a){return"number"==typeof a};goog.exportPath_=function(a,b,c){a=a.split(".");c=c||goog.global;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&goog.isDef(b)?c[d]=b:c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}};
  20. goog.define=function(a,b){COMPILED||(goog.global.CLOSURE_UNCOMPILED_DEFINES&&void 0===goog.global.CLOSURE_UNCOMPILED_DEFINES.nodeType&&Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_UNCOMPILED_DEFINES,a)?b=goog.global.CLOSURE_UNCOMPILED_DEFINES[a]:goog.global.CLOSURE_DEFINES&&void 0===goog.global.CLOSURE_DEFINES.nodeType&&Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_DEFINES,a)&&(b=goog.global.CLOSURE_DEFINES[a]));goog.exportPath_(a,b)};goog.DEBUG=!0;goog.LOCALE="en";
  21. goog.TRUSTED_SITE=!0;goog.STRICT_MODE_COMPATIBLE=!1;goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG;goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1;goog.provide=function(a){if(goog.isInModuleLoader_())throw Error("goog.provide can not be used within a goog.module.");if(!COMPILED&&goog.isProvided_(a))throw Error('Namespace "'+a+'" already declared.');goog.constructNamespace_(a)};
  22. goog.constructNamespace_=function(a,b){if(!COMPILED){delete goog.implicitNamespaces_[a];for(var c=a;(c=c.substring(0,c.lastIndexOf(".")))&&!goog.getObjectByName(c);)goog.implicitNamespaces_[c]=!0}goog.exportPath_(a,b)};goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/;
  23. goog.module=function(a){if(!goog.isString(a)||!a||-1==a.search(goog.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!goog.isInModuleLoader_())throw Error("Module "+a+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");
  24. goog.moduleLoaderState_.moduleName=a;if(!COMPILED){if(goog.isProvided_(a))throw Error('Namespace "'+a+'" already declared.');delete goog.implicitNamespaces_[a]}};goog.module.get=function(a){return goog.module.getInternal_(a)};goog.module.getInternal_=function(a){if(!COMPILED){if(a in goog.loadedModules_)return goog.loadedModules_[a];if(!goog.implicitNamespaces_[a])return a=goog.getObjectByName(a),null!=a?a:null}return null};goog.moduleLoaderState_=null;
  25. goog.isInModuleLoader_=function(){return null!=goog.moduleLoaderState_};goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0};
  26. goog.setTestOnly=function(a){if(goog.DISALLOW_TEST_ONLY_CODE)throw a=a||"",Error("Importing test-only code into non-debug environment"+(a?": "+a:"."));};goog.forwardDeclare=function(a){};COMPILED||(goog.isProvided_=function(a){return a in goog.loadedModules_||!goog.implicitNamespaces_[a]&&goog.isDefAndNotNull(goog.getObjectByName(a))},goog.implicitNamespaces_={"goog.module":!0});
  27. goog.getObjectByName=function(a,b){a=a.split(".");b=b||goog.global;for(var c=0;c<a.length;c++)if(b=b[a[c]],!goog.isDefAndNotNull(b))return null;return b};goog.globalize=function(a,b){b=b||goog.global;for(var c in a)b[c]=a[c]};goog.addDependency=function(a,b,c,d){if(goog.DEPENDENCIES_ENABLED){var e=goog.getLoader_();e&&e.addDependency(a,b,c,d)}};goog.ENABLE_DEBUG_LOADER=!0;goog.logToConsole_=function(a){goog.global.console&&goog.global.console.error(a)};
  28. goog.require=function(a){goog.ENABLE_DEBUG_LOADER&&goog.debugLoader_&&goog.getLoader_().earlyProcessLoad(a);if(!COMPILED){if(goog.isProvided_(a)){if(goog.isInModuleLoader_())return goog.module.getInternal_(a)}else if(goog.ENABLE_DEBUG_LOADER){var b=goog.moduleLoaderState_;goog.moduleLoaderState_=null;try{var c=goog.getLoader_();c?c.load(a):goog.logToConsole_("Could not load "+a+" because there is no debug loader.")}finally{goog.moduleLoaderState_=b}}return null}};goog.basePath="";
  29. goog.nullFunction=function(){};goog.abstractMethod=function(){throw Error("unimplemented abstract method");};goog.addSingletonGetter=function(a){a.instance_=void 0;a.getInstance=function(){if(a.instance_)return a.instance_;goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=a);return a.instance_=new a}};goog.instantiatedSingletons_=[];goog.LOAD_MODULE_USING_EVAL=!0;goog.SEAL_MODULE_EXPORTS=goog.DEBUG;goog.loadedModules_={};goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER;
  30. goog.TRANSPILE="detect";goog.TRANSPILER="transpile.js";goog.DEBUG_LOADER="";goog.hasBadLetScoping=null;goog.useSafari10Workaround=function(){if(null==goog.hasBadLetScoping){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(b){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping};goog.workaroundSafari10EvalBug=function(a){return"(function(){"+a+"\n;})();\n"};
  31. goog.loadModule=function(a){var b=goog.moduleLoaderState_;try{goog.moduleLoaderState_={moduleName:void 0,declareLegacyNamespace:!1};if(goog.isFunction(a))var c=a.call(void 0,{});else if(goog.isString(a))goog.useSafari10Workaround()&&(a=goog.workaroundSafari10EvalBug(a)),c=goog.loadModuleFromSource_.call(void 0,a);else throw Error("Invalid module definition");var d=goog.moduleLoaderState_.moduleName;if(!goog.isString(d)||!d)throw Error('Invalid module name "'+d+'"');goog.moduleLoaderState_.declareLegacyNamespace?
  32. goog.constructNamespace_(d,c):goog.SEAL_MODULE_EXPORTS&&Object.seal&&"object"==typeof c&&null!=c&&Object.seal(c);goog.loadedModules_[d]=c}finally{goog.moduleLoaderState_=b}};goog.loadModuleFromSource_=function(a){eval(a);return{}};goog.normalizePath_=function(a){a=a.split("/");for(var b=0;b<a.length;)"."==a[b]?a.splice(b,1):b&&".."==a[b]&&a[b-1]&&".."!=a[b-1]?a.splice(--b,2):b++;return a.join("/")};
  33. goog.loadFileSync_=function(a){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(a);try{var b=new goog.global.XMLHttpRequest;b.open("get",a,!1);b.send();return 0==b.status||200==b.status?b.responseText:null}catch(c){return null}};
  34. goog.transpile_=function(a,b){var c=goog.global.$jscomp;c||(goog.global.$jscomp=c={});var d=c.transpile;if(!d){var e=goog.basePath+goog.TRANSPILER,f=goog.loadFileSync_(e);if(f){(function(){eval(f+"\n//# sourceURL="+e)}).call(goog.global);if(goog.global.$gwtExport&&goog.global.$gwtExport.$jscomp&&!goog.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(goog.global.$gwtExport));goog.global.$jscomp.transpile=goog.global.$gwtExport.$jscomp.transpile;
  35. c=goog.global.$jscomp;d=c.transpile}}d||(d=c.transpile=function(a,b){goog.logToConsole_(b+" requires transpilation but no transpiler was found.");return a});return d(a,b)};
  36. goog.typeOf=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
  37. else if("function"==b&&"undefined"==typeof a.call)return"object";return b};goog.isNull=function(a){return null===a};goog.isDefAndNotNull=function(a){return null!=a};goog.isArray=function(a){return"array"==goog.typeOf(a)};goog.isArrayLike=function(a){var b=goog.typeOf(a);return"array"==b||"object"==b&&"number"==typeof a.length};goog.isDateLike=function(a){return goog.isObject(a)&&"function"==typeof a.getFullYear};goog.isFunction=function(a){return"function"==goog.typeOf(a)};
  38. goog.isObject=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};goog.getUid=function(a){return a[goog.UID_PROPERTY_]||(a[goog.UID_PROPERTY_]=++goog.uidCounter_)};goog.hasUid=function(a){return!!a[goog.UID_PROPERTY_]};goog.removeUid=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(goog.UID_PROPERTY_);try{delete a[goog.UID_PROPERTY_]}catch(b){}};goog.UID_PROPERTY_="closure_uid_"+(1E9*Math.random()>>>0);goog.uidCounter_=0;goog.getHashCode=goog.getUid;
  39. goog.removeHashCode=goog.removeUid;goog.cloneObject=function(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if(a.clone)return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=goog.cloneObject(a[c]);return b}return a};goog.bindNative_=function(a,b,c){return a.call.apply(a.bind,arguments)};
  40. goog.bindJs_=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}};goog.bind=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_;return goog.bind.apply(null,arguments)};
  41. goog.partial=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}};goog.mixin=function(a,b){for(var c in b)a[c]=b[c]};goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date};
  42. goog.globalEval=function(a){if(goog.global.execScript)goog.global.execScript(a,"JavaScript");else if(goog.global.eval){if(null==goog.evalWorksForGlobals_){try{goog.global.eval("var _evalTest_ = 1;")}catch(d){}if("undefined"!=typeof goog.global._evalTest_){try{delete goog.global._evalTest_}catch(d){}goog.evalWorksForGlobals_=!0}else goog.evalWorksForGlobals_=!1}if(goog.evalWorksForGlobals_)goog.global.eval(a);else{var b=window.document,c=b.createElement("SCRIPT");c.type="text/javascript";c.defer=!1;
  43. c.appendChild(b.createTextNode(a));b.head.appendChild(c);b.head.removeChild(c)}}else throw Error("goog.globalEval not available");};goog.evalWorksForGlobals_=null;
  44. goog.getCssName=function(a,b){if("."==String(a).charAt(0))throw Error('className passed in goog.getCssName must not start with ".". You passed: '+a);var c=function(a){return goog.cssNameMapping_[a]||a},d=function(a){a=a.split("-");for(var b=[],d=0;d<a.length;d++)b.push(c(a[d]));return b.join("-")};d=goog.cssNameMapping_?"BY_WHOLE"==goog.cssNameMappingStyle_?c:d:function(a){return a};a=b?a+"-"+d(b):d(a);return goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(a):a};
  45. goog.setCssNameMapping=function(a,b){goog.cssNameMapping_=a;goog.cssNameMappingStyle_=b};!COMPILED&&goog.global.CLOSURE_CSS_NAME_MAPPING&&(goog.cssNameMapping_=goog.global.CLOSURE_CSS_NAME_MAPPING);goog.getMsg=function(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return null!=b&&d in b?b[d]:a}));return a};goog.getMsgWithFallback=function(a,b){return a};goog.exportSymbol=function(a,b,c){goog.exportPath_(a,b,c)};goog.exportProperty=function(a,b,c){a[b]=c};
  46. goog.inherits=function(a,b){function c(){}c.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};
  47. goog.base=function(a,b,c){var d=arguments.callee.caller;if(goog.STRICT_MODE_COMPATIBLE||goog.DEBUG&&!d)throw Error("arguments.caller not defined. goog.base() cannot be used with strict mode code. See http://www.ecma-international.org/ecma-262/5.1/#sec-C");if(d.superClass_){for(var e=Array(arguments.length-1),f=1;f<arguments.length;f++)e[f-1]=arguments[f];return d.superClass_.constructor.apply(a,e)}e=Array(arguments.length-2);for(f=2;f<arguments.length;f++)e[f-2]=arguments[f];f=!1;for(var g=a.constructor;g;g=
  48. g.superClass_&&g.superClass_.constructor)if(g.prototype[b]===d)f=!0;else if(f)return g.prototype[b].apply(a,e);if(a[b]===d)return a.constructor.prototype[b].apply(a,e);throw Error("goog.base called from a method of one name to a method of a different name");};goog.scope=function(a){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a goog.module.");a.call(goog.global)};COMPILED||(goog.global.COMPILED=COMPILED);
  49. goog.defineClass=function(a,b){var c=b.constructor,d=b.statics;c&&c!=Object.prototype.constructor||(c=function(){throw Error("cannot instantiate an interface (no constructor defined).");});c=goog.defineClass.createSealingConstructor_(c,a);a&&goog.inherits(c,a);delete b.constructor;delete b.statics;goog.defineClass.applyProperties_(c.prototype,b);null!=d&&(d instanceof Function?d(c):goog.defineClass.applyProperties_(c,d));return c};goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG;
  50. goog.defineClass.createSealingConstructor_=function(a,b){if(!goog.defineClass.SEAL_CLASS_INSTANCES)return a;var c=!goog.defineClass.isUnsealable_(b),d=function(){var b=a.apply(this,arguments)||this;b[goog.UID_PROPERTY_]=b[goog.UID_PROPERTY_];this.constructor===d&&c&&Object.seal instanceof Function&&Object.seal(b);return b};return d};goog.defineClass.isUnsealable_=function(a){return a&&a.prototype&&a.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]};goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
  51. goog.defineClass.applyProperties_=function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c]);for(var d=0;d<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;d++)c=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[d],Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};goog.tagUnsealableClass=function(a){!COMPILED&&goog.defineClass.SEAL_CLASS_INSTANCES&&(a.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]=!0)};goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable";
  52. goog.DEPENDENCIES_ENABLED&&(goog.inHtmlDocument_=function(){var a=window.document;return null!=a&&"write"in a},goog.findBasePath_=function(){if(goog.isDef(goog.global.CLOSURE_BASE_PATH)&&goog.isString(goog.global.CLOSURE_BASE_PATH))goog.basePath=goog.global.CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_()){var a=window.document,b=a.currentScript;a=b?[b]:a.getElementsByTagName("SCRIPT");for(b=a.length-1;0<=b;--b){var c=a[b].src,d=c.lastIndexOf("?");d=-1==d?c.length:d;if("base.js"==c.substr(d-7,7)){goog.basePath=
  53. c.substr(0,d-7);break}}}},goog.findBasePath_(),goog.Transpiler=function(){this.requiresTranspilation_=null},goog.Transpiler.prototype.createRequiresTranspilation_=function(){function a(a,b){d?c[a]=!0:b()?c[a]=!1:d=c[a]=!0}function b(a){try{return!!eval(a)}catch(g){return!1}}var c={es3:!1},d=!1,e=window.navigator&&window.navigator.userAgent?window.userAgent:"";a("es5",function(){return b("[1,].length==1")});a("es6",function(){var a=e.match(/Edge\/(\d+)(\.\d)*/i);return a&&15>Number(a[1])?!1:b('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')});
  54. a("es6-impl",function(){return!0});a("es7",function(){return b("2 ** 2 == 4")});a("es8",function(){return b("async () => 1, true")});return c},goog.Transpiler.prototype.needsTranspile=function(a){if("always"==goog.TRANSPILE)return!0;if("never"==goog.TRANSPILE)return!1;this.requiresTranspilation_||(this.requiresTranspilation_=this.createRequiresTranspilation_());if(a in this.requiresTranspilation_)return this.requiresTranspilation_[a];throw Error("Unknown language mode: "+a);},goog.Transpiler.prototype.transpile=
  55. function(a,b){return goog.transpile_(a,b)},goog.transpiler_=new goog.Transpiler,goog.DebugLoader=function(){this.dependencies_={loadFlags:{},nameToPath:{},requires:{},visited:{},written:{},deferred:{}};this.oldIeWaiting_=!1;this.queuedModules_=[];this.lastNonModuleScriptIndex_=0},goog.DebugLoader.IS_OLD_IE_=!(goog.global.atob||!window.document||!window.document.all),goog.DebugLoader.prototype.earlyProcessLoad=function(a){goog.DebugLoader.IS_OLD_IE_&&this.maybeProcessDeferredDep_(a)},goog.DebugLoader.prototype.load=
  56. function(a){var b=this.getPathFromDeps_(a);if(b){var c=function(a){if(!(a in f.written||a in f.visited)){f.visited[a]=!0;if(a in f.requires)for(var b in f.requires[a])if(!g.isProvided(b))if(b in f.nameToPath)c(f.nameToPath[b]);else throw Error("Undefined nameToPath for "+b);a in e||(e[a]=!0,d.push(a))}},d=[],e={},f=this.dependencies_,g=this;c(b);for(a=0;a<d.length;a++)b=d[a],this.dependencies_.written[b]=!0;for(a=0;a<d.length;a++)if(b=d[a]){var n=f.loadFlags[b]||{},q=n.lang||"es3";q=this.getTranspiler().needsTranspile(q);
  57. "goog"==n.module||q?this.importProcessedScript_(goog.basePath+b,"goog"==n.module,q):this.importScript_(goog.basePath+b)}else throw Error("Undefined script input");}else throw a="goog.require could not find: "+a,this.logToConsole(a),Error(a);},goog.DebugLoader.prototype.addDependency=function(a,b,c,d){var e;a=a.replace(/\\/g,"/");var f=this.dependencies_;d&&"boolean"!==typeof d||(d=d?{module:"goog"}:{});for(var g=0;e=b[g];g++)f.nameToPath[e]=a,f.loadFlags[a]=d;for(d=0;b=c[d];d++)a in f.requires||(f.requires[a]=
  58. {}),f.requires[a][b]=!0},goog.DebugLoader.prototype.importScript_=function(a,b){(goog.global.CLOSURE_IMPORT_SCRIPT||goog.bind(this.writeScriptTag_,this))(a,b)&&(this.dependencies_.written[a]=!0)},goog.DebugLoader.prototype.importProcessedScript_=function(a,b,c){this.importScript_("",'goog.debugLoader_.retrieveAndExec_("'+a+'", '+b+", "+c+");")},goog.DebugLoader.prototype.retrieveAndExec_=function(a,b,c){if(!COMPILED){var d=a;a=this.normalizePath(a);var e=goog.global.CLOSURE_IMPORT_SCRIPT||goog.bind(this.writeScriptTag_,
  59. this),f=this.loadFileSync(a);if(null==f)throw Error('Load of "'+a+'" failed');c&&(f=this.getTranspiler().transpile(f,a));f=b?this.wrapModule_(a,f):f+("\n//# sourceURL="+a);goog.DebugLoader.IS_OLD_IE_&&this.oldIeWaiting_?(this.dependencies_.deferred[d]=f,this.queuedModules_.push(d)):e(a,f)}},goog.DebugLoader.prototype.wrapModule_=function(a,b){return goog.LOAD_MODULE_USING_EVAL&&goog.isDef(goog.global.JSON)?"goog.loadModule("+goog.global.JSON.stringify(b+"\n//# sourceURL="+a+"\n")+");":'goog.loadModule(function(exports) {"use strict";'+
  60. b+"\n;return exports});\n//# sourceURL="+a+"\n"},goog.DebugLoader.prototype.loadQueuedModules_=function(){var a=this.queuedModules_.length;if(0<a){var b=this.queuedModules_;this.queuedModules_=[];for(var c=0;c<a;c++)this.maybeProcessDeferredPath_(b[c])}this.oldIeWaiting_=!1},goog.DebugLoader.prototype.maybeProcessDeferredDep_=function(a){this.isDeferredModule_(a)&&this.allDepsAreAvailable_(a)&&(a=this.getPathFromDeps_(a),this.maybeProcessDeferredPath_(goog.basePath+a))},goog.DebugLoader.prototype.isDeferredModule_=
  61. function(a){var b=(a=this.getPathFromDeps_(a))&&this.dependencies_.loadFlags[a]||{},c=b.lang||"es3";return a&&("goog"==b.module||this.getTranspiler().needsTranspile(c))?goog.basePath+a in this.dependencies_.deferred:!1},goog.DebugLoader.prototype.allDepsAreAvailable_=function(a){if((a=this.getPathFromDeps_(a))&&a in this.dependencies_.requires)for(var b in this.dependencies_.requires[a])if(!this.isProvided(b)&&!this.isDeferredModule_(b))return!1;return!0},goog.DebugLoader.prototype.maybeProcessDeferredPath_=
  62. function(a){if(a in this.dependencies_.deferred){var b=this.dependencies_.deferred[a];delete this.dependencies_.deferred[a];goog.globalEval(b)}},goog.DebugLoader.prototype.writeScriptSrcNode_=function(a){window.document.write('<script type="text/javascript" src="'+a+'">\x3c/script>')},goog.DebugLoader.prototype.appendScriptSrcNode_=function(a){var b=window.document,c=b.createElement("script");c.type="text/javascript";c.src=a;c.defer=!1;c.async=!1;b.head.appendChild(c)},goog.DebugLoader.prototype.writeScriptTag_=
  63. function(a,b){if(this.inHtmlDocument()){var c=window.document;if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&"complete"==c.readyState){if(/\bdeps.js$/.test(a))return!1;throw Error('Cannot write "'+a+'" after document load');}void 0===b?goog.DebugLoader.IS_OLD_IE_?(this.oldIeWaiting_=!0,b=" onreadystatechange='goog.debugLoader_.onScriptLoad_(this, "+ ++this.lastNonModuleScriptIndex_+")' ",c.write('<script type="text/javascript" src="'+a+'"'+b+">\x3c/script>")):goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING?
  64. this.appendScriptSrcNode_(a):this.writeScriptSrcNode_(a):c.write('<script type="text/javascript">'+this.protectScriptTag_(b)+"\x3c/script>");return!0}return!1},goog.DebugLoader.prototype.protectScriptTag_=function(a){return a.replace(/<\/(SCRIPT)/ig,"\\x3c/$1")},goog.DebugLoader.prototype.onScriptLoad_=function(a,b){"complete"==a.readyState&&this.lastNonModuleScriptIndex_==b&&this.loadQueuedModules_();return!0},goog.DebugLoader.prototype.getPathFromDeps_=function(a){return a in this.dependencies_.nameToPath?
  65. this.dependencies_.nameToPath[a]:null},goog.DebugLoader.prototype.getTranspiler=function(){return goog.transpiler_},goog.DebugLoader.prototype.isProvided=function(a){return goog.isProvided_(a)},goog.DebugLoader.prototype.inHtmlDocument=function(){return goog.inHtmlDocument_()},goog.DebugLoader.prototype.logToConsole=function(a){goog.logToConsole_(a)},goog.DebugLoader.prototype.loadFileSync=function(a){return goog.loadFileSync_(a)},goog.DebugLoader.prototype.normalizePath=function(a){return goog.normalizePath_(a)},
  66. goog.debugLoader_=null,goog.registerDebugLoader=function(a){if(goog.debugLoader_)throw Error("Debug loader already registered!");if(!(a instanceof goog.DebugLoader))throw Error("Not a goog.DebugLoader.");goog.debugLoader_=a},goog.getLoader_=function(){if(!goog.debugLoader_&&goog.DEBUG_LOADER)throw Error("Loaded debug loader file but no loader was registered!");goog.debugLoader_||(goog.debugLoader_=new goog.DebugLoader);return goog.debugLoader_},function(){if(goog.DEBUG_LOADER){var a=new goog.DebugLoader;
  67. a.importScript_(goog.basePath+goog.DEBUG_LOADER)}goog.global.CLOSURE_NO_DEPS||(a=a||new goog.DebugLoader,goog.DEBUG_LOADER||goog.registerDebugLoader(a),a.importScript_(goog.basePath+"deps.js"))}());var mimc={md5:{}};
  68. (function(a){function b(a,b){var c=(a&65535)+(b&65535);return(a>>16)+(b>>16)+(c>>16)<<16|c&65535}function c(a,c,d,e,f,g){a=b(b(c,a),b(e,g));return b(a<<f|a>>>32-f,d)}function d(a,b,d,e,f,g,n){return c(b&d|~b&e,a,b,f,g,n)}function e(a,b,d,e,f,g,n){return c(b&e|d&~e,a,b,f,g,n)}function f(a,b,d,e,f,g,n){return c(d^(b|~e),a,b,f,g,n)}function g(a,g){a[g>>5]|=128<<g%32;a[(g+64>>>9<<4)+14]=g;var l=1732584193,m=-271733879,h=-1732584194,k=271733878;for(g=0;g<a.length;g+=16){var n=l;var q=m;var U=h;var Q=k;
  69. l=d(l,m,h,k,a[g],7,-680876936);k=d(k,l,m,h,a[g+1],12,-389564586);h=d(h,k,l,m,a[g+2],17,606105819);m=d(m,h,k,l,a[g+3],22,-1044525330);l=d(l,m,h,k,a[g+4],7,-176418897);k=d(k,l,m,h,a[g+5],12,1200080426);h=d(h,k,l,m,a[g+6],17,-1473231341);m=d(m,h,k,l,a[g+7],22,-45705983);l=d(l,m,h,k,a[g+8],7,1770035416);k=d(k,l,m,h,a[g+9],12,-1958414417);h=d(h,k,l,m,a[g+10],17,-42063);m=d(m,h,k,l,a[g+11],22,-1990404162);l=d(l,m,h,k,a[g+12],7,1804603682);k=d(k,l,m,h,a[g+13],12,-40341101);h=d(h,k,l,m,a[g+14],17,-1502002290);
  70. m=d(m,h,k,l,a[g+15],22,1236535329);l=e(l,m,h,k,a[g+1],5,-165796510);k=e(k,l,m,h,a[g+6],9,-1069501632);h=e(h,k,l,m,a[g+11],14,643717713);m=e(m,h,k,l,a[g],20,-373897302);l=e(l,m,h,k,a[g+5],5,-701558691);k=e(k,l,m,h,a[g+10],9,38016083);h=e(h,k,l,m,a[g+15],14,-660478335);m=e(m,h,k,l,a[g+4],20,-405537848);l=e(l,m,h,k,a[g+9],5,568446438);k=e(k,l,m,h,a[g+14],9,-1019803690);h=e(h,k,l,m,a[g+3],14,-187363961);m=e(m,h,k,l,a[g+8],20,1163531501);l=e(l,m,h,k,a[g+13],5,-1444681467);k=e(k,l,m,h,a[g+2],9,-51403784);
  71. h=e(h,k,l,m,a[g+7],14,1735328473);m=e(m,h,k,l,a[g+12],20,-1926607734);l=c(m^h^k,l,m,a[g+5],4,-378558);k=c(l^m^h,k,l,a[g+8],11,-2022574463);h=c(k^l^m,h,k,a[g+11],16,1839030562);m=c(h^k^l,m,h,a[g+14],23,-35309556);l=c(m^h^k,l,m,a[g+1],4,-1530992060);k=c(l^m^h,k,l,a[g+4],11,1272893353);h=c(k^l^m,h,k,a[g+7],16,-155497632);m=c(h^k^l,m,h,a[g+10],23,-1094730640);l=c(m^h^k,l,m,a[g+13],4,681279174);k=c(l^m^h,k,l,a[g],11,-358537222);h=c(k^l^m,h,k,a[g+3],16,-722521979);m=c(h^k^l,m,h,a[g+6],23,76029189);l=c(m^
  72. h^k,l,m,a[g+9],4,-640364487);k=c(l^m^h,k,l,a[g+12],11,-421815835);h=c(k^l^m,h,k,a[g+15],16,530742520);m=c(h^k^l,m,h,a[g+2],23,-995338651);l=f(l,m,h,k,a[g],6,-198630844);k=f(k,l,m,h,a[g+7],10,1126891415);h=f(h,k,l,m,a[g+14],15,-1416354905);m=f(m,h,k,l,a[g+5],21,-57434055);l=f(l,m,h,k,a[g+12],6,1700485571);k=f(k,l,m,h,a[g+3],10,-1894986606);h=f(h,k,l,m,a[g+10],15,-1051523);m=f(m,h,k,l,a[g+1],21,-2054922799);l=f(l,m,h,k,a[g+8],6,1873313359);k=f(k,l,m,h,a[g+15],10,-30611744);h=f(h,k,l,m,a[g+6],15,-1560198380);
  73. m=f(m,h,k,l,a[g+13],21,1309151649);l=f(l,m,h,k,a[g+4],6,-145523070);k=f(k,l,m,h,a[g+11],10,-1120210379);h=f(h,k,l,m,a[g+2],15,718787259);m=f(m,h,k,l,a[g+9],21,-343485551);l=b(l,n);m=b(m,q);h=b(h,U);k=b(k,Q)}return[l,m,h,k]}function n(a){var b,c="",d=32*a.length;for(b=0;b<d;b+=8)c+=String.fromCharCode(a[b>>5]>>>b%32&255);return c}function q(a){var b,c=[];c[(a.length>>2)-1]=void 0;for(b=0;b<c.length;b+=1)c[b]=0;var d=8*a.length;for(b=0;b<d;b+=8)c[b>>5]|=(a.charCodeAt(b/8)&255)<<b%32;return c}function G(a){return n(g(q(a),
  74. 8*a.length))}function D(a,b){var c=q(a),d=[],e=[];d[15]=e[15]=void 0;16<c.length&&(c=g(c,8*a.length));for(a=0;16>a;a+=1)d[a]=c[a]^909522486,e[a]=c[a]^1549556828;b=g(d.concat(q(b)),512+8*b.length);return n(g(e.concat(b),640))}function v(a){var b="",c;for(c=0;c<a.length;c+=1){var d=a.charCodeAt(c);b+="0123456789abcdef".charAt(d>>>4&15)+"0123456789abcdef".charAt(d&15)}return b}function A(a,b,c){b?c?a=D(unescape(encodeURIComponent(b)),unescape(encodeURIComponent(a))):(a=D(unescape(encodeURIComponent(b)),
  75. unescape(encodeURIComponent(a))),a=v(a)):a=c?G(unescape(encodeURIComponent(a))):v(G(unescape(encodeURIComponent(a))));return a}"function"===typeof define&&define.amd?define(function(){return A}):"object"===typeof module&&module.exports?module.exports=A:a.md5=A})(this);var jspb={BinaryConstants:{},ConstBinaryMessage:function(){},BinaryMessage:function(){}};jspb.BinaryConstants.FieldType={INVALID:-1,DOUBLE:1,FLOAT:2,INT64:3,UINT64:4,INT32:5,FIXED64:6,FIXED32:7,BOOL:8,STRING:9,GROUP:10,MESSAGE:11,BYTES:12,UINT32:13,ENUM:14,SFIXED32:15,SFIXED64:16,SINT32:17,SINT64:18,FHASH64:30,VHASH64:31};jspb.BinaryConstants.WireType={INVALID:-1,VARINT:0,FIXED64:1,DELIMITED:2,START_GROUP:3,END_GROUP:4,FIXED32:5};
  76. jspb.BinaryConstants.FieldTypeToWireType=function(a){var b=jspb.BinaryConstants.FieldType,c=jspb.BinaryConstants.WireType;switch(a){case b.INT32:case b.INT64:case b.UINT32:case b.UINT64:case b.SINT32:case b.SINT64:case b.BOOL:case b.ENUM:case b.VHASH64:return c.VARINT;case b.DOUBLE:case b.FIXED64:case b.SFIXED64:case b.FHASH64:return c.FIXED64;case b.STRING:case b.MESSAGE:case b.BYTES:return c.DELIMITED;case b.FLOAT:case b.FIXED32:case b.SFIXED32:return c.FIXED32;default:return c.INVALID}};
  77. jspb.BinaryConstants.INVALID_FIELD_NUMBER=-1;jspb.BinaryConstants.FLOAT32_EPS=1.401298464324817E-45;jspb.BinaryConstants.FLOAT32_MIN=1.1754943508222875E-38;jspb.BinaryConstants.FLOAT32_MAX=3.4028234663852886E38;jspb.BinaryConstants.FLOAT64_EPS=4.9E-324;jspb.BinaryConstants.FLOAT64_MIN=2.2250738585072014E-308;jspb.BinaryConstants.FLOAT64_MAX=1.7976931348623157E308;jspb.BinaryConstants.TWO_TO_20=1048576;jspb.BinaryConstants.TWO_TO_23=8388608;jspb.BinaryConstants.TWO_TO_31=2147483648;
  78. jspb.BinaryConstants.TWO_TO_32=4294967296;jspb.BinaryConstants.TWO_TO_52=4503599627370496;jspb.BinaryConstants.TWO_TO_63=0x7fffffffffffffff;jspb.BinaryConstants.TWO_TO_64=1.8446744073709552E19;jspb.BinaryConstants.ZERO_HASH="\x00\x00\x00\x00\x00\x00\x00\x00";goog.dom={};goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};goog.debug={};goog.debug.Error=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a));this.reportErrorToServer=!0};goog.inherits(goog.debug.Error,Error);goog.debug.Error.prototype.name="CustomError";goog.asserts={};goog.asserts.ENABLE_ASSERTS=goog.DEBUG;goog.asserts.AssertionError=function(a,b){goog.debug.Error.call(this,goog.asserts.subs_(a,b));this.messagePattern=a};goog.inherits(goog.asserts.AssertionError,goog.debug.Error);goog.asserts.AssertionError.prototype.name="AssertionError";goog.asserts.DEFAULT_ERROR_HANDLER=function(a){throw a;};goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER;
  79. goog.asserts.subs_=function(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");return c+a[d]};goog.asserts.doAssertFailure_=function(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var f=d}else a&&(e+=": "+a,f=b);a=new goog.asserts.AssertionError(""+e,f||[]);goog.asserts.errorHandler_(a)};goog.asserts.setErrorHandler=function(a){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=a)};
  80. goog.asserts.assert=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!a&&goog.asserts.doAssertFailure_("",null,b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.fail=function(a,b){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};
  81. goog.asserts.assertNumber=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isNumber(a)&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.assertString=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isString(a)&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
  82. goog.asserts.assertFunction=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(a)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.assertObject=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isObject(a)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
  83. goog.asserts.assertArray=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isArray(a)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.assertBoolean=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isBoolean(a)&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
  84. goog.asserts.assertElement=function(a,b,c){!goog.asserts.ENABLE_ASSERTS||goog.isObject(a)&&a.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
  85. goog.asserts.assertInstanceof=function(a,b,c,d){!goog.asserts.ENABLE_ASSERTS||a instanceof b||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(b),goog.asserts.getType_(a)],c,Array.prototype.slice.call(arguments,3));return a};goog.asserts.assertFinite=function(a,b,c){!goog.asserts.ENABLE_ASSERTS||"number"==typeof a&&isFinite(a)||goog.asserts.doAssertFailure_("Expected %s to be a finite number but it is not.",[a],b,Array.prototype.slice.call(arguments,2));return a};
  86. goog.asserts.assertObjectPrototypeIsIntact=function(){for(var a in Object.prototype)goog.asserts.fail(a+" should not be enumerable in Object.prototype.")};goog.asserts.getType_=function(a){return a instanceof Function?a.displayName||a.name||"unknown type name":a instanceof Object?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):null===a?"null":typeof a};goog.array={};goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE;goog.array.ASSUME_NATIVE_FUNCTIONS=!1;goog.array.peek=function(a){return a[a.length-1]};goog.array.last=goog.array.peek;
  87. goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(a,b,c){goog.asserts.assert(null!=a.length);return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(goog.isString(a))return goog.isString(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
  88. goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(a,b,c){goog.asserts.assert(null!=a.length);return Array.prototype.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.max(0,a.length+c));if(goog.isString(a))return goog.isString(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
  89. goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(a,b,c){goog.asserts.assert(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};goog.array.forEachRight=function(a,b,c){var d=a.length,e=goog.isString(a)?a.split(""):a;for(--d;0<=d;--d)d in e&&b.call(c,e[d],d,a)};
  90. goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(a,b,c){goog.asserts.assert(null!=a.length);return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=goog.isString(a)?a.split(""):a,n=0;n<d;n++)if(n in g){var q=g[n];b.call(c,q,n,a)&&(e[f++]=q)}return e};
  91. goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(a,b,c){goog.asserts.assert(null!=a.length);return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=goog.isString(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e};
  92. goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(a,b,c,d){goog.asserts.assert(null!=a.length);d&&(b=goog.bind(b,d));return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;goog.array.forEach(a,function(c,g){e=b.call(d,e,c,g,a)});return e};
  93. goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(a,b,c,d){goog.asserts.assert(null!=a.length);goog.asserts.assert(null!=b);d&&(b=goog.bind(b,d));return Array.prototype.reduceRight.call(a,b,c)}:function(a,b,c,d){var e=c;goog.array.forEachRight(a,function(c,g){e=b.call(d,e,c,g,a)});return e};
  94. goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(a,b,c){goog.asserts.assert(null!=a.length);return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1};
  95. goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(a,b,c){goog.asserts.assert(null!=a.length);return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0};goog.array.count=function(a,b,c){var d=0;goog.array.forEach(a,function(a,f,g){b.call(c,a,f,g)&&++d},c);return d};
  96. goog.array.find=function(a,b,c){b=goog.array.findIndex(a,b,c);return 0>b?null:goog.isString(a)?a.charAt(b):a[b]};goog.array.findIndex=function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};goog.array.findRight=function(a,b,c){b=goog.array.findIndexRight(a,b,c);return 0>b?null:goog.isString(a)?a.charAt(b):a[b]};
  97. goog.array.findIndexRight=function(a,b,c){var d=a.length,e=goog.isString(a)?a.split(""):a;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};goog.array.contains=function(a,b){return 0<=goog.array.indexOf(a,b)};goog.array.isEmpty=function(a){return 0==a.length};goog.array.clear=function(a){if(!goog.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};goog.array.insert=function(a,b){goog.array.contains(a,b)||a.push(b)};
  98. goog.array.insertAt=function(a,b,c){goog.array.splice(a,c,0,b)};goog.array.insertArrayAt=function(a,b,c){goog.partial(goog.array.splice,a,c,0).apply(null,b)};goog.array.insertBefore=function(a,b,c){var d;2==arguments.length||0>(d=goog.array.indexOf(a,c))?a.push(b):goog.array.insertAt(a,b,d)};goog.array.remove=function(a,b){b=goog.array.indexOf(a,b);var c;(c=0<=b)&&goog.array.removeAt(a,b);return c};
  99. goog.array.removeLast=function(a,b){b=goog.array.lastIndexOf(a,b);return 0<=b?(goog.array.removeAt(a,b),!0):!1};goog.array.removeAt=function(a,b){goog.asserts.assert(null!=a.length);return 1==Array.prototype.splice.call(a,b,1).length};goog.array.removeIf=function(a,b,c){b=goog.array.findIndex(a,b,c);return 0<=b?(goog.array.removeAt(a,b),!0):!1};goog.array.removeAllIf=function(a,b,c){var d=0;goog.array.forEachRight(a,function(e,f){b.call(c,e,f,a)&&goog.array.removeAt(a,f)&&d++});return d};
  100. goog.array.concat=function(a){return Array.prototype.concat.apply([],arguments)};goog.array.join=function(a){return Array.prototype.concat.apply([],arguments)};goog.array.toArray=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};goog.array.clone=goog.array.toArray;goog.array.extend=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(goog.isArrayLike(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}};
  101. goog.array.splice=function(a,b,c,d){goog.asserts.assert(null!=a.length);return Array.prototype.splice.apply(a,goog.array.slice(arguments,1))};goog.array.slice=function(a,b,c){goog.asserts.assert(null!=a.length);return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
  102. goog.array.removeDuplicates=function(a,b,c){b=b||a;var d=function(a){return goog.isObject(a)?"o"+goog.getUid(a):(typeof a).charAt(0)+a};c=c||d;d={};for(var e=0,f=0;f<a.length;){var g=a[f++],n=c(g);Object.prototype.hasOwnProperty.call(d,n)||(d[n]=!0,b[e++]=g)}b.length=e};goog.array.binarySearch=function(a,b,c){return goog.array.binarySearch_(a,c||goog.array.defaultCompare,!1,b)};goog.array.binarySelect=function(a,b,c){return goog.array.binarySearch_(a,b,!0,void 0,c)};
  103. goog.array.binarySearch_=function(a,b,c,d,e){for(var f=0,g=a.length,n;f<g;){var q=f+g>>1;var G=c?b.call(e,a[q],q,a):b(d,a[q]);0<G?f=q+1:(g=q,n=!G)}return n?f:~f};goog.array.sort=function(a,b){a.sort(b||goog.array.defaultCompare)};goog.array.stableSort=function(a,b){for(var c=Array(a.length),d=0;d<a.length;d++)c[d]={index:d,value:a[d]};var e=b||goog.array.defaultCompare;goog.array.sort(c,function(a,b){return e(a.value,b.value)||a.index-b.index});for(d=0;d<a.length;d++)a[d]=c[d].value};
  104. goog.array.sortByKey=function(a,b,c){var d=c||goog.array.defaultCompare;goog.array.sort(a,function(a,c){return d(b(a),b(c))})};goog.array.sortObjectsByKey=function(a,b,c){goog.array.sortByKey(a,function(a){return a[b]},c)};goog.array.isSorted=function(a,b,c){b=b||goog.array.defaultCompare;for(var d=1;d<a.length;d++){var e=b(a[d-1],a[d]);if(0<e||0==e&&c)return!1}return!0};
  105. goog.array.equals=function(a,b,c){if(!goog.isArrayLike(a)||!goog.isArrayLike(b)||a.length!=b.length)return!1;var d=a.length;c=c||goog.array.defaultCompareEquality;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0};goog.array.compare3=function(a,b,c){c=c||goog.array.defaultCompare;for(var d=Math.min(a.length,b.length),e=0;e<d;e++){var f=c(a[e],b[e]);if(0!=f)return f}return goog.array.defaultCompare(a.length,b.length)};goog.array.defaultCompare=function(a,b){return a>b?1:a<b?-1:0};
  106. goog.array.inverseDefaultCompare=function(a,b){return-goog.array.defaultCompare(a,b)};goog.array.defaultCompareEquality=function(a,b){return a===b};goog.array.binaryInsert=function(a,b,c){c=goog.array.binarySearch(a,b,c);return 0>c?(goog.array.insertAt(a,b,-(c+1)),!0):!1};goog.array.binaryRemove=function(a,b,c){b=goog.array.binarySearch(a,b,c);return 0<=b?goog.array.removeAt(a,b):!1};
  107. goog.array.bucket=function(a,b,c){for(var d={},e=0;e<a.length;e++){var f=a[e],g=b.call(c,f,e,a);goog.isDef(g)&&(d[g]||(d[g]=[])).push(f)}return d};goog.array.toObject=function(a,b,c){var d={};goog.array.forEach(a,function(e,f){d[b.call(c,e,f,a)]=e});return d};goog.array.range=function(a,b,c){var d=[],e=0,f=a;c=c||1;void 0!==b&&(e=a,f=b);if(0>c*(f-e))return[];if(0<c)for(a=e;a<f;a+=c)d.push(a);else for(a=e;a>f;a+=c)d.push(a);return d};
  108. goog.array.repeat=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};goog.array.flatten=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(goog.isArray(d))for(var e=0;e<d.length;e+=8192){var f=goog.array.slice(d,e,e+8192);f=goog.array.flatten.apply(null,f);for(var g=0;g<f.length;g++)b.push(f[g])}else b.push(d)}return b};
  109. goog.array.rotate=function(a,b){goog.asserts.assert(null!=a.length);a.length&&(b%=a.length,0<b?Array.prototype.unshift.apply(a,a.splice(-b,b)):0>b&&Array.prototype.push.apply(a,a.splice(0,-b)));return a};goog.array.moveItem=function(a,b,c){goog.asserts.assert(0<=b&&b<a.length);goog.asserts.assert(0<=c&&c<a.length);b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])};
  110. goog.array.zip=function(a){if(!arguments.length)return[];for(var b=[],c=arguments[0].length,d=1;d<arguments.length;d++)arguments[d].length<c&&(c=arguments[d].length);for(d=0;d<c;d++){for(var e=[],f=0;f<arguments.length;f++)e.push(arguments[f][d]);b.push(e)}return b};goog.array.shuffle=function(a,b){b=b||Math.random;for(var c=a.length-1;0<c;c--){var d=Math.floor(b()*(c+1)),e=a[c];a[c]=a[d];a[d]=e}};goog.array.copyByIndex=function(a,b){var c=[];goog.array.forEach(b,function(b){c.push(a[b])});return c};
  111. goog.array.concatMap=function(a,b,c){return goog.array.concat.apply([],goog.array.map(a,b,c))};goog.crypt={};goog.crypt.stringToByteArray=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}return b};goog.crypt.byteArrayToString=function(a){if(8192>=a.length)return String.fromCharCode.apply(null,a);for(var b="",c=0;c<a.length;c+=8192){var d=goog.array.slice(a,c,c+8192);b+=String.fromCharCode.apply(null,d)}return b};goog.crypt.byteArrayToHex=function(a){return goog.array.map(a,function(a){a=a.toString(16);return 1<a.length?a:"0"+a}).join("")};
  112. goog.crypt.hexToByteArray=function(a){goog.asserts.assert(0==a.length%2,"Key string length must be multiple of 2");for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
  113. goog.crypt.stringToUtf8ByteArray=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};
  114. goog.crypt.utf8ByteArrayToString=function(a){for(var b=[],c=0,d=0;c<a.length;){var e=a[c++];if(128>e)b[d++]=String.fromCharCode(e);else if(191<e&&224>e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(239<e&&365>e){f=a[c++];var g=a[c++],n=a[c++];e=((e&7)<<18|(f&63)<<12|(g&63)<<6|n&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else f=a[c++],g=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|g&63)}return b.join("")};
  115. goog.crypt.xorByteArray=function(a,b){goog.asserts.assert(a.length==b.length,"XOR array lengths must match");for(var c=[],d=0;d<a.length;d++)c.push(a[d]^b[d]);return c};goog.string={};goog.string.DETECT_DOUBLE_ESCAPING=!1;goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1;goog.string.Unicode={NBSP:"\u00a0"};goog.string.startsWith=function(a,b){return 0==a.lastIndexOf(b,0)};goog.string.endsWith=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};goog.string.caseInsensitiveStartsWith=function(a,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(0,b.length))};
  116. goog.string.caseInsensitiveEndsWith=function(a,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(a.length-b.length,b.length))};goog.string.caseInsensitiveEquals=function(a,b){return a.toLowerCase()==b.toLowerCase()};goog.string.subs=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")};goog.string.collapseWhitespace=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};
  117. goog.string.isEmptyOrWhitespace=function(a){return/^[\s\xa0]*$/.test(a)};goog.string.isEmptyString=function(a){return 0==a.length};goog.string.isEmpty=goog.string.isEmptyOrWhitespace;goog.string.isEmptyOrWhitespaceSafe=function(a){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(a))};goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe;goog.string.isBreakingWhitespace=function(a){return!/[^\t\n\r ]/.test(a)};goog.string.isAlpha=function(a){return!/[^a-zA-Z]/.test(a)};
  118. goog.string.isNumeric=function(a){return!/[^0-9]/.test(a)};goog.string.isAlphaNumeric=function(a){return!/[^a-zA-Z0-9]/.test(a)};goog.string.isSpace=function(a){return" "==a};goog.string.isUnicodeChar=function(a){return 1==a.length&&" "<=a&&"~">=a||"\u0080"<=a&&"\ufffd">=a};goog.string.stripNewlines=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};goog.string.canonicalizeNewlines=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};
  119. goog.string.normalizeWhitespace=function(a){return a.replace(/\xa0|\s/g," ")};goog.string.normalizeSpaces=function(a){return a.replace(/\xa0|[ \t]+/g," ")};goog.string.collapseBreakingSpaces=function(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};goog.string.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};goog.string.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};
  120. goog.string.trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};goog.string.caseInsensitiveCompare=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1};
  121. goog.string.numberAwareCompare_=function(a,b,c){if(a==b)return 0;if(!a)return-1;if(!b)return 1;for(var d=a.toLowerCase().match(c),e=b.toLowerCase().match(c),f=Math.min(d.length,e.length),g=0;g<f;g++){c=d[g];var n=e[g];if(c!=n)return a=parseInt(c,10),!isNaN(a)&&(b=parseInt(n,10),!isNaN(b)&&a-b)?a-b:c<n?-1:1}return d.length!=e.length?d.length-e.length:a<b?-1:1};goog.string.intAwareCompare=function(a,b){return goog.string.numberAwareCompare_(a,b,/\d+|\D+/g)};
  122. goog.string.floatAwareCompare=function(a,b){return goog.string.numberAwareCompare_(a,b,/\d+|\.\d+|\D+/g)};goog.string.numerateCompare=goog.string.floatAwareCompare;goog.string.urlEncode=function(a){return encodeURIComponent(String(a))};goog.string.urlDecode=function(a){return decodeURIComponent(a.replace(/\+/g," "))};goog.string.newLineToBr=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")};
  123. goog.string.htmlEscape=function(a,b){if(b)a=a.replace(goog.string.AMP_RE_,"&amp;").replace(goog.string.LT_RE_,"&lt;").replace(goog.string.GT_RE_,"&gt;").replace(goog.string.QUOT_RE_,"&quot;").replace(goog.string.SINGLE_QUOTE_RE_,"&#39;").replace(goog.string.NULL_RE_,"&#0;"),goog.string.DETECT_DOUBLE_ESCAPING&&(a=a.replace(goog.string.E_RE_,"&#101;"));else{if(!goog.string.ALL_RE_.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(goog.string.AMP_RE_,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(goog.string.LT_RE_,
  124. "&lt;"));-1!=a.indexOf(">")&&(a=a.replace(goog.string.GT_RE_,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(goog.string.QUOT_RE_,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(goog.string.SINGLE_QUOTE_RE_,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(goog.string.NULL_RE_,"&#0;"));goog.string.DETECT_DOUBLE_ESCAPING&&-1!=a.indexOf("e")&&(a=a.replace(goog.string.E_RE_,"&#101;"))}return a};goog.string.AMP_RE_=/&/g;goog.string.LT_RE_=/</g;goog.string.GT_RE_=/>/g;goog.string.QUOT_RE_=/"/g;
  125. goog.string.SINGLE_QUOTE_RE_=/'/g;goog.string.NULL_RE_=/\x00/g;goog.string.E_RE_=/e/g;goog.string.ALL_RE_=goog.string.DETECT_DOUBLE_ESCAPING?/[\x00&<>"'e]/:/[\x00&<>"']/;goog.string.unescapeEntities=function(a){return goog.string.contains(a,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(a):goog.string.unescapePureXmlEntities_(a):a};
  126. goog.string.unescapeEntitiesWithDocument=function(a,b){return goog.string.contains(a,"&")?goog.string.unescapeEntitiesUsingDom_(a,b):a};
  127. goog.string.unescapeEntitiesUsingDom_=function(a,b){var c={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var d=b?b.createElement("div"):window.document.createElement("div");return a.replace(goog.string.HTML_ENTITY_PATTERN_,function(a,b){var e=c[a];if(e)return e;"#"==b.charAt(0)&&(b=Number("0"+b.substr(1)),isNaN(b)||(e=String.fromCharCode(b)));e||(d.innerHTML=a+" ",e=d.firstChild.nodeValue.slice(0,-1));return c[a]=e})};
  128. goog.string.unescapePureXmlEntities_=function(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return"#"!=c.charAt(0)||(c=Number("0"+c.substr(1)),isNaN(c))?a:String.fromCharCode(c)}})};goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g;goog.string.whitespaceEscape=function(a,b){return goog.string.newLineToBr(a.replace(/ /g," &#160;"),b)};
  129. goog.string.preserveSpaces=function(a){return a.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)};goog.string.stripQuotes=function(a,b){for(var c=b.length,d=0;d<c;d++){var e=1==c?b:b.charAt(d);if(a.charAt(0)==e&&a.charAt(a.length-1)==e)return a.substring(1,a.length-1)}return a};goog.string.truncate=function(a,b,c){c&&(a=goog.string.unescapeEntities(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=goog.string.htmlEscape(a));return a};
  130. goog.string.truncateMiddle=function(a,b,c,d){c&&(a=goog.string.unescapeEntities(a));if(d&&a.length>b){d>b&&(d=b);var e=a.length-d;a=a.substring(0,b-d)+"..."+a.substring(e)}else a.length>b&&(d=Math.floor(b/2),e=a.length-d,a=a.substring(0,d+b%2)+"..."+a.substring(e));c&&(a=goog.string.htmlEscape(a));return a};goog.string.specialEscapeChars_={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"};goog.string.jsEscapeCache_={"'":"\\'"};
  131. goog.string.quote=function(a){a=String(a);for(var b=['"'],c=0;c<a.length;c++){var d=a.charAt(c),e=d.charCodeAt(0);b[c+1]=goog.string.specialEscapeChars_[d]||(31<e&&127>e?d:goog.string.escapeChar(d))}b.push('"');return b.join("")};goog.string.escapeString=function(a){for(var b=[],c=0;c<a.length;c++)b[c]=goog.string.escapeChar(a.charAt(c));return b.join("")};
  132. goog.string.escapeChar=function(a){if(a in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[a];if(a in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[a]=goog.string.specialEscapeChars_[a];var b=a.charCodeAt(0);if(31<b&&127>b)var c=a;else{if(256>b){if(c="\\x",16>b||256<b)c+="0"}else c="\\u",4096>b&&(c+="0");c+=b.toString(16).toUpperCase()}return goog.string.jsEscapeCache_[a]=c};goog.string.contains=function(a,b){return-1!=a.indexOf(b)};
  133. goog.string.caseInsensitiveContains=function(a,b){return goog.string.contains(a.toLowerCase(),b.toLowerCase())};goog.string.countOf=function(a,b){return a&&b?a.split(b).length-1:0};goog.string.removeAt=function(a,b,c){var d=a;0<=b&&b<a.length&&0<c&&(d=a.substr(0,b)+a.substr(b+c,a.length-b-c));return d};goog.string.remove=function(a,b){return a.replace(b,"")};goog.string.removeAll=function(a,b){b=new RegExp(goog.string.regExpEscape(b),"g");return a.replace(b,"")};
  134. goog.string.replaceAll=function(a,b,c){b=new RegExp(goog.string.regExpEscape(b),"g");return a.replace(b,c.replace(/\$/g,"$$$$"))};goog.string.regExpEscape=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};goog.string.repeat=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};
  135. goog.string.padNumber=function(a,b,c){a=goog.isDef(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return goog.string.repeat("0",Math.max(0,b-c))+a};goog.string.makeSafe=function(a){return null==a?"":String(a)};goog.string.buildString=function(a){return Array.prototype.join.call(arguments,"")};goog.string.getRandomString=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^goog.now()).toString(36)};
  136. goog.string.compareVersions=function(a,b){var c=0;a=goog.string.trim(String(a)).split(".");b=goog.string.trim(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",g=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];if(0==f[0].length&&0==g[0].length)break;c=0==f[1].length?0:parseInt(f[1],10);var n=0==g[1].length?0:parseInt(g[1],10);c=goog.string.compareElements_(c,n)||goog.string.compareElements_(0==f[2].length,
  137. 0==g[2].length)||goog.string.compareElements_(f[2],g[2]);f=f[3];g=g[3]}while(0==c)}return c};goog.string.compareElements_=function(a,b){return a<b?-1:a>b?1:0};goog.string.hashCode=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};goog.string.uniqueStringCounter_=2147483648*Math.random()|0;goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++};
  138. goog.string.toNumber=function(a){var b=Number(a);return 0==b&&goog.string.isEmptyOrWhitespace(a)?NaN:b};goog.string.isLowerCamelCase=function(a){return/^[a-z]+([A-Z][a-z]*)*$/.test(a)};goog.string.isUpperCamelCase=function(a){return/^([A-Z][a-z]*)+$/.test(a)};goog.string.toCamelCase=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};goog.string.toSelectorCase=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};
  139. goog.string.toTitleCase=function(a,b){b=goog.isString(b)?goog.string.regExpEscape(b):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};goog.string.capitalize=function(a){return String(a.charAt(0)).toUpperCase()+String(a.substr(1)).toLowerCase()};goog.string.parseInt=function(a){isFinite(a)&&(a=String(a));return goog.isString(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN};
  140. goog.string.splitLimit=function(a,b,c){a=a.split(b);for(var d=[];0<c&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b));return d};goog.string.lastComponent=function(a,b){if(b)"string"==typeof b&&(b=[b]);else return a;for(var c=-1,d=0;d<b.length;d++)if(""!=b[d]){var e=a.lastIndexOf(b[d]);e>c&&(c=e)}return-1==c?a:a.slice(c+1)};
  141. goog.string.editDistance=function(a,b){var c=[],d=[];if(a==b)return 0;if(!a.length||!b.length)return Math.max(a.length,b.length);for(var e=0;e<b.length+1;e++)c[e]=e;for(e=0;e<a.length;e++){d[0]=e+1;for(var f=0;f<b.length;f++)d[f+1]=Math.min(d[f]+1,c[f+1]+1,c[f]+Number(a[e]!=b[f]));for(f=0;f<c.length;f++)c[f]=d[f]}return d[b.length]};goog.labs={};goog.labs.userAgent={};goog.labs.userAgent.util={};goog.labs.userAgent.util.getNativeUserAgentString_=function(){var a=goog.labs.userAgent.util.getNavigator_();return a&&(a=a.userAgent)?a:""};goog.labs.userAgent.util.getNavigator_=function(){return window.navigator};goog.labs.userAgent.util.userAgent_=goog.labs.userAgent.util.getNativeUserAgentString_();goog.labs.userAgent.util.setUserAgent=function(a){goog.labs.userAgent.util.userAgent_=a||goog.labs.userAgent.util.getNativeUserAgentString_()};
  142. goog.labs.userAgent.util.getUserAgent=function(){return goog.labs.userAgent.util.userAgent_};goog.labs.userAgent.util.matchUserAgent=function(a){var b=goog.labs.userAgent.util.getUserAgent();return goog.string.contains(b,a)};goog.labs.userAgent.util.matchUserAgentIgnoreCase=function(a){var b=goog.labs.userAgent.util.getUserAgent();return goog.string.caseInsensitiveContains(b,a)};
  143. goog.labs.userAgent.util.extractVersionTuples=function(a){for(var b=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,c=[],d;d=b.exec(a);)c.push([d[1],d[2],d[3]||void 0]);return c};goog.labs.userAgent.platform={};goog.labs.userAgent.platform.isAndroid=function(){return goog.labs.userAgent.util.matchUserAgent("Android")};goog.labs.userAgent.platform.isIpod=function(){return goog.labs.userAgent.util.matchUserAgent("iPod")};goog.labs.userAgent.platform.isIphone=function(){return goog.labs.userAgent.util.matchUserAgent("iPhone")&&!goog.labs.userAgent.util.matchUserAgent("iPod")&&!goog.labs.userAgent.util.matchUserAgent("iPad")};goog.labs.userAgent.platform.isIpad=function(){return goog.labs.userAgent.util.matchUserAgent("iPad")};
  144. goog.labs.userAgent.platform.isIos=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpad()||goog.labs.userAgent.platform.isIpod()};goog.labs.userAgent.platform.isMacintosh=function(){return goog.labs.userAgent.util.matchUserAgent("Macintosh")};goog.labs.userAgent.platform.isLinux=function(){return goog.labs.userAgent.util.matchUserAgent("Linux")};goog.labs.userAgent.platform.isWindows=function(){return goog.labs.userAgent.util.matchUserAgent("Windows")};
  145. goog.labs.userAgent.platform.isChromeOS=function(){return goog.labs.userAgent.util.matchUserAgent("CrOS")};
  146. goog.labs.userAgent.platform.getVersion=function(){var a=goog.labs.userAgent.util.getUserAgent(),b="";goog.labs.userAgent.platform.isWindows()?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):goog.labs.userAgent.platform.isIos()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):goog.labs.userAgent.platform.isMacintosh()?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):goog.labs.userAgent.platform.isAndroid()?(b=/Android\s+([^\);]+)(\)|;)/,
  147. b=(a=b.exec(a))&&a[1]):goog.labs.userAgent.platform.isChromeOS()&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&a[1]);return b||""};goog.labs.userAgent.platform.isVersionOrHigher=function(a){return 0<=goog.string.compareVersions(goog.labs.userAgent.platform.getVersion(),a)};goog.object={};goog.object.is=function(a,b){return a===b?0!==a||1/a===1/b:a!==a&&b!==b};goog.object.forEach=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};goog.object.filter=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};goog.object.map=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d};goog.object.some=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
  148. goog.object.every=function(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return!1;return!0};goog.object.getCount=function(a){var b=0,c;for(c in a)b++;return b};goog.object.getAnyKey=function(a){for(var b in a)return b};goog.object.getAnyValue=function(a){for(var b in a)return a[b]};goog.object.contains=function(a,b){return goog.object.containsValue(a,b)};goog.object.getValues=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
  149. goog.object.getKeys=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};goog.object.getValueByKeys=function(a,b){var c=goog.isArrayLike(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(null==a)return;a=a[d[c]]}return a};goog.object.containsKey=function(a,b){return null!==a&&b in a};goog.object.containsValue=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};goog.object.findKey=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
  150. goog.object.findValue=function(a,b,c){return(b=goog.object.findKey(a,b,c))&&a[b]};goog.object.isEmpty=function(a){for(var b in a)return!1;return!0};goog.object.clear=function(a){for(var b in a)delete a[b]};goog.object.remove=function(a,b){var c;(c=b in a)&&delete a[b];return c};goog.object.add=function(a,b,c){if(null!==a&&b in a)throw Error('The object already contains the key "'+b+'"');goog.object.set(a,b,c)};goog.object.get=function(a,b,c){return null!==a&&b in a?a[b]:c};
  151. goog.object.set=function(a,b,c){a[b]=c};goog.object.setIfUndefined=function(a,b,c){return b in a?a[b]:a[b]=c};goog.object.setWithReturnValueIfNotSet=function(a,b,c){if(b in a)return a[b];c=c();return a[b]=c};goog.object.equals=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(c in b)if(!(c in a))return!1;return!0};goog.object.clone=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
  152. goog.object.unsafeClone=function(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if(goog.isFunction(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=goog.object.unsafeClone(a[c]);return b}return a};goog.object.transpose=function(a){var b={},c;for(c in a)b[a[c]]=c;return b};goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
  153. goog.object.extend=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<goog.object.PROTOTYPE_FIELDS_.length;f++)c=goog.object.PROTOTYPE_FIELDS_[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
  154. goog.object.create=function(a){var b=arguments.length;if(1==b&&goog.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c};goog.object.createSet=function(a){var b=arguments.length;if(1==b&&goog.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};
  155. goog.object.createImmutableView=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};goog.object.isImmutableView=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};
  156. goog.object.getAllPropertyNames=function(a,b,c){if(!a)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return goog.object.getKeys(a);for(var d={};a&&(a!==Object.prototype||b)&&(a!==Function.prototype||c);){for(var e=Object.getOwnPropertyNames(a),f=0;f<e.length;f++)d[e[f]]=!0;a=Object.getPrototypeOf(a)}return goog.object.getKeys(d)};goog.labs.userAgent.browser={};goog.labs.userAgent.browser.matchOpera_=function(){return goog.labs.userAgent.util.matchUserAgent("Opera")};goog.labs.userAgent.browser.matchIE_=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")};goog.labs.userAgent.browser.matchEdge_=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")};goog.labs.userAgent.browser.matchFirefox_=function(){return goog.labs.userAgent.util.matchUserAgent("Firefox")};
  157. goog.labs.userAgent.browser.matchSafari_=function(){return goog.labs.userAgent.util.matchUserAgent("Safari")&&!(goog.labs.userAgent.browser.matchChrome_()||goog.labs.userAgent.browser.matchCoast_()||goog.labs.userAgent.browser.matchOpera_()||goog.labs.userAgent.browser.matchEdge_()||goog.labs.userAgent.browser.isSilk()||goog.labs.userAgent.util.matchUserAgent("Android"))};goog.labs.userAgent.browser.matchCoast_=function(){return goog.labs.userAgent.util.matchUserAgent("Coast")};
  158. goog.labs.userAgent.browser.matchIosWebview_=function(){return(goog.labs.userAgent.util.matchUserAgent("iPad")||goog.labs.userAgent.util.matchUserAgent("iPhone"))&&!goog.labs.userAgent.browser.matchSafari_()&&!goog.labs.userAgent.browser.matchChrome_()&&!goog.labs.userAgent.browser.matchCoast_()&&goog.labs.userAgent.util.matchUserAgent("AppleWebKit")};
  159. goog.labs.userAgent.browser.matchChrome_=function(){return(goog.labs.userAgent.util.matchUserAgent("Chrome")||goog.labs.userAgent.util.matchUserAgent("CriOS"))&&!goog.labs.userAgent.browser.matchEdge_()};goog.labs.userAgent.browser.matchAndroidBrowser_=function(){return goog.labs.userAgent.util.matchUserAgent("Android")&&!(goog.labs.userAgent.browser.isChrome()||goog.labs.userAgent.browser.isFirefox()||goog.labs.userAgent.browser.isOpera()||goog.labs.userAgent.browser.isSilk())};
  160. goog.labs.userAgent.browser.isOpera=goog.labs.userAgent.browser.matchOpera_;goog.labs.userAgent.browser.isIE=goog.labs.userAgent.browser.matchIE_;goog.labs.userAgent.browser.isEdge=goog.labs.userAgent.browser.matchEdge_;goog.labs.userAgent.browser.isFirefox=goog.labs.userAgent.browser.matchFirefox_;goog.labs.userAgent.browser.isSafari=goog.labs.userAgent.browser.matchSafari_;goog.labs.userAgent.browser.isCoast=goog.labs.userAgent.browser.matchCoast_;goog.labs.userAgent.browser.isIosWebview=goog.labs.userAgent.browser.matchIosWebview_;
  161. goog.labs.userAgent.browser.isChrome=goog.labs.userAgent.browser.matchChrome_;goog.labs.userAgent.browser.isAndroidBrowser=goog.labs.userAgent.browser.matchAndroidBrowser_;goog.labs.userAgent.browser.isSilk=function(){return goog.labs.userAgent.util.matchUserAgent("Silk")};
  162. goog.labs.userAgent.browser.getVersion=function(){function a(a){a=goog.array.find(a,d);return c[a]||""}var b=goog.labs.userAgent.util.getUserAgent();if(goog.labs.userAgent.browser.isIE())return goog.labs.userAgent.browser.getIEVersion_(b);b=goog.labs.userAgent.util.extractVersionTuples(b);var c={};goog.array.forEach(b,function(a){c[a[0]]=a[1]});var d=goog.partial(goog.object.containsKey,c);return goog.labs.userAgent.browser.isOpera()?a(["Version","Opera"]):goog.labs.userAgent.browser.isEdge()?a(["Edge"]):
  163. goog.labs.userAgent.browser.isChrome()?a(["Chrome","CriOS"]):(b=b[2])&&b[1]||""};goog.labs.userAgent.browser.isVersionOrHigher=function(a){return 0<=goog.string.compareVersions(goog.labs.userAgent.browser.getVersion(),a)};
  164. goog.labs.userAgent.browser.getIEVersion_=function(a){var b=/rv: *([\d\.]*)/.exec(a);if(b&&b[1])return b[1];b="";var c=/MSIE +([\d\.]+)/.exec(a);if(c&&c[1])if(a=/Trident\/(\d.\d)/.exec(a),"7.0"==c[1])if(a&&a[1])switch(a[1]){case "4.0":b="8.0";break;case "5.0":b="9.0";break;case "6.0":b="10.0";break;case "7.0":b="11.0"}else b="7.0";else b=c[1];return b};goog.reflect={};goog.reflect.object=function(a,b){return b};goog.reflect.objectProperty=function(a,b){return a};goog.reflect.sinkValue=function(a){goog.reflect.sinkValue[" "](a);return a};goog.reflect.sinkValue[" "]=goog.nullFunction;goog.reflect.canAccessProperty=function(a,b){try{return goog.reflect.sinkValue(a[b]),!0}catch(c){}return!1};goog.reflect.cache=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};goog.labs.userAgent.engine={};goog.labs.userAgent.engine.isPresto=function(){return goog.labs.userAgent.util.matchUserAgent("Presto")};goog.labs.userAgent.engine.isTrident=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")};goog.labs.userAgent.engine.isEdge=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")};
  165. goog.labs.userAgent.engine.isWebKit=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("WebKit")&&!goog.labs.userAgent.engine.isEdge()};goog.labs.userAgent.engine.isGecko=function(){return goog.labs.userAgent.util.matchUserAgent("Gecko")&&!goog.labs.userAgent.engine.isWebKit()&&!goog.labs.userAgent.engine.isTrident()&&!goog.labs.userAgent.engine.isEdge()};
  166. goog.labs.userAgent.engine.getVersion=function(){var a=goog.labs.userAgent.util.getUserAgent();if(a){a=goog.labs.userAgent.util.extractVersionTuples(a);var b=goog.labs.userAgent.engine.getEngineTuple_(a);if(b)return"Gecko"==b[0]?goog.labs.userAgent.engine.getVersionForKey_(a,"Firefox"):b[1];a=a[0];var c;if(a&&(c=a[2])&&(c=/Trident\/([^\s;]+)/.exec(c)))return c[1]}return""};
  167. goog.labs.userAgent.engine.getEngineTuple_=function(a){if(!goog.labs.userAgent.engine.isEdge())return a[1];for(var b=0;b<a.length;b++){var c=a[b];if("Edge"==c[0])return c}};goog.labs.userAgent.engine.isVersionOrHigher=function(a){return 0<=goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(),a)};goog.labs.userAgent.engine.getVersionForKey_=function(a,b){return(a=goog.array.find(a,function(a){return b==a[0]}))&&a[1]||""};goog.userAgent={};goog.userAgent.ASSUME_IE=!1;goog.userAgent.ASSUME_EDGE=!1;goog.userAgent.ASSUME_GECKO=!1;goog.userAgent.ASSUME_WEBKIT=!1;goog.userAgent.ASSUME_MOBILE_WEBKIT=!1;goog.userAgent.ASSUME_OPERA=!1;goog.userAgent.ASSUME_ANY_VERSION=!1;goog.userAgent.BROWSER_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_GECKO||goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_OPERA;goog.userAgent.getUserAgentString=function(){return goog.labs.userAgent.util.getUserAgent()};
  168. goog.userAgent.getNavigator=function(){return window.navigator};goog.userAgent.OPERA=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_OPERA:goog.labs.userAgent.browser.isOpera();goog.userAgent.IE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_IE:goog.labs.userAgent.browser.isIE();goog.userAgent.EDGE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_EDGE:goog.labs.userAgent.engine.isEdge();goog.userAgent.EDGE_OR_IE=goog.userAgent.EDGE||goog.userAgent.IE;
  169. goog.userAgent.GECKO=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_GECKO:goog.labs.userAgent.engine.isGecko();goog.userAgent.WEBKIT=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_MOBILE_WEBKIT:goog.labs.userAgent.engine.isWebKit();goog.userAgent.isMobile_=function(){return goog.userAgent.WEBKIT&&goog.labs.userAgent.util.matchUserAgent("Mobile")};goog.userAgent.MOBILE=goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.isMobile_();goog.userAgent.SAFARI=goog.userAgent.WEBKIT;
  170. goog.userAgent.determinePlatform_=function(){var a=goog.userAgent.getNavigator();return a&&a.platform||""};goog.userAgent.PLATFORM=goog.userAgent.determinePlatform_();goog.userAgent.ASSUME_MAC=!1;goog.userAgent.ASSUME_WINDOWS=!1;goog.userAgent.ASSUME_LINUX=!1;goog.userAgent.ASSUME_X11=!1;goog.userAgent.ASSUME_ANDROID=!1;goog.userAgent.ASSUME_IPHONE=!1;goog.userAgent.ASSUME_IPAD=!1;goog.userAgent.ASSUME_IPOD=!1;
  171. goog.userAgent.PLATFORM_KNOWN_=goog.userAgent.ASSUME_MAC||goog.userAgent.ASSUME_WINDOWS||goog.userAgent.ASSUME_LINUX||goog.userAgent.ASSUME_X11||goog.userAgent.ASSUME_ANDROID||goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD;goog.userAgent.MAC=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_MAC:goog.labs.userAgent.platform.isMacintosh();goog.userAgent.WINDOWS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_WINDOWS:goog.labs.userAgent.platform.isWindows();
  172. goog.userAgent.isLegacyLinux_=function(){return goog.labs.userAgent.platform.isLinux()||goog.labs.userAgent.platform.isChromeOS()};goog.userAgent.LINUX=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_LINUX:goog.userAgent.isLegacyLinux_();goog.userAgent.isX11_=function(){var a=goog.userAgent.getNavigator();return!!a&&goog.string.contains(a.appVersion||"","X11")};goog.userAgent.X11=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_X11:goog.userAgent.isX11_();
  173. goog.userAgent.ANDROID=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_ANDROID:goog.labs.userAgent.platform.isAndroid();goog.userAgent.IPHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE:goog.labs.userAgent.platform.isIphone();goog.userAgent.IPAD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad();goog.userAgent.IPOD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIpod();
  174. goog.userAgent.IOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIos();goog.userAgent.determineVersion_=function(){var a="",b=goog.userAgent.getVersionRegexResult_();b&&(a=b?b[1]:"");return goog.userAgent.IE&&(b=goog.userAgent.getDocumentMode_(),null!=b&&b>parseFloat(a))?String(b):a};
  175. goog.userAgent.getVersionRegexResult_=function(){var a=goog.userAgent.getUserAgentString();if(goog.userAgent.GECKO)return/rv:([^\);]+)(\)|;)/.exec(a);if(goog.userAgent.EDGE)return/Edge\/([\d\.]+)/.exec(a);if(goog.userAgent.IE)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(goog.userAgent.WEBKIT)return/WebKit\/(\S+)/.exec(a);if(goog.userAgent.OPERA)return/(?:Version)[ \/]?(\S+)/.exec(a)};goog.userAgent.getDocumentMode_=function(){var a=window.document;return a?a.documentMode:void 0};
  176. goog.userAgent.VERSION=goog.userAgent.determineVersion_();goog.userAgent.compare=function(a,b){return goog.string.compareVersions(a,b)};goog.userAgent.isVersionOrHigherCache_={};goog.userAgent.isVersionOrHigher=function(a){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,a,function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,a)})};goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher;
  177. goog.userAgent.isDocumentModeOrHigher=function(a){return Number(goog.userAgent.DOCUMENT_MODE)>=a};goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher;goog.userAgent.DOCUMENT_MODE=function(){var a=window.document,b=goog.userAgent.getDocumentMode_();if(a&&goog.userAgent.IE)return b||("CSS1Compat"==a.compatMode?parseInt(goog.userAgent.VERSION,10):5)}();goog.userAgent.product={};goog.userAgent.product.ASSUME_FIREFOX=!1;goog.userAgent.product.ASSUME_IPHONE=!1;goog.userAgent.product.ASSUME_IPAD=!1;goog.userAgent.product.ASSUME_ANDROID=!1;goog.userAgent.product.ASSUME_CHROME=!1;goog.userAgent.product.ASSUME_SAFARI=!1;
  178. goog.userAgent.product.PRODUCT_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_OPERA||goog.userAgent.product.ASSUME_FIREFOX||goog.userAgent.product.ASSUME_IPHONE||goog.userAgent.product.ASSUME_IPAD||goog.userAgent.product.ASSUME_ANDROID||goog.userAgent.product.ASSUME_CHROME||goog.userAgent.product.ASSUME_SAFARI;goog.userAgent.product.OPERA=goog.userAgent.OPERA;goog.userAgent.product.IE=goog.userAgent.IE;goog.userAgent.product.EDGE=goog.userAgent.EDGE;
  179. goog.userAgent.product.FIREFOX=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_FIREFOX:goog.labs.userAgent.browser.isFirefox();goog.userAgent.product.isIphoneOrIpod_=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpod()};goog.userAgent.product.IPHONE=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPHONE:goog.userAgent.product.isIphoneOrIpod_();
  180. goog.userAgent.product.IPAD=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad();goog.userAgent.product.ANDROID=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_ANDROID:goog.labs.userAgent.browser.isAndroidBrowser();goog.userAgent.product.CHROME=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_CHROME:goog.labs.userAgent.browser.isChrome();
  181. goog.userAgent.product.isSafariDesktop_=function(){return goog.labs.userAgent.browser.isSafari()&&!goog.labs.userAgent.platform.isIos()};goog.userAgent.product.SAFARI=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_SAFARI:goog.userAgent.product.isSafariDesktop_();goog.crypt.base64={};goog.crypt.base64.byteToCharMap_=null;goog.crypt.base64.charToByteMap_=null;goog.crypt.base64.byteToCharMapWebSafe_=null;goog.crypt.base64.ENCODED_VALS_BASE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";goog.crypt.base64.ENCODED_VALS=goog.crypt.base64.ENCODED_VALS_BASE+"+/=";goog.crypt.base64.ENCODED_VALS_WEBSAFE=goog.crypt.base64.ENCODED_VALS_BASE+"-_.";
  182. goog.crypt.base64.ASSUME_NATIVE_SUPPORT_=goog.userAgent.GECKO||goog.userAgent.WEBKIT&&!goog.userAgent.product.SAFARI||goog.userAgent.OPERA;goog.crypt.base64.HAS_NATIVE_ENCODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||"function"==typeof goog.global.btoa;goog.crypt.base64.HAS_NATIVE_DECODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&!goog.userAgent.IE&&"function"==typeof goog.global.atob;
  183. goog.crypt.base64.encodeByteArray=function(a,b){goog.asserts.assert(goog.isArrayLike(a),"encodeByteArray takes an array as a parameter");goog.crypt.base64.init_();b=b?goog.crypt.base64.byteToCharMapWebSafe_:goog.crypt.base64.byteToCharMap_;for(var c=[],d=0;d<a.length;d+=3){var e=a[d],f=d+1<a.length,g=f?a[d+1]:0,n=d+2<a.length,q=n?a[d+2]:0,G=e>>2;e=(e&3)<<4|g>>4;g=(g&15)<<2|q>>6;q&=63;n||(q=64,f||(g=64));c.push(b[G],b[e],b[g],b[q])}return c.join("")};
  184. goog.crypt.base64.encodeString=function(a,b){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!b?(console.log("btoa"),goog.global.btoa(a)):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(a),b)};goog.crypt.base64.decodeString=function(a,b){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!b)return goog.global.atob(a);var c="";goog.crypt.base64.decodeStringInternal_(a,function(a){c+=String.fromCharCode(a)});return c};
  185. goog.crypt.base64.decodeStringToByteArray=function(a,b){var c=[];goog.crypt.base64.decodeStringInternal_(a,function(a){c.push(a)});return c};
  186. goog.crypt.base64.decodeStringToUint8Array=function(a){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var b=a.length,c=0;"="===a[b-2]?c=2:"="===a[b-1]&&(c=1);var d=new Uint8Array(Math.ceil(3*b/4)-c),e=0;goog.crypt.base64.decodeStringInternal_(a,function(a){d[e++]=a});return d.subarray(0,e)};
  187. goog.crypt.base64.decodeStringInternal_=function(a,b){function c(b){for(;d<a.length;){var c=a.charAt(d++),e=goog.crypt.base64.charToByteMap_[c];if(null!=e)return e;if(!goog.string.isEmptyOrWhitespace(c))throw Error("Unknown base64 encoding at char: "+c);}return b}goog.crypt.base64.init_();for(var d=0;;){var e=c(-1),f=c(0),g=c(64),n=c(64);if(64===n&&-1===e)break;b(e<<2|f>>4);64!=g&&(b(f<<4&240|g>>2),64!=n&&b(g<<6&192|n))}};
  188. goog.crypt.base64.init_=function(){if(!goog.crypt.base64.byteToCharMap_){goog.crypt.base64.byteToCharMap_={};goog.crypt.base64.charToByteMap_={};goog.crypt.base64.byteToCharMapWebSafe_={};for(var a=0;a<goog.crypt.base64.ENCODED_VALS.length;a++)goog.crypt.base64.byteToCharMap_[a]=goog.crypt.base64.ENCODED_VALS.charAt(a),goog.crypt.base64.charToByteMap_[goog.crypt.base64.byteToCharMap_[a]]=a,goog.crypt.base64.byteToCharMapWebSafe_[a]=goog.crypt.base64.ENCODED_VALS_WEBSAFE.charAt(a),a>=goog.crypt.base64.ENCODED_VALS_BASE.length&&
  189. (goog.crypt.base64.charToByteMap_[goog.crypt.base64.ENCODED_VALS_WEBSAFE.charAt(a)]=a)}};jspb.utils={};jspb.utils.split64Low=0;jspb.utils.split64High=0;jspb.utils.splitUint64=function(a){var b=a>>>0;a=Math.floor((a-b)/jspb.BinaryConstants.TWO_TO_32)>>>0;jspb.utils.split64Low=b;jspb.utils.split64High=a};jspb.utils.splitInt64=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/jspb.BinaryConstants.TWO_TO_32);a>>>=0;b&&(a=~a>>>0,c=(~c>>>0)+1,4294967295<c&&(c=0,a++,4294967295<a&&(a=0)));jspb.utils.split64Low=c;jspb.utils.split64High=a};
  190. jspb.utils.splitZigzag64=function(a){var b=0>a;a=2*Math.abs(a);jspb.utils.splitUint64(a);a=jspb.utils.split64Low;var c=jspb.utils.split64High;b&&(0==a?0==c?c=a=4294967295:(c--,a=4294967295):a--);jspb.utils.split64Low=a;jspb.utils.split64High=c};
  191. jspb.utils.splitFloat32=function(a){var b=0>a?1:0;a=b?-a:a;if(0===a)0<1/a?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(a))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(a>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(b<<31|2139095040)>>>0;else if(a<jspb.BinaryConstants.FLOAT32_MIN)a=Math.round(a/Math.pow(2,-149)),jspb.utils.split64High=0,jspb.utils.split64Low=(b<<31|
  192. a)>>>0;else{var c=Math.floor(Math.log(a)/Math.LN2);a*=Math.pow(2,-c);a=Math.round(a*jspb.BinaryConstants.TWO_TO_23)&8388607;jspb.utils.split64High=0;jspb.utils.split64Low=(b<<31|c+127<<23|a)>>>0}};
  193. jspb.utils.splitFloat64=function(a){var b=0>a?1:0;a=b?-a:a;if(0===a)jspb.utils.split64High=0<1/a?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(a))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(a>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(b<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(a<jspb.BinaryConstants.FLOAT64_MIN){var c=a/Math.pow(2,-1074);a=c/jspb.BinaryConstants.TWO_TO_32;jspb.utils.split64High=(b<<31|a)>>>0;jspb.utils.split64Low=c>>>0}else{var d=
  194. Math.floor(Math.log(a)/Math.LN2);1024==d&&(d=1023);c=a*Math.pow(2,-d);a=c*jspb.BinaryConstants.TWO_TO_20&1048575;c=c*jspb.BinaryConstants.TWO_TO_52>>>0;jspb.utils.split64High=(b<<31|d+1023<<20|a)>>>0;jspb.utils.split64Low=c}};
  195. jspb.utils.splitHash64=function(a){var b=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),e=a.charCodeAt(3),f=a.charCodeAt(4),g=a.charCodeAt(5),n=a.charCodeAt(6);a=a.charCodeAt(7);jspb.utils.split64Low=b+(c<<8)+(d<<16)+(e<<24)>>>0;jspb.utils.split64High=f+(g<<8)+(n<<16)+(a<<24)>>>0};jspb.utils.joinUint64=function(a,b){return b*jspb.BinaryConstants.TWO_TO_32+a};
  196. jspb.utils.joinInt64=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=jspb.utils.joinUint64(a,b);return c?-a:a};jspb.utils.joinZigzag64=function(a,b){var c=a&1;a=(a>>>1|b<<31)>>>0;b>>>=1;c&&(a=a+1>>>0,0==a&&(b=b+1>>>0));a=jspb.utils.joinUint64(a,b);return c?-a:a};jspb.utils.joinFloat32=function(a,b){b=2*(a>>31)+1;var c=a>>>23&255;a&=8388607;return 255==c?a?NaN:Infinity*b:0==c?b*Math.pow(2,-149)*a:b*Math.pow(2,c-150)*(a+Math.pow(2,23))};
  197. jspb.utils.joinFloat64=function(a,b){var c=2*(b>>31)+1,d=b>>>20&2047;a=jspb.BinaryConstants.TWO_TO_32*(b&1048575)+a;return 2047==d?a?NaN:Infinity*c:0==d?c*Math.pow(2,-1074)*a:c*Math.pow(2,d-1075)*(a+jspb.BinaryConstants.TWO_TO_52)};jspb.utils.joinHash64=function(a,b){return String.fromCharCode(a>>>0&255,a>>>8&255,a>>>16&255,a>>>24&255,b>>>0&255,b>>>8&255,b>>>16&255,b>>>24&255)};jspb.utils.DIGITS="0123456789abcdef".split("");
  198. jspb.utils.joinUnsignedDecimalString=function(a,b){function c(a){for(var b=1E7,c=0;7>c;c++){b/=10;var d=a/b%10>>>0;if(0!=d||f)f=!0,g+=e[d]}}if(2097151>=b)return""+(jspb.BinaryConstants.TWO_TO_32*b+a);var d=(a>>>24|b<<8)>>>0&16777215;b=b>>16&65535;a=(a&16777215)+6777216*d+6710656*b;d+=8147497*b;b*=2;1E7<=a&&(d+=Math.floor(a/1E7),a%=1E7);1E7<=d&&(b+=Math.floor(d/1E7),d%=1E7);var e=jspb.utils.DIGITS,f=!1,g="";(b||f)&&c(b);(d||f)&&c(d);(a||f)&&c(a);return g};
  199. jspb.utils.joinSignedDecimalString=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b+(0==a?1:0)>>>0);a=jspb.utils.joinUnsignedDecimalString(a,b);return c?"-"+a:a};jspb.utils.hash64ToDecimalString=function(a,b){jspb.utils.splitHash64(a);a=jspb.utils.split64Low;var c=jspb.utils.split64High;return b?jspb.utils.joinSignedDecimalString(a,c):jspb.utils.joinUnsignedDecimalString(a,c)};
  200. jspb.utils.hash64ArrayToDecimalStrings=function(a,b){for(var c=Array(a.length),d=0;d<a.length;d++)c[d]=jspb.utils.hash64ToDecimalString(a[d],b);return c};jspb.utils.decimalStringToHash64=function(a){function b(a,b){for(var c=0;8>c&&(1!==a||0<b);c++)b=a*e[c]+b,e[c]=b&255,b>>>=8}function c(){for(var a=0;8>a;a++)e[a]=~e[a]&255}goog.asserts.assert(0<a.length);var d=!1;"-"===a[0]&&(d=!0,a=a.slice(1));for(var e=[0,0,0,0,0,0,0,0],f=0;f<a.length;f++)b(10,jspb.utils.DIGITS.indexOf(a[f]));d&&(c(),b(1,1));return goog.crypt.byteArrayToString(e)};
  201. jspb.utils.splitDecimalString=function(a){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(a))};jspb.utils.hash64ToHexString=function(a){var b=Array(18);b[0]="0";b[1]="x";for(var c=0;8>c;c++){var d=a.charCodeAt(7-c);b[2*c+2]=jspb.utils.DIGITS[d>>4];b[2*c+3]=jspb.utils.DIGITS[d&15]}return b.join("")};
  202. jspb.utils.hexStringToHash64=function(a){a=a.toLowerCase();goog.asserts.assert(18==a.length);goog.asserts.assert("0"==a[0]);goog.asserts.assert("x"==a[1]);for(var b="",c=0;8>c;c++){var d=jspb.utils.DIGITS.indexOf(a[2*c+2]),e=jspb.utils.DIGITS.indexOf(a[2*c+3]);b=String.fromCharCode(16*d+e)+b}return b};jspb.utils.hash64ToNumber=function(a,b){jspb.utils.splitHash64(a);a=jspb.utils.split64Low;var c=jspb.utils.split64High;return b?jspb.utils.joinInt64(a,c):jspb.utils.joinUint64(a,c)};
  203. jspb.utils.numberToHash64=function(a){jspb.utils.splitInt64(a);return jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.utils.countVarints=function(a,b,c){for(var d=0,e=b;e<c;e++)d+=a[e]>>7;return c-b-d};
  204. jspb.utils.countVarintFields=function(a,b,c,d){var e=0;d=8*d+jspb.BinaryConstants.WireType.VARINT;if(128>d)for(;b<c&&a[b++]==d;)for(e++;;){var f=a[b++];if(0==(f&128))break}else for(;b<c;){for(f=d;128<f;){if(a[b]!=(f&127|128))return e;b++;f>>=7}if(a[b++]!=f)break;for(e++;f=a[b++],0!=(f&128););}return e};jspb.utils.countFixedFields_=function(a,b,c,d,e){var f=0;if(128>d)for(;b<c&&a[b++]==d;)f++,b+=e;else for(;b<c;){for(var g=d;128<g;){if(a[b++]!=(g&127|128))return f;g>>=7}if(a[b++]!=g)break;f++;b+=e}return f};
  205. jspb.utils.countFixed32Fields=function(a,b,c,d){return jspb.utils.countFixedFields_(a,b,c,8*d+jspb.BinaryConstants.WireType.FIXED32,4)};jspb.utils.countFixed64Fields=function(a,b,c,d){return jspb.utils.countFixedFields_(a,b,c,8*d+jspb.BinaryConstants.WireType.FIXED64,8)};
  206. jspb.utils.countDelimitedFields=function(a,b,c,d){var e=0;for(d=8*d+jspb.BinaryConstants.WireType.DELIMITED;b<c;){for(var f=d;128<f;){if(a[b++]!=(f&127|128))return e;f>>=7}if(a[b++]!=f)break;e++;for(var g=0,n=1;f=a[b++],g+=(f&127)*n,n*=128,0!=(f&128););b+=g}return e};jspb.utils.debugBytesToTextFormat=function(a){var b='"';if(a){a=jspb.utils.byteSourceToUint8Array(a);for(var c=0;c<a.length;c++)b+="\\x",16>a[c]&&(b+="0"),b+=a[c].toString(16)}return b+'"'};
  207. jspb.utils.debugScalarToTextFormat=function(a){return goog.isString(a)?goog.string.quote(a):a.toString()};jspb.utils.stringToByteArray=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++){var d=a.charCodeAt(c);if(255<d)throw Error("Conversion error: string contains codepoint outside of byte range");b[c]=d}return b};
  208. jspb.utils.byteSourceToUint8Array=function(a){if(a.constructor===Uint8Array)return a;if(a.constructor===ArrayBuffer||a.constructor===Array)return new Uint8Array(a);if(a.constructor===String)return goog.crypt.base64.decodeStringToUint8Array(a);goog.asserts.fail("Type not convertible to Uint8Array.");return new Uint8Array(0)};jspb.BinaryIterator=function(a,b,c){this.elements_=this.nextMethod_=this.decoder_=null;this.cursor_=0;this.nextValue_=null;this.atEnd_=!0;this.init_(a,b,c)};jspb.BinaryIterator.prototype.init_=function(a,b,c){a&&b&&(this.decoder_=a,this.nextMethod_=b);this.elements_=c||null;this.cursor_=0;this.nextValue_=null;this.atEnd_=!this.decoder_&&!this.elements_;this.next()};jspb.BinaryIterator.instanceCache_=[];
  209. jspb.BinaryIterator.alloc=function(a,b,c){if(jspb.BinaryIterator.instanceCache_.length){var d=jspb.BinaryIterator.instanceCache_.pop();d.init_(a,b,c);return d}return new jspb.BinaryIterator(a,b,c)};jspb.BinaryIterator.prototype.free=function(){this.clear();100>jspb.BinaryIterator.instanceCache_.length&&jspb.BinaryIterator.instanceCache_.push(this)};
  210. jspb.BinaryIterator.prototype.clear=function(){this.decoder_&&this.decoder_.free();this.elements_=this.nextMethod_=this.decoder_=null;this.cursor_=0;this.nextValue_=null;this.atEnd_=!0};jspb.BinaryIterator.prototype.get=function(){return this.nextValue_};jspb.BinaryIterator.prototype.atEnd=function(){return this.atEnd_};
  211. jspb.BinaryIterator.prototype.next=function(){var a=this.nextValue_;this.decoder_?this.decoder_.atEnd()?(this.nextValue_=null,this.atEnd_=!0):this.nextValue_=this.nextMethod_.call(this.decoder_):this.elements_&&(this.cursor_==this.elements_.length?(this.nextValue_=null,this.atEnd_=!0):this.nextValue_=this.elements_[this.cursor_++]);return a};jspb.BinaryDecoder=function(a,b,c){this.bytes_=null;this.tempHigh_=this.tempLow_=this.cursor_=this.end_=this.start_=0;this.error_=!1;a&&this.setBlock(a,b,c)};
  212. jspb.BinaryDecoder.instanceCache_=[];jspb.BinaryDecoder.alloc=function(a,b,c){if(jspb.BinaryDecoder.instanceCache_.length){var d=jspb.BinaryDecoder.instanceCache_.pop();a&&d.setBlock(a,b,c);return d}return new jspb.BinaryDecoder(a,b,c)};jspb.BinaryDecoder.prototype.free=function(){this.clear();100>jspb.BinaryDecoder.instanceCache_.length&&jspb.BinaryDecoder.instanceCache_.push(this)};jspb.BinaryDecoder.prototype.clone=function(){return jspb.BinaryDecoder.alloc(this.bytes_,this.start_,this.end_-this.start_)};
  213. jspb.BinaryDecoder.prototype.clear=function(){this.bytes_=null;this.cursor_=this.end_=this.start_=0;this.error_=!1};jspb.BinaryDecoder.prototype.getBuffer=function(){return this.bytes_};jspb.BinaryDecoder.prototype.setBlock=function(a,b,c){this.bytes_=jspb.utils.byteSourceToUint8Array(a);this.start_=goog.isDef(b)?b:0;this.end_=goog.isDef(c)?this.start_+c:this.bytes_.length;this.cursor_=this.start_};jspb.BinaryDecoder.prototype.getEnd=function(){return this.end_};
  214. jspb.BinaryDecoder.prototype.setEnd=function(a){this.end_=a};jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_};jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_};jspb.BinaryDecoder.prototype.setCursor=function(a){this.cursor_=a};jspb.BinaryDecoder.prototype.advance=function(a){this.cursor_+=a;goog.asserts.assert(this.cursor_<=this.end_)};jspb.BinaryDecoder.prototype.atEnd=function(){return this.cursor_==this.end_};
  215. jspb.BinaryDecoder.prototype.pastEnd=function(){return this.cursor_>this.end_};jspb.BinaryDecoder.prototype.getError=function(){return this.error_||0>this.cursor_||this.cursor_>this.end_};
  216. jspb.BinaryDecoder.prototype.readSplitVarint64_=function(){for(var a,b=0,c,d=0;4>d;d++)if(a=this.bytes_[this.cursor_++],b|=(a&127)<<7*d,128>a){this.tempLow_=b>>>0;this.tempHigh_=0;return}a=this.bytes_[this.cursor_++];b|=(a&127)<<28;c=0|(a&127)>>4;if(128>a)this.tempLow_=b>>>0,this.tempHigh_=c>>>0;else{for(d=0;5>d;d++)if(a=this.bytes_[this.cursor_++],c|=(a&127)<<7*d+3,128>a){this.tempLow_=b>>>0;this.tempHigh_=c>>>0;return}goog.asserts.fail("Failed to read varint, encoding is invalid.");this.error_=
  217. !0}};jspb.BinaryDecoder.prototype.skipVarint=function(){for(;this.bytes_[this.cursor_]&128;)this.cursor_++;this.cursor_++};jspb.BinaryDecoder.prototype.unskipVarint=function(a){for(;128<a;)this.cursor_--,a>>>=7;this.cursor_--};
  218. jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var a=this.bytes_;var b=a[this.cursor_+0];var c=b&127;if(128>b)return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),c;b=a[this.cursor_+1];c|=(b&127)<<7;if(128>b)return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),c;b=a[this.cursor_+2];c|=(b&127)<<14;if(128>b)return this.cursor_+=3,goog.asserts.assert(this.cursor_<=this.end_),c;b=a[this.cursor_+3];c|=(b&127)<<21;if(128>b)return this.cursor_+=4,goog.asserts.assert(this.cursor_<=
  219. this.end_),c;b=a[this.cursor_+4];c|=(b&15)<<28;if(128>b)return this.cursor_+=5,goog.asserts.assert(this.cursor_<=this.end_),c>>>0;this.cursor_+=5;128<=a[this.cursor_++]&&128<=a[this.cursor_++]&&128<=a[this.cursor_++]&&128<=a[this.cursor_++]&&128<=a[this.cursor_++]&&goog.asserts.assert(!1);goog.asserts.assert(this.cursor_<=this.end_);return c};jspb.BinaryDecoder.prototype.readSignedVarint32=jspb.BinaryDecoder.prototype.readUnsignedVarint32;jspb.BinaryDecoder.prototype.readUnsignedVarint32String=function(){return this.readUnsignedVarint32().toString()};
  220. jspb.BinaryDecoder.prototype.readSignedVarint32String=function(){return this.readSignedVarint32().toString()};jspb.BinaryDecoder.prototype.readZigzagVarint32=function(){var a=this.readUnsignedVarint32();return a>>>1^-(a&1)};jspb.BinaryDecoder.prototype.readUnsignedVarint64=function(){this.readSplitVarint64_();return jspb.utils.joinUint64(this.tempLow_,this.tempHigh_)};
  221. jspb.BinaryDecoder.prototype.readUnsignedVarint64String=function(){this.readSplitVarint64_();return jspb.utils.joinUnsignedDecimalString(this.tempLow_,this.tempHigh_)};jspb.BinaryDecoder.prototype.readSignedVarint64=function(){this.readSplitVarint64_();return jspb.utils.joinInt64(this.tempLow_,this.tempHigh_)};jspb.BinaryDecoder.prototype.readSignedVarint64String=function(){this.readSplitVarint64_();return jspb.utils.joinSignedDecimalString(this.tempLow_,this.tempHigh_)};
  222. jspb.BinaryDecoder.prototype.readZigzagVarint64=function(){this.readSplitVarint64_();return jspb.utils.joinZigzag64(this.tempLow_,this.tempHigh_)};jspb.BinaryDecoder.prototype.readZigzagVarint64String=function(){return this.readZigzagVarint64().toString()};jspb.BinaryDecoder.prototype.readUint8=function(){var a=this.bytes_[this.cursor_+0];this.cursor_+=1;goog.asserts.assert(this.cursor_<=this.end_);return a};
  223. jspb.BinaryDecoder.prototype.readUint16=function(){var a=this.bytes_[this.cursor_+0],b=this.bytes_[this.cursor_+1];this.cursor_+=2;goog.asserts.assert(this.cursor_<=this.end_);return a<<0|b<<8};jspb.BinaryDecoder.prototype.readUint32=function(){var a=this.bytes_[this.cursor_+0],b=this.bytes_[this.cursor_+1],c=this.bytes_[this.cursor_+2],d=this.bytes_[this.cursor_+3];this.cursor_+=4;goog.asserts.assert(this.cursor_<=this.end_);return(a<<0|b<<8|c<<16|d<<24)>>>0};
  224. jspb.BinaryDecoder.prototype.readUint64=function(){var a=this.readUint32(),b=this.readUint32();return jspb.utils.joinUint64(a,b)};jspb.BinaryDecoder.prototype.readUint64String=function(){var a=this.readUint32(),b=this.readUint32();return jspb.utils.joinUnsignedDecimalString(a,b)};jspb.BinaryDecoder.prototype.readInt8=function(){var a=this.bytes_[this.cursor_+0];this.cursor_+=1;goog.asserts.assert(this.cursor_<=this.end_);return a<<24>>24};
  225. jspb.BinaryDecoder.prototype.readInt16=function(){var a=this.bytes_[this.cursor_+0],b=this.bytes_[this.cursor_+1];this.cursor_+=2;goog.asserts.assert(this.cursor_<=this.end_);return(a<<0|b<<8)<<16>>16};jspb.BinaryDecoder.prototype.readInt32=function(){var a=this.bytes_[this.cursor_+0],b=this.bytes_[this.cursor_+1],c=this.bytes_[this.cursor_+2],d=this.bytes_[this.cursor_+3];this.cursor_+=4;goog.asserts.assert(this.cursor_<=this.end_);return a<<0|b<<8|c<<16|d<<24};
  226. jspb.BinaryDecoder.prototype.readInt64=function(){var a=this.readUint32(),b=this.readUint32();return jspb.utils.joinInt64(a,b)};jspb.BinaryDecoder.prototype.readInt64String=function(){var a=this.readUint32(),b=this.readUint32();return jspb.utils.joinSignedDecimalString(a,b)};jspb.BinaryDecoder.prototype.readFloat=function(){var a=this.readUint32();return jspb.utils.joinFloat32(a,0)};
  227. jspb.BinaryDecoder.prototype.readDouble=function(){var a=this.readUint32(),b=this.readUint32();return jspb.utils.joinFloat64(a,b)};jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]};jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()};
  228. jspb.BinaryDecoder.prototype.readString=function(a){var b=this.bytes_,c=this.cursor_;a=c+a;for(var d=[],e="";c<a;){var f=b[c++];if(128>f)d.push(f);else if(192>f)continue;else if(224>f){var g=b[c++];d.push((f&31)<<6|g&63)}else if(240>f){g=b[c++];var n=b[c++];d.push((f&15)<<12|(g&63)<<6|n&63)}else if(248>f){g=b[c++];n=b[c++];var q=b[c++];f=(f&7)<<18|(g&63)<<12|(n&63)<<6|q&63;f-=65536;d.push((f>>10&1023)+55296,(f&1023)+56320)}8192<=d.length&&(e+=String.fromCharCode.apply(null,d),d.length=0)}e+=goog.crypt.byteArrayToString(d);
  229. this.cursor_=c;return e};jspb.BinaryDecoder.prototype.readStringWithLength=function(){var a=this.readUnsignedVarint32();return this.readString(a)};jspb.BinaryDecoder.prototype.readBytes=function(a){if(0>a||this.cursor_+a>this.bytes_.length)return this.error_=!0,goog.asserts.fail("Invalid byte length!"),new Uint8Array(0);var b=this.bytes_.subarray(this.cursor_,this.cursor_+a);this.cursor_+=a;goog.asserts.assert(this.cursor_<=this.end_);return b};
  230. jspb.BinaryDecoder.prototype.readVarintHash64=function(){this.readSplitVarint64_();return jspb.utils.joinHash64(this.tempLow_,this.tempHigh_)};jspb.BinaryDecoder.prototype.readFixedHash64=function(){var a=this.bytes_,b=this.cursor_,c=a[b+0],d=a[b+1],e=a[b+2],f=a[b+3],g=a[b+4],n=a[b+5],q=a[b+6];a=a[b+7];this.cursor_+=8;return String.fromCharCode(c,d,e,f,g,n,q,a)};jspb.BinaryReader=function(a,b,c){this.decoder_=jspb.BinaryDecoder.alloc(a,b,c);this.fieldCursor_=this.decoder_.getCursor();this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER;this.nextWireType_=jspb.BinaryConstants.WireType.INVALID;this.error_=!1;this.readCallbacks_=null};jspb.BinaryReader.instanceCache_=[];
  231. jspb.BinaryReader.alloc=function(a,b,c){if(jspb.BinaryReader.instanceCache_.length){var d=jspb.BinaryReader.instanceCache_.pop();a&&d.decoder_.setBlock(a,b,c);return d}return new jspb.BinaryReader(a,b,c)};jspb.BinaryReader.prototype.alloc=jspb.BinaryReader.alloc;
  232. jspb.BinaryReader.prototype.free=function(){this.decoder_.clear();this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER;this.nextWireType_=jspb.BinaryConstants.WireType.INVALID;this.error_=!1;this.readCallbacks_=null;100>jspb.BinaryReader.instanceCache_.length&&jspb.BinaryReader.instanceCache_.push(this)};jspb.BinaryReader.prototype.getFieldCursor=function(){return this.fieldCursor_};jspb.BinaryReader.prototype.getCursor=function(){return this.decoder_.getCursor()};
  233. jspb.BinaryReader.prototype.getBuffer=function(){return this.decoder_.getBuffer()};jspb.BinaryReader.prototype.getFieldNumber=function(){return this.nextField_};jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_};jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP};jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()};
  234. jspb.BinaryReader.prototype.setBlock=function(a,b,c){this.decoder_.setBlock(a,b,c);this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER;this.nextWireType_=jspb.BinaryConstants.WireType.INVALID};jspb.BinaryReader.prototype.reset=function(){this.decoder_.reset();this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER;this.nextWireType_=jspb.BinaryConstants.WireType.INVALID};jspb.BinaryReader.prototype.advance=function(a){this.decoder_.advance(a)};
  235. jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return goog.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var a=this.decoder_.readUnsignedVarint32(),b=a>>>3;a&=7;if(a!=jspb.BinaryConstants.WireType.VARINT&&a!=jspb.BinaryConstants.WireType.FIXED32&&a!=jspb.BinaryConstants.WireType.FIXED64&&a!=jspb.BinaryConstants.WireType.DELIMITED&&a!=jspb.BinaryConstants.WireType.START_GROUP&&a!=jspb.BinaryConstants.WireType.END_GROUP)return goog.asserts.fail("Invalid wire type"),
  236. this.error_=!0,!1;this.nextField_=b;this.nextWireType_=a;return!0};jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)};jspb.BinaryReader.prototype.skipMatchingFields=function(){var a=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==a;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()};
  237. jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(goog.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()};jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)goog.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var a=this.decoder_.readUnsignedVarint32();this.decoder_.advance(a)}};
  238. jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(goog.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)};jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(goog.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)};
  239. jspb.BinaryReader.prototype.skipGroup=function(){var a=[this.nextField_];do{if(!this.nextField()){goog.asserts.fail("Unmatched start-group tag: stream EOF");this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP)a.push(this.nextField_);else if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP&&this.nextField_!=a.pop()){goog.asserts.fail("Unmatched end-group tag");this.error_=!0;break}}while(0<a.length)};
  240. jspb.BinaryReader.prototype.skipField=function(){switch(this.nextWireType_){case jspb.BinaryConstants.WireType.VARINT:this.skipVarintField();break;case jspb.BinaryConstants.WireType.FIXED64:this.skipFixed64Field();break;case jspb.BinaryConstants.WireType.DELIMITED:this.skipDelimitedField();break;case jspb.BinaryConstants.WireType.FIXED32:this.skipFixed32Field();break;case jspb.BinaryConstants.WireType.START_GROUP:this.skipGroup();break;default:goog.asserts.fail("Invalid wire encoding for field.")}};
  241. jspb.BinaryReader.prototype.registerReadCallback=function(a,b){goog.isNull(this.readCallbacks_)&&(this.readCallbacks_={});goog.asserts.assert(!this.readCallbacks_[a]);this.readCallbacks_[a]=b};jspb.BinaryReader.prototype.runReadCallback=function(a){goog.asserts.assert(!goog.isNull(this.readCallbacks_));a=this.readCallbacks_[a];goog.asserts.assert(a);return a(this)};
  242. jspb.BinaryReader.prototype.readAny=function(a){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(a);var b=jspb.BinaryConstants.FieldType;switch(a){case b.DOUBLE:return this.readDouble();case b.FLOAT:return this.readFloat();case b.INT64:return this.readInt64();case b.UINT64:return this.readUint64();case b.INT32:return this.readInt32();case b.FIXED64:return this.readFixed64();case b.FIXED32:return this.readFixed32();case b.BOOL:return this.readBool();case b.STRING:return this.readString();
  243. case b.GROUP:goog.asserts.fail("Group field type not supported in readAny()");case b.MESSAGE:goog.asserts.fail("Message field type not supported in readAny()");case b.BYTES:return this.readBytes();case b.UINT32:return this.readUint32();case b.ENUM:return this.readEnum();case b.SFIXED32:return this.readSfixed32();case b.SFIXED64:return this.readSfixed64();case b.SINT32:return this.readSint32();case b.SINT64:return this.readSint64();case b.FHASH64:return this.readFixedHash64();case b.VHASH64:return this.readVarintHash64();
  244. default:goog.asserts.fail("Invalid field type in readAny()")}return 0};jspb.BinaryReader.prototype.readMessage=function(a,b){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var c=this.decoder_.getEnd(),d=this.decoder_.readUnsignedVarint32();d=this.decoder_.getCursor()+d;this.decoder_.setEnd(d);b(a,this);this.decoder_.setCursor(d);this.decoder_.setEnd(c)};
  245. jspb.BinaryReader.prototype.readGroup=function(a,b,c){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP);goog.asserts.assert(this.nextField_==a);c(b,this);this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(goog.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)};
  246. jspb.BinaryReader.prototype.getFieldDecoder=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var a=this.decoder_.readUnsignedVarint32(),b=this.decoder_.getCursor(),c=b+a;a=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),b,a);this.decoder_.setCursor(c);return a};jspb.BinaryReader.prototype.readInt32=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT);return this.decoder_.readSignedVarint32()};
  247. jspb.BinaryReader.prototype.readInt32String=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT);return this.decoder_.readSignedVarint32String()};jspb.BinaryReader.prototype.readInt64=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT);return this.decoder_.readSignedVarint64()};jspb.BinaryReader.prototype.readInt64String=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT);return this.decoder_.readSignedVarint64String()};
  248. jspb.BinaryReader.prototype.readUint32=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT);return this.decoder_.readUnsignedVarint32()};jspb.BinaryReader.prototype.readUint32String=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT);return this.decoder_.readUnsignedVarint32String()};jspb.BinaryReader.prototype.readUint64=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT);return this.decoder_.readUnsignedVarint64()};
  249. jspb.BinaryReader.prototype.readUint64String=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT);return this.decoder_.readUnsignedVarint64String()};jspb.BinaryReader.prototype.readSint32=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT);return this.decoder_.readZigzagVarint32()};jspb.BinaryReader.prototype.readSint64=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT);return this.decoder_.readZigzagVarint64()};
  250. jspb.BinaryReader.prototype.readSint64String=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT);return this.decoder_.readZigzagVarint64String()};jspb.BinaryReader.prototype.readFixed32=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32);return this.decoder_.readUint32()};jspb.BinaryReader.prototype.readFixed64=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64);return this.decoder_.readUint64()};
  251. jspb.BinaryReader.prototype.readFixed64String=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64);return this.decoder_.readUint64String()};jspb.BinaryReader.prototype.readSfixed32=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32);return this.decoder_.readInt32()};jspb.BinaryReader.prototype.readSfixed32String=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32);return this.decoder_.readInt32().toString()};
  252. jspb.BinaryReader.prototype.readSfixed64=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64);return this.decoder_.readInt64()};jspb.BinaryReader.prototype.readSfixed64String=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64);return this.decoder_.readInt64String()};jspb.BinaryReader.prototype.readFloat=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32);return this.decoder_.readFloat()};
  253. jspb.BinaryReader.prototype.readDouble=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64);return this.decoder_.readDouble()};jspb.BinaryReader.prototype.readBool=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT);return!!this.decoder_.readUnsignedVarint32()};jspb.BinaryReader.prototype.readEnum=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT);return this.decoder_.readSignedVarint64()};
  254. jspb.BinaryReader.prototype.readString=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var a=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(a)};jspb.BinaryReader.prototype.readBytes=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var a=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(a)};
  255. jspb.BinaryReader.prototype.readVarintHash64=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT);return this.decoder_.readVarintHash64()};jspb.BinaryReader.prototype.readFixedHash64=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64);return this.decoder_.readFixedHash64()};
  256. jspb.BinaryReader.prototype.readPackedField_=function(a){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var b=this.decoder_.readUnsignedVarint32();b=this.decoder_.getCursor()+b;for(var c=[];this.decoder_.getCursor()<b;)c.push(a.call(this.decoder_));return c};jspb.BinaryReader.prototype.readPackedInt32=function(){return this.readPackedField_(this.decoder_.readSignedVarint32)};jspb.BinaryReader.prototype.readPackedInt32String=function(){return this.readPackedField_(this.decoder_.readSignedVarint32String)};
  257. jspb.BinaryReader.prototype.readPackedInt64=function(){return this.readPackedField_(this.decoder_.readSignedVarint64)};jspb.BinaryReader.prototype.readPackedInt64String=function(){return this.readPackedField_(this.decoder_.readSignedVarint64String)};jspb.BinaryReader.prototype.readPackedUint32=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32)};jspb.BinaryReader.prototype.readPackedUint32String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32String)};
  258. jspb.BinaryReader.prototype.readPackedUint64=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64)};jspb.BinaryReader.prototype.readPackedUint64String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64String)};jspb.BinaryReader.prototype.readPackedSint32=function(){return this.readPackedField_(this.decoder_.readZigzagVarint32)};jspb.BinaryReader.prototype.readPackedSint64=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64)};
  259. jspb.BinaryReader.prototype.readPackedSint64String=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64String)};jspb.BinaryReader.prototype.readPackedFixed32=function(){return this.readPackedField_(this.decoder_.readUint32)};jspb.BinaryReader.prototype.readPackedFixed64=function(){return this.readPackedField_(this.decoder_.readUint64)};jspb.BinaryReader.prototype.readPackedFixed64String=function(){return this.readPackedField_(this.decoder_.readUint64String)};
  260. jspb.BinaryReader.prototype.readPackedSfixed32=function(){return this.readPackedField_(this.decoder_.readInt32)};jspb.BinaryReader.prototype.readPackedSfixed64=function(){return this.readPackedField_(this.decoder_.readInt64)};jspb.BinaryReader.prototype.readPackedSfixed64String=function(){return this.readPackedField_(this.decoder_.readInt64String)};jspb.BinaryReader.prototype.readPackedFloat=function(){return this.readPackedField_(this.decoder_.readFloat)};
  261. jspb.BinaryReader.prototype.readPackedDouble=function(){return this.readPackedField_(this.decoder_.readDouble)};jspb.BinaryReader.prototype.readPackedBool=function(){return this.readPackedField_(this.decoder_.readBool)};jspb.BinaryReader.prototype.readPackedEnum=function(){return this.readPackedField_(this.decoder_.readEnum)};jspb.BinaryReader.prototype.readPackedVarintHash64=function(){return this.readPackedField_(this.decoder_.readVarintHash64)};
  262. jspb.BinaryReader.prototype.readPackedFixedHash64=function(){return this.readPackedField_(this.decoder_.readFixedHash64)};jspb.Map=function(a,b){this.arr_=a;this.valueCtor_=b;this.map_={};this.arrClean=!0;0<this.arr_.length&&this.loadFromArray_()};jspb.Map.prototype.loadFromArray_=function(){for(var a=0;a<this.arr_.length;a++){var b=this.arr_[a],c=b[0];this.map_[c.toString()]=new jspb.Map.Entry_(c,b[1])}this.arrClean=!0};
  263. jspb.Map.prototype.toArray=function(){if(this.arrClean){if(this.valueCtor_){var a=this.map_,b;for(b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b].valueWrapper;c&&c.toArray()}}}else{this.arr_.length=0;a=this.stringKeys_();a.sort();for(b=0;b<a.length;b++){var d=this.map_[a[b]];(c=d.valueWrapper)&&c.toArray();this.arr_.push([d.key,d.value])}this.arrClean=!0}return this.arr_};
  264. jspb.Map.prototype.toObject=function(a,b){for(var c=this.toArray(),d=[],e=0;e<c.length;e++){var f=this.map_[c[e][0].toString()];this.wrapEntry_(f);var g=f.valueWrapper;g?(goog.asserts.assert(b),d.push([f.key,b(a,g)])):d.push([f.key,f.value])}return d};jspb.Map.fromObject=function(a,b,c){b=new jspb.Map([],b);for(var d=0;d<a.length;d++){var e=a[d][0],f=c(a[d][1]);b.set(e,f)}return b};jspb.Map.ArrayIteratorIterable_=function(a){this.idx_=0;this.arr_=a};
  265. jspb.Map.ArrayIteratorIterable_.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}};"undefined"!=typeof Symbol&&(jspb.Map.ArrayIteratorIterable_.prototype[Symbol.iterator]=function(){return this});jspb.Map.prototype.getLength=function(){return this.stringKeys_().length};jspb.Map.prototype.clear=function(){this.map_={};this.arrClean=!1};
  266. jspb.Map.prototype.del=function(a){a=a.toString();var b=this.map_.hasOwnProperty(a);delete this.map_[a];this.arrClean=!1;return b};jspb.Map.prototype.getEntryList=function(){var a=[],b=this.stringKeys_();b.sort();for(var c=0;c<b.length;c++){var d=this.map_[b[c]];a.push([d.key,d.value])}return a};jspb.Map.prototype.entries=function(){var a=[],b=this.stringKeys_();b.sort();for(var c=0;c<b.length;c++){var d=this.map_[b[c]];a.push([d.key,this.wrapEntry_(d)])}return new jspb.Map.ArrayIteratorIterable_(a)};
  267. jspb.Map.prototype.keys=function(){var a=[],b=this.stringKeys_();b.sort();for(var c=0;c<b.length;c++)a.push(this.map_[b[c]].key);return new jspb.Map.ArrayIteratorIterable_(a)};jspb.Map.prototype.values=function(){var a=[],b=this.stringKeys_();b.sort();for(var c=0;c<b.length;c++)a.push(this.wrapEntry_(this.map_[b[c]]));return new jspb.Map.ArrayIteratorIterable_(a)};
  268. jspb.Map.prototype.forEach=function(a,b){var c=this.stringKeys_();c.sort();for(var d=0;d<c.length;d++){var e=this.map_[c[d]];a.call(b,this.wrapEntry_(e),e.key,this)}};jspb.Map.prototype.set=function(a,b){var c=new jspb.Map.Entry_(a);this.valueCtor_?(c.valueWrapper=b,c.value=b.toArray()):c.value=b;this.map_[a.toString()]=c;this.arrClean=!1;return this};jspb.Map.prototype.wrapEntry_=function(a){return this.valueCtor_?(a.valueWrapper||(a.valueWrapper=new this.valueCtor_(a.value)),a.valueWrapper):a.value};
  269. jspb.Map.prototype.get=function(a){if(a=this.map_[a.toString()])return this.wrapEntry_(a)};jspb.Map.prototype.has=function(a){return a.toString()in this.map_};jspb.Map.prototype.serializeBinary=function(a,b,c,d,e){var f=this.stringKeys_();f.sort();for(var g=0;g<f.length;g++){var n=this.map_[f[g]];b.beginSubMessage(a);c.call(b,1,n.key);this.valueCtor_?d.call(b,2,this.wrapEntry_(n),e):d.call(b,2,n.value);b.endSubMessage()}};
  270. jspb.Map.deserializeBinary=function(a,b,c,d,e){for(var f=void 0,g=void 0;b.nextField()&&!b.isEndGroup();){var n=b.getFieldNumber();1==n?f=c.call(b):2==n&&(a.valueCtor_?(g=new a.valueCtor_,d.call(b,g,e)):g=d.call(b))}goog.asserts.assert(void 0!=f);goog.asserts.assert(void 0!=g);a.set(f,g)};jspb.Map.prototype.stringKeys_=function(){var a=this.map_,b=[],c;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b};
  271. jspb.Map.Entry_=function(a,b){this.key=a;this.value=b;this.valueWrapper=void 0};jspb.ExtensionFieldInfo=function(a,b,c,d,e){this.fieldIndex=a;this.fieldName=b;this.ctor=c;this.toObjectFn=d;this.isRepeated=e};jspb.ExtensionFieldBinaryInfo=function(a,b,c,d,e,f){this.fieldInfo=a;this.binaryReaderFn=b;this.binaryWriterFn=c;this.binaryMessageSerializeFn=d;this.binaryMessageDeserializeFn=e;this.isPacked=f};jspb.ExtensionFieldInfo.prototype.isMessageType=function(){return!!this.ctor};jspb.Message=function(){};jspb.Message.GENERATE_TO_OBJECT=!0;jspb.Message.GENERATE_FROM_OBJECT=!goog.DISALLOW_TEST_ONLY_CODE;
  272. jspb.Message.GENERATE_TO_STRING=!0;jspb.Message.ASSUME_LOCAL_ARRAYS=!1;jspb.Message.MINIMIZE_MEMORY_ALLOCATIONS=COMPILED;jspb.Message.SUPPORTS_UINT8ARRAY_="function"==typeof Uint8Array;jspb.Message.prototype.getJsPbMessageId=function(){return this.messageId_};jspb.Message.getIndex_=function(a,b){return b+a.arrayIndexOffset_};
  273. jspb.Message.initialize=function(a,b,c,d,e,f){a.wrappers_=jspb.Message.MINIMIZE_MEMORY_ALLOCATIONS?null:{};b||(b=c?[c]:[]);a.messageId_=c?String(c):void 0;a.arrayIndexOffset_=0===c?-1:0;a.array=b;jspb.Message.initPivotAndExtensionObject_(a,d);a.convertedFloatingPointFields_={};if(e)for(b=0;b<e.length;b++)c=e[b],c<a.pivot_?(c=jspb.Message.getIndex_(a,c),a.array[c]=a.array[c]||(jspb.Message.MINIMIZE_MEMORY_ALLOCATIONS?jspb.Message.EMPTY_LIST_SENTINEL_:[])):(jspb.Message.maybeInitEmptyExtensionObject_(a),
  274. a.extensionObject_[c]=a.extensionObject_[c]||(jspb.Message.MINIMIZE_MEMORY_ALLOCATIONS?jspb.Message.EMPTY_LIST_SENTINEL_:[]));f&&f.length&&goog.array.forEach(f,goog.partial(jspb.Message.computeOneofCase,a))};jspb.Message.EMPTY_LIST_SENTINEL_=goog.DEBUG&&Object.freeze?Object.freeze([]):[];jspb.Message.isArray_=function(a){return jspb.Message.ASSUME_LOCAL_ARRAYS?a instanceof Array:goog.isArray(a)};
  275. jspb.Message.initPivotAndExtensionObject_=function(a,b){if(a.array.length){var c=a.array.length-1,d=a.array[c];if(d&&"object"==typeof d&&!jspb.Message.isArray_(d)&&!(jspb.Message.SUPPORTS_UINT8ARRAY_&&d instanceof Uint8Array)){a.pivot_=c-a.arrayIndexOffset_;a.extensionObject_=d;return}}-1<b?(a.pivot_=b,a.extensionObject_=null):a.pivot_=Number.MAX_VALUE};jspb.Message.maybeInitEmptyExtensionObject_=function(a){var b=jspb.Message.getIndex_(a,a.pivot_);a.array[b]||(a.extensionObject_=a.array[b]={})};
  276. jspb.Message.toObjectList=function(a,b,c){for(var d=[],e=0;e<a.length;e++)d[e]=b.call(a[e],c,a[e]);return d};jspb.Message.toObjectExtension=function(a,b,c,d,e){for(var f in c){var g=c[f],n=d.call(a,g);if(null!=n){for(var q in g.fieldName)if(g.fieldName.hasOwnProperty(q))break;b[q]=g.toObjectFn?g.isRepeated?jspb.Message.toObjectList(n,g.toObjectFn,e):g.toObjectFn(e,n):n}}};
  277. jspb.Message.serializeBinaryExtensions=function(a,b,c,d){for(var e in c){var f=c[e],g=f.fieldInfo;if(!f.binaryWriterFn)throw Error("Message extension present that was generated without binary serialization support");var n=d.call(a,g);if(null!=n)if(g.isMessageType())if(f.binaryMessageSerializeFn)f.binaryWriterFn.call(b,g.fieldIndex,n,f.binaryMessageSerializeFn);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");
  278. else f.binaryWriterFn.call(b,g.fieldIndex,n)}};jspb.Message.readBinaryExtension=function(a,b,c,d,e){var f=c[b.getFieldNumber()];if(f){c=f.fieldInfo;if(!f.binaryReaderFn)throw Error("Deserializing extension whose generated code does not support binary format");if(c.isMessageType()){var g=new c.ctor;f.binaryReaderFn.call(b,g,f.binaryMessageDeserializeFn)}else g=f.binaryReaderFn.call(b);c.isRepeated&&!f.isPacked?(b=d.call(a,c))?b.push(g):e.call(a,c,[g]):e.call(a,c,g)}else b.skipField()};
  279. jspb.Message.getField=function(a,b){if(b<a.pivot_){b=jspb.Message.getIndex_(a,b);var c=a.array[b];return c===jspb.Message.EMPTY_LIST_SENTINEL_?a.array[b]=[]:c}if(a.extensionObject_)return c=a.extensionObject_[b],c===jspb.Message.EMPTY_LIST_SENTINEL_?a.extensionObject_[b]=[]:c};
  280. jspb.Message.getRepeatedField=function(a,b){if(b<a.pivot_){b=jspb.Message.getIndex_(a,b);var c=a.array[b];return c===jspb.Message.EMPTY_LIST_SENTINEL_?a.array[b]=[]:c}c=a.extensionObject_[b];return c===jspb.Message.EMPTY_LIST_SENTINEL_?a.extensionObject_[b]=[]:c};jspb.Message.getOptionalFloatingPointField=function(a,b){a=jspb.Message.getField(a,b);return null==a?a:+a};
  281. jspb.Message.getRepeatedFloatingPointField=function(a,b){var c=jspb.Message.getRepeatedField(a,b);a.convertedFloatingPointFields_||(a.convertedFloatingPointFields_={});if(!a.convertedFloatingPointFields_[b]){for(var d=0;d<c.length;d++)c[d]=+c[d];a.convertedFloatingPointFields_[b]=!0}return c};
  282. jspb.Message.bytesAsB64=function(a){if(null==a||goog.isString(a))return a;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&a instanceof Uint8Array)return goog.crypt.base64.encodeByteArray(a);goog.asserts.fail("Cannot coerce to b64 string: "+goog.typeOf(a));return null};jspb.Message.bytesAsU8=function(a){if(null==a||a instanceof Uint8Array)return a;if(goog.isString(a))return goog.crypt.base64.decodeStringToUint8Array(a);goog.asserts.fail("Cannot coerce to Uint8Array: "+goog.typeOf(a));return null};
  283. jspb.Message.bytesListAsB64=function(a){jspb.Message.assertConsistentTypes_(a);return!a.length||goog.isString(a[0])?a:goog.array.map(a,jspb.Message.bytesAsB64)};jspb.Message.bytesListAsU8=function(a){jspb.Message.assertConsistentTypes_(a);return!a.length||a[0]instanceof Uint8Array?a:goog.array.map(a,jspb.Message.bytesAsU8)};
  284. jspb.Message.assertConsistentTypes_=function(a){if(goog.DEBUG&&a&&1<a.length){var b=goog.typeOf(a[0]);goog.array.forEach(a,function(a){goog.typeOf(a)!=b&&goog.asserts.fail("Inconsistent type in JSPB repeated field array. Got "+goog.typeOf(a)+" expected "+b)})}};jspb.Message.getFieldWithDefault=function(a,b,c){a=jspb.Message.getField(a,b);return null==a?c:a};jspb.Message.getFieldProto3=jspb.Message.getFieldWithDefault;
  285. jspb.Message.getMapField=function(a,b,c,d){a.wrappers_||(a.wrappers_={});if(b in a.wrappers_)return a.wrappers_[b];if(!c)return c=jspb.Message.getField(a,b),c||(c=[],jspb.Message.setField(a,b,c)),a.wrappers_[b]=new jspb.Map(c,d)};jspb.Message.setField=function(a,b,c){b<a.pivot_?a.array[jspb.Message.getIndex_(a,b)]=c:(jspb.Message.maybeInitEmptyExtensionObject_(a),a.extensionObject_[b]=c)};jspb.Message.setProto3IntField=function(a,b,c){jspb.Message.setFieldIgnoringDefault_(a,b,c,0)};
  286. jspb.Message.setProto3FloatField=function(a,b,c){jspb.Message.setFieldIgnoringDefault_(a,b,c,0)};jspb.Message.setProto3BooleanField=function(a,b,c){jspb.Message.setFieldIgnoringDefault_(a,b,c,!1)};jspb.Message.setProto3StringField=function(a,b,c){jspb.Message.setFieldIgnoringDefault_(a,b,c,"")};jspb.Message.setProto3BytesField=function(a,b,c){jspb.Message.setFieldIgnoringDefault_(a,b,c,"")};jspb.Message.setProto3EnumField=function(a,b,c){jspb.Message.setFieldIgnoringDefault_(a,b,c,0)};
  287. jspb.Message.setFieldIgnoringDefault_=function(a,b,c,d){c!=d?jspb.Message.setField(a,b,c):a.array[jspb.Message.getIndex_(a,b)]=null};jspb.Message.addToRepeatedField=function(a,b,c,d){a=jspb.Message.getRepeatedField(a,b);void 0!=d?a.splice(d,0,c):a.push(c)};jspb.Message.setOneofField=function(a,b,c,d){(c=jspb.Message.computeOneofCase(a,c))&&c!==b&&void 0!==d&&(a.wrappers_&&c in a.wrappers_&&(a.wrappers_[c]=void 0),jspb.Message.setField(a,c,void 0));jspb.Message.setField(a,b,d)};
  288. jspb.Message.computeOneofCase=function(a,b){var c,d;goog.array.forEach(b,function(b){var e=jspb.Message.getField(a,b);goog.isDefAndNotNull(e)&&(c=b,d=e,jspb.Message.setField(a,b,void 0))});return c?(jspb.Message.setField(a,c,d),c):0};jspb.Message.getWrapperField=function(a,b,c,d){a.wrappers_||(a.wrappers_={});if(!a.wrappers_[c]){var e=jspb.Message.getField(a,c);if(d||e)a.wrappers_[c]=new b(e)}return a.wrappers_[c]};
  289. jspb.Message.getRepeatedWrapperField=function(a,b,c){jspb.Message.wrapRepeatedField_(a,b,c);b=a.wrappers_[c];b==jspb.Message.EMPTY_LIST_SENTINEL_&&(b=a.wrappers_[c]=[]);return b};jspb.Message.wrapRepeatedField_=function(a,b,c){a.wrappers_||(a.wrappers_={});if(!a.wrappers_[c]){for(var d=jspb.Message.getRepeatedField(a,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a.wrappers_[c]=e}};
  290. jspb.Message.setWrapperField=function(a,b,c){a.wrappers_||(a.wrappers_={});var d=c?c.toArray():c;a.wrappers_[b]=c;jspb.Message.setField(a,b,d)};jspb.Message.setOneofWrapperField=function(a,b,c,d){a.wrappers_||(a.wrappers_={});var e=d?d.toArray():d;a.wrappers_[b]=d;jspb.Message.setOneofField(a,b,c,e)};jspb.Message.setRepeatedWrapperField=function(a,b,c){a.wrappers_||(a.wrappers_={});c=c||[];for(var d=[],e=0;e<c.length;e++)d[e]=c[e].toArray();a.wrappers_[b]=c;jspb.Message.setField(a,b,d)};
  291. jspb.Message.addToRepeatedWrapperField=function(a,b,c,d,e){jspb.Message.wrapRepeatedField_(a,d,b);var f=a.wrappers_[b];f||(f=a.wrappers_[b]=[]);c=c?c:new d;a=jspb.Message.getRepeatedField(a,b);void 0!=e?(f.splice(e,0,c),a.splice(e,0,c.toArray())):(f.push(c),a.push(c.toArray()));return c};jspb.Message.toMap=function(a,b,c,d){for(var e={},f=0;f<a.length;f++)e[b.call(a[f])]=c?c.call(a[f],d,a[f]):a[f];return e};
  292. jspb.Message.prototype.syncMapFields_=function(){if(this.wrappers_)for(var a in this.wrappers_){var b=this.wrappers_[a];if(goog.isArray(b))for(var c=0;c<b.length;c++)b[c]&&b[c].toArray();else b&&b.toArray()}};jspb.Message.prototype.toArray=function(){this.syncMapFields_();return this.array};jspb.Message.GENERATE_TO_STRING&&(jspb.Message.prototype.toString=function(){this.syncMapFields_();return this.array.toString()});
  293. jspb.Message.prototype.getExtension=function(a){if(this.extensionObject_){this.wrappers_||(this.wrappers_={});var b=a.fieldIndex;if(a.isRepeated){if(a.isMessageType())return this.wrappers_[b]||(this.wrappers_[b]=goog.array.map(this.extensionObject_[b]||[],function(b){return new a.ctor(b)})),this.wrappers_[b]}else if(a.isMessageType())return!this.wrappers_[b]&&this.extensionObject_[b]&&(this.wrappers_[b]=new a.ctor(this.extensionObject_[b])),this.wrappers_[b];return this.extensionObject_[b]}};
  294. jspb.Message.prototype.setExtension=function(a,b){this.wrappers_||(this.wrappers_={});jspb.Message.maybeInitEmptyExtensionObject_(this);var c=a.fieldIndex;a.isRepeated?(b=b||[],a.isMessageType()?(this.wrappers_[c]=b,this.extensionObject_[c]=goog.array.map(b,function(a){return a.toArray()})):this.extensionObject_[c]=b):a.isMessageType()?(this.wrappers_[c]=b,this.extensionObject_[c]=b?b.toArray():b):this.extensionObject_[c]=b;return this};
  295. jspb.Message.difference=function(a,b){if(!(a instanceof b.constructor))throw Error("Messages have different types.");var c=a.toArray();b=b.toArray();var d=[],e=0,f=c.length>b.length?c.length:b.length;a.getJsPbMessageId()&&(d[0]=a.getJsPbMessageId(),e=1);for(;e<f;e++)jspb.Message.compareFields(c[e],b[e])||(d[e]=b[e]);return new a.constructor(d)};jspb.Message.equals=function(a,b){return a==b||!(!a||!b)&&a instanceof b.constructor&&jspb.Message.compareFields(a.toArray(),b.toArray())};
  296. jspb.Message.compareExtensions=function(a,b){a=a||{};b=b||{};var c={},d;for(d in a)c[d]=0;for(d in b)c[d]=0;for(d in c)if(!jspb.Message.compareFields(a[d],b[d]))return!1;return!0};
  297. jspb.Message.compareFields=function(a,b){if(a==b)return!0;if(!goog.isObject(a)||!goog.isObject(b)||a.constructor!=b.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&a.constructor===Uint8Array){if(a.length!=b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}if(a.constructor===Array){var d=void 0,e=void 0,f=Math.max(a.length,b.length);for(c=0;c<f;c++){var g=a[c],n=b[c];g&&g.constructor==Object&&(goog.asserts.assert(void 0===d),goog.asserts.assert(c===a.length-1),
  298. d=g,g=void 0);n&&n.constructor==Object&&(goog.asserts.assert(void 0===e),goog.asserts.assert(c===b.length-1),e=n,n=void 0);if(!jspb.Message.compareFields(g,n))return!1}return d||e?(d=d||{},e=e||{},jspb.Message.compareExtensions(d,e)):!0}if(a.constructor===Object)return jspb.Message.compareExtensions(a,b);throw Error("Invalid type in JSPB array");};jspb.Message.prototype.cloneMessage=function(){return jspb.Message.cloneMessage(this)};jspb.Message.prototype.clone=function(){return jspb.Message.cloneMessage(this)};
  299. jspb.Message.clone=function(a){return jspb.Message.cloneMessage(a)};jspb.Message.cloneMessage=function(a){return new a.constructor(jspb.Message.clone_(a.toArray()))};
  300. jspb.Message.copyInto=function(a,b){goog.asserts.assertInstanceof(a,jspb.Message);goog.asserts.assertInstanceof(b,jspb.Message);goog.asserts.assert(a.constructor==b.constructor,"Copy source and target message should have the same type.");a=jspb.Message.clone(a);for(var c=b.toArray(),d=a.toArray(),e=c.length=0;e<d.length;e++)c[e]=d[e];b.wrappers_=a.wrappers_;b.extensionObject_=a.extensionObject_};
  301. jspb.Message.clone_=function(a){var b;if(goog.isArray(a)){for(var c=Array(a.length),d=0;d<a.length;d++)null!=(b=a[d])&&(c[d]="object"==typeof b?jspb.Message.clone_(b):b);return c}if(jspb.Message.SUPPORTS_UINT8ARRAY_&&a instanceof Uint8Array)return new Uint8Array(a);c={};for(d in a)null!=(b=a[d])&&(c[d]="object"==typeof b?jspb.Message.clone_(b):b);return c};jspb.Message.registerMessageType=function(a,b){jspb.Message.registry_[a]=b;b.messageId=a};jspb.Message.registry_={};
  302. jspb.Message.messageSetExtensions={};jspb.Message.messageSetExtensionsBinary={};jspb.arith={};jspb.arith.UInt64=function(a,b){this.lo=a;this.hi=b};jspb.arith.UInt64.prototype.cmp=function(a){return this.hi<a.hi||this.hi==a.hi&&this.lo<a.lo?-1:this.hi==a.hi&&this.lo==a.lo?0:1};jspb.arith.UInt64.prototype.rightShift=function(){return new jspb.arith.UInt64((this.lo>>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)};jspb.arith.UInt64.prototype.leftShift=function(){return new jspb.arith.UInt64(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)};
  303. jspb.arith.UInt64.prototype.msb=function(){return!!(this.hi&2147483648)};jspb.arith.UInt64.prototype.lsb=function(){return!!(this.lo&1)};jspb.arith.UInt64.prototype.zero=function(){return 0==this.lo&&0==this.hi};jspb.arith.UInt64.prototype.add=function(a){return new jspb.arith.UInt64((this.lo+a.lo&4294967295)>>>0>>>0,((this.hi+a.hi&4294967295)>>>0)+(4294967296<=this.lo+a.lo?1:0)>>>0)};
  304. jspb.arith.UInt64.prototype.sub=function(a){return new jspb.arith.UInt64((this.lo-a.lo&4294967295)>>>0>>>0,((this.hi-a.hi&4294967295)>>>0)-(0>this.lo-a.lo?1:0)>>>0)};jspb.arith.UInt64.mul32x32=function(a,b){var c=a&65535;a>>>=16;var d=b&65535,e=b>>>16;b=c*d+65536*(c*e&65535)+65536*(a*d&65535);for(c=a*e+(c*e>>>16)+(a*d>>>16);4294967296<=b;)b-=4294967296,c+=1;return new jspb.arith.UInt64(b>>>0,c>>>0)};
  305. jspb.arith.UInt64.prototype.mul=function(a){var b=jspb.arith.UInt64.mul32x32(this.lo,a);a=jspb.arith.UInt64.mul32x32(this.hi,a);a.hi=a.lo;a.lo=0;return b.add(a)};
  306. jspb.arith.UInt64.prototype.div=function(a){if(0==a)return[];var b=new jspb.arith.UInt64(0,0),c=new jspb.arith.UInt64(this.lo,this.hi);a=new jspb.arith.UInt64(a,0);for(var d=new jspb.arith.UInt64(1,0);!a.msb();)a=a.leftShift(),d=d.leftShift();for(;!d.zero();)0>=a.cmp(c)&&(b=b.add(d),c=c.sub(a)),a=a.rightShift(),d=d.rightShift();return[b,c]};jspb.arith.UInt64.prototype.toString=function(){for(var a="",b=this;!b.zero();){b=b.div(10);var c=b[0];a=b[1].lo+a;b=c}""==a&&(a="0");return a};
  307. jspb.arith.UInt64.fromString=function(a){for(var b=new jspb.arith.UInt64(0,0),c=new jspb.arith.UInt64(0,0),d=0;d<a.length;d++){if("0">a[d]||"9"<a[d])return null;var e=parseInt(a[d],10);c.lo=e;b=b.mul(10).add(c)}return b};jspb.arith.UInt64.prototype.clone=function(){return new jspb.arith.UInt64(this.lo,this.hi)};jspb.arith.Int64=function(a,b){this.lo=a;this.hi=b};
  308. jspb.arith.Int64.prototype.add=function(a){return new jspb.arith.Int64((this.lo+a.lo&4294967295)>>>0>>>0,((this.hi+a.hi&4294967295)>>>0)+(4294967296<=this.lo+a.lo?1:0)>>>0)};jspb.arith.Int64.prototype.sub=function(a){return new jspb.arith.Int64((this.lo-a.lo&4294967295)>>>0>>>0,((this.hi-a.hi&4294967295)>>>0)-(0>this.lo-a.lo?1:0)>>>0)};jspb.arith.Int64.prototype.clone=function(){return new jspb.arith.Int64(this.lo,this.hi)};
  309. jspb.arith.Int64.prototype.toString=function(){var a=0!=(this.hi&2147483648),b=new jspb.arith.UInt64(this.lo,this.hi);a&&(b=(new jspb.arith.UInt64(0,0)).sub(b));return(a?"-":"")+b.toString()};jspb.arith.Int64.fromString=function(a){var b=0<a.length&&"-"==a[0];b&&(a=a.substring(1));a=jspb.arith.UInt64.fromString(a);if(null===a)return null;b&&(a=(new jspb.arith.UInt64(0,0)).sub(a));return new jspb.arith.Int64(a.lo,a.hi)};jspb.BinaryEncoder=function(){this.buffer_=[]};jspb.BinaryEncoder.prototype.length=function(){return this.buffer_.length};jspb.BinaryEncoder.prototype.end=function(){var a=this.buffer_;this.buffer_=[];return a};
  310. jspb.BinaryEncoder.prototype.writeSplitVarint64=function(a,b){goog.asserts.assert(a==Math.floor(a));goog.asserts.assert(b==Math.floor(b));goog.asserts.assert(0<=a&&a<jspb.BinaryConstants.TWO_TO_32);for(goog.asserts.assert(0<=b&&b<jspb.BinaryConstants.TWO_TO_32);0<b||127<a;)this.buffer_.push(a&127|128),a=(a>>>7|b<<25)>>>0,b>>>=7;this.buffer_.push(a)};
  311. jspb.BinaryEncoder.prototype.writeSplitFixed64=function(a,b){goog.asserts.assert(a==Math.floor(a));goog.asserts.assert(b==Math.floor(b));goog.asserts.assert(0<=a&&a<jspb.BinaryConstants.TWO_TO_32);goog.asserts.assert(0<=b&&b<jspb.BinaryConstants.TWO_TO_32);this.writeUint32(a);this.writeUint32(b)};
  312. jspb.BinaryEncoder.prototype.writeUnsignedVarint32=function(a){goog.asserts.assert(a==Math.floor(a));for(goog.asserts.assert(0<=a&&a<jspb.BinaryConstants.TWO_TO_32);127<a;)this.buffer_.push(a&127|128),a>>>=7;this.buffer_.push(a)};
  313. jspb.BinaryEncoder.prototype.writeSignedVarint32=function(a){goog.asserts.assert(a==Math.floor(a));goog.asserts.assert(a>=-jspb.BinaryConstants.TWO_TO_31&&a<jspb.BinaryConstants.TWO_TO_31);if(0<=a)this.writeUnsignedVarint32(a);else{for(var b=0;9>b;b++)this.buffer_.push(a&127|128),a>>=7;this.buffer_.push(1)}};
  314. jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(a){goog.asserts.assert(a==Math.floor(a));goog.asserts.assert(0<=a&&a<jspb.BinaryConstants.TWO_TO_64);jspb.utils.splitInt64(a);this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)};
  315. jspb.BinaryEncoder.prototype.writeSignedVarint64=function(a){goog.asserts.assert(a==Math.floor(a));goog.asserts.assert(a>=-jspb.BinaryConstants.TWO_TO_63&&a<jspb.BinaryConstants.TWO_TO_63);jspb.utils.splitInt64(a);this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)};
  316. jspb.BinaryEncoder.prototype.writeZigzagVarint32=function(a){goog.asserts.assert(a==Math.floor(a));goog.asserts.assert(a>=-jspb.BinaryConstants.TWO_TO_31&&a<jspb.BinaryConstants.TWO_TO_31);this.writeUnsignedVarint32((a<<1^a>>31)>>>0)};jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(a){goog.asserts.assert(a==Math.floor(a));goog.asserts.assert(a>=-jspb.BinaryConstants.TWO_TO_63&&a<jspb.BinaryConstants.TWO_TO_63);jspb.utils.splitZigzag64(a);this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)};
  317. jspb.BinaryEncoder.prototype.writeZigzagVarint64String=function(a){this.writeZigzagVarint64(parseInt(a,10))};jspb.BinaryEncoder.prototype.writeUint8=function(a){goog.asserts.assert(a==Math.floor(a));goog.asserts.assert(0<=a&&256>a);this.buffer_.push(a>>>0&255)};jspb.BinaryEncoder.prototype.writeUint16=function(a){goog.asserts.assert(a==Math.floor(a));goog.asserts.assert(0<=a&&65536>a);this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255)};
  318. jspb.BinaryEncoder.prototype.writeUint32=function(a){goog.asserts.assert(a==Math.floor(a));goog.asserts.assert(0<=a&&a<jspb.BinaryConstants.TWO_TO_32);this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255);this.buffer_.push(a>>>16&255);this.buffer_.push(a>>>24&255)};jspb.BinaryEncoder.prototype.writeUint64=function(a){goog.asserts.assert(a==Math.floor(a));goog.asserts.assert(0<=a&&a<jspb.BinaryConstants.TWO_TO_64);jspb.utils.splitUint64(a);this.writeUint32(jspb.utils.split64Low);this.writeUint32(jspb.utils.split64High)};
  319. jspb.BinaryEncoder.prototype.writeInt8=function(a){goog.asserts.assert(a==Math.floor(a));goog.asserts.assert(-128<=a&&128>a);this.buffer_.push(a>>>0&255)};jspb.BinaryEncoder.prototype.writeInt16=function(a){goog.asserts.assert(a==Math.floor(a));goog.asserts.assert(-32768<=a&&32768>a);this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255)};
  320. jspb.BinaryEncoder.prototype.writeInt32=function(a){goog.asserts.assert(a==Math.floor(a));goog.asserts.assert(a>=-jspb.BinaryConstants.TWO_TO_31&&a<jspb.BinaryConstants.TWO_TO_31);this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255);this.buffer_.push(a>>>16&255);this.buffer_.push(a>>>24&255)};
  321. jspb.BinaryEncoder.prototype.writeInt64=function(a){goog.asserts.assert(a==Math.floor(a));goog.asserts.assert(a>=-jspb.BinaryConstants.TWO_TO_63&&a<jspb.BinaryConstants.TWO_TO_63);jspb.utils.splitInt64(a);this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)};
  322. jspb.BinaryEncoder.prototype.writeInt64String=function(a){goog.asserts.assert(a==Math.floor(a));goog.asserts.assert(+a>=-jspb.BinaryConstants.TWO_TO_63&&+a<jspb.BinaryConstants.TWO_TO_63);jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(a));this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeFloat=function(a){goog.asserts.assert(a>=-jspb.BinaryConstants.FLOAT32_MAX&&a<=jspb.BinaryConstants.FLOAT32_MAX);jspb.utils.splitFloat32(a);this.writeUint32(jspb.utils.split64Low)};
  323. jspb.BinaryEncoder.prototype.writeDouble=function(a){goog.asserts.assert(a>=-jspb.BinaryConstants.FLOAT64_MAX&&a<=jspb.BinaryConstants.FLOAT64_MAX);jspb.utils.splitFloat64(a);this.writeUint32(jspb.utils.split64Low);this.writeUint32(jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeBool=function(a){goog.asserts.assert(goog.isBoolean(a)||goog.isNumber(a));this.buffer_.push(a?1:0)};
  324. jspb.BinaryEncoder.prototype.writeEnum=function(a){goog.asserts.assert(a==Math.floor(a));goog.asserts.assert(a>=-jspb.BinaryConstants.TWO_TO_31&&a<jspb.BinaryConstants.TWO_TO_31);this.writeSignedVarint32(a)};jspb.BinaryEncoder.prototype.writeBytes=function(a){this.buffer_.push.apply(this.buffer_,a)};jspb.BinaryEncoder.prototype.writeVarintHash64=function(a){jspb.utils.splitHash64(a);this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)};
  325. jspb.BinaryEncoder.prototype.writeFixedHash64=function(a){jspb.utils.splitHash64(a);this.writeUint32(jspb.utils.split64Low);this.writeUint32(jspb.utils.split64High)};
  326. jspb.BinaryEncoder.prototype.writeString=function(a){for(var b=this.buffer_.length,c=0;c<a.length;c++){var d=a.charCodeAt(c);if(128>d)this.buffer_.push(d);else if(2048>d)this.buffer_.push(d>>6|192),this.buffer_.push(d&63|128);else if(65536>d)if(55296<=d&&56319>=d&&c+1<a.length){var e=a.charCodeAt(c+1);56320<=e&&57343>=e&&(d=1024*(d-55296)+e-56320+65536,this.buffer_.push(d>>18|240),this.buffer_.push(d>>12&63|128),this.buffer_.push(d>>6&63|128),this.buffer_.push(d&63|128),c++)}else this.buffer_.push(d>>
  327. 12|224),this.buffer_.push(d>>6&63|128),this.buffer_.push(d&63|128)}return this.buffer_.length-b};jspb.BinaryWriter=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new jspb.BinaryEncoder;this.bookmarks_=[]};jspb.BinaryWriter.prototype.appendUint8Array_=function(a){var b=this.encoder_.end();this.blocks_.push(b);this.blocks_.push(a);this.totalLength_+=b.length+a.length};
  328. jspb.BinaryWriter.prototype.beginDelimited_=function(a){this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.DELIMITED);a=this.encoder_.end();this.blocks_.push(a);this.totalLength_+=a.length;a.push(this.totalLength_);return a};jspb.BinaryWriter.prototype.endDelimited_=function(a){var b=a.pop();b=this.totalLength_+this.encoder_.length()-b;for(goog.asserts.assert(0<=b);127<b;)a.push(b&127|128),b>>>=7,this.totalLength_++;a.push(b);this.totalLength_++};
  329. jspb.BinaryWriter.prototype.writeSerializedMessage=function(a,b,c){this.appendUint8Array_(a.subarray(b,c))};jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(a,b,c){null!=a&&null!=b&&null!=c&&this.writeSerializedMessage(a,b,c)};jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[];this.encoder_.end();this.totalLength_=0;this.bookmarks_=[]};
  330. jspb.BinaryWriter.prototype.getResultBuffer=function(){goog.asserts.assert(0==this.bookmarks_.length);for(var a=new Uint8Array(this.totalLength_+this.encoder_.length()),b=this.blocks_,c=b.length,d=0,e=0;e<c;e++){var f=b[e];a.set(f,d);d+=f.length}b=this.encoder_.end();a.set(b,d);d+=b.length;goog.asserts.assert(d==a.length);this.blocks_=[a];return a};jspb.BinaryWriter.prototype.getResultBase64String=function(){return goog.crypt.base64.encodeByteArray(this.getResultBuffer())};
  331. jspb.BinaryWriter.prototype.beginSubMessage=function(a){this.bookmarks_.push(this.beginDelimited_(a))};jspb.BinaryWriter.prototype.endSubMessage=function(){goog.asserts.assert(0<=this.bookmarks_.length);this.endDelimited_(this.bookmarks_.pop())};jspb.BinaryWriter.prototype.writeFieldHeader_=function(a,b){goog.asserts.assert(1<=a&&a==Math.floor(a));this.encoder_.writeUnsignedVarint32(8*a+b)};
  332. jspb.BinaryWriter.prototype.writeAny=function(a,b,c){var d=jspb.BinaryConstants.FieldType;switch(a){case d.DOUBLE:this.writeDouble(b,c);break;case d.FLOAT:this.writeFloat(b,c);break;case d.INT64:this.writeInt64(b,c);break;case d.UINT64:this.writeUint64(b,c);break;case d.INT32:this.writeInt32(b,c);break;case d.FIXED64:this.writeFixed64(b,c);break;case d.FIXED32:this.writeFixed32(b,c);break;case d.BOOL:this.writeBool(b,c);break;case d.STRING:this.writeString(b,c);break;case d.GROUP:goog.asserts.fail("Group field type not supported in writeAny()");
  333. break;case d.MESSAGE:goog.asserts.fail("Message field type not supported in writeAny()");break;case d.BYTES:this.writeBytes(b,c);break;case d.UINT32:this.writeUint32(b,c);break;case d.ENUM:this.writeEnum(b,c);break;case d.SFIXED32:this.writeSfixed32(b,c);break;case d.SFIXED64:this.writeSfixed64(b,c);break;case d.SINT32:this.writeSint32(b,c);break;case d.SINT64:this.writeSint64(b,c);break;case d.FHASH64:this.writeFixedHash64(b,c);break;case d.VHASH64:this.writeVarintHash64(b,c);break;default:goog.asserts.fail("Invalid field type in writeAny()")}};
  334. jspb.BinaryWriter.prototype.writeUnsignedVarint32_=function(a,b){null!=b&&(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(b))};jspb.BinaryWriter.prototype.writeSignedVarint32_=function(a,b){null!=b&&(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(b))};jspb.BinaryWriter.prototype.writeUnsignedVarint64_=function(a,b){null!=b&&(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint64(b))};
  335. jspb.BinaryWriter.prototype.writeSignedVarint64_=function(a,b){null!=b&&(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint64(b))};jspb.BinaryWriter.prototype.writeZigzagVarint32_=function(a,b){null!=b&&(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(b))};jspb.BinaryWriter.prototype.writeZigzagVarint64_=function(a,b){null!=b&&(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64(b))};
  336. jspb.BinaryWriter.prototype.writeZigzagVarint64String_=function(a,b){null!=b&&(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64String(b))};jspb.BinaryWriter.prototype.writeInt32=function(a,b){null!=b&&(goog.asserts.assert(b>=-jspb.BinaryConstants.TWO_TO_31&&b<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(a,b))};
  337. jspb.BinaryWriter.prototype.writeInt32String=function(a,b){null!=b&&(b=parseInt(b,10),goog.asserts.assert(b>=-jspb.BinaryConstants.TWO_TO_31&&b<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(a,b))};jspb.BinaryWriter.prototype.writeInt64=function(a,b){null!=b&&(goog.asserts.assert(b>=-jspb.BinaryConstants.TWO_TO_63&&b<jspb.BinaryConstants.TWO_TO_63),this.writeSignedVarint64_(a,b))};
  338. jspb.BinaryWriter.prototype.writeInt64String=function(a,b){null!=b&&(b=jspb.arith.Int64.fromString(b),this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(b.lo,b.hi))};jspb.BinaryWriter.prototype.writeUint32=function(a,b){null!=b&&(goog.asserts.assert(0<=b&&b<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(a,b))};
  339. jspb.BinaryWriter.prototype.writeUint32String=function(a,b){null!=b&&(b=parseInt(b,10),goog.asserts.assert(0<=b&&b<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(a,b))};jspb.BinaryWriter.prototype.writeUint64=function(a,b){null!=b&&(goog.asserts.assert(0<=b&&b<jspb.BinaryConstants.TWO_TO_64),this.writeUnsignedVarint64_(a,b))};
  340. jspb.BinaryWriter.prototype.writeUint64String=function(a,b){null!=b&&(b=jspb.arith.UInt64.fromString(b),this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(b.lo,b.hi))};jspb.BinaryWriter.prototype.writeSint32=function(a,b){null!=b&&(goog.asserts.assert(b>=-jspb.BinaryConstants.TWO_TO_31&&b<jspb.BinaryConstants.TWO_TO_31),this.writeZigzagVarint32_(a,b))};
  341. jspb.BinaryWriter.prototype.writeSint64=function(a,b){null!=b&&(goog.asserts.assert(b>=-jspb.BinaryConstants.TWO_TO_63&&b<jspb.BinaryConstants.TWO_TO_63),this.writeZigzagVarint64_(a,b))};jspb.BinaryWriter.prototype.writeSint64String=function(a,b){null!=b&&(goog.asserts.assert(+b>=-jspb.BinaryConstants.TWO_TO_63&&+b<jspb.BinaryConstants.TWO_TO_63),this.writeZigzagVarint64String_(a,b))};
  342. jspb.BinaryWriter.prototype.writeFixed32=function(a,b){null!=b&&(goog.asserts.assert(0<=b&&b<jspb.BinaryConstants.TWO_TO_32),this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeUint32(b))};jspb.BinaryWriter.prototype.writeFixed64=function(a,b){null!=b&&(goog.asserts.assert(0<=b&&b<jspb.BinaryConstants.TWO_TO_64),this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeUint64(b))};
  343. jspb.BinaryWriter.prototype.writeFixed64String=function(a,b){null!=b&&(b=jspb.arith.UInt64.fromString(b),this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(b.lo,b.hi))};jspb.BinaryWriter.prototype.writeSfixed32=function(a,b){null!=b&&(goog.asserts.assert(b>=-jspb.BinaryConstants.TWO_TO_31&&b<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeInt32(b))};
  344. jspb.BinaryWriter.prototype.writeSfixed64=function(a,b){null!=b&&(goog.asserts.assert(b>=-jspb.BinaryConstants.TWO_TO_63&&b<jspb.BinaryConstants.TWO_TO_63),this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeInt64(b))};jspb.BinaryWriter.prototype.writeSfixed64String=function(a,b){null!=b&&(b=jspb.arith.Int64.fromString(b),this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(b.lo,b.hi))};
  345. jspb.BinaryWriter.prototype.writeFloat=function(a,b){null!=b&&(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeFloat(b))};jspb.BinaryWriter.prototype.writeDouble=function(a,b){null!=b&&(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeDouble(b))};jspb.BinaryWriter.prototype.writeBool=function(a,b){null!=b&&(goog.asserts.assert(goog.isBoolean(b)||goog.isNumber(b)),this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeBool(b))};
  346. jspb.BinaryWriter.prototype.writeEnum=function(a,b){null!=b&&(goog.asserts.assert(b>=-jspb.BinaryConstants.TWO_TO_31&&b<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(b))};jspb.BinaryWriter.prototype.writeString=function(a,b){null!=b&&(a=this.beginDelimited_(a),this.encoder_.writeString(b),this.endDelimited_(a))};
  347. jspb.BinaryWriter.prototype.writeBytes=function(a,b){null!=b&&(b=jspb.utils.byteSourceToUint8Array(b),this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(b.length),this.appendUint8Array_(b))};jspb.BinaryWriter.prototype.writeMessage=function(a,b,c){null!=b&&(a=this.beginDelimited_(a),c(b,this),this.endDelimited_(a))};
  348. jspb.BinaryWriter.prototype.writeGroup=function(a,b,c){null!=b&&(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.START_GROUP),c(b,this),this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.END_GROUP))};jspb.BinaryWriter.prototype.writeFixedHash64=function(a,b){null!=b&&(goog.asserts.assert(8==b.length),this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeFixedHash64(b))};
  349. jspb.BinaryWriter.prototype.writeVarintHash64=function(a,b){null!=b&&(goog.asserts.assert(8==b.length),this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeVarintHash64(b))};jspb.BinaryWriter.prototype.writeRepeatedInt32=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeSignedVarint32_(a,b[c])};jspb.BinaryWriter.prototype.writeRepeatedInt32String=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeInt32String(a,b[c])};
  350. jspb.BinaryWriter.prototype.writeRepeatedInt64=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeSignedVarint64_(a,b[c])};jspb.BinaryWriter.prototype.writeRepeatedInt64String=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeInt64String(a,b[c])};jspb.BinaryWriter.prototype.writeRepeatedUint32=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeUnsignedVarint32_(a,b[c])};
  351. jspb.BinaryWriter.prototype.writeRepeatedUint32String=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeUint32String(a,b[c])};jspb.BinaryWriter.prototype.writeRepeatedUint64=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeUnsignedVarint64_(a,b[c])};jspb.BinaryWriter.prototype.writeRepeatedUint64String=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeUint64String(a,b[c])};
  352. jspb.BinaryWriter.prototype.writeRepeatedSint32=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeZigzagVarint32_(a,b[c])};jspb.BinaryWriter.prototype.writeRepeatedSint64=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeZigzagVarint64_(a,b[c])};jspb.BinaryWriter.prototype.writeRepeatedSint64String=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeZigzagVarint64String_(a,b[c])};
  353. jspb.BinaryWriter.prototype.writeRepeatedFixed32=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeFixed32(a,b[c])};jspb.BinaryWriter.prototype.writeRepeatedFixed64=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeFixed64(a,b[c])};jspb.BinaryWriter.prototype.writeRepeatedFixed64String=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeFixed64String(a,b[c])};
  354. jspb.BinaryWriter.prototype.writeRepeatedSfixed32=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeSfixed32(a,b[c])};jspb.BinaryWriter.prototype.writeRepeatedSfixed64=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeSfixed64(a,b[c])};jspb.BinaryWriter.prototype.writeRepeatedSfixed64String=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeSfixed64String(a,b[c])};
  355. jspb.BinaryWriter.prototype.writeRepeatedFloat=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeFloat(a,b[c])};jspb.BinaryWriter.prototype.writeRepeatedDouble=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeDouble(a,b[c])};jspb.BinaryWriter.prototype.writeRepeatedBool=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeBool(a,b[c])};jspb.BinaryWriter.prototype.writeRepeatedEnum=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeEnum(a,b[c])};
  356. jspb.BinaryWriter.prototype.writeRepeatedString=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeString(a,b[c])};jspb.BinaryWriter.prototype.writeRepeatedBytes=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeBytes(a,b[c])};jspb.BinaryWriter.prototype.writeRepeatedMessage=function(a,b,c){if(null!=b)for(var d=0;d<b.length;d++){var e=this.beginDelimited_(a);c(b[d],this);this.endDelimited_(e)}};
  357. jspb.BinaryWriter.prototype.writeRepeatedGroup=function(a,b,c){if(null!=b)for(var d=0;d<b.length;d++)this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.START_GROUP),c(b[d],this),this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.END_GROUP)};jspb.BinaryWriter.prototype.writeRepeatedFixedHash64=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeFixedHash64(a,b[c])};
  358. jspb.BinaryWriter.prototype.writeRepeatedVarintHash64=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeVarintHash64(a,b[c])};jspb.BinaryWriter.prototype.writePackedInt32=function(a,b){if(null!=b&&b.length){a=this.beginDelimited_(a);for(var c=0;c<b.length;c++)this.encoder_.writeSignedVarint32(b[c]);this.endDelimited_(a)}};
  359. jspb.BinaryWriter.prototype.writePackedInt32String=function(a,b){if(null!=b&&b.length){a=this.beginDelimited_(a);for(var c=0;c<b.length;c++)this.encoder_.writeSignedVarint32(parseInt(b[c],10));this.endDelimited_(a)}};jspb.BinaryWriter.prototype.writePackedInt64=function(a,b){if(null!=b&&b.length){a=this.beginDelimited_(a);for(var c=0;c<b.length;c++)this.encoder_.writeSignedVarint64(b[c]);this.endDelimited_(a)}};
  360. jspb.BinaryWriter.prototype.writePackedInt64String=function(a,b){if(null!=b&&b.length){a=this.beginDelimited_(a);for(var c=0;c<b.length;c++){var d=jspb.arith.Int64.fromString(b[c]);this.encoder_.writeSplitVarint64(d.lo,d.hi)}this.endDelimited_(a)}};jspb.BinaryWriter.prototype.writePackedUint32=function(a,b){if(null!=b&&b.length){a=this.beginDelimited_(a);for(var c=0;c<b.length;c++)this.encoder_.writeUnsignedVarint32(b[c]);this.endDelimited_(a)}};
  361. jspb.BinaryWriter.prototype.writePackedUint32String=function(a,b){if(null!=b&&b.length){a=this.beginDelimited_(a);for(var c=0;c<b.length;c++)this.encoder_.writeUnsignedVarint32(parseInt(b[c],10));this.endDelimited_(a)}};jspb.BinaryWriter.prototype.writePackedUint64=function(a,b){if(null!=b&&b.length){a=this.beginDelimited_(a);for(var c=0;c<b.length;c++)this.encoder_.writeUnsignedVarint64(b[c]);this.endDelimited_(a)}};
  362. jspb.BinaryWriter.prototype.writePackedUint64String=function(a,b){if(null!=b&&b.length){a=this.beginDelimited_(a);for(var c=0;c<b.length;c++){var d=jspb.arith.UInt64.fromString(b[c]);this.encoder_.writeSplitVarint64(d.lo,d.hi)}this.endDelimited_(a)}};jspb.BinaryWriter.prototype.writePackedSint32=function(a,b){if(null!=b&&b.length){a=this.beginDelimited_(a);for(var c=0;c<b.length;c++)this.encoder_.writeZigzagVarint32(b[c]);this.endDelimited_(a)}};
  363. jspb.BinaryWriter.prototype.writePackedSint64=function(a,b){if(null!=b&&b.length){a=this.beginDelimited_(a);for(var c=0;c<b.length;c++)this.encoder_.writeZigzagVarint64(b[c]);this.endDelimited_(a)}};jspb.BinaryWriter.prototype.writePackedSint64String=function(a,b){if(null!=b&&b.length){a=this.beginDelimited_(a);for(var c=0;c<b.length;c++)this.encoder_.writeZigzagVarint64(parseInt(b[c],10));this.endDelimited_(a)}};
  364. jspb.BinaryWriter.prototype.writePackedFixed32=function(a,b){if(null!=b&&b.length)for(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*b.length),a=0;a<b.length;a++)this.encoder_.writeUint32(b[a])};jspb.BinaryWriter.prototype.writePackedFixed64=function(a,b){if(null!=b&&b.length)for(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*b.length),a=0;a<b.length;a++)this.encoder_.writeUint64(b[a])};
  365. jspb.BinaryWriter.prototype.writePackedFixed64String=function(a,b){if(null!=b&&b.length)for(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*b.length),a=0;a<b.length;a++){var c=jspb.arith.UInt64.fromString(b[a]);this.encoder_.writeSplitFixed64(c.lo,c.hi)}};
  366. jspb.BinaryWriter.prototype.writePackedSfixed32=function(a,b){if(null!=b&&b.length)for(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*b.length),a=0;a<b.length;a++)this.encoder_.writeInt32(b[a])};jspb.BinaryWriter.prototype.writePackedSfixed64=function(a,b){if(null!=b&&b.length)for(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*b.length),a=0;a<b.length;a++)this.encoder_.writeInt64(b[a])};
  367. jspb.BinaryWriter.prototype.writePackedSfixed64String=function(a,b){if(null!=b&&b.length)for(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*b.length),a=0;a<b.length;a++)this.encoder_.writeInt64String(b[a])};jspb.BinaryWriter.prototype.writePackedFloat=function(a,b){if(null!=b&&b.length)for(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*b.length),a=0;a<b.length;a++)this.encoder_.writeFloat(b[a])};
  368. jspb.BinaryWriter.prototype.writePackedDouble=function(a,b){if(null!=b&&b.length)for(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*b.length),a=0;a<b.length;a++)this.encoder_.writeDouble(b[a])};jspb.BinaryWriter.prototype.writePackedBool=function(a,b){if(null!=b&&b.length)for(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(b.length),a=0;a<b.length;a++)this.encoder_.writeBool(b[a])};
  369. jspb.BinaryWriter.prototype.writePackedEnum=function(a,b){if(null!=b&&b.length){a=this.beginDelimited_(a);for(var c=0;c<b.length;c++)this.encoder_.writeEnum(b[c]);this.endDelimited_(a)}};jspb.BinaryWriter.prototype.writePackedFixedHash64=function(a,b){if(null!=b&&b.length)for(this.writeFieldHeader_(a,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*b.length),a=0;a<b.length;a++)this.encoder_.writeFixedHash64(b[a])};
  370. jspb.BinaryWriter.prototype.writePackedVarintHash64=function(a,b){if(null!=b&&b.length){a=this.beginDelimited_(a);for(var c=0;c<b.length;c++)this.encoder_.writeVarintHash64(b[c]);this.endDelimited_(a)}};var proto={protocol:{}};proto.protocol.PushServiceConfigMsg=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.protocol.PushServiceConfigMsg,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.protocol.PushServiceConfigMsg.displayName="proto.protocol.PushServiceConfigMsg");
  371. jspb.Message.GENERATE_TO_OBJECT&&(proto.protocol.PushServiceConfigMsg.prototype.toObject=function(a){return proto.protocol.PushServiceConfigMsg.toObject(a,this)},proto.protocol.PushServiceConfigMsg.toObject=function(a,b){var c={fetchbucket:jspb.Message.getField(b,1),usebucketv2:jspb.Message.getField(b,2),clientversion:jspb.Message.getField(b,3),cloudversion:jspb.Message.getField(b,4),dots:jspb.Message.getField(b,5)};a&&(c.$jspbMessageInstance=b);return c});
  372. proto.protocol.PushServiceConfigMsg.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.protocol.PushServiceConfigMsg;return proto.protocol.PushServiceConfigMsg.deserializeBinaryFromReader(b,a)};
  373. proto.protocol.PushServiceConfigMsg.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readBool();a.setFetchbucket(c);break;case 2:c=b.readBool();a.setUsebucketv2(c);break;case 3:c=b.readInt32();a.setClientversion(c);break;case 4:c=b.readInt32();a.setCloudversion(c);break;case 5:c=b.readInt32();a.setDots(c);break;default:b.skipField()}return a};
  374. proto.protocol.PushServiceConfigMsg.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.protocol.PushServiceConfigMsg.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  375. proto.protocol.PushServiceConfigMsg.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeBool(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeBool(2,c);c=jspb.Message.getField(a,3);null!=c&&b.writeInt32(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeInt32(4,c);c=jspb.Message.getField(a,5);null!=c&&b.writeInt32(5,c)};proto.protocol.PushServiceConfigMsg.prototype.getFetchbucket=function(){return jspb.Message.getFieldWithDefault(this,1,!1)};
  376. proto.protocol.PushServiceConfigMsg.prototype.setFetchbucket=function(a){jspb.Message.setField(this,1,a)};proto.protocol.PushServiceConfigMsg.prototype.clearFetchbucket=function(){jspb.Message.setField(this,1,void 0)};proto.protocol.PushServiceConfigMsg.prototype.hasFetchbucket=function(){return null!=jspb.Message.getField(this,1)};proto.protocol.PushServiceConfigMsg.prototype.getUsebucketv2=function(){return jspb.Message.getFieldWithDefault(this,2,!1)};
  377. proto.protocol.PushServiceConfigMsg.prototype.setUsebucketv2=function(a){jspb.Message.setField(this,2,a)};proto.protocol.PushServiceConfigMsg.prototype.clearUsebucketv2=function(){jspb.Message.setField(this,2,void 0)};proto.protocol.PushServiceConfigMsg.prototype.hasUsebucketv2=function(){return null!=jspb.Message.getField(this,2)};proto.protocol.PushServiceConfigMsg.prototype.getClientversion=function(){return jspb.Message.getFieldWithDefault(this,3,0)};
  378. proto.protocol.PushServiceConfigMsg.prototype.setClientversion=function(a){jspb.Message.setField(this,3,a)};proto.protocol.PushServiceConfigMsg.prototype.clearClientversion=function(){jspb.Message.setField(this,3,void 0)};proto.protocol.PushServiceConfigMsg.prototype.hasClientversion=function(){return null!=jspb.Message.getField(this,3)};proto.protocol.PushServiceConfigMsg.prototype.getCloudversion=function(){return jspb.Message.getFieldWithDefault(this,4,0)};
  379. proto.protocol.PushServiceConfigMsg.prototype.setCloudversion=function(a){jspb.Message.setField(this,4,a)};proto.protocol.PushServiceConfigMsg.prototype.clearCloudversion=function(){jspb.Message.setField(this,4,void 0)};proto.protocol.PushServiceConfigMsg.prototype.hasCloudversion=function(){return null!=jspb.Message.getField(this,4)};proto.protocol.PushServiceConfigMsg.prototype.getDots=function(){return jspb.Message.getFieldWithDefault(this,5,0)};
  380. proto.protocol.PushServiceConfigMsg.prototype.setDots=function(a){jspb.Message.setField(this,5,a)};proto.protocol.PushServiceConfigMsg.prototype.clearDots=function(){jspb.Message.setField(this,5,void 0)};proto.protocol.PushServiceConfigMsg.prototype.hasDots=function(){return null!=jspb.Message.getField(this,5)};proto.ims={};proto.ims.ClientHeader=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.ims.ClientHeader,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.ims.ClientHeader.displayName="proto.ims.ClientHeader");
  381. jspb.Message.GENERATE_TO_OBJECT&&(proto.ims.ClientHeader.prototype.toObject=function(a){return proto.ims.ClientHeader.toObject(a,this)},proto.ims.ClientHeader.toObject=function(a,b){var c={chid:jspb.Message.getField(b,1),uuid:jspb.Message.getField(b,2),server:jspb.Message.getField(b,3),resource:jspb.Message.getField(b,4),cmd:jspb.Message.getField(b,5),subcmd:jspb.Message.getField(b,6),id:jspb.Message.getField(b,7),dirFlag:jspb.Message.getField(b,8),cipher:jspb.Message.getField(b,9),errCode:jspb.Message.getField(b,
  382. 10),errStr:jspb.Message.getField(b,11)};a&&(c.$jspbMessageInstance=b);return c});proto.ims.ClientHeader.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.ims.ClientHeader;return proto.ims.ClientHeader.deserializeBinaryFromReader(b,a)};
  383. proto.ims.ClientHeader.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readInt32();a.setChid(c);break;case 2:c=b.readInt64String();a.setUuid(c);break;case 3:c=b.readString();a.setServer(c);break;case 4:c=b.readString();a.setResource(c);break;case 5:c=b.readString();a.setCmd(c);break;case 6:c=b.readString();a.setSubcmd(c);break;case 7:c=b.readString();a.setId(c);break;case 8:c=b.readEnum();a.setDirFlag(c);break;case 9:c=b.readInt32();
  384. a.setCipher(c);break;case 10:c=b.readInt32();a.setErrCode(c);break;case 11:c=b.readString();a.setErrStr(c);break;default:b.skipField()}return a};proto.ims.ClientHeader.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.ims.ClientHeader.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  385. proto.ims.ClientHeader.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeInt64String(2,c);c=jspb.Message.getField(a,3);null!=c&&b.writeString(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeString(4,c);c=jspb.Message.getField(a,5);null!=c&&b.writeString(5,c);c=jspb.Message.getField(a,6);null!=c&&b.writeString(6,c);c=jspb.Message.getField(a,7);null!=c&&b.writeString(7,c);c=jspb.Message.getField(a,8);null!=
  386. c&&b.writeEnum(8,c);c=jspb.Message.getField(a,9);null!=c&&b.writeInt32(9,c);c=jspb.Message.getField(a,10);null!=c&&b.writeInt32(10,c);c=jspb.Message.getField(a,11);null!=c&&b.writeString(11,c)};proto.ims.ClientHeader.MSG_DIR_FLAG={CS_ONEWAY:1,CS_REQ:2,CS_RESP:3,SC_ONEWAY:4,SC_REQ:5,SC_RESP:6};proto.ims.ClientHeader.prototype.getChid=function(){return jspb.Message.getFieldWithDefault(this,1,0)};proto.ims.ClientHeader.prototype.setChid=function(a){jspb.Message.setField(this,1,a)};
  387. proto.ims.ClientHeader.prototype.clearChid=function(){jspb.Message.setField(this,1,void 0)};proto.ims.ClientHeader.prototype.hasChid=function(){return null!=jspb.Message.getField(this,1)};proto.ims.ClientHeader.prototype.getUuid=function(){return jspb.Message.getFieldWithDefault(this,2,"0")};proto.ims.ClientHeader.prototype.setUuid=function(a){jspb.Message.setField(this,2,a)};proto.ims.ClientHeader.prototype.clearUuid=function(){jspb.Message.setField(this,2,void 0)};
  388. proto.ims.ClientHeader.prototype.hasUuid=function(){return null!=jspb.Message.getField(this,2)};proto.ims.ClientHeader.prototype.getServer=function(){return jspb.Message.getFieldWithDefault(this,3,"")};proto.ims.ClientHeader.prototype.setServer=function(a){jspb.Message.setField(this,3,a)};proto.ims.ClientHeader.prototype.clearServer=function(){jspb.Message.setField(this,3,void 0)};proto.ims.ClientHeader.prototype.hasServer=function(){return null!=jspb.Message.getField(this,3)};
  389. proto.ims.ClientHeader.prototype.getResource=function(){return jspb.Message.getFieldWithDefault(this,4,"")};proto.ims.ClientHeader.prototype.setResource=function(a){jspb.Message.setField(this,4,a)};proto.ims.ClientHeader.prototype.clearResource=function(){jspb.Message.setField(this,4,void 0)};proto.ims.ClientHeader.prototype.hasResource=function(){return null!=jspb.Message.getField(this,4)};proto.ims.ClientHeader.prototype.getCmd=function(){return jspb.Message.getFieldWithDefault(this,5,"")};
  390. proto.ims.ClientHeader.prototype.setCmd=function(a){jspb.Message.setField(this,5,a)};proto.ims.ClientHeader.prototype.clearCmd=function(){jspb.Message.setField(this,5,void 0)};proto.ims.ClientHeader.prototype.hasCmd=function(){return null!=jspb.Message.getField(this,5)};proto.ims.ClientHeader.prototype.getSubcmd=function(){return jspb.Message.getFieldWithDefault(this,6,"")};proto.ims.ClientHeader.prototype.setSubcmd=function(a){jspb.Message.setField(this,6,a)};
  391. proto.ims.ClientHeader.prototype.clearSubcmd=function(){jspb.Message.setField(this,6,void 0)};proto.ims.ClientHeader.prototype.hasSubcmd=function(){return null!=jspb.Message.getField(this,6)};proto.ims.ClientHeader.prototype.getId=function(){return jspb.Message.getFieldWithDefault(this,7,"")};proto.ims.ClientHeader.prototype.setId=function(a){jspb.Message.setField(this,7,a)};proto.ims.ClientHeader.prototype.clearId=function(){jspb.Message.setField(this,7,void 0)};
  392. proto.ims.ClientHeader.prototype.hasId=function(){return null!=jspb.Message.getField(this,7)};proto.ims.ClientHeader.prototype.getDirFlag=function(){return jspb.Message.getFieldWithDefault(this,8,1)};proto.ims.ClientHeader.prototype.setDirFlag=function(a){jspb.Message.setField(this,8,a)};proto.ims.ClientHeader.prototype.clearDirFlag=function(){jspb.Message.setField(this,8,void 0)};proto.ims.ClientHeader.prototype.hasDirFlag=function(){return null!=jspb.Message.getField(this,8)};
  393. proto.ims.ClientHeader.prototype.getCipher=function(){return jspb.Message.getFieldWithDefault(this,9,0)};proto.ims.ClientHeader.prototype.setCipher=function(a){jspb.Message.setField(this,9,a)};proto.ims.ClientHeader.prototype.clearCipher=function(){jspb.Message.setField(this,9,void 0)};proto.ims.ClientHeader.prototype.hasCipher=function(){return null!=jspb.Message.getField(this,9)};proto.ims.ClientHeader.prototype.getErrCode=function(){return jspb.Message.getFieldWithDefault(this,10,0)};
  394. proto.ims.ClientHeader.prototype.setErrCode=function(a){jspb.Message.setField(this,10,a)};proto.ims.ClientHeader.prototype.clearErrCode=function(){jspb.Message.setField(this,10,void 0)};proto.ims.ClientHeader.prototype.hasErrCode=function(){return null!=jspb.Message.getField(this,10)};proto.ims.ClientHeader.prototype.getErrStr=function(){return jspb.Message.getFieldWithDefault(this,11,"")};proto.ims.ClientHeader.prototype.setErrStr=function(a){jspb.Message.setField(this,11,a)};
  395. proto.ims.ClientHeader.prototype.clearErrStr=function(){jspb.Message.setField(this,11,void 0)};proto.ims.ClientHeader.prototype.hasErrStr=function(){return null!=jspb.Message.getField(this,11)};proto.ims.XMMsgConn=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.ims.XMMsgConn,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.ims.XMMsgConn.displayName="proto.ims.XMMsgConn");
  396. jspb.Message.GENERATE_TO_OBJECT&&(proto.ims.XMMsgConn.prototype.toObject=function(a){return proto.ims.XMMsgConn.toObject(a,this)},proto.ims.XMMsgConn.toObject=function(a,b){var c,d={version:jspb.Message.getField(b,1),model:jspb.Message.getField(b,2),os:jspb.Message.getField(b,3),udid:jspb.Message.getField(b,4),sdk:jspb.Message.getField(b,5),connpt:jspb.Message.getField(b,6),host:jspb.Message.getField(b,7),locale:jspb.Message.getField(b,8),psc:(c=b.getPsc())&&proto.protocol.PushServiceConfigMsg.toObject(a,
  397. c),andver:jspb.Message.getField(b,10)};a&&(d.$jspbMessageInstance=b);return d});proto.ims.XMMsgConn.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.ims.XMMsgConn;return proto.ims.XMMsgConn.deserializeBinaryFromReader(b,a)};
  398. proto.ims.XMMsgConn.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readUint32();a.setVersion(c);break;case 2:c=b.readString();a.setModel(c);break;case 3:c=b.readString();a.setOs(c);break;case 4:c=b.readString();a.setUdid(c);break;case 5:c=b.readInt32();a.setSdk(c);break;case 6:c=b.readString();a.setConnpt(c);break;case 7:c=b.readString();a.setHost(c);break;case 8:c=b.readString();a.setLocale(c);break;case 9:c=new proto.protocol.PushServiceConfigMsg;
  399. b.readMessage(c,proto.protocol.PushServiceConfigMsg.deserializeBinaryFromReader);a.setPsc(c);break;case 10:c=b.readInt32();a.setAndver(c);break;default:b.skipField()}return a};proto.ims.XMMsgConn.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.ims.XMMsgConn.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  400. proto.ims.XMMsgConn.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeUint32(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeString(2,c);c=jspb.Message.getField(a,3);null!=c&&b.writeString(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeString(4,c);c=jspb.Message.getField(a,5);null!=c&&b.writeInt32(5,c);c=jspb.Message.getField(a,6);null!=c&&b.writeString(6,c);c=jspb.Message.getField(a,7);null!=c&&b.writeString(7,c);c=jspb.Message.getField(a,8);null!=c&&b.writeString(8,
  401. c);c=a.getPsc();null!=c&&b.writeMessage(9,c,proto.protocol.PushServiceConfigMsg.serializeBinaryToWriter);c=jspb.Message.getField(a,10);null!=c&&b.writeInt32(10,c)};proto.ims.XMMsgConn.prototype.getVersion=function(){return jspb.Message.getFieldWithDefault(this,1,0)};proto.ims.XMMsgConn.prototype.setVersion=function(a){jspb.Message.setField(this,1,a)};proto.ims.XMMsgConn.prototype.clearVersion=function(){jspb.Message.setField(this,1,void 0)};
  402. proto.ims.XMMsgConn.prototype.hasVersion=function(){return null!=jspb.Message.getField(this,1)};proto.ims.XMMsgConn.prototype.getModel=function(){return jspb.Message.getFieldWithDefault(this,2,"")};proto.ims.XMMsgConn.prototype.setModel=function(a){jspb.Message.setField(this,2,a)};proto.ims.XMMsgConn.prototype.clearModel=function(){jspb.Message.setField(this,2,void 0)};proto.ims.XMMsgConn.prototype.hasModel=function(){return null!=jspb.Message.getField(this,2)};
  403. proto.ims.XMMsgConn.prototype.getOs=function(){return jspb.Message.getFieldWithDefault(this,3,"")};proto.ims.XMMsgConn.prototype.setOs=function(a){jspb.Message.setField(this,3,a)};proto.ims.XMMsgConn.prototype.clearOs=function(){jspb.Message.setField(this,3,void 0)};proto.ims.XMMsgConn.prototype.hasOs=function(){return null!=jspb.Message.getField(this,3)};proto.ims.XMMsgConn.prototype.getUdid=function(){return jspb.Message.getFieldWithDefault(this,4,"")};
  404. proto.ims.XMMsgConn.prototype.setUdid=function(a){jspb.Message.setField(this,4,a)};proto.ims.XMMsgConn.prototype.clearUdid=function(){jspb.Message.setField(this,4,void 0)};proto.ims.XMMsgConn.prototype.hasUdid=function(){return null!=jspb.Message.getField(this,4)};proto.ims.XMMsgConn.prototype.getSdk=function(){return jspb.Message.getFieldWithDefault(this,5,0)};proto.ims.XMMsgConn.prototype.setSdk=function(a){jspb.Message.setField(this,5,a)};
  405. proto.ims.XMMsgConn.prototype.clearSdk=function(){jspb.Message.setField(this,5,void 0)};proto.ims.XMMsgConn.prototype.hasSdk=function(){return null!=jspb.Message.getField(this,5)};proto.ims.XMMsgConn.prototype.getConnpt=function(){return jspb.Message.getFieldWithDefault(this,6,"")};proto.ims.XMMsgConn.prototype.setConnpt=function(a){jspb.Message.setField(this,6,a)};proto.ims.XMMsgConn.prototype.clearConnpt=function(){jspb.Message.setField(this,6,void 0)};
  406. proto.ims.XMMsgConn.prototype.hasConnpt=function(){return null!=jspb.Message.getField(this,6)};proto.ims.XMMsgConn.prototype.getHost=function(){return jspb.Message.getFieldWithDefault(this,7,"")};proto.ims.XMMsgConn.prototype.setHost=function(a){jspb.Message.setField(this,7,a)};proto.ims.XMMsgConn.prototype.clearHost=function(){jspb.Message.setField(this,7,void 0)};proto.ims.XMMsgConn.prototype.hasHost=function(){return null!=jspb.Message.getField(this,7)};
  407. proto.ims.XMMsgConn.prototype.getLocale=function(){return jspb.Message.getFieldWithDefault(this,8,"")};proto.ims.XMMsgConn.prototype.setLocale=function(a){jspb.Message.setField(this,8,a)};proto.ims.XMMsgConn.prototype.clearLocale=function(){jspb.Message.setField(this,8,void 0)};proto.ims.XMMsgConn.prototype.hasLocale=function(){return null!=jspb.Message.getField(this,8)};proto.ims.XMMsgConn.prototype.getPsc=function(){return jspb.Message.getWrapperField(this,proto.protocol.PushServiceConfigMsg,9)};
  408. proto.ims.XMMsgConn.prototype.setPsc=function(a){jspb.Message.setWrapperField(this,9,a)};proto.ims.XMMsgConn.prototype.clearPsc=function(){this.setPsc(void 0)};proto.ims.XMMsgConn.prototype.hasPsc=function(){return null!=jspb.Message.getField(this,9)};proto.ims.XMMsgConn.prototype.getAndver=function(){return jspb.Message.getFieldWithDefault(this,10,0)};proto.ims.XMMsgConn.prototype.setAndver=function(a){jspb.Message.setField(this,10,a)};
  409. proto.ims.XMMsgConn.prototype.clearAndver=function(){jspb.Message.setField(this,10,void 0)};proto.ims.XMMsgConn.prototype.hasAndver=function(){return null!=jspb.Message.getField(this,10)};proto.ims.XMMsgConnResp=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.ims.XMMsgConnResp,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.ims.XMMsgConnResp.displayName="proto.ims.XMMsgConnResp");
  410. jspb.Message.GENERATE_TO_OBJECT&&(proto.ims.XMMsgConnResp.prototype.toObject=function(a){return proto.ims.XMMsgConnResp.toObject(a,this)},proto.ims.XMMsgConnResp.toObject=function(a,b){var c,d={challenge:jspb.Message.getField(b,1),host:jspb.Message.getField(b,2),psc:(c=b.getPsc())&&proto.protocol.PushServiceConfigMsg.toObject(a,c)};a&&(d.$jspbMessageInstance=b);return d});
  411. proto.ims.XMMsgConnResp.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.ims.XMMsgConnResp;return proto.ims.XMMsgConnResp.deserializeBinaryFromReader(b,a)};
  412. proto.ims.XMMsgConnResp.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readString();a.setChallenge(c);break;case 2:c=b.readString();a.setHost(c);break;case 3:c=new proto.protocol.PushServiceConfigMsg;b.readMessage(c,proto.protocol.PushServiceConfigMsg.deserializeBinaryFromReader);a.setPsc(c);break;default:b.skipField()}return a};
  413. proto.ims.XMMsgConnResp.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.ims.XMMsgConnResp.serializeBinaryToWriter(this,a);return a.getResultBuffer()};proto.ims.XMMsgConnResp.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeString(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeString(2,c);c=a.getPsc();null!=c&&b.writeMessage(3,c,proto.protocol.PushServiceConfigMsg.serializeBinaryToWriter)};
  414. proto.ims.XMMsgConnResp.prototype.getChallenge=function(){return jspb.Message.getFieldWithDefault(this,1,"")};proto.ims.XMMsgConnResp.prototype.setChallenge=function(a){jspb.Message.setField(this,1,a)};proto.ims.XMMsgConnResp.prototype.clearChallenge=function(){jspb.Message.setField(this,1,void 0)};proto.ims.XMMsgConnResp.prototype.hasChallenge=function(){return null!=jspb.Message.getField(this,1)};
  415. proto.ims.XMMsgConnResp.prototype.getHost=function(){return jspb.Message.getFieldWithDefault(this,2,"")};proto.ims.XMMsgConnResp.prototype.setHost=function(a){jspb.Message.setField(this,2,a)};proto.ims.XMMsgConnResp.prototype.clearHost=function(){jspb.Message.setField(this,2,void 0)};proto.ims.XMMsgConnResp.prototype.hasHost=function(){return null!=jspb.Message.getField(this,2)};
  416. proto.ims.XMMsgConnResp.prototype.getPsc=function(){return jspb.Message.getWrapperField(this,proto.protocol.PushServiceConfigMsg,3)};proto.ims.XMMsgConnResp.prototype.setPsc=function(a){jspb.Message.setWrapperField(this,3,a)};proto.ims.XMMsgConnResp.prototype.clearPsc=function(){this.setPsc(void 0)};proto.ims.XMMsgConnResp.prototype.hasPsc=function(){return null!=jspb.Message.getField(this,3)};proto.ims.XMMsgBind=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};
  417. goog.inherits(proto.ims.XMMsgBind,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.ims.XMMsgBind.displayName="proto.ims.XMMsgBind");
  418. jspb.Message.GENERATE_TO_OBJECT&&(proto.ims.XMMsgBind.prototype.toObject=function(a){return proto.ims.XMMsgBind.toObject(a,this)},proto.ims.XMMsgBind.toObject=function(a,b){var c={token:jspb.Message.getField(b,1),kick:jspb.Message.getField(b,2),method:jspb.Message.getField(b,3),clientAttrs:jspb.Message.getField(b,4),cloudAttrs:jspb.Message.getField(b,5),sig:jspb.Message.getField(b,6)};a&&(c.$jspbMessageInstance=b);return c});
  419. proto.ims.XMMsgBind.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.ims.XMMsgBind;return proto.ims.XMMsgBind.deserializeBinaryFromReader(b,a)};
  420. proto.ims.XMMsgBind.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readString();a.setToken(c);break;case 2:c=b.readString();a.setKick(c);break;case 3:c=b.readString();a.setMethod(c);break;case 4:c=b.readString();a.setClientAttrs(c);break;case 5:c=b.readString();a.setCloudAttrs(c);break;case 6:c=b.readString();a.setSig(c);break;default:b.skipField()}return a};
  421. proto.ims.XMMsgBind.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.ims.XMMsgBind.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  422. proto.ims.XMMsgBind.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeString(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeString(2,c);c=jspb.Message.getField(a,3);null!=c&&b.writeString(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeString(4,c);c=jspb.Message.getField(a,5);null!=c&&b.writeString(5,c);c=jspb.Message.getField(a,6);null!=c&&b.writeString(6,c)};
  423. proto.ims.XMMsgBind.prototype.getToken=function(){return jspb.Message.getFieldWithDefault(this,1,"")};proto.ims.XMMsgBind.prototype.setToken=function(a){jspb.Message.setField(this,1,a)};proto.ims.XMMsgBind.prototype.clearToken=function(){jspb.Message.setField(this,1,void 0)};proto.ims.XMMsgBind.prototype.hasToken=function(){return null!=jspb.Message.getField(this,1)};proto.ims.XMMsgBind.prototype.getKick=function(){return jspb.Message.getFieldWithDefault(this,2,"")};
  424. proto.ims.XMMsgBind.prototype.setKick=function(a){jspb.Message.setField(this,2,a)};proto.ims.XMMsgBind.prototype.clearKick=function(){jspb.Message.setField(this,2,void 0)};proto.ims.XMMsgBind.prototype.hasKick=function(){return null!=jspb.Message.getField(this,2)};proto.ims.XMMsgBind.prototype.getMethod=function(){return jspb.Message.getFieldWithDefault(this,3,"")};proto.ims.XMMsgBind.prototype.setMethod=function(a){jspb.Message.setField(this,3,a)};
  425. proto.ims.XMMsgBind.prototype.clearMethod=function(){jspb.Message.setField(this,3,void 0)};proto.ims.XMMsgBind.prototype.hasMethod=function(){return null!=jspb.Message.getField(this,3)};proto.ims.XMMsgBind.prototype.getClientAttrs=function(){return jspb.Message.getFieldWithDefault(this,4,"")};proto.ims.XMMsgBind.prototype.setClientAttrs=function(a){jspb.Message.setField(this,4,a)};proto.ims.XMMsgBind.prototype.clearClientAttrs=function(){jspb.Message.setField(this,4,void 0)};
  426. proto.ims.XMMsgBind.prototype.hasClientAttrs=function(){return null!=jspb.Message.getField(this,4)};proto.ims.XMMsgBind.prototype.getCloudAttrs=function(){return jspb.Message.getFieldWithDefault(this,5,"")};proto.ims.XMMsgBind.prototype.setCloudAttrs=function(a){jspb.Message.setField(this,5,a)};proto.ims.XMMsgBind.prototype.clearCloudAttrs=function(){jspb.Message.setField(this,5,void 0)};proto.ims.XMMsgBind.prototype.hasCloudAttrs=function(){return null!=jspb.Message.getField(this,5)};
  427. proto.ims.XMMsgBind.prototype.getSig=function(){return jspb.Message.getFieldWithDefault(this,6,"")};proto.ims.XMMsgBind.prototype.setSig=function(a){jspb.Message.setField(this,6,a)};proto.ims.XMMsgBind.prototype.clearSig=function(){jspb.Message.setField(this,6,void 0)};proto.ims.XMMsgBind.prototype.hasSig=function(){return null!=jspb.Message.getField(this,6)};proto.ims.XMMsgBindResp=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.ims.XMMsgBindResp,jspb.Message);
  428. goog.DEBUG&&!COMPILED&&(proto.ims.XMMsgBindResp.displayName="proto.ims.XMMsgBindResp");jspb.Message.GENERATE_TO_OBJECT&&(proto.ims.XMMsgBindResp.prototype.toObject=function(a){return proto.ims.XMMsgBindResp.toObject(a,this)},proto.ims.XMMsgBindResp.toObject=function(a,b){var c={result:jspb.Message.getField(b,1),errorType:jspb.Message.getField(b,2),errorReason:jspb.Message.getField(b,3),errorDesc:jspb.Message.getField(b,4)};a&&(c.$jspbMessageInstance=b);return c});
  429. proto.ims.XMMsgBindResp.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.ims.XMMsgBindResp;return proto.ims.XMMsgBindResp.deserializeBinaryFromReader(b,a)};
  430. proto.ims.XMMsgBindResp.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readBool();a.setResult(c);break;case 2:c=b.readString();a.setErrorType(c);break;case 3:c=b.readString();a.setErrorReason(c);break;case 4:c=b.readString();a.setErrorDesc(c);break;default:b.skipField()}return a};proto.ims.XMMsgBindResp.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.ims.XMMsgBindResp.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  431. proto.ims.XMMsgBindResp.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeBool(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeString(2,c);c=jspb.Message.getField(a,3);null!=c&&b.writeString(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeString(4,c)};proto.ims.XMMsgBindResp.prototype.getResult=function(){return jspb.Message.getFieldWithDefault(this,1,!1)};proto.ims.XMMsgBindResp.prototype.setResult=function(a){jspb.Message.setField(this,1,a)};
  432. proto.ims.XMMsgBindResp.prototype.clearResult=function(){jspb.Message.setField(this,1,void 0)};proto.ims.XMMsgBindResp.prototype.hasResult=function(){return null!=jspb.Message.getField(this,1)};proto.ims.XMMsgBindResp.prototype.getErrorType=function(){return jspb.Message.getFieldWithDefault(this,2,"")};proto.ims.XMMsgBindResp.prototype.setErrorType=function(a){jspb.Message.setField(this,2,a)};proto.ims.XMMsgBindResp.prototype.clearErrorType=function(){jspb.Message.setField(this,2,void 0)};
  433. proto.ims.XMMsgBindResp.prototype.hasErrorType=function(){return null!=jspb.Message.getField(this,2)};proto.ims.XMMsgBindResp.prototype.getErrorReason=function(){return jspb.Message.getFieldWithDefault(this,3,"")};proto.ims.XMMsgBindResp.prototype.setErrorReason=function(a){jspb.Message.setField(this,3,a)};proto.ims.XMMsgBindResp.prototype.clearErrorReason=function(){jspb.Message.setField(this,3,void 0)};
  434. proto.ims.XMMsgBindResp.prototype.hasErrorReason=function(){return null!=jspb.Message.getField(this,3)};proto.ims.XMMsgBindResp.prototype.getErrorDesc=function(){return jspb.Message.getFieldWithDefault(this,4,"")};proto.ims.XMMsgBindResp.prototype.setErrorDesc=function(a){jspb.Message.setField(this,4,a)};proto.ims.XMMsgBindResp.prototype.clearErrorDesc=function(){jspb.Message.setField(this,4,void 0)};
  435. proto.ims.XMMsgBindResp.prototype.hasErrorDesc=function(){return null!=jspb.Message.getField(this,4)};proto.ims.XMMsgPing=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.ims.XMMsgPing,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.ims.XMMsgPing.displayName="proto.ims.XMMsgPing");
  436. jspb.Message.GENERATE_TO_OBJECT&&(proto.ims.XMMsgPing.prototype.toObject=function(a){return proto.ims.XMMsgPing.toObject(a,this)},proto.ims.XMMsgPing.toObject=function(a,b){var c,d={stats:b.getStats_asB64(),psc:(c=b.getPsc())&&proto.protocol.PushServiceConfigMsg.toObject(a,c)};a&&(d.$jspbMessageInstance=b);return d});proto.ims.XMMsgPing.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.ims.XMMsgPing;return proto.ims.XMMsgPing.deserializeBinaryFromReader(b,a)};
  437. proto.ims.XMMsgPing.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readBytes();a.setStats(c);break;case 2:c=new proto.protocol.PushServiceConfigMsg;b.readMessage(c,proto.protocol.PushServiceConfigMsg.deserializeBinaryFromReader);a.setPsc(c);break;default:b.skipField()}return a};proto.ims.XMMsgPing.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.ims.XMMsgPing.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  438. proto.ims.XMMsgPing.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeBytes(1,c);c=a.getPsc();null!=c&&b.writeMessage(2,c,proto.protocol.PushServiceConfigMsg.serializeBinaryToWriter)};proto.ims.XMMsgPing.prototype.getStats=function(){return jspb.Message.getFieldWithDefault(this,1,"")};proto.ims.XMMsgPing.prototype.getStats_asB64=function(){return jspb.Message.bytesAsB64(this.getStats())};proto.ims.XMMsgPing.prototype.getStats_asU8=function(){return jspb.Message.bytesAsU8(this.getStats())};
  439. proto.ims.XMMsgPing.prototype.setStats=function(a){jspb.Message.setField(this,1,a)};proto.ims.XMMsgPing.prototype.clearStats=function(){jspb.Message.setField(this,1,void 0)};proto.ims.XMMsgPing.prototype.hasStats=function(){return null!=jspb.Message.getField(this,1)};proto.ims.XMMsgPing.prototype.getPsc=function(){return jspb.Message.getWrapperField(this,proto.protocol.PushServiceConfigMsg,2)};proto.ims.XMMsgPing.prototype.setPsc=function(a){jspb.Message.setWrapperField(this,2,a)};
  440. proto.ims.XMMsgPing.prototype.clearPsc=function(){this.setPsc(void 0)};proto.ims.XMMsgPing.prototype.hasPsc=function(){return null!=jspb.Message.getField(this,2)};proto.ims.XMMsgNotify=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.ims.XMMsgNotify,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.ims.XMMsgNotify.displayName="proto.ims.XMMsgNotify");
  441. jspb.Message.GENERATE_TO_OBJECT&&(proto.ims.XMMsgNotify.prototype.toObject=function(a){return proto.ims.XMMsgNotify.toObject(a,this)},proto.ims.XMMsgNotify.toObject=function(a,b){var c={errCode:jspb.Message.getField(b,1),errStr:jspb.Message.getField(b,2)};a&&(c.$jspbMessageInstance=b);return c});proto.ims.XMMsgNotify.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.ims.XMMsgNotify;return proto.ims.XMMsgNotify.deserializeBinaryFromReader(b,a)};
  442. proto.ims.XMMsgNotify.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readInt32();a.setErrCode(c);break;case 2:c=b.readString();a.setErrStr(c);break;default:b.skipField()}return a};proto.ims.XMMsgNotify.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.ims.XMMsgNotify.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  443. proto.ims.XMMsgNotify.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeString(2,c)};proto.ims.XMMsgNotify.prototype.getErrCode=function(){return jspb.Message.getFieldWithDefault(this,1,0)};proto.ims.XMMsgNotify.prototype.setErrCode=function(a){jspb.Message.setField(this,1,a)};proto.ims.XMMsgNotify.prototype.clearErrCode=function(){jspb.Message.setField(this,1,void 0)};
  444. proto.ims.XMMsgNotify.prototype.hasErrCode=function(){return null!=jspb.Message.getField(this,1)};proto.ims.XMMsgNotify.prototype.getErrStr=function(){return jspb.Message.getFieldWithDefault(this,2,"")};proto.ims.XMMsgNotify.prototype.setErrStr=function(a){jspb.Message.setField(this,2,a)};proto.ims.XMMsgNotify.prototype.clearErrStr=function(){jspb.Message.setField(this,2,void 0)};proto.ims.XMMsgNotify.prototype.hasErrStr=function(){return null!=jspb.Message.getField(this,2)};proto.FilterRequest=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.FilterRequest,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.FilterRequest.displayName="proto.FilterRequest");
  445. jspb.Message.GENERATE_TO_OBJECT&&(proto.FilterRequest.prototype.toObject=function(a){return proto.FilterRequest.toObject(a,this)},proto.FilterRequest.toObject=function(a,b){var c,d={id:jspb.Message.getField(b,1),packet:(c=b.getPacket())&&proto.MIMCPacket.toObject(a,c)};a&&(d.$jspbMessageInstance=b);return d});proto.FilterRequest.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.FilterRequest;return proto.FilterRequest.deserializeBinaryFromReader(b,a)};
  446. proto.FilterRequest.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readString();a.setId(c);break;case 2:c=new proto.MIMCPacket;b.readMessage(c,proto.MIMCPacket.deserializeBinaryFromReader);a.setPacket(c);break;default:b.skipField()}return a};proto.FilterRequest.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.FilterRequest.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  447. proto.FilterRequest.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeString(1,c);c=a.getPacket();null!=c&&b.writeMessage(2,c,proto.MIMCPacket.serializeBinaryToWriter)};proto.FilterRequest.prototype.getId=function(){return jspb.Message.getFieldWithDefault(this,1,"")};proto.FilterRequest.prototype.setId=function(a){jspb.Message.setField(this,1,a)};proto.FilterRequest.prototype.clearId=function(){jspb.Message.setField(this,1,void 0)};
  448. proto.FilterRequest.prototype.hasId=function(){return null!=jspb.Message.getField(this,1)};proto.FilterRequest.prototype.getPacket=function(){return jspb.Message.getWrapperField(this,proto.MIMCPacket,2,1)};proto.FilterRequest.prototype.setPacket=function(a){jspb.Message.setWrapperField(this,2,a)};proto.FilterRequest.prototype.clearPacket=function(){jspb.Message.setField(this,2,void 0)};proto.FilterRequest.prototype.hasPacket=function(){return null!=jspb.Message.getField(this,2)};
  449. proto.FilterResponse=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.FilterResponse,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.FilterResponse.displayName="proto.FilterResponse");
  450. jspb.Message.GENERATE_TO_OBJECT&&(proto.FilterResponse.prototype.toObject=function(a){return proto.FilterResponse.toObject(a,this)},proto.FilterResponse.toObject=function(a,b){var c={id:jspb.Message.getField(b,1),type:jspb.Message.getField(b,2),errorcode:jspb.Message.getField(b,3),isfilter:jspb.Message.getField(b,4)};a&&(c.$jspbMessageInstance=b);return c});
  451. proto.FilterResponse.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.FilterResponse;return proto.FilterResponse.deserializeBinaryFromReader(b,a)};proto.FilterResponse.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readString();a.setId(c);break;case 2:c=b.readEnum();a.setType(c);break;case 3:c=b.readEnum();a.setErrorcode(c);break;case 4:c=b.readBool();a.setIsfilter(c);break;default:b.skipField()}return a};
  452. proto.FilterResponse.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.FilterResponse.serializeBinaryToWriter(this,a);return a.getResultBuffer()};proto.FilterResponse.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeString(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeEnum(2,c);c=jspb.Message.getField(a,3);null!=c&&b.writeEnum(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeBool(4,c)};
  453. proto.FilterResponse.prototype.getId=function(){return jspb.Message.getFieldWithDefault(this,1,"")};proto.FilterResponse.prototype.setId=function(a){jspb.Message.setField(this,1,a)};proto.FilterResponse.prototype.clearId=function(){jspb.Message.setField(this,1,void 0)};proto.FilterResponse.prototype.hasId=function(){return null!=jspb.Message.getField(this,1)};proto.FilterResponse.prototype.getType=function(){return jspb.Message.getFieldWithDefault(this,2,1)};
  454. proto.FilterResponse.prototype.setType=function(a){jspb.Message.setField(this,2,a)};proto.FilterResponse.prototype.clearType=function(){jspb.Message.setField(this,2,void 0)};proto.FilterResponse.prototype.hasType=function(){return null!=jspb.Message.getField(this,2)};proto.FilterResponse.prototype.getErrorcode=function(){return jspb.Message.getFieldWithDefault(this,3,0)};proto.FilterResponse.prototype.setErrorcode=function(a){jspb.Message.setField(this,3,a)};
  455. proto.FilterResponse.prototype.clearErrorcode=function(){jspb.Message.setField(this,3,void 0)};proto.FilterResponse.prototype.hasErrorcode=function(){return null!=jspb.Message.getField(this,3)};proto.FilterResponse.prototype.getIsfilter=function(){return jspb.Message.getFieldWithDefault(this,4,!1)};proto.FilterResponse.prototype.setIsfilter=function(a){jspb.Message.setField(this,4,a)};proto.FilterResponse.prototype.clearIsfilter=function(){jspb.Message.setField(this,4,void 0)};
  456. proto.FilterResponse.prototype.hasIsfilter=function(){return null!=jspb.Message.getField(this,4)};proto.PullMessageRequest=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.PullMessageRequest,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.PullMessageRequest.displayName="proto.PullMessageRequest");
  457. jspb.Message.GENERATE_TO_OBJECT&&(proto.PullMessageRequest.prototype.toObject=function(a){return proto.PullMessageRequest.toObject(a,this)},proto.PullMessageRequest.toObject=function(a,b){var c={uuid:jspb.Message.getField(b,1),resource:jspb.Message.getField(b,2)};a&&(c.$jspbMessageInstance=b);return c});proto.PullMessageRequest.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.PullMessageRequest;return proto.PullMessageRequest.deserializeBinaryFromReader(b,a)};
  458. proto.PullMessageRequest.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readUint64String();a.setUuid(c);break;case 2:c=b.readString();a.setResource(c);break;default:b.skipField()}return a};proto.PullMessageRequest.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.PullMessageRequest.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  459. proto.PullMessageRequest.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeUint64String(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeString(2,c)};proto.PullMessageRequest.prototype.getUuid=function(){return jspb.Message.getFieldWithDefault(this,1,"0")};proto.PullMessageRequest.prototype.setUuid=function(a){jspb.Message.setField(this,1,a)};proto.PullMessageRequest.prototype.clearUuid=function(){jspb.Message.setField(this,1,void 0)};
  460. proto.PullMessageRequest.prototype.hasUuid=function(){return null!=jspb.Message.getField(this,1)};proto.PullMessageRequest.prototype.getResource=function(){return jspb.Message.getFieldWithDefault(this,2,"")};proto.PullMessageRequest.prototype.setResource=function(a){jspb.Message.setField(this,2,a)};proto.PullMessageRequest.prototype.clearResource=function(){jspb.Message.setField(this,2,void 0)};proto.PullMessageRequest.prototype.hasResource=function(){return null!=jspb.Message.getField(this,2)};
  461. proto.TopicMessage=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.TopicMessage,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.TopicMessage.displayName="proto.TopicMessage");
  462. jspb.Message.GENERATE_TO_OBJECT&&(proto.TopicMessage.prototype.toObject=function(a){return proto.TopicMessage.toObject(a,this)},proto.TopicMessage.toObject=function(a,b){var c,d={topicid:jspb.Message.getField(b,1),packet:(c=b.getPacket())&&proto.MIMCPacket.toObject(a,c),uuid:jspb.Message.getField(b,3),resource:jspb.Message.getField(b,4)};a&&(d.$jspbMessageInstance=b);return d});
  463. proto.TopicMessage.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.TopicMessage;return proto.TopicMessage.deserializeBinaryFromReader(b,a)};
  464. proto.TopicMessage.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readUint64String();a.setTopicid(c);break;case 2:c=new proto.MIMCPacket;b.readMessage(c,proto.MIMCPacket.deserializeBinaryFromReader);a.setPacket(c);break;case 3:c=b.readInt64String();a.setUuid(c);break;case 4:c=b.readString();a.setResource(c);break;default:b.skipField()}return a};
  465. proto.TopicMessage.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.TopicMessage.serializeBinaryToWriter(this,a);return a.getResultBuffer()};proto.TopicMessage.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeUint64String(1,c);c=a.getPacket();null!=c&&b.writeMessage(2,c,proto.MIMCPacket.serializeBinaryToWriter);c=jspb.Message.getField(a,3);null!=c&&b.writeInt64String(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeString(4,c)};
  466. proto.TopicMessage.prototype.getTopicid=function(){return jspb.Message.getFieldWithDefault(this,1,"0")};proto.TopicMessage.prototype.setTopicid=function(a){jspb.Message.setField(this,1,a)};proto.TopicMessage.prototype.clearTopicid=function(){jspb.Message.setField(this,1,void 0)};proto.TopicMessage.prototype.hasTopicid=function(){return null!=jspb.Message.getField(this,1)};proto.TopicMessage.prototype.getPacket=function(){return jspb.Message.getWrapperField(this,proto.MIMCPacket,2,1)};
  467. proto.TopicMessage.prototype.setPacket=function(a){jspb.Message.setWrapperField(this,2,a)};proto.TopicMessage.prototype.clearPacket=function(){jspb.Message.setField(this,2,void 0)};proto.TopicMessage.prototype.hasPacket=function(){return null!=jspb.Message.getField(this,2)};proto.TopicMessage.prototype.getUuid=function(){return jspb.Message.getFieldWithDefault(this,3,"0")};proto.TopicMessage.prototype.setUuid=function(a){jspb.Message.setField(this,3,a)};
  468. proto.TopicMessage.prototype.clearUuid=function(){jspb.Message.setField(this,3,void 0)};proto.TopicMessage.prototype.hasUuid=function(){return null!=jspb.Message.getField(this,3)};proto.TopicMessage.prototype.getResource=function(){return jspb.Message.getFieldWithDefault(this,4,"")};proto.TopicMessage.prototype.setResource=function(a){jspb.Message.setField(this,4,a)};proto.TopicMessage.prototype.clearResource=function(){jspb.Message.setField(this,4,void 0)};
  469. proto.TopicMessage.prototype.hasResource=function(){return null!=jspb.Message.getField(this,4)};proto.QueryAppinfoRequest=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.QueryAppinfoRequest,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.QueryAppinfoRequest.displayName="proto.QueryAppinfoRequest");
  470. jspb.Message.GENERATE_TO_OBJECT&&(proto.QueryAppinfoRequest.prototype.toObject=function(a){return proto.QueryAppinfoRequest.toObject(a,this)},proto.QueryAppinfoRequest.toObject=function(a,b){var c={appid:jspb.Message.getField(b,1),context:jspb.Message.getField(b,2)};a&&(c.$jspbMessageInstance=b);return c});proto.QueryAppinfoRequest.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.QueryAppinfoRequest;return proto.QueryAppinfoRequest.deserializeBinaryFromReader(b,a)};
  471. proto.QueryAppinfoRequest.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readUint64String();a.setAppid(c);break;case 2:c=b.readString();a.setContext(c);break;default:b.skipField()}return a};proto.QueryAppinfoRequest.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.QueryAppinfoRequest.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  472. proto.QueryAppinfoRequest.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeUint64String(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeString(2,c)};proto.QueryAppinfoRequest.prototype.getAppid=function(){return jspb.Message.getFieldWithDefault(this,1,"0")};proto.QueryAppinfoRequest.prototype.setAppid=function(a){jspb.Message.setField(this,1,a)};proto.QueryAppinfoRequest.prototype.clearAppid=function(){jspb.Message.setField(this,1,void 0)};
  473. proto.QueryAppinfoRequest.prototype.hasAppid=function(){return null!=jspb.Message.getField(this,1)};proto.QueryAppinfoRequest.prototype.getContext=function(){return jspb.Message.getFieldWithDefault(this,2,"")};proto.QueryAppinfoRequest.prototype.setContext=function(a){jspb.Message.setField(this,2,a)};proto.QueryAppinfoRequest.prototype.clearContext=function(){jspb.Message.setField(this,2,void 0)};proto.QueryAppinfoRequest.prototype.hasContext=function(){return null!=jspb.Message.getField(this,2)};
  474. proto.Appinfo=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.Appinfo,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.Appinfo.displayName="proto.Appinfo");
  475. jspb.Message.GENERATE_TO_OBJECT&&(proto.Appinfo.prototype.toObject=function(a){return proto.Appinfo.toObject(a,this)},proto.Appinfo.toObject=function(a,b){var c={appid:jspb.Message.getField(b,1),msgcallbackurl:jspb.Message.getField(b,2),offlinemsgcallbackurl:jspb.Message.getField(b,3),uuidttl:jspb.Message.getField(b,4),context:jspb.Message.getField(b,5),messagefilter:jspb.Message.getField(b,6),ucmsgcallbackurl:jspb.Message.getField(b,7)};a&&(c.$jspbMessageInstance=b);return c});
  476. proto.Appinfo.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.Appinfo;return proto.Appinfo.deserializeBinaryFromReader(b,a)};
  477. proto.Appinfo.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readUint64String();a.setAppid(c);break;case 2:c=b.readString();a.setMsgcallbackurl(c);break;case 3:c=b.readString();a.setOfflinemsgcallbackurl(c);break;case 4:c=b.readUint64String();a.setUuidttl(c);break;case 5:c=b.readString();a.setContext(c);break;case 6:c=b.readString();a.setMessagefilter(c);break;case 7:c=b.readString();a.setUcmsgcallbackurl(c);break;default:b.skipField()}return a};
  478. proto.Appinfo.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.Appinfo.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  479. proto.Appinfo.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeUint64String(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeString(2,c);c=jspb.Message.getField(a,3);null!=c&&b.writeString(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeUint64String(4,c);c=jspb.Message.getField(a,5);null!=c&&b.writeString(5,c);c=jspb.Message.getField(a,6);null!=c&&b.writeString(6,c);c=jspb.Message.getField(a,7);null!=c&&b.writeString(7,c)};
  480. proto.Appinfo.prototype.getAppid=function(){return jspb.Message.getFieldWithDefault(this,1,"0")};proto.Appinfo.prototype.setAppid=function(a){jspb.Message.setField(this,1,a)};proto.Appinfo.prototype.clearAppid=function(){jspb.Message.setField(this,1,void 0)};proto.Appinfo.prototype.hasAppid=function(){return null!=jspb.Message.getField(this,1)};proto.Appinfo.prototype.getMsgcallbackurl=function(){return jspb.Message.getFieldWithDefault(this,2,"")};
  481. proto.Appinfo.prototype.setMsgcallbackurl=function(a){jspb.Message.setField(this,2,a)};proto.Appinfo.prototype.clearMsgcallbackurl=function(){jspb.Message.setField(this,2,void 0)};proto.Appinfo.prototype.hasMsgcallbackurl=function(){return null!=jspb.Message.getField(this,2)};proto.Appinfo.prototype.getOfflinemsgcallbackurl=function(){return jspb.Message.getFieldWithDefault(this,3,"")};proto.Appinfo.prototype.setOfflinemsgcallbackurl=function(a){jspb.Message.setField(this,3,a)};
  482. proto.Appinfo.prototype.clearOfflinemsgcallbackurl=function(){jspb.Message.setField(this,3,void 0)};proto.Appinfo.prototype.hasOfflinemsgcallbackurl=function(){return null!=jspb.Message.getField(this,3)};proto.Appinfo.prototype.getUuidttl=function(){return jspb.Message.getFieldWithDefault(this,4,"0")};proto.Appinfo.prototype.setUuidttl=function(a){jspb.Message.setField(this,4,a)};proto.Appinfo.prototype.clearUuidttl=function(){jspb.Message.setField(this,4,void 0)};
  483. proto.Appinfo.prototype.hasUuidttl=function(){return null!=jspb.Message.getField(this,4)};proto.Appinfo.prototype.getContext=function(){return jspb.Message.getFieldWithDefault(this,5,"")};proto.Appinfo.prototype.setContext=function(a){jspb.Message.setField(this,5,a)};proto.Appinfo.prototype.clearContext=function(){jspb.Message.setField(this,5,void 0)};proto.Appinfo.prototype.hasContext=function(){return null!=jspb.Message.getField(this,5)};
  484. proto.Appinfo.prototype.getMessagefilter=function(){return jspb.Message.getFieldWithDefault(this,6,"")};proto.Appinfo.prototype.setMessagefilter=function(a){jspb.Message.setField(this,6,a)};proto.Appinfo.prototype.clearMessagefilter=function(){jspb.Message.setField(this,6,void 0)};proto.Appinfo.prototype.hasMessagefilter=function(){return null!=jspb.Message.getField(this,6)};proto.Appinfo.prototype.getUcmsgcallbackurl=function(){return jspb.Message.getFieldWithDefault(this,7,"")};
  485. proto.Appinfo.prototype.setUcmsgcallbackurl=function(a){jspb.Message.setField(this,7,a)};proto.Appinfo.prototype.clearUcmsgcallbackurl=function(){jspb.Message.setField(this,7,void 0)};proto.Appinfo.prototype.hasUcmsgcallbackurl=function(){return null!=jspb.Message.getField(this,7)};proto.MIMCPacket=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.MIMCPacket,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.MIMCPacket.displayName="proto.MIMCPacket");
  486. jspb.Message.GENERATE_TO_OBJECT&&(proto.MIMCPacket.prototype.toObject=function(a){return proto.MIMCPacket.toObject(a,this)},proto.MIMCPacket.toObject=function(a,b){var c={packetid:jspb.Message.getField(b,1),pb_package:jspb.Message.getField(b,2),sequence:jspb.Message.getField(b,3),type:jspb.Message.getField(b,4),payload:b.getPayload_asB64(),timestamp:jspb.Message.getField(b,6)};a&&(c.$jspbMessageInstance=b);return c});
  487. proto.MIMCPacket.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.MIMCPacket;return proto.MIMCPacket.deserializeBinaryFromReader(b,a)};
  488. proto.MIMCPacket.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readString();a.setPacketid(c);break;case 2:c=b.readString();a.setPackage(c);break;case 3:c=b.readInt64String();a.setSequence(c);break;case 4:c=b.readEnum();a.setType(c);break;case 5:c=b.readBytes();a.setPayload(c);break;case 6:c=b.readInt64String();a.setTimestamp(c);break;default:b.skipField()}return a};
  489. proto.MIMCPacket.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.MIMCPacket.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  490. proto.MIMCPacket.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeString(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeString(2,c);c=jspb.Message.getField(a,3);null!=c&&b.writeInt64String(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeEnum(4,c);c=jspb.Message.getField(a,5);null!=c&&b.writeBytes(5,c);c=jspb.Message.getField(a,6);null!=c&&b.writeInt64String(6,c)};
  491. proto.MIMCPacket.prototype.getPacketid=function(){return jspb.Message.getFieldWithDefault(this,1,"")};proto.MIMCPacket.prototype.setPacketid=function(a){jspb.Message.setField(this,1,a)};proto.MIMCPacket.prototype.clearPacketid=function(){jspb.Message.setField(this,1,void 0)};proto.MIMCPacket.prototype.hasPacketid=function(){return null!=jspb.Message.getField(this,1)};proto.MIMCPacket.prototype.getPackage=function(){return jspb.Message.getFieldWithDefault(this,2,"")};
  492. proto.MIMCPacket.prototype.setPackage=function(a){jspb.Message.setField(this,2,a)};proto.MIMCPacket.prototype.clearPackage=function(){jspb.Message.setField(this,2,void 0)};proto.MIMCPacket.prototype.hasPackage=function(){return null!=jspb.Message.getField(this,2)};proto.MIMCPacket.prototype.getSequence=function(){return jspb.Message.getFieldWithDefault(this,3,"0")};proto.MIMCPacket.prototype.setSequence=function(a){jspb.Message.setField(this,3,a)};
  493. proto.MIMCPacket.prototype.clearSequence=function(){jspb.Message.setField(this,3,void 0)};proto.MIMCPacket.prototype.hasSequence=function(){return null!=jspb.Message.getField(this,3)};proto.MIMCPacket.prototype.getType=function(){return jspb.Message.getFieldWithDefault(this,4,1)};proto.MIMCPacket.prototype.setType=function(a){jspb.Message.setField(this,4,a)};proto.MIMCPacket.prototype.clearType=function(){jspb.Message.setField(this,4,void 0)};
  494. proto.MIMCPacket.prototype.hasType=function(){return null!=jspb.Message.getField(this,4)};proto.MIMCPacket.prototype.getPayload=function(){return jspb.Message.getFieldWithDefault(this,5,"")};proto.MIMCPacket.prototype.getPayload_asB64=function(){return jspb.Message.bytesAsB64(this.getPayload())};proto.MIMCPacket.prototype.getPayload_asU8=function(){return jspb.Message.bytesAsU8(this.getPayload())};proto.MIMCPacket.prototype.setPayload=function(a){jspb.Message.setField(this,5,a)};
  495. proto.MIMCPacket.prototype.clearPayload=function(){jspb.Message.setField(this,5,void 0)};proto.MIMCPacket.prototype.hasPayload=function(){return null!=jspb.Message.getField(this,5)};proto.MIMCPacket.prototype.getTimestamp=function(){return jspb.Message.getFieldWithDefault(this,6,"0")};proto.MIMCPacket.prototype.setTimestamp=function(a){jspb.Message.setField(this,6,a)};proto.MIMCPacket.prototype.clearTimestamp=function(){jspb.Message.setField(this,6,void 0)};
  496. proto.MIMCPacket.prototype.hasTimestamp=function(){return null!=jspb.Message.getField(this,6)};proto.MIMCPacketList=function(a){jspb.Message.initialize(this,a,0,-1,proto.MIMCPacketList.repeatedFields_,null)};goog.inherits(proto.MIMCPacketList,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.MIMCPacketList.displayName="proto.MIMCPacketList");proto.MIMCPacketList.repeatedFields_=[4];
  497. jspb.Message.GENERATE_TO_OBJECT&&(proto.MIMCPacketList.prototype.toObject=function(a){return proto.MIMCPacketList.toObject(a,this)},proto.MIMCPacketList.toObject=function(a,b){var c={uuid:jspb.Message.getField(b,1),resource:jspb.Message.getField(b,2),maxsequence:jspb.Message.getField(b,3),packetsList:jspb.Message.toObjectList(b.getPacketsList(),proto.MIMCPacket.toObject,a)};a&&(c.$jspbMessageInstance=b);return c});
  498. proto.MIMCPacketList.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.MIMCPacketList;return proto.MIMCPacketList.deserializeBinaryFromReader(b,a)};
  499. proto.MIMCPacketList.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readInt64String();a.setUuid(c);break;case 2:c=b.readString();a.setResource(c);break;case 3:c=b.readInt64String();a.setMaxsequence(c);break;case 4:c=new proto.MIMCPacket;b.readMessage(c,proto.MIMCPacket.deserializeBinaryFromReader);a.addPackets(c);break;default:b.skipField()}return a};
  500. proto.MIMCPacketList.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.MIMCPacketList.serializeBinaryToWriter(this,a);return a.getResultBuffer()};proto.MIMCPacketList.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeInt64String(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeString(2,c);c=jspb.Message.getField(a,3);null!=c&&b.writeInt64String(3,c);c=a.getPacketsList();0<c.length&&b.writeRepeatedMessage(4,c,proto.MIMCPacket.serializeBinaryToWriter)};
  501. proto.MIMCPacketList.prototype.getUuid=function(){return jspb.Message.getFieldWithDefault(this,1,"0")};proto.MIMCPacketList.prototype.setUuid=function(a){jspb.Message.setField(this,1,a)};proto.MIMCPacketList.prototype.clearUuid=function(){jspb.Message.setField(this,1,void 0)};proto.MIMCPacketList.prototype.hasUuid=function(){return null!=jspb.Message.getField(this,1)};proto.MIMCPacketList.prototype.getResource=function(){return jspb.Message.getFieldWithDefault(this,2,"")};
  502. proto.MIMCPacketList.prototype.setResource=function(a){jspb.Message.setField(this,2,a)};proto.MIMCPacketList.prototype.clearResource=function(){jspb.Message.setField(this,2,void 0)};proto.MIMCPacketList.prototype.hasResource=function(){return null!=jspb.Message.getField(this,2)};proto.MIMCPacketList.prototype.getMaxsequence=function(){return jspb.Message.getFieldWithDefault(this,3,"0")};proto.MIMCPacketList.prototype.setMaxsequence=function(a){jspb.Message.setField(this,3,a)};
  503. proto.MIMCPacketList.prototype.clearMaxsequence=function(){jspb.Message.setField(this,3,void 0)};proto.MIMCPacketList.prototype.hasMaxsequence=function(){return null!=jspb.Message.getField(this,3)};proto.MIMCPacketList.prototype.getPacketsList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.MIMCPacket,4)};proto.MIMCPacketList.prototype.setPacketsList=function(a){jspb.Message.setRepeatedWrapperField(this,4,a)};
  504. proto.MIMCPacketList.prototype.addPackets=function(a,b){return jspb.Message.addToRepeatedWrapperField(this,4,a,proto.MIMCPacket,b)};proto.MIMCPacketList.prototype.clearPacketsList=function(){this.setPacketsList([])};proto.MIMCPacketAck=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.MIMCPacketAck,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.MIMCPacketAck.displayName="proto.MIMCPacketAck");
  505. jspb.Message.GENERATE_TO_OBJECT&&(proto.MIMCPacketAck.prototype.toObject=function(a){return proto.MIMCPacketAck.toObject(a,this)},proto.MIMCPacketAck.toObject=function(a,b){var c={packetid:jspb.Message.getField(b,1),uuid:jspb.Message.getField(b,2),resource:jspb.Message.getField(b,3),sequence:jspb.Message.getField(b,4),timestamp:jspb.Message.getField(b,5),pb_package:jspb.Message.getField(b,6),errormsg:jspb.Message.getField(b,7)};a&&(c.$jspbMessageInstance=b);return c});
  506. proto.MIMCPacketAck.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.MIMCPacketAck;return proto.MIMCPacketAck.deserializeBinaryFromReader(b,a)};
  507. proto.MIMCPacketAck.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readString();a.setPacketid(c);break;case 2:c=b.readInt64String();a.setUuid(c);break;case 3:c=b.readString();a.setResource(c);break;case 4:c=b.readInt64String();a.setSequence(c);break;case 5:c=b.readInt64String();a.setTimestamp(c);break;case 6:c=b.readString();a.setPackage(c);break;case 7:c=b.readString();a.setErrormsg(c);break;default:b.skipField()}return a};
  508. proto.MIMCPacketAck.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.MIMCPacketAck.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  509. proto.MIMCPacketAck.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeString(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeInt64String(2,c);c=jspb.Message.getField(a,3);null!=c&&b.writeString(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeInt64String(4,c);c=jspb.Message.getField(a,5);null!=c&&b.writeInt64String(5,c);c=jspb.Message.getField(a,6);null!=c&&b.writeString(6,c);c=jspb.Message.getField(a,7);null!=c&&b.writeString(7,c)};
  510. proto.MIMCPacketAck.prototype.getPacketid=function(){return jspb.Message.getFieldWithDefault(this,1,"")};proto.MIMCPacketAck.prototype.setPacketid=function(a){jspb.Message.setField(this,1,a)};proto.MIMCPacketAck.prototype.clearPacketid=function(){jspb.Message.setField(this,1,void 0)};proto.MIMCPacketAck.prototype.hasPacketid=function(){return null!=jspb.Message.getField(this,1)};proto.MIMCPacketAck.prototype.getUuid=function(){return jspb.Message.getFieldWithDefault(this,2,"0")};
  511. proto.MIMCPacketAck.prototype.setUuid=function(a){jspb.Message.setField(this,2,a)};proto.MIMCPacketAck.prototype.clearUuid=function(){jspb.Message.setField(this,2,void 0)};proto.MIMCPacketAck.prototype.hasUuid=function(){return null!=jspb.Message.getField(this,2)};proto.MIMCPacketAck.prototype.getResource=function(){return jspb.Message.getFieldWithDefault(this,3,"")};proto.MIMCPacketAck.prototype.setResource=function(a){jspb.Message.setField(this,3,a)};
  512. proto.MIMCPacketAck.prototype.clearResource=function(){jspb.Message.setField(this,3,void 0)};proto.MIMCPacketAck.prototype.hasResource=function(){return null!=jspb.Message.getField(this,3)};proto.MIMCPacketAck.prototype.getSequence=function(){return jspb.Message.getFieldWithDefault(this,4,"0")};proto.MIMCPacketAck.prototype.setSequence=function(a){jspb.Message.setField(this,4,a)};proto.MIMCPacketAck.prototype.clearSequence=function(){jspb.Message.setField(this,4,void 0)};
  513. proto.MIMCPacketAck.prototype.hasSequence=function(){return null!=jspb.Message.getField(this,4)};proto.MIMCPacketAck.prototype.getTimestamp=function(){return jspb.Message.getFieldWithDefault(this,5,"0")};proto.MIMCPacketAck.prototype.setTimestamp=function(a){jspb.Message.setField(this,5,a)};proto.MIMCPacketAck.prototype.clearTimestamp=function(){jspb.Message.setField(this,5,void 0)};proto.MIMCPacketAck.prototype.hasTimestamp=function(){return null!=jspb.Message.getField(this,5)};
  514. proto.MIMCPacketAck.prototype.getPackage=function(){return jspb.Message.getFieldWithDefault(this,6,"")};proto.MIMCPacketAck.prototype.setPackage=function(a){jspb.Message.setField(this,6,a)};proto.MIMCPacketAck.prototype.clearPackage=function(){jspb.Message.setField(this,6,void 0)};proto.MIMCPacketAck.prototype.hasPackage=function(){return null!=jspb.Message.getField(this,6)};proto.MIMCPacketAck.prototype.getErrormsg=function(){return jspb.Message.getFieldWithDefault(this,7,"")};
  515. proto.MIMCPacketAck.prototype.setErrormsg=function(a){jspb.Message.setField(this,7,a)};proto.MIMCPacketAck.prototype.clearErrormsg=function(){jspb.Message.setField(this,7,void 0)};proto.MIMCPacketAck.prototype.hasErrormsg=function(){return null!=jspb.Message.getField(this,7)};proto.MIMCP2PMessage=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.MIMCP2PMessage,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.MIMCP2PMessage.displayName="proto.MIMCP2PMessage");
  516. jspb.Message.GENERATE_TO_OBJECT&&(proto.MIMCP2PMessage.prototype.toObject=function(a){return proto.MIMCP2PMessage.toObject(a,this)},proto.MIMCP2PMessage.toObject=function(a,b){var c,d={from:(c=b.getFrom())&&proto.MIMCUser.toObject(a,c),to:(c=b.getTo())&&proto.MIMCUser.toObject(a,c),payload:b.getPayload_asB64(),isstore:jspb.Message.getField(b,4),biztype:jspb.Message.getField(b,5)};a&&(d.$jspbMessageInstance=b);return d});
  517. proto.MIMCP2PMessage.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.MIMCP2PMessage;return proto.MIMCP2PMessage.deserializeBinaryFromReader(b,a)};
  518. proto.MIMCP2PMessage.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=new proto.MIMCUser;b.readMessage(c,proto.MIMCUser.deserializeBinaryFromReader);a.setFrom(c);break;case 2:c=new proto.MIMCUser;b.readMessage(c,proto.MIMCUser.deserializeBinaryFromReader);a.setTo(c);break;case 3:c=b.readBytes();a.setPayload(c);break;case 4:c=b.readBool();a.setIsstore(c);break;case 5:c=b.readString();a.setBiztype(c);break;default:b.skipField()}return a};
  519. proto.MIMCP2PMessage.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.MIMCP2PMessage.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  520. proto.MIMCP2PMessage.serializeBinaryToWriter=function(a,b){var c=a.getFrom();null!=c&&b.writeMessage(1,c,proto.MIMCUser.serializeBinaryToWriter);c=a.getTo();null!=c&&b.writeMessage(2,c,proto.MIMCUser.serializeBinaryToWriter);c=jspb.Message.getField(a,3);null!=c&&b.writeBytes(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeBool(4,c);c=jspb.Message.getField(a,5);null!=c&&b.writeString(5,c)};proto.MIMCP2PMessage.prototype.getFrom=function(){return jspb.Message.getWrapperField(this,proto.MIMCUser,1)};
  521. proto.MIMCP2PMessage.prototype.setFrom=function(a){jspb.Message.setWrapperField(this,1,a)};proto.MIMCP2PMessage.prototype.clearFrom=function(){this.setFrom(void 0)};proto.MIMCP2PMessage.prototype.hasFrom=function(){return null!=jspb.Message.getField(this,1)};proto.MIMCP2PMessage.prototype.getTo=function(){return jspb.Message.getWrapperField(this,proto.MIMCUser,2)};proto.MIMCP2PMessage.prototype.setTo=function(a){jspb.Message.setWrapperField(this,2,a)};proto.MIMCP2PMessage.prototype.clearTo=function(){this.setTo(void 0)};
  522. proto.MIMCP2PMessage.prototype.hasTo=function(){return null!=jspb.Message.getField(this,2)};proto.MIMCP2PMessage.prototype.getPayload=function(){return jspb.Message.getFieldWithDefault(this,3,"")};proto.MIMCP2PMessage.prototype.getPayload_asB64=function(){return jspb.Message.bytesAsB64(this.getPayload())};proto.MIMCP2PMessage.prototype.getPayload_asU8=function(){return jspb.Message.bytesAsU8(this.getPayload())};proto.MIMCP2PMessage.prototype.setPayload=function(a){jspb.Message.setField(this,3,a)};
  523. proto.MIMCP2PMessage.prototype.clearPayload=function(){jspb.Message.setField(this,3,void 0)};proto.MIMCP2PMessage.prototype.hasPayload=function(){return null!=jspb.Message.getField(this,3)};proto.MIMCP2PMessage.prototype.getIsstore=function(){return jspb.Message.getFieldWithDefault(this,4,!1)};proto.MIMCP2PMessage.prototype.setIsstore=function(a){jspb.Message.setField(this,4,a)};proto.MIMCP2PMessage.prototype.clearIsstore=function(){jspb.Message.setField(this,4,void 0)};
  524. proto.MIMCP2PMessage.prototype.hasIsstore=function(){return null!=jspb.Message.getField(this,4)};proto.MIMCP2PMessage.prototype.getBiztype=function(){return jspb.Message.getFieldWithDefault(this,5,"")};proto.MIMCP2PMessage.prototype.setBiztype=function(a){jspb.Message.setField(this,5,a)};proto.MIMCP2PMessage.prototype.clearBiztype=function(){jspb.Message.setField(this,5,void 0)};proto.MIMCP2PMessage.prototype.hasBiztype=function(){return null!=jspb.Message.getField(this,5)};
  525. proto.MIMCP2TMessage=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.MIMCP2TMessage,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.MIMCP2TMessage.displayName="proto.MIMCP2TMessage");
  526. jspb.Message.GENERATE_TO_OBJECT&&(proto.MIMCP2TMessage.prototype.toObject=function(a){return proto.MIMCP2TMessage.toObject(a,this)},proto.MIMCP2TMessage.toObject=function(a,b){var c,d={from:(c=b.getFrom())&&proto.MIMCUser.toObject(a,c),to:(c=b.getTo())&&proto.MIMCGroup.toObject(a,c),payload:b.getPayload_asB64(),isstore:jspb.Message.getField(b,4),biztype:jspb.Message.getField(b,5)};a&&(d.$jspbMessageInstance=b);return d});
  527. proto.MIMCP2TMessage.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.MIMCP2TMessage;return proto.MIMCP2TMessage.deserializeBinaryFromReader(b,a)};
  528. proto.MIMCP2TMessage.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=new proto.MIMCUser;b.readMessage(c,proto.MIMCUser.deserializeBinaryFromReader);a.setFrom(c);break;case 2:c=new proto.MIMCGroup;b.readMessage(c,proto.MIMCGroup.deserializeBinaryFromReader);a.setTo(c);break;case 3:c=b.readBytes();a.setPayload(c);break;case 4:c=b.readBool();a.setIsstore(c);break;case 5:c=b.readString();a.setBiztype(c);break;default:b.skipField()}return a};
  529. proto.MIMCP2TMessage.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.MIMCP2TMessage.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  530. proto.MIMCP2TMessage.serializeBinaryToWriter=function(a,b){var c=a.getFrom();null!=c&&b.writeMessage(1,c,proto.MIMCUser.serializeBinaryToWriter);c=a.getTo();null!=c&&b.writeMessage(2,c,proto.MIMCGroup.serializeBinaryToWriter);c=jspb.Message.getField(a,3);null!=c&&b.writeBytes(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeBool(4,c);c=jspb.Message.getField(a,5);null!=c&&b.writeString(5,c)};
  531. proto.MIMCP2TMessage.prototype.getFrom=function(){return jspb.Message.getWrapperField(this,proto.MIMCUser,1)};proto.MIMCP2TMessage.prototype.setFrom=function(a){jspb.Message.setWrapperField(this,1,a)};proto.MIMCP2TMessage.prototype.clearFrom=function(){this.setFrom(void 0)};proto.MIMCP2TMessage.prototype.hasFrom=function(){return null!=jspb.Message.getField(this,1)};proto.MIMCP2TMessage.prototype.getTo=function(){return jspb.Message.getWrapperField(this,proto.MIMCGroup,2)};
  532. proto.MIMCP2TMessage.prototype.setTo=function(a){jspb.Message.setWrapperField(this,2,a)};proto.MIMCP2TMessage.prototype.clearTo=function(){this.setTo(void 0)};proto.MIMCP2TMessage.prototype.hasTo=function(){return null!=jspb.Message.getField(this,2)};proto.MIMCP2TMessage.prototype.getPayload=function(){return jspb.Message.getFieldWithDefault(this,3,"")};proto.MIMCP2TMessage.prototype.getPayload_asB64=function(){return jspb.Message.bytesAsB64(this.getPayload())};
  533. proto.MIMCP2TMessage.prototype.getPayload_asU8=function(){return jspb.Message.bytesAsU8(this.getPayload())};proto.MIMCP2TMessage.prototype.setPayload=function(a){jspb.Message.setField(this,3,a)};proto.MIMCP2TMessage.prototype.clearPayload=function(){jspb.Message.setField(this,3,void 0)};proto.MIMCP2TMessage.prototype.hasPayload=function(){return null!=jspb.Message.getField(this,3)};proto.MIMCP2TMessage.prototype.getIsstore=function(){return jspb.Message.getFieldWithDefault(this,4,!1)};
  534. proto.MIMCP2TMessage.prototype.setIsstore=function(a){jspb.Message.setField(this,4,a)};proto.MIMCP2TMessage.prototype.clearIsstore=function(){jspb.Message.setField(this,4,void 0)};proto.MIMCP2TMessage.prototype.hasIsstore=function(){return null!=jspb.Message.getField(this,4)};proto.MIMCP2TMessage.prototype.getBiztype=function(){return jspb.Message.getFieldWithDefault(this,5,"")};proto.MIMCP2TMessage.prototype.setBiztype=function(a){jspb.Message.setField(this,5,a)};
  535. proto.MIMCP2TMessage.prototype.clearBiztype=function(){jspb.Message.setField(this,5,void 0)};proto.MIMCP2TMessage.prototype.hasBiztype=function(){return null!=jspb.Message.getField(this,5)};proto.MIMCSequenceAck=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.MIMCSequenceAck,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.MIMCSequenceAck.displayName="proto.MIMCSequenceAck");
  536. jspb.Message.GENERATE_TO_OBJECT&&(proto.MIMCSequenceAck.prototype.toObject=function(a){return proto.MIMCSequenceAck.toObject(a,this)},proto.MIMCSequenceAck.toObject=function(a,b){var c={uuid:jspb.Message.getField(b,1),resource:jspb.Message.getField(b,2),sequence:jspb.Message.getField(b,3)};a&&(c.$jspbMessageInstance=b);return c});
  537. proto.MIMCSequenceAck.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.MIMCSequenceAck;return proto.MIMCSequenceAck.deserializeBinaryFromReader(b,a)};proto.MIMCSequenceAck.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readInt64String();a.setUuid(c);break;case 2:c=b.readString();a.setResource(c);break;case 3:c=b.readInt64String();a.setSequence(c);break;default:b.skipField()}return a};
  538. proto.MIMCSequenceAck.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.MIMCSequenceAck.serializeBinaryToWriter(this,a);return a.getResultBuffer()};proto.MIMCSequenceAck.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeInt64String(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeString(2,c);c=jspb.Message.getField(a,3);null!=c&&b.writeInt64String(3,c)};
  539. proto.MIMCSequenceAck.prototype.getUuid=function(){return jspb.Message.getFieldWithDefault(this,1,"0")};proto.MIMCSequenceAck.prototype.setUuid=function(a){jspb.Message.setField(this,1,a)};proto.MIMCSequenceAck.prototype.clearUuid=function(){jspb.Message.setField(this,1,void 0)};proto.MIMCSequenceAck.prototype.hasUuid=function(){return null!=jspb.Message.getField(this,1)};proto.MIMCSequenceAck.prototype.getResource=function(){return jspb.Message.getFieldWithDefault(this,2,"")};
  540. proto.MIMCSequenceAck.prototype.setResource=function(a){jspb.Message.setField(this,2,a)};proto.MIMCSequenceAck.prototype.clearResource=function(){jspb.Message.setField(this,2,void 0)};proto.MIMCSequenceAck.prototype.hasResource=function(){return null!=jspb.Message.getField(this,2)};proto.MIMCSequenceAck.prototype.getSequence=function(){return jspb.Message.getFieldWithDefault(this,3,"0")};proto.MIMCSequenceAck.prototype.setSequence=function(a){jspb.Message.setField(this,3,a)};
  541. proto.MIMCSequenceAck.prototype.clearSequence=function(){jspb.Message.setField(this,3,void 0)};proto.MIMCSequenceAck.prototype.hasSequence=function(){return null!=jspb.Message.getField(this,3)};proto.MIMCPull=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.MIMCPull,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.MIMCPull.displayName="proto.MIMCPull");
  542. jspb.Message.GENERATE_TO_OBJECT&&(proto.MIMCPull.prototype.toObject=function(a){return proto.MIMCPull.toObject(a,this)},proto.MIMCPull.toObject=function(a,b){var c={uuid:jspb.Message.getField(b,1),resource:jspb.Message.getField(b,2)};a&&(c.$jspbMessageInstance=b);return c});proto.MIMCPull.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.MIMCPull;return proto.MIMCPull.deserializeBinaryFromReader(b,a)};
  543. proto.MIMCPull.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readInt64String();a.setUuid(c);break;case 2:c=b.readString();a.setResource(c);break;default:b.skipField()}return a};proto.MIMCPull.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.MIMCPull.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  544. proto.MIMCPull.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeInt64String(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeString(2,c)};proto.MIMCPull.prototype.getUuid=function(){return jspb.Message.getFieldWithDefault(this,1,"0")};proto.MIMCPull.prototype.setUuid=function(a){jspb.Message.setField(this,1,a)};proto.MIMCPull.prototype.clearUuid=function(){jspb.Message.setField(this,1,void 0)};
  545. proto.MIMCPull.prototype.hasUuid=function(){return null!=jspb.Message.getField(this,1)};proto.MIMCPull.prototype.getResource=function(){return jspb.Message.getFieldWithDefault(this,2,"")};proto.MIMCPull.prototype.setResource=function(a){jspb.Message.setField(this,2,a)};proto.MIMCPull.prototype.clearResource=function(){jspb.Message.setField(this,2,void 0)};proto.MIMCPull.prototype.hasResource=function(){return null!=jspb.Message.getField(this,2)};
  546. proto.P2PPushMesage=function(a){jspb.Message.initialize(this,a,0,-1,proto.P2PPushMesage.repeatedFields_,null)};goog.inherits(proto.P2PPushMesage,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.P2PPushMesage.displayName="proto.P2PPushMesage");proto.P2PPushMesage.repeatedFields_=[2];
  547. jspb.Message.GENERATE_TO_OBJECT&&(proto.P2PPushMesage.prototype.toObject=function(a){return proto.P2PPushMesage.toObject(a,this)},proto.P2PPushMesage.toObject=function(a,b){var c,d={from:(c=b.getFrom())&&proto.MIMCUser.toObject(a,c),toList:jspb.Message.toObjectList(b.getToList(),proto.MIMCUser.toObject,a),payload:b.getPayload_asB64(),isstore:jspb.Message.getField(b,4),biztype:jspb.Message.getField(b,5)};a&&(d.$jspbMessageInstance=b);return d});
  548. proto.P2PPushMesage.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.P2PPushMesage;return proto.P2PPushMesage.deserializeBinaryFromReader(b,a)};
  549. proto.P2PPushMesage.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=new proto.MIMCUser;b.readMessage(c,proto.MIMCUser.deserializeBinaryFromReader);a.setFrom(c);break;case 2:c=new proto.MIMCUser;b.readMessage(c,proto.MIMCUser.deserializeBinaryFromReader);a.addTo(c);break;case 3:c=b.readBytes();a.setPayload(c);break;case 4:c=b.readBool();a.setIsstore(c);break;case 5:c=b.readString();a.setBiztype(c);break;default:b.skipField()}return a};
  550. proto.P2PPushMesage.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.P2PPushMesage.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  551. proto.P2PPushMesage.serializeBinaryToWriter=function(a,b){var c=a.getFrom();null!=c&&b.writeMessage(1,c,proto.MIMCUser.serializeBinaryToWriter);c=a.getToList();0<c.length&&b.writeRepeatedMessage(2,c,proto.MIMCUser.serializeBinaryToWriter);c=jspb.Message.getField(a,3);null!=c&&b.writeBytes(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeBool(4,c);c=jspb.Message.getField(a,5);null!=c&&b.writeString(5,c)};
  552. proto.P2PPushMesage.prototype.getFrom=function(){return jspb.Message.getWrapperField(this,proto.MIMCUser,1)};proto.P2PPushMesage.prototype.setFrom=function(a){jspb.Message.setWrapperField(this,1,a)};proto.P2PPushMesage.prototype.clearFrom=function(){this.setFrom(void 0)};proto.P2PPushMesage.prototype.hasFrom=function(){return null!=jspb.Message.getField(this,1)};proto.P2PPushMesage.prototype.getToList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.MIMCUser,2)};
  553. proto.P2PPushMesage.prototype.setToList=function(a){jspb.Message.setRepeatedWrapperField(this,2,a)};proto.P2PPushMesage.prototype.addTo=function(a,b){return jspb.Message.addToRepeatedWrapperField(this,2,a,proto.MIMCUser,b)};proto.P2PPushMesage.prototype.clearToList=function(){this.setToList([])};proto.P2PPushMesage.prototype.getPayload=function(){return jspb.Message.getFieldWithDefault(this,3,"")};proto.P2PPushMesage.prototype.getPayload_asB64=function(){return jspb.Message.bytesAsB64(this.getPayload())};
  554. proto.P2PPushMesage.prototype.getPayload_asU8=function(){return jspb.Message.bytesAsU8(this.getPayload())};proto.P2PPushMesage.prototype.setPayload=function(a){jspb.Message.setField(this,3,a)};proto.P2PPushMesage.prototype.clearPayload=function(){jspb.Message.setField(this,3,void 0)};proto.P2PPushMesage.prototype.hasPayload=function(){return null!=jspb.Message.getField(this,3)};proto.P2PPushMesage.prototype.getIsstore=function(){return jspb.Message.getFieldWithDefault(this,4,!1)};
  555. proto.P2PPushMesage.prototype.setIsstore=function(a){jspb.Message.setField(this,4,a)};proto.P2PPushMesage.prototype.clearIsstore=function(){jspb.Message.setField(this,4,void 0)};proto.P2PPushMesage.prototype.hasIsstore=function(){return null!=jspb.Message.getField(this,4)};proto.P2PPushMesage.prototype.getBiztype=function(){return jspb.Message.getFieldWithDefault(this,5,"")};proto.P2PPushMesage.prototype.setBiztype=function(a){jspb.Message.setField(this,5,a)};
  556. proto.P2PPushMesage.prototype.clearBiztype=function(){jspb.Message.setField(this,5,void 0)};proto.P2PPushMesage.prototype.hasBiztype=function(){return null!=jspb.Message.getField(this,5)};proto.P2TPushMesage=function(a){jspb.Message.initialize(this,a,0,-1,proto.P2TPushMesage.repeatedFields_,null)};goog.inherits(proto.P2TPushMesage,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.P2TPushMesage.displayName="proto.P2TPushMesage");proto.P2TPushMesage.repeatedFields_=[2];
  557. jspb.Message.GENERATE_TO_OBJECT&&(proto.P2TPushMesage.prototype.toObject=function(a){return proto.P2TPushMesage.toObject(a,this)},proto.P2TPushMesage.toObject=function(a,b){var c,d={from:(c=b.getFrom())&&proto.MIMCUser.toObject(a,c),toList:jspb.Message.toObjectList(b.getToList(),proto.MIMCGroup.toObject,a),payload:b.getPayload_asB64(),isstore:jspb.Message.getField(b,4),biztype:jspb.Message.getField(b,5)};a&&(d.$jspbMessageInstance=b);return d});
  558. proto.P2TPushMesage.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.P2TPushMesage;return proto.P2TPushMesage.deserializeBinaryFromReader(b,a)};
  559. proto.P2TPushMesage.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=new proto.MIMCUser;b.readMessage(c,proto.MIMCUser.deserializeBinaryFromReader);a.setFrom(c);break;case 2:c=new proto.MIMCGroup;b.readMessage(c,proto.MIMCGroup.deserializeBinaryFromReader);a.addTo(c);break;case 3:c=b.readBytes();a.setPayload(c);break;case 4:c=b.readBool();a.setIsstore(c);break;case 5:c=b.readString();a.setBiztype(c);break;default:b.skipField()}return a};
  560. proto.P2TPushMesage.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.P2TPushMesage.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  561. proto.P2TPushMesage.serializeBinaryToWriter=function(a,b){var c=a.getFrom();null!=c&&b.writeMessage(1,c,proto.MIMCUser.serializeBinaryToWriter);c=a.getToList();0<c.length&&b.writeRepeatedMessage(2,c,proto.MIMCGroup.serializeBinaryToWriter);c=jspb.Message.getField(a,3);null!=c&&b.writeBytes(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeBool(4,c);c=jspb.Message.getField(a,5);null!=c&&b.writeString(5,c)};
  562. proto.P2TPushMesage.prototype.getFrom=function(){return jspb.Message.getWrapperField(this,proto.MIMCUser,1)};proto.P2TPushMesage.prototype.setFrom=function(a){jspb.Message.setWrapperField(this,1,a)};proto.P2TPushMesage.prototype.clearFrom=function(){this.setFrom(void 0)};proto.P2TPushMesage.prototype.hasFrom=function(){return null!=jspb.Message.getField(this,1)};proto.P2TPushMesage.prototype.getToList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.MIMCGroup,2)};
  563. proto.P2TPushMesage.prototype.setToList=function(a){jspb.Message.setRepeatedWrapperField(this,2,a)};proto.P2TPushMesage.prototype.addTo=function(a,b){return jspb.Message.addToRepeatedWrapperField(this,2,a,proto.MIMCGroup,b)};proto.P2TPushMesage.prototype.clearToList=function(){this.setToList([])};proto.P2TPushMesage.prototype.getPayload=function(){return jspb.Message.getFieldWithDefault(this,3,"")};proto.P2TPushMesage.prototype.getPayload_asB64=function(){return jspb.Message.bytesAsB64(this.getPayload())};
  564. proto.P2TPushMesage.prototype.getPayload_asU8=function(){return jspb.Message.bytesAsU8(this.getPayload())};proto.P2TPushMesage.prototype.setPayload=function(a){jspb.Message.setField(this,3,a)};proto.P2TPushMesage.prototype.clearPayload=function(){jspb.Message.setField(this,3,void 0)};proto.P2TPushMesage.prototype.hasPayload=function(){return null!=jspb.Message.getField(this,3)};proto.P2TPushMesage.prototype.getIsstore=function(){return jspb.Message.getFieldWithDefault(this,4,!1)};
  565. proto.P2TPushMesage.prototype.setIsstore=function(a){jspb.Message.setField(this,4,a)};proto.P2TPushMesage.prototype.clearIsstore=function(){jspb.Message.setField(this,4,void 0)};proto.P2TPushMesage.prototype.hasIsstore=function(){return null!=jspb.Message.getField(this,4)};proto.P2TPushMesage.prototype.getBiztype=function(){return jspb.Message.getFieldWithDefault(this,5,"")};proto.P2TPushMesage.prototype.setBiztype=function(a){jspb.Message.setField(this,5,a)};
  566. proto.P2TPushMesage.prototype.clearBiztype=function(){jspb.Message.setField(this,5,void 0)};proto.P2TPushMesage.prototype.hasBiztype=function(){return null!=jspb.Message.getField(this,5)};proto.MIMCUser=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.MIMCUser,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.MIMCUser.displayName="proto.MIMCUser");
  567. jspb.Message.GENERATE_TO_OBJECT&&(proto.MIMCUser.prototype.toObject=function(a){return proto.MIMCUser.toObject(a,this)},proto.MIMCUser.toObject=function(a,b){var c={appid:jspb.Message.getField(b,1),appaccount:jspb.Message.getField(b,2),uuid:jspb.Message.getField(b,3),resource:jspb.Message.getField(b,4)};a&&(c.$jspbMessageInstance=b);return c});proto.MIMCUser.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.MIMCUser;return proto.MIMCUser.deserializeBinaryFromReader(b,a)};
  568. proto.MIMCUser.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readInt64String();a.setAppid(c);break;case 2:c=b.readString();a.setAppaccount(c);break;case 3:c=b.readInt64String();a.setUuid(c);break;case 4:c=b.readString();a.setResource(c);break;default:b.skipField()}return a};proto.MIMCUser.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.MIMCUser.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  569. proto.MIMCUser.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeInt64String(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeString(2,c);c=jspb.Message.getField(a,3);null!=c&&b.writeInt64String(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeString(4,c)};proto.MIMCUser.prototype.getAppid=function(){return jspb.Message.getFieldWithDefault(this,1,"0")};proto.MIMCUser.prototype.setAppid=function(a){jspb.Message.setField(this,1,a)};
  570. proto.MIMCUser.prototype.clearAppid=function(){jspb.Message.setField(this,1,void 0)};proto.MIMCUser.prototype.hasAppid=function(){return null!=jspb.Message.getField(this,1)};proto.MIMCUser.prototype.getAppaccount=function(){return jspb.Message.getFieldWithDefault(this,2,"")};proto.MIMCUser.prototype.setAppaccount=function(a){jspb.Message.setField(this,2,a)};proto.MIMCUser.prototype.clearAppaccount=function(){jspb.Message.setField(this,2,void 0)};
  571. proto.MIMCUser.prototype.hasAppaccount=function(){return null!=jspb.Message.getField(this,2)};proto.MIMCUser.prototype.getUuid=function(){return jspb.Message.getFieldWithDefault(this,3,"0")};proto.MIMCUser.prototype.setUuid=function(a){jspb.Message.setField(this,3,a)};proto.MIMCUser.prototype.clearUuid=function(){jspb.Message.setField(this,3,void 0)};proto.MIMCUser.prototype.hasUuid=function(){return null!=jspb.Message.getField(this,3)};
  572. proto.MIMCUser.prototype.getResource=function(){return jspb.Message.getFieldWithDefault(this,4,"")};proto.MIMCUser.prototype.setResource=function(a){jspb.Message.setField(this,4,a)};proto.MIMCUser.prototype.clearResource=function(){jspb.Message.setField(this,4,void 0)};proto.MIMCUser.prototype.hasResource=function(){return null!=jspb.Message.getField(this,4)};proto.MIMCGroup=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.MIMCGroup,jspb.Message);
  573. goog.DEBUG&&!COMPILED&&(proto.MIMCGroup.displayName="proto.MIMCGroup");jspb.Message.GENERATE_TO_OBJECT&&(proto.MIMCGroup.prototype.toObject=function(a){return proto.MIMCGroup.toObject(a,this)},proto.MIMCGroup.toObject=function(a,b){var c={appid:jspb.Message.getField(b,1),topicid:jspb.Message.getField(b,2)};a&&(c.$jspbMessageInstance=b);return c});
  574. proto.MIMCGroup.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.MIMCGroup;return proto.MIMCGroup.deserializeBinaryFromReader(b,a)};proto.MIMCGroup.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readInt64String();a.setAppid(c);break;case 2:c=b.readInt64String();a.setTopicid(c);break;default:b.skipField()}return a};
  575. proto.MIMCGroup.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.MIMCGroup.serializeBinaryToWriter(this,a);return a.getResultBuffer()};proto.MIMCGroup.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeInt64String(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeInt64String(2,c)};proto.MIMCGroup.prototype.getAppid=function(){return jspb.Message.getFieldWithDefault(this,1,"0")};
  576. proto.MIMCGroup.prototype.setAppid=function(a){jspb.Message.setField(this,1,a)};proto.MIMCGroup.prototype.clearAppid=function(){jspb.Message.setField(this,1,void 0)};proto.MIMCGroup.prototype.hasAppid=function(){return null!=jspb.Message.getField(this,1)};proto.MIMCGroup.prototype.getTopicid=function(){return jspb.Message.getFieldWithDefault(this,2,"0")};proto.MIMCGroup.prototype.setTopicid=function(a){jspb.Message.setField(this,2,a)};
  577. proto.MIMCGroup.prototype.clearTopicid=function(){jspb.Message.setField(this,2,void 0)};proto.MIMCGroup.prototype.hasTopicid=function(){return null!=jspb.Message.getField(this,2)};proto.UCGroup=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.UCGroup,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.UCGroup.displayName="proto.UCGroup");
  578. jspb.Message.GENERATE_TO_OBJECT&&(proto.UCGroup.prototype.toObject=function(a){return proto.UCGroup.toObject(a,this)},proto.UCGroup.toObject=function(a,b){var c={appid:jspb.Message.getField(b,1),topicid:jspb.Message.getField(b,2)};a&&(c.$jspbMessageInstance=b);return c});proto.UCGroup.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.UCGroup;return proto.UCGroup.deserializeBinaryFromReader(b,a)};
  579. proto.UCGroup.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readInt64String();a.setAppid(c);break;case 2:c=b.readInt64String();a.setTopicid(c);break;default:b.skipField()}return a};proto.UCGroup.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.UCGroup.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  580. proto.UCGroup.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeInt64String(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeInt64String(2,c)};proto.UCGroup.prototype.getAppid=function(){return jspb.Message.getFieldWithDefault(this,1,"0")};proto.UCGroup.prototype.setAppid=function(a){jspb.Message.setField(this,1,a)};proto.UCGroup.prototype.clearAppid=function(){jspb.Message.setField(this,1,void 0)};
  581. proto.UCGroup.prototype.hasAppid=function(){return null!=jspb.Message.getField(this,1)};proto.UCGroup.prototype.getTopicid=function(){return jspb.Message.getFieldWithDefault(this,2,"0")};proto.UCGroup.prototype.setTopicid=function(a){jspb.Message.setField(this,2,a)};proto.UCGroup.prototype.clearTopicid=function(){jspb.Message.setField(this,2,void 0)};proto.UCGroup.prototype.hasTopicid=function(){return null!=jspb.Message.getField(this,2)};
  582. proto.UCPacket=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.UCPacket,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.UCPacket.displayName="proto.UCPacket");
  583. jspb.Message.GENERATE_TO_OBJECT&&(proto.UCPacket.prototype.toObject=function(a){return proto.UCPacket.toObject(a,this)},proto.UCPacket.toObject=function(a,b){var c,d={user:(c=b.getUser())&&proto.MIMCUser.toObject(a,c),type:jspb.Message.getField(b,2),payload:b.getPayload_asB64(),packetid:jspb.Message.getField(b,4)};a&&(d.$jspbMessageInstance=b);return d});
  584. proto.UCPacket.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.UCPacket;return proto.UCPacket.deserializeBinaryFromReader(b,a)};
  585. proto.UCPacket.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=new proto.MIMCUser;b.readMessage(c,proto.MIMCUser.deserializeBinaryFromReader);a.setUser(c);break;case 2:c=b.readEnum();a.setType(c);break;case 3:c=b.readBytes();a.setPayload(c);break;case 4:c=b.readString();a.setPacketid(c);break;default:b.skipField()}return a};
  586. proto.UCPacket.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.UCPacket.serializeBinaryToWriter(this,a);return a.getResultBuffer()};proto.UCPacket.serializeBinaryToWriter=function(a,b){var c=a.getUser();null!=c&&b.writeMessage(1,c,proto.MIMCUser.serializeBinaryToWriter);c=jspb.Message.getField(a,2);null!=c&&b.writeEnum(2,c);c=jspb.Message.getField(a,3);null!=c&&b.writeBytes(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeString(4,c)};
  587. proto.UCPacket.prototype.getUser=function(){return jspb.Message.getWrapperField(this,proto.MIMCUser,1,1)};proto.UCPacket.prototype.setUser=function(a){jspb.Message.setWrapperField(this,1,a)};proto.UCPacket.prototype.clearUser=function(){jspb.Message.setField(this,1,void 0)};proto.UCPacket.prototype.hasUser=function(){return null!=jspb.Message.getField(this,1)};proto.UCPacket.prototype.getType=function(){return jspb.Message.getFieldWithDefault(this,2,1)};
  588. proto.UCPacket.prototype.setType=function(a){jspb.Message.setField(this,2,a)};proto.UCPacket.prototype.clearType=function(){jspb.Message.setField(this,2,void 0)};proto.UCPacket.prototype.hasType=function(){return null!=jspb.Message.getField(this,2)};proto.UCPacket.prototype.getPayload=function(){return jspb.Message.getFieldWithDefault(this,3,"")};proto.UCPacket.prototype.getPayload_asB64=function(){return jspb.Message.bytesAsB64(this.getPayload())};proto.UCPacket.prototype.getPayload_asU8=function(){return jspb.Message.bytesAsU8(this.getPayload())};
  589. proto.UCPacket.prototype.setPayload=function(a){jspb.Message.setField(this,3,a)};proto.UCPacket.prototype.clearPayload=function(){jspb.Message.setField(this,3,void 0)};proto.UCPacket.prototype.hasPayload=function(){return null!=jspb.Message.getField(this,3)};proto.UCPacket.prototype.getPacketid=function(){return jspb.Message.getFieldWithDefault(this,4,"")};proto.UCPacket.prototype.setPacketid=function(a){jspb.Message.setField(this,4,a)};
  590. proto.UCPacket.prototype.clearPacketid=function(){jspb.Message.setField(this,4,void 0)};proto.UCPacket.prototype.hasPacketid=function(){return null!=jspb.Message.getField(this,4)};proto.UCExchange=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.UCExchange,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.UCExchange.displayName="proto.UCExchange");
  591. jspb.Message.GENERATE_TO_OBJECT&&(proto.UCExchange.prototype.toObject=function(a){return proto.UCExchange.toObject(a,this)},proto.UCExchange.toObject=function(a,b){var c,d={feinfo:(c=b.getFeinfo())&&proto.FeInfo.toObject(a,c),packet:(c=b.getPacket())&&proto.UCPacket.toObject(a,c),pb_package:jspb.Message.getField(b,3)};a&&(d.$jspbMessageInstance=b);return d});
  592. proto.UCExchange.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.UCExchange;return proto.UCExchange.deserializeBinaryFromReader(b,a)};
  593. proto.UCExchange.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=new proto.FeInfo;b.readMessage(c,proto.FeInfo.deserializeBinaryFromReader);a.setFeinfo(c);break;case 2:c=new proto.UCPacket;b.readMessage(c,proto.UCPacket.deserializeBinaryFromReader);a.setPacket(c);break;case 3:c=b.readString();a.setPackage(c);break;default:b.skipField()}return a};
  594. proto.UCExchange.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.UCExchange.serializeBinaryToWriter(this,a);return a.getResultBuffer()};proto.UCExchange.serializeBinaryToWriter=function(a,b){var c=a.getFeinfo();null!=c&&b.writeMessage(1,c,proto.FeInfo.serializeBinaryToWriter);c=a.getPacket();null!=c&&b.writeMessage(2,c,proto.UCPacket.serializeBinaryToWriter);c=jspb.Message.getField(a,3);null!=c&&b.writeString(3,c)};
  595. proto.UCExchange.prototype.getFeinfo=function(){return jspb.Message.getWrapperField(this,proto.FeInfo,1)};proto.UCExchange.prototype.setFeinfo=function(a){jspb.Message.setWrapperField(this,1,a)};proto.UCExchange.prototype.clearFeinfo=function(){this.setFeinfo(void 0)};proto.UCExchange.prototype.hasFeinfo=function(){return null!=jspb.Message.getField(this,1)};proto.UCExchange.prototype.getPacket=function(){return jspb.Message.getWrapperField(this,proto.UCPacket,2,1)};
  596. proto.UCExchange.prototype.setPacket=function(a){jspb.Message.setWrapperField(this,2,a)};proto.UCExchange.prototype.clearPacket=function(){jspb.Message.setField(this,2,void 0)};proto.UCExchange.prototype.hasPacket=function(){return null!=jspb.Message.getField(this,2)};proto.UCExchange.prototype.getPackage=function(){return jspb.Message.getFieldWithDefault(this,3,"")};proto.UCExchange.prototype.setPackage=function(a){jspb.Message.setField(this,3,a)};
  597. proto.UCExchange.prototype.clearPackage=function(){jspb.Message.setField(this,3,void 0)};proto.UCExchange.prototype.hasPackage=function(){return null!=jspb.Message.getField(this,3)};proto.UCJoin=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.UCJoin,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.UCJoin.displayName="proto.UCJoin");
  598. jspb.Message.GENERATE_TO_OBJECT&&(proto.UCJoin.prototype.toObject=function(a){return proto.UCJoin.toObject(a,this)},proto.UCJoin.toObject=function(a,b){var c,d={group:(c=b.getGroup())&&proto.UCGroup.toObject(a,c)};a&&(d.$jspbMessageInstance=b);return d});proto.UCJoin.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.UCJoin;return proto.UCJoin.deserializeBinaryFromReader(b,a)};
  599. proto.UCJoin.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=new proto.UCGroup;b.readMessage(c,proto.UCGroup.deserializeBinaryFromReader);a.setGroup(c);break;default:b.skipField()}return a};proto.UCJoin.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.UCJoin.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  600. proto.UCJoin.serializeBinaryToWriter=function(a,b){a=a.getGroup();null!=a&&b.writeMessage(1,a,proto.UCGroup.serializeBinaryToWriter)};proto.UCJoin.prototype.getGroup=function(){return jspb.Message.getWrapperField(this,proto.UCGroup,1,1)};proto.UCJoin.prototype.setGroup=function(a){jspb.Message.setWrapperField(this,1,a)};proto.UCJoin.prototype.clearGroup=function(){jspb.Message.setField(this,1,void 0)};proto.UCJoin.prototype.hasGroup=function(){return null!=jspb.Message.getField(this,1)};
  601. proto.UCJoinResp=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.UCJoinResp,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.UCJoinResp.displayName="proto.UCJoinResp");
  602. jspb.Message.GENERATE_TO_OBJECT&&(proto.UCJoinResp.prototype.toObject=function(a){return proto.UCJoinResp.toObject(a,this)},proto.UCJoinResp.toObject=function(a,b){var c,d={group:(c=b.getGroup())&&proto.UCGroup.toObject(a,c),code:jspb.Message.getField(b,2),message:jspb.Message.getField(b,3)};a&&(d.$jspbMessageInstance=b);return d});proto.UCJoinResp.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.UCJoinResp;return proto.UCJoinResp.deserializeBinaryFromReader(b,a)};
  603. proto.UCJoinResp.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=new proto.UCGroup;b.readMessage(c,proto.UCGroup.deserializeBinaryFromReader);a.setGroup(c);break;case 2:c=b.readInt32();a.setCode(c);break;case 3:c=b.readString();a.setMessage(c);break;default:b.skipField()}return a};proto.UCJoinResp.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.UCJoinResp.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  604. proto.UCJoinResp.serializeBinaryToWriter=function(a,b){var c=a.getGroup();null!=c&&b.writeMessage(1,c,proto.UCGroup.serializeBinaryToWriter);c=jspb.Message.getField(a,2);null!=c&&b.writeInt32(2,c);c=jspb.Message.getField(a,3);null!=c&&b.writeString(3,c)};proto.UCJoinResp.prototype.getGroup=function(){return jspb.Message.getWrapperField(this,proto.UCGroup,1,1)};proto.UCJoinResp.prototype.setGroup=function(a){jspb.Message.setWrapperField(this,1,a)};
  605. proto.UCJoinResp.prototype.clearGroup=function(){jspb.Message.setField(this,1,void 0)};proto.UCJoinResp.prototype.hasGroup=function(){return null!=jspb.Message.getField(this,1)};proto.UCJoinResp.prototype.getCode=function(){return jspb.Message.getFieldWithDefault(this,2,0)};proto.UCJoinResp.prototype.setCode=function(a){jspb.Message.setField(this,2,a)};proto.UCJoinResp.prototype.clearCode=function(){jspb.Message.setField(this,2,void 0)};
  606. proto.UCJoinResp.prototype.hasCode=function(){return null!=jspb.Message.getField(this,2)};proto.UCJoinResp.prototype.getMessage=function(){return jspb.Message.getFieldWithDefault(this,3,"")};proto.UCJoinResp.prototype.setMessage=function(a){jspb.Message.setField(this,3,a)};proto.UCJoinResp.prototype.clearMessage=function(){jspb.Message.setField(this,3,void 0)};proto.UCJoinResp.prototype.hasMessage=function(){return null!=jspb.Message.getField(this,3)};
  607. proto.UCQuit=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.UCQuit,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.UCQuit.displayName="proto.UCQuit");jspb.Message.GENERATE_TO_OBJECT&&(proto.UCQuit.prototype.toObject=function(a){return proto.UCQuit.toObject(a,this)},proto.UCQuit.toObject=function(a,b){var c,d={group:(c=b.getGroup())&&proto.UCGroup.toObject(a,c)};a&&(d.$jspbMessageInstance=b);return d});
  608. proto.UCQuit.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.UCQuit;return proto.UCQuit.deserializeBinaryFromReader(b,a)};proto.UCQuit.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=new proto.UCGroup;b.readMessage(c,proto.UCGroup.deserializeBinaryFromReader);a.setGroup(c);break;default:b.skipField()}return a};
  609. proto.UCQuit.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.UCQuit.serializeBinaryToWriter(this,a);return a.getResultBuffer()};proto.UCQuit.serializeBinaryToWriter=function(a,b){a=a.getGroup();null!=a&&b.writeMessage(1,a,proto.UCGroup.serializeBinaryToWriter)};proto.UCQuit.prototype.getGroup=function(){return jspb.Message.getWrapperField(this,proto.UCGroup,1,1)};proto.UCQuit.prototype.setGroup=function(a){jspb.Message.setWrapperField(this,1,a)};
  610. proto.UCQuit.prototype.clearGroup=function(){jspb.Message.setField(this,1,void 0)};proto.UCQuit.prototype.hasGroup=function(){return null!=jspb.Message.getField(this,1)};proto.UCQuitResp=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.UCQuitResp,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.UCQuitResp.displayName="proto.UCQuitResp");
  611. jspb.Message.GENERATE_TO_OBJECT&&(proto.UCQuitResp.prototype.toObject=function(a){return proto.UCQuitResp.toObject(a,this)},proto.UCQuitResp.toObject=function(a,b){var c,d={group:(c=b.getGroup())&&proto.UCGroup.toObject(a,c),code:jspb.Message.getField(b,2),message:jspb.Message.getField(b,3)};a&&(d.$jspbMessageInstance=b);return d});proto.UCQuitResp.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.UCQuitResp;return proto.UCQuitResp.deserializeBinaryFromReader(b,a)};
  612. proto.UCQuitResp.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=new proto.UCGroup;b.readMessage(c,proto.UCGroup.deserializeBinaryFromReader);a.setGroup(c);break;case 2:c=b.readInt32();a.setCode(c);break;case 3:c=b.readString();a.setMessage(c);break;default:b.skipField()}return a};proto.UCQuitResp.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.UCQuitResp.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  613. proto.UCQuitResp.serializeBinaryToWriter=function(a,b){var c=a.getGroup();null!=c&&b.writeMessage(1,c,proto.UCGroup.serializeBinaryToWriter);c=jspb.Message.getField(a,2);null!=c&&b.writeInt32(2,c);c=jspb.Message.getField(a,3);null!=c&&b.writeString(3,c)};proto.UCQuitResp.prototype.getGroup=function(){return jspb.Message.getWrapperField(this,proto.UCGroup,1,1)};proto.UCQuitResp.prototype.setGroup=function(a){jspb.Message.setWrapperField(this,1,a)};
  614. proto.UCQuitResp.prototype.clearGroup=function(){jspb.Message.setField(this,1,void 0)};proto.UCQuitResp.prototype.hasGroup=function(){return null!=jspb.Message.getField(this,1)};proto.UCQuitResp.prototype.getCode=function(){return jspb.Message.getFieldWithDefault(this,2,0)};proto.UCQuitResp.prototype.setCode=function(a){jspb.Message.setField(this,2,a)};proto.UCQuitResp.prototype.clearCode=function(){jspb.Message.setField(this,2,void 0)};
  615. proto.UCQuitResp.prototype.hasCode=function(){return null!=jspb.Message.getField(this,2)};proto.UCQuitResp.prototype.getMessage=function(){return jspb.Message.getFieldWithDefault(this,3,"")};proto.UCQuitResp.prototype.setMessage=function(a){jspb.Message.setField(this,3,a)};proto.UCQuitResp.prototype.clearMessage=function(){jspb.Message.setField(this,3,void 0)};proto.UCQuitResp.prototype.hasMessage=function(){return null!=jspb.Message.getField(this,3)};
  616. proto.UCPing=function(a){jspb.Message.initialize(this,a,0,-1,proto.UCPing.repeatedFields_,null)};goog.inherits(proto.UCPing,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.UCPing.displayName="proto.UCPing");proto.UCPing.repeatedFields_=[1];
  617. jspb.Message.GENERATE_TO_OBJECT&&(proto.UCPing.prototype.toObject=function(a){return proto.UCPing.toObject(a,this)},proto.UCPing.toObject=function(a,b){var c={groupList:jspb.Message.toObjectList(b.getGroupList(),proto.UCGroup.toObject,a)};a&&(c.$jspbMessageInstance=b);return c});proto.UCPing.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.UCPing;return proto.UCPing.deserializeBinaryFromReader(b,a)};
  618. proto.UCPing.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=new proto.UCGroup;b.readMessage(c,proto.UCGroup.deserializeBinaryFromReader);a.addGroup(c);break;default:b.skipField()}return a};proto.UCPing.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.UCPing.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  619. proto.UCPing.serializeBinaryToWriter=function(a,b){a=a.getGroupList();0<a.length&&b.writeRepeatedMessage(1,a,proto.UCGroup.serializeBinaryToWriter)};proto.UCPing.prototype.getGroupList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.UCGroup,1)};proto.UCPing.prototype.setGroupList=function(a){jspb.Message.setRepeatedWrapperField(this,1,a)};proto.UCPing.prototype.addGroup=function(a,b){return jspb.Message.addToRepeatedWrapperField(this,1,a,proto.UCGroup,b)};
  620. proto.UCPing.prototype.clearGroupList=function(){this.setGroupList([])};proto.UCMessage=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.UCMessage,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.UCMessage.displayName="proto.UCMessage");
  621. jspb.Message.GENERATE_TO_OBJECT&&(proto.UCMessage.prototype.toObject=function(a){return proto.UCMessage.toObject(a,this)},proto.UCMessage.toObject=function(a,b){var c,d={group:(c=b.getGroup())&&proto.UCGroup.toObject(a,c),payload:b.getPayload_asB64(),sequence:jspb.Message.getField(b,3),isstore:jspb.Message.getField(b,4),user:(c=b.getUser())&&proto.MIMCUser.toObject(a,c),timestamp:jspb.Message.getField(b,6),packetid:jspb.Message.getField(b,7),biztype:jspb.Message.getField(b,8)};a&&(d.$jspbMessageInstance=
  622. b);return d});proto.UCMessage.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.UCMessage;return proto.UCMessage.deserializeBinaryFromReader(b,a)};
  623. proto.UCMessage.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=new proto.UCGroup;b.readMessage(c,proto.UCGroup.deserializeBinaryFromReader);a.setGroup(c);break;case 2:c=b.readBytes();a.setPayload(c);break;case 3:c=b.readInt64String();a.setSequence(c);break;case 4:c=b.readBool();a.setIsstore(c);break;case 5:c=new proto.MIMCUser;b.readMessage(c,proto.MIMCUser.deserializeBinaryFromReader);a.setUser(c);break;case 6:c=b.readInt64String();
  624. a.setTimestamp(c);break;case 7:c=b.readString();a.setPacketid(c);break;case 8:c=b.readString();a.setBiztype(c);break;default:b.skipField()}return a};proto.UCMessage.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.UCMessage.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  625. proto.UCMessage.serializeBinaryToWriter=function(a,b){var c=a.getGroup();null!=c&&b.writeMessage(1,c,proto.UCGroup.serializeBinaryToWriter);c=jspb.Message.getField(a,2);null!=c&&b.writeBytes(2,c);c=jspb.Message.getField(a,3);null!=c&&b.writeInt64String(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeBool(4,c);c=a.getUser();null!=c&&b.writeMessage(5,c,proto.MIMCUser.serializeBinaryToWriter);c=jspb.Message.getField(a,6);null!=c&&b.writeInt64String(6,c);c=jspb.Message.getField(a,7);null!=c&&b.writeString(7,
  626. c);c=jspb.Message.getField(a,8);null!=c&&b.writeString(8,c)};proto.UCMessage.prototype.getGroup=function(){return jspb.Message.getWrapperField(this,proto.UCGroup,1,1)};proto.UCMessage.prototype.setGroup=function(a){jspb.Message.setWrapperField(this,1,a)};proto.UCMessage.prototype.clearGroup=function(){jspb.Message.setField(this,1,void 0)};proto.UCMessage.prototype.hasGroup=function(){return null!=jspb.Message.getField(this,1)};
  627. proto.UCMessage.prototype.getPayload=function(){return jspb.Message.getFieldWithDefault(this,2,"")};proto.UCMessage.prototype.getPayload_asB64=function(){return jspb.Message.bytesAsB64(this.getPayload())};proto.UCMessage.prototype.getPayload_asU8=function(){return jspb.Message.bytesAsU8(this.getPayload())};proto.UCMessage.prototype.setPayload=function(a){jspb.Message.setField(this,2,a)};proto.UCMessage.prototype.clearPayload=function(){jspb.Message.setField(this,2,void 0)};
  628. proto.UCMessage.prototype.hasPayload=function(){return null!=jspb.Message.getField(this,2)};proto.UCMessage.prototype.getSequence=function(){return jspb.Message.getFieldWithDefault(this,3,"0")};proto.UCMessage.prototype.setSequence=function(a){jspb.Message.setField(this,3,a)};proto.UCMessage.prototype.clearSequence=function(){jspb.Message.setField(this,3,void 0)};proto.UCMessage.prototype.hasSequence=function(){return null!=jspb.Message.getField(this,3)};
  629. proto.UCMessage.prototype.getIsstore=function(){return jspb.Message.getFieldWithDefault(this,4,!1)};proto.UCMessage.prototype.setIsstore=function(a){jspb.Message.setField(this,4,a)};proto.UCMessage.prototype.clearIsstore=function(){jspb.Message.setField(this,4,void 0)};proto.UCMessage.prototype.hasIsstore=function(){return null!=jspb.Message.getField(this,4)};proto.UCMessage.prototype.getUser=function(){return jspb.Message.getWrapperField(this,proto.MIMCUser,5)};
  630. proto.UCMessage.prototype.setUser=function(a){jspb.Message.setWrapperField(this,5,a)};proto.UCMessage.prototype.clearUser=function(){this.setUser(void 0)};proto.UCMessage.prototype.hasUser=function(){return null!=jspb.Message.getField(this,5)};proto.UCMessage.prototype.getTimestamp=function(){return jspb.Message.getFieldWithDefault(this,6,"0")};proto.UCMessage.prototype.setTimestamp=function(a){jspb.Message.setField(this,6,a)};
  631. proto.UCMessage.prototype.clearTimestamp=function(){jspb.Message.setField(this,6,void 0)};proto.UCMessage.prototype.hasTimestamp=function(){return null!=jspb.Message.getField(this,6)};proto.UCMessage.prototype.getPacketid=function(){return jspb.Message.getFieldWithDefault(this,7,"")};proto.UCMessage.prototype.setPacketid=function(a){jspb.Message.setField(this,7,a)};proto.UCMessage.prototype.clearPacketid=function(){jspb.Message.setField(this,7,void 0)};
  632. proto.UCMessage.prototype.hasPacketid=function(){return null!=jspb.Message.getField(this,7)};proto.UCMessage.prototype.getBiztype=function(){return jspb.Message.getFieldWithDefault(this,8,"")};proto.UCMessage.prototype.setBiztype=function(a){jspb.Message.setField(this,8,a)};proto.UCMessage.prototype.clearBiztype=function(){jspb.Message.setField(this,8,void 0)};proto.UCMessage.prototype.hasBiztype=function(){return null!=jspb.Message.getField(this,8)};
  633. proto.UCPushMessage=function(a){jspb.Message.initialize(this,a,0,-1,proto.UCPushMessage.repeatedFields_,null)};goog.inherits(proto.UCPushMessage,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.UCPushMessage.displayName="proto.UCPushMessage");proto.UCPushMessage.repeatedFields_=[2,3];
  634. jspb.Message.GENERATE_TO_OBJECT&&(proto.UCPushMessage.prototype.toObject=function(a){return proto.UCPushMessage.toObject(a,this)},proto.UCPushMessage.toObject=function(a,b){var c,d={user:(c=b.getUser())&&proto.MIMCUser.toObject(a,c),groupList:jspb.Message.toObjectList(b.getGroupList(),proto.UCGroup.toObject,a),payloadsList:b.getPayloadsList_asB64(),isstore:jspb.Message.getField(b,4),timestamp:jspb.Message.getField(b,5),packetid:jspb.Message.getField(b,6),biztype:jspb.Message.getField(b,7)};a&&(d.$jspbMessageInstance=
  635. b);return d});proto.UCPushMessage.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.UCPushMessage;return proto.UCPushMessage.deserializeBinaryFromReader(b,a)};
  636. proto.UCPushMessage.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=new proto.MIMCUser;b.readMessage(c,proto.MIMCUser.deserializeBinaryFromReader);a.setUser(c);break;case 2:c=new proto.UCGroup;b.readMessage(c,proto.UCGroup.deserializeBinaryFromReader);a.addGroup(c);break;case 3:c=b.readBytes();a.addPayloads(c);break;case 4:c=b.readBool();a.setIsstore(c);break;case 5:c=b.readInt64String();a.setTimestamp(c);break;case 6:c=b.readString();
  637. a.setPacketid(c);break;case 7:c=b.readString();a.setBiztype(c);break;default:b.skipField()}return a};proto.UCPushMessage.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.UCPushMessage.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  638. proto.UCPushMessage.serializeBinaryToWriter=function(a,b){var c=a.getUser();null!=c&&b.writeMessage(1,c,proto.MIMCUser.serializeBinaryToWriter);c=a.getGroupList();0<c.length&&b.writeRepeatedMessage(2,c,proto.UCGroup.serializeBinaryToWriter);c=a.getPayloadsList_asU8();0<c.length&&b.writeRepeatedBytes(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeBool(4,c);c=jspb.Message.getField(a,5);null!=c&&b.writeInt64String(5,c);c=jspb.Message.getField(a,6);null!=c&&b.writeString(6,c);c=jspb.Message.getField(a,
  639. 7);null!=c&&b.writeString(7,c)};proto.UCPushMessage.prototype.getUser=function(){return jspb.Message.getWrapperField(this,proto.MIMCUser,1,1)};proto.UCPushMessage.prototype.setUser=function(a){jspb.Message.setWrapperField(this,1,a)};proto.UCPushMessage.prototype.clearUser=function(){jspb.Message.setField(this,1,void 0)};proto.UCPushMessage.prototype.hasUser=function(){return null!=jspb.Message.getField(this,1)};
  640. proto.UCPushMessage.prototype.getGroupList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.UCGroup,2)};proto.UCPushMessage.prototype.setGroupList=function(a){jspb.Message.setRepeatedWrapperField(this,2,a)};proto.UCPushMessage.prototype.addGroup=function(a,b){return jspb.Message.addToRepeatedWrapperField(this,2,a,proto.UCGroup,b)};proto.UCPushMessage.prototype.clearGroupList=function(){this.setGroupList([])};
  641. proto.UCPushMessage.prototype.getPayloadsList=function(){return jspb.Message.getRepeatedField(this,3)};proto.UCPushMessage.prototype.getPayloadsList_asB64=function(){return jspb.Message.bytesListAsB64(this.getPayloadsList())};proto.UCPushMessage.prototype.getPayloadsList_asU8=function(){return jspb.Message.bytesListAsU8(this.getPayloadsList())};proto.UCPushMessage.prototype.setPayloadsList=function(a){jspb.Message.setField(this,3,a||[])};
  642. proto.UCPushMessage.prototype.addPayloads=function(a,b){jspb.Message.addToRepeatedField(this,3,a,b)};proto.UCPushMessage.prototype.clearPayloadsList=function(){this.setPayloadsList([])};proto.UCPushMessage.prototype.getIsstore=function(){return jspb.Message.getFieldWithDefault(this,4,!1)};proto.UCPushMessage.prototype.setIsstore=function(a){jspb.Message.setField(this,4,a)};proto.UCPushMessage.prototype.clearIsstore=function(){jspb.Message.setField(this,4,void 0)};
  643. proto.UCPushMessage.prototype.hasIsstore=function(){return null!=jspb.Message.getField(this,4)};proto.UCPushMessage.prototype.getTimestamp=function(){return jspb.Message.getFieldWithDefault(this,5,"0")};proto.UCPushMessage.prototype.setTimestamp=function(a){jspb.Message.setField(this,5,a)};proto.UCPushMessage.prototype.clearTimestamp=function(){jspb.Message.setField(this,5,void 0)};proto.UCPushMessage.prototype.hasTimestamp=function(){return null!=jspb.Message.getField(this,5)};
  644. proto.UCPushMessage.prototype.getPacketid=function(){return jspb.Message.getFieldWithDefault(this,6,"")};proto.UCPushMessage.prototype.setPacketid=function(a){jspb.Message.setField(this,6,a)};proto.UCPushMessage.prototype.clearPacketid=function(){jspb.Message.setField(this,6,void 0)};proto.UCPushMessage.prototype.hasPacketid=function(){return null!=jspb.Message.getField(this,6)};proto.UCPushMessage.prototype.getBiztype=function(){return jspb.Message.getFieldWithDefault(this,7,"")};
  645. proto.UCPushMessage.prototype.setBiztype=function(a){jspb.Message.setField(this,7,a)};proto.UCPushMessage.prototype.clearBiztype=function(){jspb.Message.setField(this,7,void 0)};proto.UCPushMessage.prototype.hasBiztype=function(){return null!=jspb.Message.getField(this,7)};proto.UCMessageList=function(a){jspb.Message.initialize(this,a,0,-1,proto.UCMessageList.repeatedFields_,null)};goog.inherits(proto.UCMessageList,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.UCMessageList.displayName="proto.UCMessageList");
  646. proto.UCMessageList.repeatedFields_=[2];jspb.Message.GENERATE_TO_OBJECT&&(proto.UCMessageList.prototype.toObject=function(a){return proto.UCMessageList.toObject(a,this)},proto.UCMessageList.toObject=function(a,b){var c,d={group:(c=b.getGroup())&&proto.UCGroup.toObject(a,c),messageList:jspb.Message.toObjectList(b.getMessageList(),proto.UCMessage.toObject,a),maxsequence:jspb.Message.getField(b,3)};a&&(d.$jspbMessageInstance=b);return d});
  647. proto.UCMessageList.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.UCMessageList;return proto.UCMessageList.deserializeBinaryFromReader(b,a)};
  648. proto.UCMessageList.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=new proto.UCGroup;b.readMessage(c,proto.UCGroup.deserializeBinaryFromReader);a.setGroup(c);break;case 2:c=new proto.UCMessage;b.readMessage(c,proto.UCMessage.deserializeBinaryFromReader);a.addMessage(c);break;case 3:c=b.readInt64String();a.setMaxsequence(c);break;default:b.skipField()}return a};
  649. proto.UCMessageList.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.UCMessageList.serializeBinaryToWriter(this,a);return a.getResultBuffer()};proto.UCMessageList.serializeBinaryToWriter=function(a,b){var c=a.getGroup();null!=c&&b.writeMessage(1,c,proto.UCGroup.serializeBinaryToWriter);c=a.getMessageList();0<c.length&&b.writeRepeatedMessage(2,c,proto.UCMessage.serializeBinaryToWriter);c=jspb.Message.getField(a,3);null!=c&&b.writeInt64String(3,c)};
  650. proto.UCMessageList.prototype.getGroup=function(){return jspb.Message.getWrapperField(this,proto.UCGroup,1,1)};proto.UCMessageList.prototype.setGroup=function(a){jspb.Message.setWrapperField(this,1,a)};proto.UCMessageList.prototype.clearGroup=function(){jspb.Message.setField(this,1,void 0)};proto.UCMessageList.prototype.hasGroup=function(){return null!=jspb.Message.getField(this,1)};
  651. proto.UCMessageList.prototype.getMessageList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.UCMessage,2)};proto.UCMessageList.prototype.setMessageList=function(a){jspb.Message.setRepeatedWrapperField(this,2,a)};proto.UCMessageList.prototype.addMessage=function(a,b){return jspb.Message.addToRepeatedWrapperField(this,2,a,proto.UCMessage,b)};proto.UCMessageList.prototype.clearMessageList=function(){this.setMessageList([])};
  652. proto.UCMessageList.prototype.getMaxsequence=function(){return jspb.Message.getFieldWithDefault(this,3,"0")};proto.UCMessageList.prototype.setMaxsequence=function(a){jspb.Message.setField(this,3,a)};proto.UCMessageList.prototype.clearMaxsequence=function(){jspb.Message.setField(this,3,void 0)};proto.UCMessageList.prototype.hasMaxsequence=function(){return null!=jspb.Message.getField(this,3)};proto.UCSequenceAck=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};
  653. goog.inherits(proto.UCSequenceAck,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.UCSequenceAck.displayName="proto.UCSequenceAck");jspb.Message.GENERATE_TO_OBJECT&&(proto.UCSequenceAck.prototype.toObject=function(a){return proto.UCSequenceAck.toObject(a,this)},proto.UCSequenceAck.toObject=function(a,b){var c,d={group:(c=b.getGroup())&&proto.UCGroup.toObject(a,c),sequence:jspb.Message.getField(b,2)};a&&(d.$jspbMessageInstance=b);return d});
  654. proto.UCSequenceAck.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.UCSequenceAck;return proto.UCSequenceAck.deserializeBinaryFromReader(b,a)};proto.UCSequenceAck.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=new proto.UCGroup;b.readMessage(c,proto.UCGroup.deserializeBinaryFromReader);a.setGroup(c);break;case 2:c=b.readInt64String();a.setSequence(c);break;default:b.skipField()}return a};
  655. proto.UCSequenceAck.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.UCSequenceAck.serializeBinaryToWriter(this,a);return a.getResultBuffer()};proto.UCSequenceAck.serializeBinaryToWriter=function(a,b){var c=a.getGroup();null!=c&&b.writeMessage(1,c,proto.UCGroup.serializeBinaryToWriter);c=jspb.Message.getField(a,2);null!=c&&b.writeInt64String(2,c)};proto.UCSequenceAck.prototype.getGroup=function(){return jspb.Message.getWrapperField(this,proto.UCGroup,1,1)};
  656. proto.UCSequenceAck.prototype.setGroup=function(a){jspb.Message.setWrapperField(this,1,a)};proto.UCSequenceAck.prototype.clearGroup=function(){jspb.Message.setField(this,1,void 0)};proto.UCSequenceAck.prototype.hasGroup=function(){return null!=jspb.Message.getField(this,1)};proto.UCSequenceAck.prototype.getSequence=function(){return jspb.Message.getFieldWithDefault(this,2,"0")};proto.UCSequenceAck.prototype.setSequence=function(a){jspb.Message.setField(this,2,a)};
  657. proto.UCSequenceAck.prototype.clearSequence=function(){jspb.Message.setField(this,2,void 0)};proto.UCSequenceAck.prototype.hasSequence=function(){return null!=jspb.Message.getField(this,2)};proto.UCDismiss=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.UCDismiss,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.UCDismiss.displayName="proto.UCDismiss");
  658. jspb.Message.GENERATE_TO_OBJECT&&(proto.UCDismiss.prototype.toObject=function(a){return proto.UCDismiss.toObject(a,this)},proto.UCDismiss.toObject=function(a,b){var c,d={group:(c=b.getGroup())&&proto.UCGroup.toObject(a,c)};a&&(d.$jspbMessageInstance=b);return d});proto.UCDismiss.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.UCDismiss;return proto.UCDismiss.deserializeBinaryFromReader(b,a)};
  659. proto.UCDismiss.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=new proto.UCGroup;b.readMessage(c,proto.UCGroup.deserializeBinaryFromReader);a.setGroup(c);break;default:b.skipField()}return a};proto.UCDismiss.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.UCDismiss.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  660. proto.UCDismiss.serializeBinaryToWriter=function(a,b){a=a.getGroup();null!=a&&b.writeMessage(1,a,proto.UCGroup.serializeBinaryToWriter)};proto.UCDismiss.prototype.getGroup=function(){return jspb.Message.getWrapperField(this,proto.UCGroup,1,1)};proto.UCDismiss.prototype.setGroup=function(a){jspb.Message.setWrapperField(this,1,a)};proto.UCDismiss.prototype.clearGroup=function(){jspb.Message.setField(this,1,void 0)};
  661. proto.UCDismiss.prototype.hasGroup=function(){return null!=jspb.Message.getField(this,1)};proto.UCQueryOnlineUsers=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.UCQueryOnlineUsers,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.UCQueryOnlineUsers.displayName="proto.UCQueryOnlineUsers");
  662. jspb.Message.GENERATE_TO_OBJECT&&(proto.UCQueryOnlineUsers.prototype.toObject=function(a){return proto.UCQueryOnlineUsers.toObject(a,this)},proto.UCQueryOnlineUsers.toObject=function(a,b){var c,d={group:(c=b.getGroup())&&proto.UCGroup.toObject(a,c)};a&&(d.$jspbMessageInstance=b);return d});proto.UCQueryOnlineUsers.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.UCQueryOnlineUsers;return proto.UCQueryOnlineUsers.deserializeBinaryFromReader(b,a)};
  663. proto.UCQueryOnlineUsers.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=new proto.UCGroup;b.readMessage(c,proto.UCGroup.deserializeBinaryFromReader);a.setGroup(c);break;default:b.skipField()}return a};proto.UCQueryOnlineUsers.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.UCQueryOnlineUsers.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  664. proto.UCQueryOnlineUsers.serializeBinaryToWriter=function(a,b){a=a.getGroup();null!=a&&b.writeMessage(1,a,proto.UCGroup.serializeBinaryToWriter)};proto.UCQueryOnlineUsers.prototype.getGroup=function(){return jspb.Message.getWrapperField(this,proto.UCGroup,1,1)};proto.UCQueryOnlineUsers.prototype.setGroup=function(a){jspb.Message.setWrapperField(this,1,a)};proto.UCQueryOnlineUsers.prototype.clearGroup=function(){jspb.Message.setField(this,1,void 0)};
  665. proto.UCQueryOnlineUsers.prototype.hasGroup=function(){return null!=jspb.Message.getField(this,1)};proto.UCQueryOnlineUsersResp=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};goog.inherits(proto.UCQueryOnlineUsersResp,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.UCQueryOnlineUsersResp.displayName="proto.UCQueryOnlineUsersResp");
  666. jspb.Message.GENERATE_TO_OBJECT&&(proto.UCQueryOnlineUsersResp.prototype.toObject=function(a){return proto.UCQueryOnlineUsersResp.toObject(a,this)},proto.UCQueryOnlineUsersResp.toObject=function(a,b){var c,d={group:(c=b.getGroup())&&proto.UCGroup.toObject(a,c),usercount:jspb.Message.getField(b,2)};a&&(d.$jspbMessageInstance=b);return d});
  667. proto.UCQueryOnlineUsersResp.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.UCQueryOnlineUsersResp;return proto.UCQueryOnlineUsersResp.deserializeBinaryFromReader(b,a)};proto.UCQueryOnlineUsersResp.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=new proto.UCGroup;b.readMessage(c,proto.UCGroup.deserializeBinaryFromReader);a.setGroup(c);break;case 2:c=b.readInt64String();a.setUsercount(c);break;default:b.skipField()}return a};
  668. proto.UCQueryOnlineUsersResp.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.UCQueryOnlineUsersResp.serializeBinaryToWriter(this,a);return a.getResultBuffer()};proto.UCQueryOnlineUsersResp.serializeBinaryToWriter=function(a,b){var c=a.getGroup();null!=c&&b.writeMessage(1,c,proto.UCGroup.serializeBinaryToWriter);c=jspb.Message.getField(a,2);null!=c&&b.writeInt64String(2,c)};
  669. proto.UCQueryOnlineUsersResp.prototype.getGroup=function(){return jspb.Message.getWrapperField(this,proto.UCGroup,1,1)};proto.UCQueryOnlineUsersResp.prototype.setGroup=function(a){jspb.Message.setWrapperField(this,1,a)};proto.UCQueryOnlineUsersResp.prototype.clearGroup=function(){jspb.Message.setField(this,1,void 0)};proto.UCQueryOnlineUsersResp.prototype.hasGroup=function(){return null!=jspb.Message.getField(this,1)};
  670. proto.UCQueryOnlineUsersResp.prototype.getUsercount=function(){return jspb.Message.getFieldWithDefault(this,2,"0")};proto.UCQueryOnlineUsersResp.prototype.setUsercount=function(a){jspb.Message.setField(this,2,a)};proto.UCQueryOnlineUsersResp.prototype.clearUsercount=function(){jspb.Message.setField(this,2,void 0)};proto.UCQueryOnlineUsersResp.prototype.hasUsercount=function(){return null!=jspb.Message.getField(this,2)};proto.FeInfo=function(a){jspb.Message.initialize(this,a,0,-1,null,null)};
  671. goog.inherits(proto.FeInfo,jspb.Message);goog.DEBUG&&!COMPILED&&(proto.FeInfo.displayName="proto.FeInfo");
  672. jspb.Message.GENERATE_TO_OBJECT&&(proto.FeInfo.prototype.toObject=function(a){return proto.FeInfo.toObject(a,this)},proto.FeInfo.toObject=function(a,b){var c={feSrcIp:jspb.Message.getField(b,1),feSrcPort:jspb.Message.getField(b,2),feThreadId:jspb.Message.getField(b,3),feUcid:jspb.Message.getField(b,4),feSid:jspb.Message.getField(b,5),feSeqno:jspb.Message.getField(b,6)};a&&(c.$jspbMessageInstance=b);return c});
  673. proto.FeInfo.deserializeBinary=function(a){a=new jspb.BinaryReader(a);var b=new proto.FeInfo;return proto.FeInfo.deserializeBinaryFromReader(b,a)};
  674. proto.FeInfo.deserializeBinaryFromReader=function(a,b){for(;b.nextField()&&!b.isEndGroup();)switch(b.getFieldNumber()){case 1:var c=b.readString();a.setFeSrcIp(c);break;case 2:c=b.readInt32();a.setFeSrcPort(c);break;case 3:c=b.readInt32();a.setFeThreadId(c);break;case 4:c=b.readUint64String();a.setFeUcid(c);break;case 5:c=b.readUint64String();a.setFeSid(c);break;case 6:c=b.readUint64String();a.setFeSeqno(c);break;default:b.skipField()}return a};
  675. proto.FeInfo.prototype.serializeBinary=function(){var a=new jspb.BinaryWriter;proto.FeInfo.serializeBinaryToWriter(this,a);return a.getResultBuffer()};
  676. proto.FeInfo.serializeBinaryToWriter=function(a,b){var c=jspb.Message.getField(a,1);null!=c&&b.writeString(1,c);c=jspb.Message.getField(a,2);null!=c&&b.writeInt32(2,c);c=jspb.Message.getField(a,3);null!=c&&b.writeInt32(3,c);c=jspb.Message.getField(a,4);null!=c&&b.writeUint64String(4,c);c=jspb.Message.getField(a,5);null!=c&&b.writeUint64String(5,c);c=jspb.Message.getField(a,6);null!=c&&b.writeUint64String(6,c)};
  677. proto.FeInfo.prototype.getFeSrcIp=function(){return jspb.Message.getFieldWithDefault(this,1,"")};proto.FeInfo.prototype.setFeSrcIp=function(a){jspb.Message.setField(this,1,a)};proto.FeInfo.prototype.clearFeSrcIp=function(){jspb.Message.setField(this,1,void 0)};proto.FeInfo.prototype.hasFeSrcIp=function(){return null!=jspb.Message.getField(this,1)};proto.FeInfo.prototype.getFeSrcPort=function(){return jspb.Message.getFieldWithDefault(this,2,0)};
  678. proto.FeInfo.prototype.setFeSrcPort=function(a){jspb.Message.setField(this,2,a)};proto.FeInfo.prototype.clearFeSrcPort=function(){jspb.Message.setField(this,2,void 0)};proto.FeInfo.prototype.hasFeSrcPort=function(){return null!=jspb.Message.getField(this,2)};proto.FeInfo.prototype.getFeThreadId=function(){return jspb.Message.getFieldWithDefault(this,3,0)};proto.FeInfo.prototype.setFeThreadId=function(a){jspb.Message.setField(this,3,a)};
  679. proto.FeInfo.prototype.clearFeThreadId=function(){jspb.Message.setField(this,3,void 0)};proto.FeInfo.prototype.hasFeThreadId=function(){return null!=jspb.Message.getField(this,3)};proto.FeInfo.prototype.getFeUcid=function(){return jspb.Message.getFieldWithDefault(this,4,"0")};proto.FeInfo.prototype.setFeUcid=function(a){jspb.Message.setField(this,4,a)};proto.FeInfo.prototype.clearFeUcid=function(){jspb.Message.setField(this,4,void 0)};
  680. proto.FeInfo.prototype.hasFeUcid=function(){return null!=jspb.Message.getField(this,4)};proto.FeInfo.prototype.getFeSid=function(){return jspb.Message.getFieldWithDefault(this,5,"0")};proto.FeInfo.prototype.setFeSid=function(a){jspb.Message.setField(this,5,a)};proto.FeInfo.prototype.clearFeSid=function(){jspb.Message.setField(this,5,void 0)};proto.FeInfo.prototype.hasFeSid=function(){return null!=jspb.Message.getField(this,5)};
  681. proto.FeInfo.prototype.getFeSeqno=function(){return jspb.Message.getFieldWithDefault(this,6,"0")};proto.FeInfo.prototype.setFeSeqno=function(a){jspb.Message.setField(this,6,a)};proto.FeInfo.prototype.clearFeSeqno=function(){jspb.Message.setField(this,6,void 0)};proto.FeInfo.prototype.hasFeSeqno=function(){return null!=jspb.Message.getField(this,6)};proto.ErrorCode={OK:0,INTERNAL_ERROR:1};
  682. proto.MIMC_MSG_TYPE={P2P_MESSAGE:1,P2T_MESSAGE:2,SEQUENCE_ACK:3,PACKET_ACK:4,PULL:5,COMPOUND:6,RTS_SIGNAL:7,UC_PACKET:8,P2P_PUSH_MESSAGE:9,P2T_PUSH_MESSAGE:10};proto.UC_MSG_TYPE={PING:1,PONG:2,JOIN:3,JOIN_RESP:4,QUIT:5,QUIT_RESP:6,SEQ_ACK:7,MESSAGE:8,MESSAGE_LIST:9,DISMISS:10,QUERY_ONLINE_USERS:11,QUERY_ONLINE_USERS_RESP:12};function MIMCUser(a,b,c){function d(){L=new WebSocket("wss://wsapp.chat.xiaomi.net");L.onopen=function(a){V=!0;a=new proto.ims.ClientHeader;a.setServer("xiaomi.com");a.setCmd("CONN");a.setId(v());a=a.serializeBinary();var b=new proto.ims.XMMsgConn;b.setVersion(106);b.setModel(navigator.appName);b.setOs(parseFloat(navigator.appVersion));b.setUdid("websocket");b.setSdk(31);b=b.serializeBinary();a=A(a,b);f(a)};L.onclose=function(a){void 0!==K&&null!==K?K():console.log("DisconnHandler is not registered.");
  683. x=!1;clearInterval(ia);clearInterval(ja);clearInterval(P)};L.onmessage=function(a){e(a)};L.onerror=function(a){clearInterval(ia);clearInterval(ja);clearInterval(P);console.log("init websocket err.")}}function e(c){var d=new FileReader;d.onload=function(){var c=this.result,d=new DataView(c);d.getUint16(0);d.getUint16(2);d.getUint16(4);d.getUint16(6);var e=d.getUint16(8),r=d.getUint32(10);d=d.getUint32(14+e+r);var M=U(c.slice(0,14+e+r));if(d===M)switch(d=new Uint8Array(c.slice(14,14+e)),e=new Uint8Array(c.slice(14+
  684. e,14+e+r)),c=proto.ims.ClientHeader.deserializeBinary(d),c.getCmd()){case "CONN":la=proto.ims.XMMsgConnResp.deserializeBinary(e).getChallenge();if(!0===x)console.log("user already login."),H(!0,null,null,null);else if(void 0!==W&&null!==W){var p=W();if(200!==p.code)void 0!==H&&null!==H?H(!1,"get token failed","token info code:"+p.code,"token info message:"+p.message):console.log("statusChange is not registered");else{C=p.data.miUserId;ma=atob(p.data.miUserSecurityKey);R=p.data.appPackage;S=p.data.token;
  685. var h=p.data.appAccount;if(b!==h)p="app account("+b+") is not same from the account("+h+") get from token",console.log(p),H(!1,null,"account not same",p);else if(a!==p.data.appId)p="appid("+a+") is not same from the appid("+p.data.appId+") get from token",console.log(p),H(!1,null,"appid not same",p);else{h=v();var u=new Map;u.set("challenge",la);u.set("chid",p.data.miChid);u.set("client_attrs","");u.set("cloud_attrs","");u.set("from",C+"@xiaomi.com/"+B);u.set("id",h);u.set("kick",0);u.set("to","xiaomi.com");
  686. u.set("token",p.data.token);u=g(u,"XIAOMI-PASS",p.data.miUserSecurityKey);var y=new proto.ims.XMMsgBind;y.setToken(p.data.token);y.setKick(0);y.setMethod("XIAOMI-PASS");y.setSig(u);p=y.serializeBinary();p=A(D("BIND",h),p);f(p)}}}else console.log("fetchMIMCToken is not registered");ia=setInterval(G,3E4);break;case "BIND":p=proto.ims.XMMsgBindResp.deserializeBinary(e);p.getResult()&&(x=!0,ja=setInterval(n,1E4));void 0!==H&&null!==H?H(p.getResult(),p.getErrorType(),p.getErrorReason(),p.getErrorDesc()):
  687. console.log("statusChange is not registered");break;case "SECMSG":c=ma+"_"+c.getId();e=m(e);r=[];d=0;var na="",w;for(w=0;256>w;w++)r[w]=w;for(w=0;256>w;w++)d=(d+r[w]+c.charCodeAt(w%c.length))%256,M=r[w],r[w]=r[d],r[d]=M;for(c=d=w=0;c<e.length;c++)w=(w+1)%256,d=(d+r[w])%256,M=r[w],r[w]=r[d],r[d]=M,na+=String.fromCharCode(e.charCodeAt(c)^r[(r[w]+r[d])%256]);c=new Uint8Array(l(na));c=proto.MIMCPacket.deserializeBinary(c);switch(c.getType()){case proto.MIMC_MSG_TYPE.PACKET_ACK:p=c.getPayload();p=proto.MIMCPacketAck.deserializeBinary(p);
  688. void 0!==X&&null!==X?X(p.getPacketid(),p.getSequence(),p.getTimestamp(),p.getErrormsg()):console.log("serverAckHandler is not registered");break;case proto.MIMC_MSG_TYPE.COMPOUND:p=c.getPayload();p=proto.MIMCPacketList.deserializeBinary(p);u=p.getMaxsequence();h=new proto.MIMCSequenceAck;h.setUuid(C);h.setResource(B);h.setSequence(u);u=new proto.MIMCPacket;u.setType(proto.MIMC_MSG_TYPE.SEQUENCE_ACK);u.setPayload(h.serializeBinary());h=A(D("SECMSG",v()),u.serializeBinary());f(h);if(p.getUuid()===C&&
  689. p.getResource()===B)for(p=p.getPacketsList(),h=0;h<p.length;h++)try{var t=p[h];switch(t.getType()){case proto.MIMC_MSG_TYPE.P2P_MESSAGE:var E=t.getPayload(),K=t.getPacketid(),N=t.getSequence(),Q=t.getTimestamp();if(!Y.has(N)){Y.add(N);var Z=proto.MIMCP2PMessage.deserializeBinary(E),O=Z.getFrom(),P=Z.getTo(),I=new qa;I.setPacketId(K);I.setSequence(N);I.setFromAccount(O.getAppaccount());I.setFromResource(O.getResource());I.setToAccount(P.getAppaccount());I.setToResource(P.getResource());I.setPayload(k(Z.getPayload()));
  690. I.setTimeStamp(Q);I.setBizType(Z.getBiztype());void 0!==aa&&null!==aa?aa(I):console.log("msgHandler is not registered")}break;case proto.MIMC_MSG_TYPE.P2T_MESSAGE:var V=t.getPayload(),ra=t.getPacketid(),ka=t.getSequence(),sa=t.getTimestamp();if(!Y.has(ka)){Y.add(ka);var ba=proto.MIMCP2TMessage.deserializeBinary(V),oa=ba.getFrom(),ta=ba.getTo(),J=new pa;J.setPacketId(ra);J.setSequence(ka);J.setFromAccount(oa.getAppaccount());J.setFromResource(oa.getResource());J.setTopicId(ta.getTopicid());J.setPayload(k(ba.getPayload()));
  691. J.setTimeStamp(sa);J.setBizType(ba.getBiztype());void 0!==ca&&null!==ca?ca(J):console.log("groupMsgHandler is not registered")}break;default:t.getPayload()}}catch(T){console.log("handleMIMCPacket "+h+" fail, err="+T.message)}break;case proto.MIMC_MSG_TYPE.UC_PACKET:t=c.getPayload();t=proto.UCPacket.deserializeBinary(t);E=t.getUser();if(E.getUuid()!==C&&E.getResource()!==B)console.log("uid | resource not the same.");else switch(t.getType()){case proto.UC_MSG_TYPE.JOIN_RESP:p=t.getPayload();p=proto.UCJoinResp.deserializeBinary(p);
  692. h=p.getGroup();0===p.getCode()&&z.push(h.getTopicid());void 0!==da&&null!==da?da(h.getTopicid(),p.getCode(),p.getMessage(),F.get(h.getTopicid())):console.log("ucJoinRespHandler is not registered");F.has(h.getTopicid())&&F.delete(h.getTopicid());break;case proto.UC_MSG_TYPE.QUIT_RESP:p=t.getPayload();p=proto.UCQuitResp.deserializeBinary(p);h=p.getGroup();if(0===p.getCode())for(u=0;u<z.length;u++)z[u]===h.getTopicid()&&z.slice(u,1);void 0!==ea&&null!==ea?ea(h.getTopicid(),p.getCode(),p.getMessage(),
  693. F.get(h.getTopicid())):console.log("ucQuitRespHandler is not registered");F.has(h.getTopicid())&&F.delete(h.getTopicid());break;case proto.UC_MSG_TYPE.MESSAGE_LIST:t=t.getPayload();t=proto.UCMessageList.deserializeBinary(t);E=t.getGroup();K=t.getMaxsequence();N=new proto.UCSequenceAck;N.setGroup(E);N.setSequence(K);q(N.serializeBinary(),proto.UC_MSG_TYPE.SEQ_ACK,v());t=t.getMessageList();for(E=0;E<t.length;E++)try{p=t[E],h=p.getGroup(),u=p.getUser(),y=new pa,y.setPacketId(p.getPacketid()),y.setSequence(p.getSequence()),
  694. y.setFromAccount(u.getAppaccount()),y.setFromResource(u.getResource()),y.setTopicId(h.getTopicid()),y.setPayload(k(p.getPayload())),y.setTimeStamp(p.getTimestamp()),y.setBizType(p.getBiztype()),void 0!==fa&&null!==fa?fa(y):console.log("ucMsgHandler is not registered")}catch(T){console.log("handleUCMessage "+E+" fail, err="+T.message)}break;case proto.UC_MSG_TYPE.DISMISS:p=t.getPayload();p=proto.UCDismiss.deserializeBinary(p).getGroup();for(h=0;h<z.length;h++)z[h]===p.getTopicid()&&z.slice(h,1);void 0!==
  695. ha&&null!==ha?ha(p.getTopicid()):console.log("ucDismissHandler is not registered");F.has(p.getTopicid())&&F.delete(p.getTopicid());break;case proto.UC_MSG_TYPE.PONG:t.getPayload();break;default:t.getType()}break;default:c.getPayload()}break;case "KICK":try{L.close()}catch(T){console.log("websocket close err="+T)}}};d.readAsArrayBuffer(c.data)}function f(a){try{L.send(a)}catch(M){console.log("websocket send err="+M)}}function g(a,b,c){var d=b+"&";a.forEach(function(a,b,c){d=d+b+"="+a+"&"});d+=c;a=
  696. new Uint8Array(l(d));a=m(Q(a));return btoa(a)}function n(){if(0!==z.length){for(var b=Array(z.length),c=0;c<z.length;c++){var d=new proto.UCGroup;d.setAppid(a);d.setTopicid(z[c]);b[c]=d}c=new proto.UCPing;c.setGroupList(b);q(c.serializeBinary(),proto.UC_MSG_TYPE.PING,v())}}function q(c,d){var e=new proto.MIMCUser;e.setAppid(a);e.setAppaccount(b);e.setUuid(C);e.setResource(B);var g=new proto.UCPacket;g.setUser(e);g.setType(d);g.setPayload(c);c=v();g.setPacketid(c);d=new proto.MIMCPacket;d.setPacketid(c);
  697. d.setPackage(R);d.setType(proto.MIMC_MSG_TYPE.UC_PACKET);d.setPayload(g.serializeBinary());g=A(D("SECMSG",c),d.serializeBinary());f(g);return c}function G(){var a=new proto.ims.XMMsgPing;a=A(D("PING",v()),a.serializeBinary());f(a)}function D(a,b){var c=new proto.ims.ClientHeader;c.setChid(9);c.setUuid(C);c.setServer("xiaomi.com");c.setResource(B);c.setCmd(a);c.setId(b);return c.serializeBinary()}function v(){var a="web"+(new Date).getTime()+O;O++;O%=1E3;return a}function A(a,b){var c=a.length,d=b.length,
  698. e=18+c+d,f=new ArrayBuffer(e),g=new DataView(f);g.setUint8(0,194);g.setUint8(1,254);g.setUint8(2,0);g.setUint8(3,4);g.setUint16(4,3);g.setUint16(6,2);g.setUint16(8,c);g.setUint32(10,d);for(var r=0;r<c;r++)g.setUint8(14+r,a[r]);for(r=0;r<d;r++)g.setUint8(14+c+r,b[r]);a=U(f.slice(0,e-4));g.setUint32(e-4,a);return f}function U(a){a=new Uint8Array(a);for(var b=1,c=0,d=0,e=a.length,f;0<e;){f=5550<e?5550:e;e-=f;do b+=a[d++],c+=b;while(--f);b%=65521;c%=65521}return(c<<16|b)>>>0}function Q(a){var b,c=(a.length+
  699. 8>>>6<<4)+16,d=new Uint8Array(c<<2);d.set(new Uint8Array(a.buffer));d=new Uint32Array(d.buffer);var e=new DataView(d.buffer);for(b=0;b<c;b++)d[b]=e.getUint32(b<<2);d[a.length>>2]|=128<<24-8*(a.length&3);d[c-1]=a.length<<3;c=[];var f=[function(){return h[1]&h[2]|~h[1]&h[3]},function(){return h[1]^h[2]^h[3]},function(){return h[1]&h[2]|h[1]&h[3]|h[2]&h[3]},function(){return h[1]^h[2]^h[3]}],g=function(a,b){return a<<b|a>>>32-b},r=[1518500249,1859775393,-1894007588,-899497514],h=[1732584193,-271733879,
  700. null,null,-1009589776];h[2]=~h[0];h[3]=~h[1];for(b=0;b<d.length;b+=16){var k=h.slice(0);for(a=0;80>a;a++)c[a]=16>a?d[b+a]:g(c[a-3]^c[a-8]^c[a-14]^c[a-16],1),e=g(h[0],5)+f[a/20|0]()+h[4]+c[a]+r[a/20|0]|0,h[1]=g(h[1],30),h.pop(),h.unshift(e);for(a=0;5>a;a++)h[a]=h[a]+k[a]|0}e=new DataView((new Uint32Array(h)).buffer);for(b=0;5>b;b++)h[b]=e.getUint32(b<<2);return new Uint8Array((new Uint32Array(h)).buffer)}function l(a){for(var b=new ArrayBuffer(a.length),c=new Uint8Array(b),d=0,e=a.length;d<e;d++)c[d]=
  701. a.charCodeAt(d);return b}function m(a){for(var b="",c=0;c<a.byteLength;c++)b+=String.fromCharCode(a[c]);return b}function h(a){for(var b=0,c=new Uint8Array(4*a.length),d=0;d!=a.length;d++){var e=a.charCodeAt(d);if(128>e)c[b++]=e;else{if(2048>e)c[b++]=e>>6|192;else{if(55295<e&&56320>e){if(++d==a.length)throw"UTF-8 encode: incomplete surrogate pair";var f=a.charCodeAt(d);if(56320>f||57343<f)throw"UTF-8 encode: second char code 0x"+f.toString(16)+" at index "+d+" in surrogate pair out of range";e=65536+
  702. ((e&1023)<<10)+(f&1023);c[b++]=e>>18|240;c[b++]=e>>12&63|128}else c[b++]=e>>12|224;c[b++]=e>>6&63|128}c[b++]=e&63|128}}return c.subarray(0,b)}function k(a){var b;var c="";var d=a.length;for(b=0;b<d;){var e=a[b++];switch(e>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:c+=String.fromCharCode(e);break;case 12:case 13:var f=a[b++];c+=String.fromCharCode((e&31)<<6|f&63);break;case 14:f=a[b++];var g=a[b++];c+=String.fromCharCode((e&15)<<12|(f&63)<<6|(g&63)<<0)}}return c}var C="",O=0,x=!1,
  703. V=!1,B="",S="",L,ia,ja,z=[],F=new Map;if(c)B=c;else try{B=md5(window.navigator.userAgent)}catch(r){B="resWeb",console.log("md5 failed,err="+r)}var aa,ca,X,W,H,K,da,ea,fa,ha,la,ma,R,Y=new Set,P=setInterval(function(){if(!1!==x){var a=new XMLHttpRequest;a.open("GET","https://mimc.chat.xiaomi.net/api/uctopic/topics",!0);a.setRequestHeader("content-type","application/json");a.setRequestHeader("token",S);a.onreadystatechange=function(){if(4===a.readyState&&200===a.status){var b=JSON.parse(a.response);
  704. if(200===b.code&&"success"===b.message){b=b.data;for(var c=0;c<b.length;c++)z.push(b[c])}}};a.send();clearInterval(P);return!0}},1E3);this.registerP2PMsgHandler=function(a){aa=a};this.registerGroupMsgHandler=function(a){ca=a};this.registerServerAckHandler=function(a){X=a};this.registerFetchToken=function(a){W=a};this.registerStatusChange=function(a){H=a};this.registerDisconnHandler=function(a){K=a};this.registerUCJoinRespHandler=function(a){da=a};this.registerUCQuitRespHandler=function(a){ea=a};this.registerUCMsgHandler=
  705. function(a){fa=a};this.registerUCDismissHandler=function(a){ha=a};this.getToken=function(){!1===x&&console.log("user not login, token is null.");return S};this.getUuid=function(){!1===x&&console.log("user not login, uuid is null.");return C};this.getAppAccount=function(){return b};this.isConnected=function(){return V};this.isLogin=function(){return x};this.login=function(){d()};this.logout=function(){var a=A(D("UBND",v()),"");f(a)};this.sendMessage=function(a,b,c){return this.sendMessage(a,b,"",void 0===
  706. c?!0:c)};this.sendMessage=function(c,d,e,g){g=void 0===g?!0:g;if(!1===x)throw console.log("user not login."),"user not login";if(10240<d.length)throw console.log("packet len > 10k"),"packet len > 10k";var k=new proto.MIMCUser;k.setAppid(a);k.setAppaccount(b);k.setUuid(C);k.setResource(B);var r=new proto.MIMCUser;r.setAppid(a);r.setAppaccount(c);c=new proto.MIMCP2PMessage;c.setFrom(k);c.setTo(r);c.setPayload(h(d));c.setIsstore(g);c.setBiztype(e);d=v();e=new proto.MIMCPacket;e.setPacketid(d);e.setPackage(R);
  707. e.setType(proto.MIMC_MSG_TYPE.P2P_MESSAGE);e.setPayload(c.serializeBinary());c=A(D("SECMSG",d),e.serializeBinary());f(c);return d};this.sendGroupMessage=function(a,b,c){return this.sendGroupMessage(a,b,"",void 0===c?!0:c)};this.sendGroupMessage=function(c,d,e,g){g=void 0===g?!0:g;if(!1===x)throw console.log("user not login."),"user not login.";if(10240<d.length)throw console.log("packet len > 10k"),"packet len > 10k";var k=new proto.MIMCGroup;k.setAppid(a);k.setTopicid(c);var l=new proto.MIMCUser;
  708. l.setAppid(a);l.setAppaccount(b);l.setUuid(C);l.setResource(B);c=new proto.MIMCP2TMessage;c.setFrom(l);c.setTo(k);c.setPayload(h(d));c.setIsstore(g);c.setBiztype(e);d=v();e=new proto.MIMCPacket;e.setPacketid(d);e.setPackage(R);e.setType(proto.MIMC_MSG_TYPE.P2T_MESSAGE);e.setPayload(c.serializeBinary());c=A(D("SECMSG",d),e.serializeBinary());f(c);return d};this.pull=function(){if(!1===x)throw console.log("user not login."),"user not login.";if(10240<groupMessage.length)throw console.log("packet len > 10k"),
  709. "packet len > 10k";var a=new proto.MIMCPull;a.setUuid(C);a.setResource(B);a=v();var b=new proto.MIMCPacket;b.setPacketid(a);b.setPackage(R);b.setType(proto.MIMC_MSG_TYPE.PULL);b=A(D("SECMSG",a),b.serializeBinary());f(b);return a};this.createUnlimitedGroup=function(b,c,d){if(!1===x)throw console.log("user not login."),"user not login.";var e={topicName:b},f=new XMLHttpRequest;f.open("POST","https://mimc.chat.xiaomi.net/api/uctopic",!0);f.setRequestHeader("content-type","application/json");f.setRequestHeader("token",
  710. S);f.onreadystatechange=function(){if(4===f.readyState&&200===f.status){var e=JSON.parse(f.response);if(200===e.code&&"success"===e.message){e=e.data.topicId;var g=new proto.UCGroup;g.setAppid(a);g.setTopicid(e);var h=new proto.UCJoin;h.setGroup(g);q(h.serializeBinary(),proto.UC_MSG_TYPE.JOIN,v());F.set(e,d);c(e,b,!0,"",d)}else console.log("create uc group failed,code="+e.code+",message="+e.message),c(0,b,!1,e.message,d)}else 200!==f.status&&(console.log("create uc group failed,readyState="+f.readyState+
  711. ",status="+f.status),c(0,b,!1,"readyState="+f.readyState+",status="+f.status,d))};f.send(JSON.stringify(e))};this.dismissUnlimitedGroup=function(a,b,c){if(!1===x)throw console.log("user not login."),"user not login.";var d=new XMLHttpRequest;d.open("DELETE","https://mimc.chat.xiaomi.net/api/uctopic",!0);d.setRequestHeader("content-type","application/json");d.setRequestHeader("token",S);d.setRequestHeader("topicId",a);d.onreadystatechange=function(){if(4===d.readyState&&200===d.status){var e=JSON.parse(d.response);
  712. if(200===e.code&&"success"===e.message){for(e=0;e<z.length;e++)z[e]===a&&z.slice(e,1);b(!0,a,c)}else console.log("dismiss uc group failed,code="+e.code+",message="+e.message),b(!1,a,c)}else 200!==d.status&&(console.log("dismiss uc group failed,readyState="+d.readyState+",status="+d.status),b(!1,a,c))};d.send()};this.joinUnlimitedGroup=function(b,c){if(!1===x)throw console.log("user not login."),"user not login.";F.set(b,c);c=new proto.UCGroup;c.setAppid(a);c.setTopicid(b);b=new proto.UCJoin;b.setGroup(c);
  713. return q(b.serializeBinary(),proto.UC_MSG_TYPE.JOIN,v())};this.quitUnlimitedGroup=function(b,c){if(!1===x)throw console.log("user not login."),"user not login.";F.set(b,c);c=new proto.UCGroup;c.setAppid(a);c.setTopicid(b);b=new proto.UCQuit;b.setGroup(c);return q(b.serializeBinary(),proto.UC_MSG_TYPE.QUIT,v())};this.sendUnlimitedGroupMessage=function(a,b,c){return this.sendUnlimitedGroupMessage(a,b,"",void 0===c?!1:c)};this.sendUnlimitedGroupMessage=function(c,d,e,f){f=void 0===f?!1:f;if(!1===x)throw console.log("user not login."),
  714. "user not login.";if(10240<d.length)throw console.log("packet len > 10k"),"packet len > 10k";var g=new proto.MIMCUser;g.setAppid(a);g.setAppaccount(b);g.setUuid(C);g.setResource(B);var k=new proto.UCGroup;k.setAppid(a);k.setTopicid(c);c=new proto.UCMessage;c.setGroup(k);c.setPayload(h(d));c.setIsstore(!1);c.setUser(g);d=v();c.setPacketid(d);c.setBiztype(e);c.setIsstore(f);return q(c.serializeBinary(),proto.UC_MSG_TYPE.MESSAGE,d)};var qa=function(){var a,b,c,d,e,f,g,h,k;this.setPacketId=function(b){a=
  715. b};this.getPacketId=function(){return a};this.setFromAccount=function(a){c=a};this.getFromAccount=function(){return c};this.setFromResource=function(a){d=a};this.getFromResource=function(){return d};this.setToAccount=function(a){e=a};this.getToAccount=function(){return e};this.setToResource=function(a){f=a};this.getToResource=function(){return f};this.setSequence=function(a){b=a};this.getSequence=function(){return b};this.setPayload=function(a){g=a};this.getPayload=function(){return g};this.setTimeStamp=
  716. function(a){h=a};this.getTimeStamp=function(){return h};this.setBizType=function(a){k=a};this.getBizType=function(){return k}},pa=function(){var a,b,c,d,e,f,g,h;this.setPacketId=function(b){a=b};this.getPacketId=function(){return a};this.setFromAccount=function(a){c=a};this.getFromAccount=function(){return c};this.setFromResource=function(a){d=a};this.getFromResource=function(){return d};this.setSequence=function(a){b=a};this.getSequence=function(){return b};this.setTopicId=function(a){e=a};this.getTopicId=
  717. function(){return e};this.setPayload=function(a){f=a};this.getPayload=function(){return f};this.setTimeStamp=function(a){g=a};this.getTimeStamp=function(){return g};this.setBizType=function(a){h=a};this.getBizType=function(){return h}}};