import{GrpcAuthentication}from"@textile/grpc-authentication";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function __awaiter(e,t,o,r){return new(o||(o=Promise))((function(s,n){function i(e){try{g(r.next(e))}catch(e){n(e)}}function a(e){try{g(r.throw(e))}catch(e){n(e)}}function g(e){var t;e.done?s(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(i,a)}g((r=r.apply(e,t||[])).next())}))}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(e){var t={exports:{}};return e(t,t.exports),t.exports}var loglevel=createCommonjsModule((function(e){var t,o;t=commonjsGlobal,o=function(){var e=function(){},t="undefined",o=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"];function s(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function n(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function i(r){return"debug"===r&&(r="log"),typeof console!==t&&("trace"===r&&o?n:void 0!==console[r]?s(console,r):void 0!==console.log?s(console,"log"):e)}function a(t,o){for(var s=0;s<r.length;s++){var n=r[s];this[n]=s<t?e:this.methodFactory(n,t,o)}this.log=this.debug}function g(e,o,r){return function(){typeof console!==t&&(a.call(this,o,r),this[e].apply(this,arguments))}}function u(e,t,o){return i(e)||g.apply(this,arguments)}function p(e,o,s){var n,i=this,g="loglevel";function p(){var e;if(typeof window!==t){try{e=window.localStorage[g]}catch(e){}if(typeof e===t)try{var o=window.document.cookie,r=o.indexOf(encodeURIComponent(g)+"=");-1!==r&&(e=/^([^;]+)/.exec(o.slice(r))[1])}catch(e){}return void 0===i.levels[e]&&(e=void 0),e}}e&&(g+=":"+e),i.name=e,i.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},i.methodFactory=s||u,i.getLevel=function(){return n},i.setLevel=function(o,s){if("string"==typeof o&&void 0!==i.levels[o.toUpperCase()]&&(o=i.levels[o.toUpperCase()]),!("number"==typeof o&&o>=0&&o<=i.levels.SILENT))throw"log.setLevel() called with invalid level: "+o;if(n=o,!1!==s&&function(e){var o=(r[e]||"silent").toUpperCase();if(typeof window!==t){try{return void(window.localStorage[g]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(g)+"="+o+";"}catch(e){}}}(o),a.call(i,o,e),typeof console===t&&o<i.levels.SILENT)return"No console available for logging"},i.setDefaultLevel=function(e){p()||i.setLevel(e,!1)},i.enableAll=function(e){i.setLevel(i.levels.TRACE,e)},i.disableAll=function(e){i.setLevel(i.levels.SILENT,e)};var l=p();null==l&&(l=null==o?"WARN":o),i.setLevel(l,!1)}var l=new p,f={};l.getLogger=function(e){if("string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=f[e];return t||(t=f[e]=new p(e,l.getLevel(),l.methodFactory)),t};var d=typeof window!==t?window.log:void 0;return l.noConflict=function(){return typeof window!==t&&window.log===l&&(window.log=d),l},l.getLoggers=function(){return f},l},e.exports?e.exports=o():t.log=o()})),$jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(e,t,o){e instanceof String&&(e=String(e));for(var r=e.length,s=0;s<r;s++){var n=e[s];if(t.call(o,n,s,e))return{i:s,v:n}}return{i:-1,v:void 0}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,o){e!=Array.prototype&&e!=Object.prototype&&(e[t]=o.value)},$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:void 0!==commonjsGlobal&&null!=commonjsGlobal?commonjsGlobal:e},$jscomp.global=$jscomp.getGlobal(commonjsGlobal),$jscomp.polyfill=function(e,t,o,r){if(t){for(o=$jscomp.global,e=e.split("."),r=0;r<e.length-1;r++){var s=e[r];s in o||(o[s]={}),o=o[s]}(t=t(r=o[e=e[e.length-1]]))!=r&&null!=t&&$jscomp.defineProperty(o,e,{configurable:!0,writable:!0,value:t})}},$jscomp.polyfill("Array.prototype.findIndex",(function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).i}}),"es6","es3"),$jscomp.checkStringArgs=function(e,t,o){if(null==e)throw new TypeError("The 'this' value for String.prototype."+o+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+o+" must not be a regular expression");return e+""},$jscomp.polyfill("String.prototype.endsWith",(function(e){return e||function(e,t){var o=$jscomp.checkStringArgs(this,e,"endsWith");e+="",void 0===t&&(t=o.length),t=Math.max(0,Math.min(0|t,o.length));for(var r=e.length;0<r&&0<t;)if(o[--t]!=e[--r])return!1;return 0>=r}}),"es6","es3"),$jscomp.polyfill("Array.prototype.find",(function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).v}}),"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",(function(e){return e||function(e,t){var o=$jscomp.checkStringArgs(this,e,"startsWith");e+="";var r=o.length,s=e.length;t=Math.max(0,Math.min(0|t,o.length));for(var n=0;n<s&&t<r;)if(o[t++]!=e[n++])return!1;return n>=s}}),"es6","es3"),$jscomp.polyfill("String.prototype.repeat",(function(e){return e||function(e){var t=$jscomp.checkStringArgs(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var o="";e;)1&e&&(o+=t),(e>>>=1)&&(t+=t);return o}}),"es6","es3");var COMPILED$1=!0,goog=goog||{};goog.global=commonjsGlobal||self,goog.isDef=function(e){return void 0!==e},goog.isString=function(e){return"string"==typeof e},goog.isBoolean=function(e){return"boolean"==typeof e},goog.isNumber=function(e){return"number"==typeof e},goog.exportPath_=function(e,t,o){e=e.split("."),o=o||goog.global,e[0]in o||void 0===o.execScript||o.execScript("var "+e[0]);for(var r;e.length&&(r=e.shift());)!e.length&&goog.isDef(t)?o[r]=t:o=o[r]&&o[r]!==Object.prototype[r]?o[r]:o[r]={}},goog.define=function(e,t){return t},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.STRICT_MODE_COMPATIBLE=!1,goog.DISALLOW_TEST_ONLY_CODE=!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(e){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");goog.constructNamespace_(e)},goog.constructNamespace_=function(e,t){goog.exportPath_(e,t)},goog.getScriptNonce=function(e){return e&&e!=goog.global?goog.getScriptNonce_(e.document):(null===goog.cspNonce_&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(e){return(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(e)?e:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(e){if(!goog.isString(e)||!e||-1==e.search(goog.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+e+" 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.");goog.moduleLoaderState_.moduleName=e},goog.module.get=function(e){return goog.module.getInternal_(e)},goog.module.getInternal_=function(e){return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var e=goog.global.$jscomp;return!!e&&("function"==typeof e.getCurrentModulePath&&!!e.getCurrentModulePath())},goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(e){if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=e;else{var t=goog.global.$jscomp;if(!t||"function"!=typeof t.getCurrentModulePath)throw Error('Module with namespace "'+e+'" has been loaded incorrectly.');t=t.require(t.getCurrentModulePath()),goog.loadedModules_[e]={exports:t,type:goog.ModuleType.ES6,moduleId:e}}},goog.setTestOnly=function(e){if(goog.DISALLOW_TEST_ONLY_CODE)throw e=e||"",Error("Importing test-only code into non-debug environment"+(e?": "+e:"."))},goog.forwardDeclare=function(e){},goog.getObjectByName=function(e,t){e=e.split("."),t=t||goog.global;for(var o=0;o<e.length;o++)if(t=t[e[o]],!goog.isDefAndNotNull(t))return null;return t},goog.globalize=function(e,t){for(var o in t=t||goog.global,e)t[o]=e[o]},goog.addDependency=function(e,t,o,r){},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(e){goog.global.console&&goog.global.console.error(e)},goog.require=function(e){},goog.requireType=function(e){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(e){e.instance_=void 0,e.getInstance=function(){return e.instance_?e.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=e),e.instance_=new e)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED$1,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE="",goog.TRANSPILER="transpile.js",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(e){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(e){return"(function(){"+e+"\n;})();\n"},goog.loadModule=function(e){var t=goog.moduleLoaderState_;try{if(goog.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:goog.ModuleType.GOOG},goog.isFunction(e))var o=e.call(void 0,{});else{if(!goog.isString(e))throw Error("Invalid module definition");goog.useSafari10Workaround()&&(e=goog.workaroundSafari10EvalBug(e)),o=goog.loadModuleFromSource_.call(void 0,e)}var r=goog.moduleLoaderState_.moduleName;if(!goog.isString(r)||!r)throw Error('Invalid module name "'+r+'"');goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(r,o):goog.SEAL_MODULE_EXPORTS&&Object.seal&&"object"==typeof o&&null!=o&&Object.seal(o),goog.loadedModules_[r]={exports:o,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName}}finally{goog.moduleLoaderState_=t}},goog.loadModuleFromSource_=function(a){return eval(a),{}},goog.normalizePath_=function(e){e=e.split("/");for(var t=0;t<e.length;)"."==e[t]?e.splice(t,1):t&&".."==e[t]&&e[t-1]&&".."!=e[t-1]?e.splice(--t,2):t++;return e.join("/")},goog.loadFileSync_=function(e){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(e);try{var t=new goog.global.XMLHttpRequest;return t.open("get",e,!1),t.send(),0==t.status||200==t.status?t.responseText:null}catch(e){return null}},goog.transpile_=function(e,t,o){var r=goog.global.$jscomp;r||(goog.global.$jscomp=r={});var s=r.transpile;if(!s){var n=goog.basePath+goog.TRANSPILER,i=goog.loadFileSync_(n);if(i){if(function(){(0,eval)(i+"\n//# sourceURL="+n)}.call(goog.global),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,s=(r=goog.global.$jscomp).transpile}}return s||(s=r.transpile=function(e,t){return goog.logToConsole_(t+" requires transpilation but no transpiler was found."),e}),s(e,t,o)},goog.typeOf=function(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var o=Object.prototype.toString.call(e);if("[object Window]"==o)return"object";if("[object Array]"==o||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==o||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t},goog.isNull=function(e){return null===e},goog.isDefAndNotNull=function(e){return null!=e},goog.isArray=function(e){return"array"==goog.typeOf(e)},goog.isArrayLike=function(e){var t=goog.typeOf(e);return"array"==t||"object"==t&&"number"==typeof e.length},goog.isDateLike=function(e){return goog.isObject(e)&&"function"==typeof e.getFullYear},goog.isFunction=function(e){return"function"==goog.typeOf(e)},goog.isObject=function(e){var t=typeof e;return"object"==t&&null!=e||"function"==t},goog.getUid=function(e){return e[goog.UID_PROPERTY_]||(e[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(e){return!!e[goog.UID_PROPERTY_]},goog.removeUid=function(e){null!==e&&"removeAttribute"in e&&e.removeAttribute(goog.UID_PROPERTY_);try{delete e[goog.UID_PROPERTY_]}catch(e){}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if("function"==typeof e.clone)return e.clone();for(var o in t="array"==t?[]:{},e)t[o]=goog.cloneObject(e[o]);return t}return e},goog.bindNative_=function(e,t,o){return e.call.apply(e.bind,arguments)},goog.bindJs_=function(e,t,o){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var o=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(o,r),e.apply(t,o)}}return function(){return e.apply(t,arguments)}},goog.bind=function(e,t,o){return Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(e,t){var o=Array.prototype.slice.call(arguments,1);return function(){var t=o.slice();return t.push.apply(t,arguments),e.apply(this,t)}},goog.mixin=function(e,t){for(var o in t)e[o]=t[o]},goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date},goog.globalEval=function(e){if(goog.global.execScript)goog.global.execScript(e,"JavaScript");else{if(!goog.global.eval)throw Error("goog.globalEval not available");if(null==goog.evalWorksForGlobals_){try{goog.global.eval("var _evalTest_ = 1;")}catch(e){}if(void 0!==goog.global._evalTest_){try{delete goog.global._evalTest_}catch(e){}goog.evalWorksForGlobals_=!0}else goog.evalWorksForGlobals_=!1}if(goog.evalWorksForGlobals_)goog.global.eval(e);else{var t=goog.global.document,o=t.createElement("SCRIPT");o.type="text/javascript",o.defer=!1,o.appendChild(t.createTextNode(e)),t.head.appendChild(o),t.head.removeChild(o)}}},goog.evalWorksForGlobals_=null,goog.getCssName=function(e,t){if("."==String(e).charAt(0))throw Error('className passed in goog.getCssName must not start with ".". You passed: '+e);var o=function(e){return goog.cssNameMapping_[e]||e},r=function(e){e=e.split("-");for(var t=[],r=0;r<e.length;r++)t.push(o(e[r]));return t.join("-")};return r=goog.cssNameMapping_?"BY_WHOLE"==goog.cssNameMappingStyle_?o:r:function(e){return e},e=t?e+"-"+r(t):r(e),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(e):e},goog.setCssNameMapping=function(e,t){goog.cssNameMapping_=e,goog.cssNameMappingStyle_=t},goog.getMsg=function(e,t,o){return o&&o.html&&(e=e.replace(/</g,"&lt;")),t&&(e=e.replace(/\{\$([^}]+)}/g,(function(e,o){return null!=t&&o in t?t[o]:e}))),e},goog.getMsgWithFallback=function(e,t){return e},goog.exportSymbol=function(e,t,o){goog.exportPath_(e,t,o)},goog.exportProperty=function(e,t,o){e[t]=o},goog.inherits=function(e,t){function o(){}o.prototype=t.prototype,e.superClass_=t.prototype,e.prototype=new o,e.prototype.constructor=e,e.base=function(e,o,r){for(var s=Array(arguments.length-2),n=2;n<arguments.length;n++)s[n-2]=arguments[n];return t.prototype[o].apply(e,s)}},goog.base=function(e,t,o){var r=arguments.callee.caller;if(goog.STRICT_MODE_COMPATIBLE||goog.DEBUG&&!r)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(void 0!==r.superClass_){for(var s=Array(arguments.length-1),n=1;n<arguments.length;n++)s[n-1]=arguments[n];return r.superClass_.constructor.apply(e,s)}if("string"!=typeof t&&"symbol"!=typeof t)throw Error("method names provided to goog.base must be a string or a symbol");for(s=Array(arguments.length-2),n=2;n<arguments.length;n++)s[n-2]=arguments[n];n=!1;for(var i=e.constructor.prototype;i;i=Object.getPrototypeOf(i))if(i[t]===r)n=!0;else if(n)return i[t].apply(e,s);if(e[t]===r)return e.constructor.prototype[t].apply(e,s);throw Error("goog.base called from a method of one name to a method of a different name")},goog.scope=function(e){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");e.call(goog.global)},goog.defineClass=function(e,t){var o=t.constructor,r=t.statics;return o&&o!=Object.prototype.constructor||(o=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),o=goog.defineClass.createSealingConstructor_(o,e),e&&goog.inherits(o,e),delete t.constructor,delete t.statics,goog.defineClass.applyProperties_(o.prototype,t),null!=r&&(r instanceof Function?r(o):goog.defineClass.applyProperties_(o,r)),o},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(e,t){if(!goog.defineClass.SEAL_CLASS_INSTANCES)return e;var o=!goog.defineClass.isUnsealable_(t),r=function(){var t=e.apply(this,arguments)||this;return t[goog.UID_PROPERTY_]=t[goog.UID_PROPERTY_],this.constructor===r&&o&&Object.seal instanceof Function&&Object.seal(t),t};return r},goog.defineClass.isUnsealable_=function(e){return e&&e.prototype&&e.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);for(var r=0;r<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;r++)o=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[r],Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},goog.tagUnsealableClass=function(e){},goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable",goog.TRUSTED_TYPES_POLICY_NAME="",goog.identity_=function(e){return e},goog.createTrustedTypesPolicy=function(e){var t=null;if("undefined"==typeof TrustedTypes||!TrustedTypes.createPolicy)return t;try{t=TrustedTypes.createPolicy(e,{createHTML:goog.identity_,createScript:goog.identity_,createScriptURL:goog.identity_,createURL:goog.identity_})}catch(e){goog.logToConsole_(e.message)}return t},goog.TRUSTED_TYPES_POLICY_=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#base"):null;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},jspb.BinaryConstants.FieldTypeToWireType=function(e){var t=jspb.BinaryConstants.FieldType,o=jspb.BinaryConstants.WireType;switch(e){case t.INT32:case t.INT64:case t.UINT32:case t.UINT64:case t.SINT32:case t.SINT64:case t.BOOL:case t.ENUM:case t.VHASH64:return o.VARINT;case t.DOUBLE:case t.FIXED64:case t.SFIXED64:case t.FHASH64:return o.FIXED64;case t.STRING:case t.MESSAGE:case t.BYTES:return o.DELIMITED;case t.FLOAT:case t.FIXED32:case t.SFIXED32:return o.FIXED32;default:return o.INVALID}},jspb.BinaryConstants.INVALID_FIELD_NUMBER=-1,jspb.BinaryConstants.FLOAT32_EPS=1401298464324817e-60,jspb.BinaryConstants.FLOAT32_MIN=11754943508222875e-54,jspb.BinaryConstants.FLOAT32_MAX=34028234663852886e22,jspb.BinaryConstants.FLOAT64_EPS=5e-324,jspb.BinaryConstants.FLOAT64_MIN=22250738585072014e-324,jspb.BinaryConstants.FLOAT64_MAX=17976931348623157e292,jspb.BinaryConstants.TWO_TO_20=1048576,jspb.BinaryConstants.TWO_TO_23=8388608,jspb.BinaryConstants.TWO_TO_31=2147483648,jspb.BinaryConstants.TWO_TO_32=4294967296,jspb.BinaryConstants.TWO_TO_52=4503599627370496,jspb.BinaryConstants.TWO_TO_63=0x8000000000000000,jspb.BinaryConstants.TWO_TO_64=0x10000000000000000,jspb.BinaryConstants.ZERO_HASH="\0\0\0\0\0\0\0\0",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(e){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e)),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(e,t){goog.debug.Error.call(this,goog.asserts.subs_(e,t)),this.messagePattern=e},goog.inherits(goog.asserts.AssertionError,goog.debug.Error),goog.asserts.AssertionError.prototype.name="AssertionError",goog.asserts.DEFAULT_ERROR_HANDLER=function(e){throw e},goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER,goog.asserts.subs_=function(e,t){for(var o="",r=(e=e.split("%s")).length-1,s=0;s<r;s++)o+=e[s]+(s<t.length?t[s]:"%s");return o+e[r]},goog.asserts.doAssertFailure_=function(e,t,o,r){var s="Assertion failed";if(o){s+=": "+o;var n=r}else e&&(s+=": "+e,n=t);e=new goog.asserts.AssertionError(""+s,n||[]),goog.asserts.errorHandler_(e)},goog.asserts.setErrorHandler=function(e){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=e)},goog.asserts.assert=function(e,t,o){return goog.asserts.ENABLE_ASSERTS&&!e&&goog.asserts.doAssertFailure_("",null,t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertExists=function(e,t,o){return goog.asserts.ENABLE_ASSERTS&&null==e&&goog.asserts.doAssertFailure_("Expected to exist: %s.",[e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.fail=function(e,t){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1)))},goog.asserts.assertNumber=function(e,t,o){return goog.asserts.ENABLE_ASSERTS&&!goog.isNumber(e)&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertString=function(e,t,o){return goog.asserts.ENABLE_ASSERTS&&!goog.isString(e)&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertFunction=function(e,t,o){return goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(e)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertObject=function(e,t,o){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(e)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertArray=function(e,t,o){return goog.asserts.ENABLE_ASSERTS&&!goog.isArray(e)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertBoolean=function(e,t,o){return goog.asserts.ENABLE_ASSERTS&&!goog.isBoolean(e)&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertElement=function(e,t,o){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(e)&&e.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertInstanceof=function(e,t,o,r){return!goog.asserts.ENABLE_ASSERTS||e instanceof t||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(t),goog.asserts.getType_(e)],o,Array.prototype.slice.call(arguments,3)),e},goog.asserts.assertFinite=function(e,t,o){return!goog.asserts.ENABLE_ASSERTS||"number"==typeof e&&isFinite(e)||goog.asserts.doAssertFailure_("Expected %s to be a finite number but it is not.",[e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertObjectPrototypeIsIntact=function(){for(var e in Object.prototype)goog.asserts.fail(e+" should not be enumerable in Object.prototype.")},goog.asserts.getType_=function(e){return e instanceof Function?e.displayName||e.name||"unknown type name":e instanceof Object?e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e):null===e?"null":typeof e},goog.array={},goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE,goog.array.ASSUME_NATIVE_FUNCTIONS=2012<goog.FEATURESET_YEAR,goog.array.peek=function(e){return e[e.length-1]},goog.array.last=goog.array.peek,goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(e,t,o){return goog.asserts.assert(null!=e.length),Array.prototype.indexOf.call(e,t,o)}:function(e,t,o){if(o=null==o?0:0>o?Math.max(0,e.length+o):o,goog.isString(e))return goog.isString(t)&&1==t.length?e.indexOf(t,o):-1;for(;o<e.length;o++)if(o in e&&e[o]===t)return o;return-1},goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(e,t,o){return goog.asserts.assert(null!=e.length),Array.prototype.lastIndexOf.call(e,t,null==o?e.length-1:o)}:function(e,t,o){if(0>(o=null==o?e.length-1:o)&&(o=Math.max(0,e.length+o)),goog.isString(e))return goog.isString(t)&&1==t.length?e.lastIndexOf(t,o):-1;for(;0<=o;o--)if(o in e&&e[o]===t)return o;return-1},goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(e,t,o){goog.asserts.assert(null!=e.length),Array.prototype.forEach.call(e,t,o)}:function(e,t,o){for(var r=e.length,s=goog.isString(e)?e.split(""):e,n=0;n<r;n++)n in s&&t.call(o,s[n],n,e)},goog.array.forEachRight=function(e,t,o){var r=e.length,s=goog.isString(e)?e.split(""):e;for(--r;0<=r;--r)r in s&&t.call(o,s[r],r,e)},goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(e,t,o){return goog.asserts.assert(null!=e.length),Array.prototype.filter.call(e,t,o)}:function(e,t,o){for(var r=e.length,s=[],n=0,i=goog.isString(e)?e.split(""):e,a=0;a<r;a++)if(a in i){var g=i[a];t.call(o,g,a,e)&&(s[n++]=g)}return s},goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(e,t,o){return goog.asserts.assert(null!=e.length),Array.prototype.map.call(e,t,o)}:function(e,t,o){for(var r=e.length,s=Array(r),n=goog.isString(e)?e.split(""):e,i=0;i<r;i++)i in n&&(s[i]=t.call(o,n[i],i,e));return s},goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(e,t,o,r){return goog.asserts.assert(null!=e.length),r&&(t=goog.bind(t,r)),Array.prototype.reduce.call(e,t,o)}:function(e,t,o,r){var s=o;return goog.array.forEach(e,(function(o,n){s=t.call(r,s,o,n,e)})),s},goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(e,t,o,r){return goog.asserts.assert(null!=e.length),goog.asserts.assert(null!=t),r&&(t=goog.bind(t,r)),Array.prototype.reduceRight.call(e,t,o)}:function(e,t,o,r){var s=o;return goog.array.forEachRight(e,(function(o,n){s=t.call(r,s,o,n,e)})),s},goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(e,t,o){return goog.asserts.assert(null!=e.length),Array.prototype.some.call(e,t,o)}:function(e,t,o){for(var r=e.length,s=goog.isString(e)?e.split(""):e,n=0;n<r;n++)if(n in s&&t.call(o,s[n],n,e))return!0;return!1},goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(e,t,o){return goog.asserts.assert(null!=e.length),Array.prototype.every.call(e,t,o)}:function(e,t,o){for(var r=e.length,s=goog.isString(e)?e.split(""):e,n=0;n<r;n++)if(n in s&&!t.call(o,s[n],n,e))return!1;return!0},goog.array.count=function(e,t,o){var r=0;return goog.array.forEach(e,(function(e,s,n){t.call(o,e,s,n)&&++r}),o),r},goog.array.find=function(e,t,o){return 0>(t=goog.array.findIndex(e,t,o))?null:goog.isString(e)?e.charAt(t):e[t]},goog.array.findIndex=function(e,t,o){for(var r=e.length,s=goog.isString(e)?e.split(""):e,n=0;n<r;n++)if(n in s&&t.call(o,s[n],n,e))return n;return-1},goog.array.findRight=function(e,t,o){return 0>(t=goog.array.findIndexRight(e,t,o))?null:goog.isString(e)?e.charAt(t):e[t]},goog.array.findIndexRight=function(e,t,o){var r=e.length,s=goog.isString(e)?e.split(""):e;for(--r;0<=r;r--)if(r in s&&t.call(o,s[r],r,e))return r;return-1},goog.array.contains=function(e,t){return 0<=goog.array.indexOf(e,t)},goog.array.isEmpty=function(e){return 0==e.length},goog.array.clear=function(e){if(!goog.isArray(e))for(var t=e.length-1;0<=t;t--)delete e[t];e.length=0},goog.array.insert=function(e,t){goog.array.contains(e,t)||e.push(t)},goog.array.insertAt=function(e,t,o){goog.array.splice(e,o,0,t)},goog.array.insertArrayAt=function(e,t,o){goog.partial(goog.array.splice,e,o,0).apply(null,t)},goog.array.insertBefore=function(e,t,o){var r;2==arguments.length||0>(r=goog.array.indexOf(e,o))?e.push(t):goog.array.insertAt(e,t,r)},goog.array.remove=function(e,t){var o;return(o=0<=(t=goog.array.indexOf(e,t)))&&goog.array.removeAt(e,t),o},goog.array.removeLast=function(e,t){return 0<=(t=goog.array.lastIndexOf(e,t))&&(goog.array.removeAt(e,t),!0)},goog.array.removeAt=function(e,t){return goog.asserts.assert(null!=e.length),1==Array.prototype.splice.call(e,t,1).length},goog.array.removeIf=function(e,t,o){return 0<=(t=goog.array.findIndex(e,t,o))&&(goog.array.removeAt(e,t),!0)},goog.array.removeAllIf=function(e,t,o){var r=0;return goog.array.forEachRight(e,(function(s,n){t.call(o,s,n,e)&&goog.array.removeAt(e,n)&&r++})),r},goog.array.concat=function(e){return Array.prototype.concat.apply([],arguments)},goog.array.join=function(e){return Array.prototype.concat.apply([],arguments)},goog.array.toArray=function(e){var t=e.length;if(0<t){for(var o=Array(t),r=0;r<t;r++)o[r]=e[r];return o}return[]},goog.array.clone=goog.array.toArray,goog.array.extend=function(e,t){for(var o=1;o<arguments.length;o++){var r=arguments[o];if(goog.isArrayLike(r)){var s=e.length||0,n=r.length||0;e.length=s+n;for(var i=0;i<n;i++)e[s+i]=r[i]}else e.push(r)}},goog.array.splice=function(e,t,o,r){return goog.asserts.assert(null!=e.length),Array.prototype.splice.apply(e,goog.array.slice(arguments,1))},goog.array.slice=function(e,t,o){return goog.asserts.assert(null!=e.length),2>=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,o)},goog.array.removeDuplicates=function(e,t,o){t=t||e;var r=function(e){return goog.isObject(e)?"o"+goog.getUid(e):(typeof e).charAt(0)+e};o=o||r,r={};for(var s=0,n=0;n<e.length;){var i=e[n++],a=o(i);Object.prototype.hasOwnProperty.call(r,a)||(r[a]=!0,t[s++]=i)}t.length=s},goog.array.binarySearch=function(e,t,o){return goog.array.binarySearch_(e,o||goog.array.defaultCompare,!1,t)},goog.array.binarySelect=function(e,t,o){return goog.array.binarySearch_(e,t,!0,void 0,o)},goog.array.binarySearch_=function(e,t,o,r,s){for(var n,i=0,a=e.length;i<a;){var g=i+a>>1,u=o?t.call(s,e[g],g,e):t(r,e[g]);0<u?i=g+1:(a=g,n=!u)}return n?i:~i},goog.array.sort=function(e,t){e.sort(t||goog.array.defaultCompare)},goog.array.stableSort=function(e,t){for(var o=Array(e.length),r=0;r<e.length;r++)o[r]={index:r,value:e[r]};var s=t||goog.array.defaultCompare;for(goog.array.sort(o,(function(e,t){return s(e.value,t.value)||e.index-t.index})),r=0;r<e.length;r++)e[r]=o[r].value},goog.array.sortByKey=function(e,t,o){var r=o||goog.array.defaultCompare;goog.array.sort(e,(function(e,o){return r(t(e),t(o))}))},goog.array.sortObjectsByKey=function(e,t,o){goog.array.sortByKey(e,(function(e){return e[t]}),o)},goog.array.isSorted=function(e,t,o){t=t||goog.array.defaultCompare;for(var r=1;r<e.length;r++){var s=t(e[r-1],e[r]);if(0<s||0==s&&o)return!1}return!0},goog.array.equals=function(e,t,o){if(!goog.isArrayLike(e)||!goog.isArrayLike(t)||e.length!=t.length)return!1;var r=e.length;o=o||goog.array.defaultCompareEquality;for(var s=0;s<r;s++)if(!o(e[s],t[s]))return!1;return!0},goog.array.compare3=function(e,t,o){o=o||goog.array.defaultCompare;for(var r=Math.min(e.length,t.length),s=0;s<r;s++){var n=o(e[s],t[s]);if(0!=n)return n}return goog.array.defaultCompare(e.length,t.length)},goog.array.defaultCompare=function(e,t){return e>t?1:e<t?-1:0},goog.array.inverseDefaultCompare=function(e,t){return-goog.array.defaultCompare(e,t)},goog.array.defaultCompareEquality=function(e,t){return e===t},goog.array.binaryInsert=function(e,t,o){return 0>(o=goog.array.binarySearch(e,t,o))&&(goog.array.insertAt(e,t,-(o+1)),!0)},goog.array.binaryRemove=function(e,t,o){return 0<=(t=goog.array.binarySearch(e,t,o))&&goog.array.removeAt(e,t)},goog.array.bucket=function(e,t,o){for(var r={},s=0;s<e.length;s++){var n=e[s],i=t.call(o,n,s,e);goog.isDef(i)&&(r[i]||(r[i]=[])).push(n)}return r},goog.array.toObject=function(e,t,o){var r={};return goog.array.forEach(e,(function(s,n){r[t.call(o,s,n,e)]=s})),r},goog.array.range=function(e,t,o){var r=[],s=0,n=e;if(void 0!==t&&(s=e,n=t),0>(o=o||1)*(n-s))return[];if(0<o)for(e=s;e<n;e+=o)r.push(e);else for(e=s;e>n;e+=o)r.push(e);return r},goog.array.repeat=function(e,t){for(var o=[],r=0;r<t;r++)o[r]=e;return o},goog.array.flatten=function(e){for(var t=[],o=0;o<arguments.length;o++){var r=arguments[o];if(goog.isArray(r))for(var s=0;s<r.length;s+=8192){var n=goog.array.slice(r,s,s+8192);n=goog.array.flatten.apply(null,n);for(var i=0;i<n.length;i++)t.push(n[i])}else t.push(r)}return t},goog.array.rotate=function(e,t){return goog.asserts.assert(null!=e.length),e.length&&(0<(t%=e.length)?Array.prototype.unshift.apply(e,e.splice(-t,t)):0>t&&Array.prototype.push.apply(e,e.splice(0,-t))),e},goog.array.moveItem=function(e,t,o){goog.asserts.assert(0<=t&&t<e.length),goog.asserts.assert(0<=o&&o<e.length),t=Array.prototype.splice.call(e,t,1),Array.prototype.splice.call(e,o,0,t[0])},goog.array.zip=function(e){if(!arguments.length)return[];for(var t=[],o=arguments[0].length,r=1;r<arguments.length;r++)arguments[r].length<o&&(o=arguments[r].length);for(r=0;r<o;r++){for(var s=[],n=0;n<arguments.length;n++)s.push(arguments[n][r]);t.push(s)}return t},goog.array.shuffle=function(e,t){t=t||Math.random;for(var o=e.length-1;0<o;o--){var r=Math.floor(t()*(o+1)),s=e[o];e[o]=e[r],e[r]=s}},goog.array.copyByIndex=function(e,t){var o=[];return goog.array.forEach(t,(function(t){o.push(e[t])})),o},goog.array.concatMap=function(e,t,o){return goog.array.concat.apply([],goog.array.map(e,t,o))},goog.crypt={},goog.crypt.stringToByteArray=function(e){for(var t=[],o=0,r=0;r<e.length;r++){var s=e.charCodeAt(r);255<s&&(t[o++]=255&s,s>>=8),t[o++]=s}return t},goog.crypt.byteArrayToString=function(e){if(8192>=e.length)return String.fromCharCode.apply(null,e);for(var t="",o=0;o<e.length;o+=8192){var r=goog.array.slice(e,o,o+8192);t+=String.fromCharCode.apply(null,r)}return t},goog.crypt.byteArrayToHex=function(e,t){return goog.array.map(e,(function(e){return 1<(e=e.toString(16)).length?e:"0"+e})).join(t||"")},goog.crypt.hexToByteArray=function(e){goog.asserts.assert(0==e.length%2,"Key string length must be multiple of 2");for(var t=[],o=0;o<e.length;o+=2)t.push(parseInt(e.substring(o,o+2),16));return t},goog.crypt.stringToUtf8ByteArray=function(e){for(var t=[],o=0,r=0;r<e.length;r++){var s=e.charCodeAt(r);128>s?t[o++]=s:(2048>s?t[o++]=s>>6|192:(55296==(64512&s)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++r)),t[o++]=s>>18|240,t[o++]=s>>12&63|128):t[o++]=s>>12|224,t[o++]=s>>6&63|128),t[o++]=63&s|128)}return t},goog.crypt.utf8ByteArrayToString=function(e){for(var t=[],o=0,r=0;o<e.length;){var s=e[o++];if(128>s)t[r++]=String.fromCharCode(s);else if(191<s&&224>s){var n=e[o++];t[r++]=String.fromCharCode((31&s)<<6|63&n)}else if(239<s&&365>s){n=e[o++];var i=e[o++];s=((7&s)<<18|(63&n)<<12|(63&i)<<6|63&e[o++])-65536,t[r++]=String.fromCharCode(55296+(s>>10)),t[r++]=String.fromCharCode(56320+(1023&s))}else n=e[o++],i=e[o++],t[r++]=String.fromCharCode((15&s)<<12|(63&n)<<6|63&i)}return t.join("")},goog.crypt.xorByteArray=function(e,t){goog.asserts.assert(e.length==t.length,"XOR array lengths must match");for(var o=[],r=0;r<e.length;r++)o.push(e[r]^t[r]);return o},goog.string={},goog.string.internal={},goog.string.internal.startsWith=function(e,t){return 0==e.lastIndexOf(t,0)},goog.string.internal.endsWith=function(e,t){var o=e.length-t.length;return 0<=o&&e.indexOf(t,o)==o},goog.string.internal.caseInsensitiveStartsWith=function(e,t){return 0==goog.string.internal.caseInsensitiveCompare(t,e.substr(0,t.length))},goog.string.internal.caseInsensitiveEndsWith=function(e,t){return 0==goog.string.internal.caseInsensitiveCompare(t,e.substr(e.length-t.length,t.length))},goog.string.internal.caseInsensitiveEquals=function(e,t){return e.toLowerCase()==t.toLowerCase()},goog.string.internal.isEmptyOrWhitespace=function(e){return/^[\s\xa0]*$/.test(e)},goog.string.internal.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},goog.string.internal.caseInsensitiveCompare=function(e,t){return(e=String(e).toLowerCase())<(t=String(t).toLowerCase())?-1:e==t?0:1},goog.string.internal.newLineToBr=function(e,t){return e.replace(/(\r\n|\r|\n)/g,t?"<br />":"<br>")},goog.string.internal.htmlEscape=function(e,t){if(t)e=e.replace(goog.string.internal.AMP_RE_,"&amp;").replace(goog.string.internal.LT_RE_,"&lt;").replace(goog.string.internal.GT_RE_,"&gt;").replace(goog.string.internal.QUOT_RE_,"&quot;").replace(goog.string.internal.SINGLE_QUOTE_RE_,"&#39;").replace(goog.string.internal.NULL_RE_,"&#0;");else{if(!goog.string.internal.ALL_RE_.test(e))return e;-1!=e.indexOf("&")&&(e=e.replace(goog.string.internal.AMP_RE_,"&amp;")),-1!=e.indexOf("<")&&(e=e.replace(goog.string.internal.LT_RE_,"&lt;")),-1!=e.indexOf(">")&&(e=e.replace(goog.string.internal.GT_RE_,"&gt;")),-1!=e.indexOf('"')&&(e=e.replace(goog.string.internal.QUOT_RE_,"&quot;")),-1!=e.indexOf("'")&&(e=e.replace(goog.string.internal.SINGLE_QUOTE_RE_,"&#39;")),-1!=e.indexOf("\0")&&(e=e.replace(goog.string.internal.NULL_RE_,"&#0;"))}return e},goog.string.internal.AMP_RE_=/&/g,goog.string.internal.LT_RE_=/</g,goog.string.internal.GT_RE_=/>/g,goog.string.internal.QUOT_RE_=/"/g,goog.string.internal.SINGLE_QUOTE_RE_=/'/g,goog.string.internal.NULL_RE_=/\x00/g,goog.string.internal.ALL_RE_=/[\x00&<>"']/,goog.string.internal.whitespaceEscape=function(e,t){return goog.string.internal.newLineToBr(e.replace(/  /g," &#160;"),t)},goog.string.internal.contains=function(e,t){return-1!=e.indexOf(t)},goog.string.internal.caseInsensitiveContains=function(e,t){return goog.string.internal.contains(e.toLowerCase(),t.toLowerCase())},goog.string.internal.compareVersions=function(e,t){var o=0;e=goog.string.internal.trim(String(e)).split("."),t=goog.string.internal.trim(String(t)).split(".");for(var r=Math.max(e.length,t.length),s=0;0==o&&s<r;s++){var n=e[s]||"",i=t[s]||"";do{if(n=/(\d*)(\D*)(.*)/.exec(n)||["","","",""],i=/(\d*)(\D*)(.*)/.exec(i)||["","","",""],0==n[0].length&&0==i[0].length)break;o=0==n[1].length?0:parseInt(n[1],10);var a=0==i[1].length?0:parseInt(i[1],10);o=goog.string.internal.compareElements_(o,a)||goog.string.internal.compareElements_(0==n[2].length,0==i[2].length)||goog.string.internal.compareElements_(n[2],i[2]),n=n[3],i=i[3]}while(0==o)}return o},goog.string.internal.compareElements_=function(e,t){return e<t?-1:e>t?1:0},goog.string.TypedString=function(){},goog.string.Const=function(e,t){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=e===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&t||"",this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=goog.string.Const.TYPE_MARKER_},goog.string.Const.prototype.implementsGoogStringTypedString=!0,goog.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_},goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"},goog.string.Const.unwrap=function(e){return e instanceof goog.string.Const&&e.constructor===goog.string.Const&&e.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?e.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+e+"'"),"type_error:Const")},goog.string.Const.from=function(e){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,e)},goog.string.Const.TYPE_MARKER_={},goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.Const.EMPTY=goog.string.Const.from(""),goog.fs={},goog.fs.url={},goog.fs.url.createObjectUrl=function(e){return goog.fs.url.getUrlObject_().createObjectURL(e)},goog.fs.url.revokeObjectUrl=function(e){goog.fs.url.getUrlObject_().revokeObjectURL(e)},goog.fs.url.getUrlObject_=function(){var e=goog.fs.url.findUrlObject_();if(null!=e)return e;throw Error("This browser doesn't seem to support blob URLs")},goog.fs.url.findUrlObject_=function(){return goog.isDef(goog.global.URL)&&goog.isDef(goog.global.URL.createObjectURL)?goog.global.URL:goog.isDef(goog.global.webkitURL)&&goog.isDef(goog.global.webkitURL.createObjectURL)?goog.global.webkitURL:goog.isDef(goog.global.createObjectURL)?goog.global:null},goog.fs.url.browserSupportsObjectUrls=function(){return null!=goog.fs.url.findUrlObject_()},goog.html={},goog.html.trustedtypes={},goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#html"):null,goog.i18n={},goog.i18n.bidi={},goog.i18n.bidi.FORCE_RTL=!1,goog.i18n.bidi.IS_RTL=goog.i18n.bidi.FORCE_RTL||("ar"==goog.LOCALE.substring(0,2).toLowerCase()||"fa"==goog.LOCALE.substring(0,2).toLowerCase()||"he"==goog.LOCALE.substring(0,2).toLowerCase()||"iw"==goog.LOCALE.substring(0,2).toLowerCase()||"ps"==goog.LOCALE.substring(0,2).toLowerCase()||"sd"==goog.LOCALE.substring(0,2).toLowerCase()||"ug"==goog.LOCALE.substring(0,2).toLowerCase()||"ur"==goog.LOCALE.substring(0,2).toLowerCase()||"yi"==goog.LOCALE.substring(0,2).toLowerCase())&&(2==goog.LOCALE.length||"-"==goog.LOCALE.substring(2,3)||"_"==goog.LOCALE.substring(2,3))||3<=goog.LOCALE.length&&"ckb"==goog.LOCALE.substring(0,3).toLowerCase()&&(3==goog.LOCALE.length||"-"==goog.LOCALE.substring(3,4)||"_"==goog.LOCALE.substring(3,4))||7<=goog.LOCALE.length&&("-"==goog.LOCALE.substring(2,3)||"_"==goog.LOCALE.substring(2,3))&&("adlm"==goog.LOCALE.substring(3,7).toLowerCase()||"arab"==goog.LOCALE.substring(3,7).toLowerCase()||"hebr"==goog.LOCALE.substring(3,7).toLowerCase()||"nkoo"==goog.LOCALE.substring(3,7).toLowerCase()||"rohg"==goog.LOCALE.substring(3,7).toLowerCase()||"thaa"==goog.LOCALE.substring(3,7).toLowerCase())||8<=goog.LOCALE.length&&("-"==goog.LOCALE.substring(3,4)||"_"==goog.LOCALE.substring(3,4))&&("adlm"==goog.LOCALE.substring(4,8).toLowerCase()||"arab"==goog.LOCALE.substring(4,8).toLowerCase()||"hebr"==goog.LOCALE.substring(4,8).toLowerCase()||"nkoo"==goog.LOCALE.substring(4,8).toLowerCase()||"rohg"==goog.LOCALE.substring(4,8).toLowerCase()||"thaa"==goog.LOCALE.substring(4,8).toLowerCase()),goog.i18n.bidi.Format={LRE:"‪",RLE:"‫",PDF:"‬",LRM:"‎",RLM:"‏"},goog.i18n.bidi.Dir={LTR:1,RTL:-1,NEUTRAL:0},goog.i18n.bidi.RIGHT="right",goog.i18n.bidi.LEFT="left",goog.i18n.bidi.I18N_RIGHT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.LEFT:goog.i18n.bidi.RIGHT,goog.i18n.bidi.I18N_LEFT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,goog.i18n.bidi.toDir=function(e,t){return"number"==typeof e?0<e?goog.i18n.bidi.Dir.LTR:0>e?goog.i18n.bidi.Dir.RTL:t?null:goog.i18n.bidi.Dir.NEUTRAL:null==e?null:e?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.ltrChars_="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ऀ-῿‎Ⰰ-\ud801\ud804-\ud839\ud83c-\udbff豈-﬜︀-﹯﻽-",goog.i18n.bidi.rtlChars_="֑-ۯۺ-ࣿ‏\ud802-\ud803\ud83a-\ud83bיִ-﷿ﹰ-ﻼ",goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g,goog.i18n.bidi.stripHtmlIfNeeded_=function(e,t){return t?e.replace(goog.i18n.bidi.htmlSkipReg_,""):e},goog.i18n.bidi.rtlCharReg_=new RegExp("["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.ltrCharReg_=new RegExp("["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.hasAnyRtl=function(e,t){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl,goog.i18n.bidi.hasAnyLtr=function(e,t){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.ltrRe_=new RegExp("^["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlRe_=new RegExp("^["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.isRtlChar=function(e){return goog.i18n.bidi.rtlRe_.test(e)},goog.i18n.bidi.isLtrChar=function(e){return goog.i18n.bidi.ltrRe_.test(e)},goog.i18n.bidi.isNeutralChar=function(e){return!goog.i18n.bidi.isLtrChar(e)&&!goog.i18n.bidi.isRtlChar(e)},goog.i18n.bidi.ltrDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.rtlChars_+"]*["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.ltrChars_+"]*["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.startsWithRtl=function(e,t){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl,goog.i18n.bidi.startsWithLtr=function(e,t){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr,goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/,goog.i18n.bidi.isNeutralText=function(e,t){return e=goog.i18n.bidi.stripHtmlIfNeeded_(e,t),goog.i18n.bidi.isRequiredLtrRe_.test(e)||!goog.i18n.bidi.hasAnyLtr(e)&&!goog.i18n.bidi.hasAnyRtl(e)},goog.i18n.bidi.ltrExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.ltrChars_+"][^"+goog.i18n.bidi.rtlChars_+"]*$"),goog.i18n.bidi.rtlExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.rtlChars_+"][^"+goog.i18n.bidi.ltrChars_+"]*$"),goog.i18n.bidi.endsWithLtr=function(e,t){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr,goog.i18n.bidi.endsWithRtl=function(e,t){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isRtlExitText=goog.i18n.bidi.endsWithRtl,goog.i18n.bidi.rtlLocalesRe_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,goog.i18n.bidi.isRtlLanguage=function(e){return goog.i18n.bidi.rtlLocalesRe_.test(e)},goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,goog.i18n.bidi.guardBracketInText=function(e,t){return t=(void 0===t?goog.i18n.bidi.hasAnyRtl(e):t)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,e.replace(goog.i18n.bidi.bracketGuardTextRe_,t+"$&"+t)},goog.i18n.bidi.enforceRtlInHtml=function(e){return"<"==e.charAt(0)?e.replace(/<\w+/,"$& dir=rtl"):"\n<span dir=rtl>"+e+"</span>"},goog.i18n.bidi.enforceRtlInText=function(e){return goog.i18n.bidi.Format.RLE+e+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.enforceLtrInHtml=function(e){return"<"==e.charAt(0)?e.replace(/<\w+/,"$& dir=ltr"):"\n<span dir=ltr>"+e+"</span>"},goog.i18n.bidi.enforceLtrInText=function(e){return goog.i18n.bidi.Format.LRE+e+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g,goog.i18n.bidi.leftRe_=/left/gi,goog.i18n.bidi.rightRe_=/right/gi,goog.i18n.bidi.tempRe_=/%%%%/g,goog.i18n.bidi.mirrorCSS=function(e){return e.replace(goog.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(goog.i18n.bidi.leftRe_,"%%%%").replace(goog.i18n.bidi.rightRe_,goog.i18n.bidi.LEFT).replace(goog.i18n.bidi.tempRe_,goog.i18n.bidi.RIGHT)},goog.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g,goog.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g,goog.i18n.bidi.normalizeHebrewQuote=function(e){return e.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1״").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1׳")},goog.i18n.bidi.wordSeparatorRe_=/\s+/,goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/,goog.i18n.bidi.rtlDetectionThreshold_=.4,goog.i18n.bidi.estimateDirection=function(e,t){var o=0,r=0,s=!1;for(e=goog.i18n.bidi.stripHtmlIfNeeded_(e,t).split(goog.i18n.bidi.wordSeparatorRe_),t=0;t<e.length;t++){var n=e[t];goog.i18n.bidi.startsWithRtl(n)?(o++,r++):goog.i18n.bidi.isRequiredLtrRe_.test(n)?s=!0:goog.i18n.bidi.hasAnyLtr(n)?r++:goog.i18n.bidi.hasNumeralsRe_.test(n)&&(s=!0)}return 0==r?s?goog.i18n.bidi.Dir.LTR:goog.i18n.bidi.Dir.NEUTRAL:o/r>goog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.detectRtlDirectionality=function(e,t){return goog.i18n.bidi.estimateDirection(e,t)==goog.i18n.bidi.Dir.RTL},goog.i18n.bidi.setElementDirAndAlign=function(e,t){e&&(t=goog.i18n.bidi.toDir(t))&&(e.style.textAlign=t==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,e.dir=t==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")},goog.i18n.bidi.setElementDirByTextDirectionality=function(e,t){switch(goog.i18n.bidi.estimateDirection(t)){case goog.i18n.bidi.Dir.LTR:e.dir="ltr";break;case goog.i18n.bidi.Dir.RTL:e.dir="rtl";break;default:e.removeAttribute("dir")}},goog.i18n.bidi.DirectionalString=function(){},goog.html.TrustedResourceUrl=function(){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_="",this.trustedURL_=null,this.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0,goog.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()},goog.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.TrustedResourceUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.html.TrustedResourceUrl.prototype.cloneWithParams=function(e,t){var o=goog.html.TrustedResourceUrl.unwrap(this),r=(o=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(o))[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(o[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",o[2]||"",e)+goog.html.TrustedResourceUrl.stringifyParams_("#",r,t))},goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"}),goog.html.TrustedResourceUrl.unwrap=function(e){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(e).toString()},goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(e){return e instanceof goog.html.TrustedResourceUrl&&e.constructor===goog.html.TrustedResourceUrl&&e.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+e+"' of type "+goog.typeOf(e)),"type_error:TrustedResourceUrl")},goog.html.TrustedResourceUrl.unwrapTrustedURL=function(e){return e.trustedURL_?e.trustedURL_:goog.html.TrustedResourceUrl.unwrap(e)},goog.html.TrustedResourceUrl.format=function(e,t){var o=goog.string.Const.unwrap(e);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(o))throw Error("Invalid TrustedResourceUrl format: "+o);return e=o.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,(function(e,r){if(!Object.prototype.hasOwnProperty.call(t,r))throw Error('Found marker, "'+r+'", in format string, "'+o+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[r])instanceof goog.string.Const?goog.string.Const.unwrap(e):encodeURIComponent(String(e))})),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.TrustedResourceUrl.FORMAT_MARKER_=/%{(\w+)}/g,goog.html.TrustedResourceUrl.BASE_URL_=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,goog.html.TrustedResourceUrl.URL_PARAM_PARSER_=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/,goog.html.TrustedResourceUrl.formatWithParams=function(e,t,o,r){return goog.html.TrustedResourceUrl.format(e,t).cloneWithParams(o,r)},goog.html.TrustedResourceUrl.fromConstant=function(e){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(e))},goog.html.TrustedResourceUrl.fromConstants=function(e){for(var t="",o=0;o<e.length;o++)t+=goog.string.Const.unwrap(e[o]);return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse=function(e){var t=new goog.html.TrustedResourceUrl;return t.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScriptURL(e):e,goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY&&(t.trustedURL_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createURL(e)),t},goog.html.TrustedResourceUrl.stringifyParams_=function(e,t,o){if(null==o)return t;if(goog.isString(o))return o?e+encodeURIComponent(o):"";for(var r in o){var s=o[r];s=goog.isArray(s)?s:[s];for(var n=0;n<s.length;n++){var i=s[n];null!=i&&(t||(t=e),t+=(t.length>e.length?"&":"")+encodeURIComponent(r)+"="+encodeURIComponent(String(i)))}}return t},goog.html.SafeUrl=function(){this.privateDoNotAccessOrElseSafeUrlWrappedValue_="",this.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez",goog.html.SafeUrl.prototype.implementsGoogStringTypedString=!0,goog.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()},goog.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.DEBUG&&(goog.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeUrlWrappedValue_+"}"}),goog.html.SafeUrl.unwrap=function(e){return goog.html.SafeUrl.unwrapTrustedURL(e).toString()},goog.html.SafeUrl.unwrapTrustedURL=function(e){return e instanceof goog.html.SafeUrl&&e.constructor===goog.html.SafeUrl&&e.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeUrl")},goog.html.SafeUrl.fromConstant=function(e){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(e))},goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime))(?:;\w+=(?:\w+|"[\w;=]+"))*$/i,goog.html.SafeUrl.isSafeMimeType=function(e){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(e)},goog.html.SafeUrl.fromBlob=function(e){return e=goog.html.SAFE_MIME_TYPE_PATTERN_.test(e.type)?goog.fs.url.createObjectUrl(e):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.DATA_URL_PATTERN_=/^data:([^,]*);base64,[a-z0-9+\/]+=*$/i,goog.html.SafeUrl.fromDataUrl=function(e){var t=(e=e.replace(/(%0A|%0D)/g,"")).match(goog.html.DATA_URL_PATTERN_);return t=t&&goog.html.SAFE_MIME_TYPE_PATTERN_.test(t[1]),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t?e:goog.html.SafeUrl.INNOCUOUS_STRING)},goog.html.SafeUrl.fromTelUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"tel:")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i,goog.html.SafeUrl.fromSipUrl=function(e){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(e))||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromFacebookMessengerUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"fb-messenger://share")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromWhatsAppUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"whatsapp://send")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromSmsUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.isSmsUrlBodyValid_=function(e){var t=e.indexOf("#");if(0<t&&(e=e.substring(0,t)),!(t=e.match(/[?&]body=/gi)))return!0;if(1<t.length)return!1;if(!(e=e.match(/[?&]body=([^&]*)/)[1]))return!0;try{decodeURIComponent(e)}catch(e){return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(e)},goog.html.SafeUrl.fromSshUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"ssh://")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.sanitizeChromeExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeFirefoxExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^moz-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeEdgeExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^ms-browser-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeExtensionUrl_=function(e,t,o){return(e=e.exec(t))?(e=e[1],-1==(o instanceof goog.string.Const?[goog.string.Const.unwrap(o)]:o.map((function(e){return goog.string.Const.unwrap(e)}))).indexOf(e)&&(t=goog.html.SafeUrl.INNOCUOUS_STRING)):t=goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.SafeUrl.fromTrustedResourceUrl=function(e){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(e))},goog.html.SAFE_URL_PATTERN_=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,goog.html.SafeUrl.SAFE_URL_PATTERN=goog.html.SAFE_URL_PATTERN_,goog.html.SafeUrl.sanitize=function(e){return e instanceof goog.html.SafeUrl?e:(e="object"==typeof e&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),goog.html.SAFE_URL_PATTERN_.test(e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e))},goog.html.SafeUrl.sanitizeAssertUnchanged=function(e,t){return e instanceof goog.html.SafeUrl?e:(e="object"==typeof e&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),t&&/^data:/i.test(e)&&(t=goog.html.SafeUrl.fromDataUrl(e)).getTypedStringValue()==e?t:(goog.asserts.assert(goog.html.SAFE_URL_PATTERN_.test(e),"%s does not match the safe URL pattern",e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)))},goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse=function(e){var t=new goog.html.SafeUrl;return t.privateDoNotAccessOrElseSafeUrlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createURL(e):e,t},goog.html.SafeUrl.ABOUT_BLANK=goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank"),goog.html.SafeStyle=function(){this.privateDoNotAccessOrElseSafeStyleWrappedValue_="",this.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeStyle.prototype.implementsGoogStringTypedString=!0,goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeStyle.fromConstant=function(e){return 0===(e=goog.string.Const.unwrap(e)).length?goog.html.SafeStyle.EMPTY:(goog.asserts.assert(goog.string.internal.endsWith(e,";"),"Last character of style string is not ';': "+e),goog.asserts.assert(goog.string.internal.contains(e,":"),"Style string must contain at least one ':', to specify a \"name: value\" pair: "+e),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(e))},goog.html.SafeStyle.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_},goog.DEBUG&&(goog.html.SafeStyle.prototype.toString=function(){return"SafeStyle{"+this.privateDoNotAccessOrElseSafeStyleWrappedValue_+"}"}),goog.html.SafeStyle.unwrap=function(e){return e instanceof goog.html.SafeStyle&&e.constructor===goog.html.SafeStyle&&e.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeStyleWrappedValue_:(goog.asserts.fail("expected object of type SafeStyle, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeStyle")},goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse=function(e){return(new goog.html.SafeStyle).initSecurityPrivateDoNotAccessOrElse_(e)},goog.html.SafeStyle.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_=e,this},goog.html.SafeStyle.EMPTY=goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(""),goog.html.SafeStyle.INNOCUOUS_STRING="zClosurez",goog.html.SafeStyle.create=function(e){var t,o="";for(t in e){if(!/^[-_a-zA-Z0-9]+$/.test(t))throw Error("Name allows only [-_a-zA-Z0-9], got: "+t);var r=e[t];null!=r&&(o+=t+":"+(r=goog.isArray(r)?goog.array.map(r,goog.html.SafeStyle.sanitizePropertyValue_).join(" "):goog.html.SafeStyle.sanitizePropertyValue_(r))+";")}return o?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(o):goog.html.SafeStyle.EMPTY},goog.html.SafeStyle.sanitizePropertyValue_=function(e){if(e instanceof goog.html.SafeUrl)return'url("'+goog.html.SafeUrl.unwrap(e).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(e=e instanceof goog.string.Const?goog.string.Const.unwrap(e):goog.html.SafeStyle.sanitizePropertyValueString_(String(e)),/[{;}]/.test(e))throw new goog.asserts.AssertionError("Value does not allow [{;}], got: %s.",[e]);return e},goog.html.SafeStyle.sanitizePropertyValueString_=function(e){var t=e.replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.URL_RE_,"url");return goog.html.SafeStyle.VALUE_RE_.test(t)?goog.html.SafeStyle.COMMENT_RE_.test(e)?(goog.asserts.fail("String value disallows comments, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING):goog.html.SafeStyle.hasBalancedQuotes_(e)?goog.html.SafeStyle.hasBalancedSquareBrackets_(e)?goog.html.SafeStyle.sanitizeUrl_(e):(goog.asserts.fail("String value requires balanced square brackets and one identifier per pair of brackets, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING):(goog.asserts.fail("String value requires balanced quotes, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING):(goog.asserts.fail("String value allows only "+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+" and simple functions, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING)},goog.html.SafeStyle.hasBalancedQuotes_=function(e){for(var t=!0,o=!0,r=0;r<e.length;r++){var s=e.charAt(r);"'"==s&&o?t=!t:'"'==s&&t&&(o=!o)}return t&&o},goog.html.SafeStyle.hasBalancedSquareBrackets_=function(e){for(var t=!0,o=/^[-_a-zA-Z0-9]$/,r=0;r<e.length;r++){var s=e.charAt(r);if("]"==s){if(t)return!1;t=!0}else if("["==s){if(!t)return!1;t=!1}else if(!t&&!o.test(s))return!1}return t},goog.html.SafeStyle.VALUE_ALLOWED_CHARS_="[-,.\"'%_!# a-zA-Z0-9\\[\\]]",goog.html.SafeStyle.VALUE_RE_=new RegExp("^"+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+"+$"),goog.html.SafeStyle.URL_RE_=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g,goog.html.SafeStyle.FUNCTIONS_RE_=/\b(hsl|hsla|rgb|rgba|matrix|calc|minmax|fit-content|repeat|(rotate|scale|translate)(X|Y|Z|3d)?)\([-+*/0-9a-z.%\[\], ]+\)/g,goog.html.SafeStyle.COMMENT_RE_=/\/\*/,goog.html.SafeStyle.sanitizeUrl_=function(e){return e.replace(goog.html.SafeStyle.URL_RE_,(function(e,t,o,r){var s="";return o=o.replace(/^(['"])(.*)\1$/,(function(e,t,o){return s=t,o})),e=goog.html.SafeUrl.sanitize(o).getTypedStringValue(),t+s+e+s+r}))},goog.html.SafeStyle.concat=function(e){var t="",o=function(e){goog.isArray(e)?goog.array.forEach(e,o):t+=goog.html.SafeStyle.unwrap(e)};return goog.array.forEach(arguments,o),t?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t):goog.html.SafeStyle.EMPTY},goog.html.SafeScript=function(){this.privateDoNotAccessOrElseSafeScriptWrappedValue_="",this.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeScript.prototype.implementsGoogStringTypedString=!0,goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeScript.fromConstant=function(e){return 0===(e=goog.string.Const.unwrap(e)).length?goog.html.SafeScript.EMPTY:goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeScript.fromConstantAndArgs=function(e,t){for(var o=[],r=1;r<arguments.length;r++)o.push(goog.html.SafeScript.stringify_(arguments[r]));return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("("+goog.string.Const.unwrap(e)+")("+o.join(", ")+");")},goog.html.SafeScript.fromJson=function(e){return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(goog.html.SafeScript.stringify_(e))},goog.html.SafeScript.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString()},goog.DEBUG&&(goog.html.SafeScript.prototype.toString=function(){return"SafeScript{"+this.privateDoNotAccessOrElseSafeScriptWrappedValue_+"}"}),goog.html.SafeScript.unwrap=function(e){return goog.html.SafeScript.unwrapTrustedScript(e).toString()},goog.html.SafeScript.unwrapTrustedScript=function(e){return e instanceof goog.html.SafeScript&&e.constructor===goog.html.SafeScript&&e.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeScriptWrappedValue_:(goog.asserts.fail("expected object of type SafeScript, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeScript")},goog.html.SafeScript.stringify_=function(e){return JSON.stringify(e).replace(/</g,"\\x3c")},goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse=function(e){return(new goog.html.SafeScript).initSecurityPrivateDoNotAccessOrElse_(e)},goog.html.SafeScript.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScript(e):e,this},goog.html.SafeScript.EMPTY=goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(""),goog.object={},goog.object.is=function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},goog.object.forEach=function(e,t,o){for(var r in e)t.call(o,e[r],r,e)},goog.object.filter=function(e,t,o){var r,s={};for(r in e)t.call(o,e[r],r,e)&&(s[r]=e[r]);return s},goog.object.map=function(e,t,o){var r,s={};for(r in e)s[r]=t.call(o,e[r],r,e);return s},goog.object.some=function(e,t,o){for(var r in e)if(t.call(o,e[r],r,e))return!0;return!1},goog.object.every=function(e,t,o){for(var r in e)if(!t.call(o,e[r],r,e))return!1;return!0},goog.object.getCount=function(e){var t,o=0;for(t in e)o++;return o},goog.object.getAnyKey=function(e){for(var t in e)return t},goog.object.getAnyValue=function(e){for(var t in e)return e[t]},goog.object.contains=function(e,t){return goog.object.containsValue(e,t)},goog.object.getValues=function(e){var t,o=[],r=0;for(t in e)o[r++]=e[t];return o},goog.object.getKeys=function(e){var t,o=[],r=0;for(t in e)o[r++]=t;return o},goog.object.getValueByKeys=function(e,t){var o=goog.isArrayLike(t),r=o?t:arguments;for(o=o?0:1;o<r.length;o++){if(null==e)return;e=e[r[o]]}return e},goog.object.containsKey=function(e,t){return null!==e&&t in e},goog.object.containsValue=function(e,t){for(var o in e)if(e[o]==t)return!0;return!1},goog.object.findKey=function(e,t,o){for(var r in e)if(t.call(o,e[r],r,e))return r},goog.object.findValue=function(e,t,o){return(t=goog.object.findKey(e,t,o))&&e[t]},goog.object.isEmpty=function(e){for(var t in e)return!1;return!0},goog.object.clear=function(e){for(var t in e)delete e[t]},goog.object.remove=function(e,t){var o;return(o=t in e)&&delete e[t],o},goog.object.add=function(e,t,o){if(null!==e&&t in e)throw Error('The object already contains the key "'+t+'"');goog.object.set(e,t,o)},goog.object.get=function(e,t,o){return null!==e&&t in e?e[t]:o},goog.object.set=function(e,t,o){e[t]=o},goog.object.setIfUndefined=function(e,t,o){return t in e?e[t]:e[t]=o},goog.object.setWithReturnValueIfNotSet=function(e,t,o){return t in e?e[t]:(o=o(),e[t]=o)},goog.object.equals=function(e,t){for(var o in e)if(!(o in t)||e[o]!==t[o])return!1;for(var r in t)if(!(r in e))return!1;return!0},goog.object.clone=function(e){var t,o={};for(t in e)o[t]=e[t];return o},goog.object.unsafeClone=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if(goog.isFunction(e.clone))return e.clone();for(var o in t="array"==t?[]:{},e)t[o]=goog.object.unsafeClone(e[o]);return t}return e},goog.object.transpose=function(e){var t,o={};for(t in e)o[e[t]]=t;return o},goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.object.extend=function(e,t){for(var o,r,s=1;s<arguments.length;s++){for(o in r=arguments[s])e[o]=r[o];for(var n=0;n<goog.object.PROTOTYPE_FIELDS_.length;n++)o=goog.object.PROTOTYPE_FIELDS_[n],Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}},goog.object.create=function(e){var t=arguments.length;if(1==t&&goog.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(t%2)throw Error("Uneven number of arguments");for(var o={},r=0;r<t;r+=2)o[arguments[r]]=arguments[r+1];return o},goog.object.createSet=function(e){var t=arguments.length;if(1==t&&goog.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var o={},r=0;r<t;r++)o[arguments[r]]=!0;return o},goog.object.createImmutableView=function(e){var t=e;return Object.isFrozen&&!Object.isFrozen(e)&&(t=Object.create(e),Object.freeze(t)),t},goog.object.isImmutableView=function(e){return!!Object.isFrozen&&Object.isFrozen(e)},goog.object.getAllPropertyNames=function(e,t,o){if(!e)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return goog.object.getKeys(e);for(var r={};e&&(e!==Object.prototype||t)&&(e!==Function.prototype||o);){for(var s=Object.getOwnPropertyNames(e),n=0;n<s.length;n++)r[s[n]]=!0;e=Object.getPrototypeOf(e)}return goog.object.getKeys(r)},goog.object.getSuperClass=function(e){return(e=Object.getPrototypeOf(e.prototype))&&e.constructor},goog.html.SafeStyleSheet=function(){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_="",this.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeStyleSheet.prototype.implementsGoogStringTypedString=!0,goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeStyleSheet.createRule=function(e,t){if(goog.string.internal.contains(e,"<"))throw Error("Selector does not allow '<', got: "+e);var o=e.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g,"");if(!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=^$|]+$/.test(o))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+e);if(!goog.html.SafeStyleSheet.hasBalancedBrackets_(o))throw Error("() and [] in selector must be balanced, got: "+e);return t instanceof goog.html.SafeStyle||(t=goog.html.SafeStyle.create(t)),e=e+"{"+goog.html.SafeStyle.unwrap(t).replace(/</g,"\\3C ")+"}",goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeStyleSheet.hasBalancedBrackets_=function(e){for(var t={"(":")","[":"]"},o=[],r=0;r<e.length;r++){var s=e[r];if(t[s])o.push(t[s]);else if(goog.object.contains(t,s)&&o.pop()!=s)return!1}return 0==o.length},goog.html.SafeStyleSheet.concat=function(e){var t="",o=function(e){goog.isArray(e)?goog.array.forEach(e,o):t+=goog.html.SafeStyleSheet.unwrap(e)};return goog.array.forEach(arguments,o),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)},goog.html.SafeStyleSheet.fromConstant=function(e){return 0===(e=goog.string.Const.unwrap(e)).length?goog.html.SafeStyleSheet.EMPTY:(goog.asserts.assert(!goog.string.internal.contains(e,"<"),"Forbidden '<' character in style sheet string: "+e),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e))},goog.html.SafeStyleSheet.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_},goog.DEBUG&&(goog.html.SafeStyleSheet.prototype.toString=function(){return"SafeStyleSheet{"+this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_+"}"}),goog.html.SafeStyleSheet.unwrap=function(e){return e instanceof goog.html.SafeStyleSheet&&e.constructor===goog.html.SafeStyleSheet&&e.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:(goog.asserts.fail("expected object of type SafeStyleSheet, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeStyleSheet")},goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse=function(e){return(new goog.html.SafeStyleSheet).initSecurityPrivateDoNotAccessOrElse_(e)},goog.html.SafeStyleSheet.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=e,this},goog.html.SafeStyleSheet.EMPTY=goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(""),goog.dom.tags={},goog.dom.tags.VOID_TAGS_={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},goog.dom.tags.isVoidTag=function(e){return!0===goog.dom.tags.VOID_TAGS_[e]},goog.dom.HtmlElement=function(){},goog.dom.TagName=function(e){this.tagName_=e},goog.dom.TagName.prototype.toString=function(){return this.tagName_},goog.dom.TagName.A=new goog.dom.TagName("A"),goog.dom.TagName.ABBR=new goog.dom.TagName("ABBR"),goog.dom.TagName.ACRONYM=new goog.dom.TagName("ACRONYM"),goog.dom.TagName.ADDRESS=new goog.dom.TagName("ADDRESS"),goog.dom.TagName.APPLET=new goog.dom.TagName("APPLET"),goog.dom.TagName.AREA=new goog.dom.TagName("AREA"),goog.dom.TagName.ARTICLE=new goog.dom.TagName("ARTICLE"),goog.dom.TagName.ASIDE=new goog.dom.TagName("ASIDE"),goog.dom.TagName.AUDIO=new goog.dom.TagName("AUDIO"),goog.dom.TagName.B=new goog.dom.TagName("B"),goog.dom.TagName.BASE=new goog.dom.TagName("BASE"),goog.dom.TagName.BASEFONT=new goog.dom.TagName("BASEFONT"),goog.dom.TagName.BDI=new goog.dom.TagName("BDI"),goog.dom.TagName.BDO=new goog.dom.TagName("BDO"),goog.dom.TagName.BIG=new goog.dom.TagName("BIG"),goog.dom.TagName.BLOCKQUOTE=new goog.dom.TagName("BLOCKQUOTE"),goog.dom.TagName.BODY=new goog.dom.TagName("BODY"),goog.dom.TagName.BR=new goog.dom.TagName("BR"),goog.dom.TagName.BUTTON=new goog.dom.TagName("BUTTON"),goog.dom.TagName.CANVAS=new goog.dom.TagName("CANVAS"),goog.dom.TagName.CAPTION=new goog.dom.TagName("CAPTION"),goog.dom.TagName.CENTER=new goog.dom.TagName("CENTER"),goog.dom.TagName.CITE=new goog.dom.TagName("CITE"),goog.dom.TagName.CODE=new goog.dom.TagName("CODE"),goog.dom.TagName.COL=new goog.dom.TagName("COL"),goog.dom.TagName.COLGROUP=new goog.dom.TagName("COLGROUP"),goog.dom.TagName.COMMAND=new goog.dom.TagName("COMMAND"),goog.dom.TagName.DATA=new goog.dom.TagName("DATA"),goog.dom.TagName.DATALIST=new goog.dom.TagName("DATALIST"),goog.dom.TagName.DD=new goog.dom.TagName("DD"),goog.dom.TagName.DEL=new goog.dom.TagName("DEL"),goog.dom.TagName.DETAILS=new goog.dom.TagName("DETAILS"),goog.dom.TagName.DFN=new goog.dom.TagName("DFN"),goog.dom.TagName.DIALOG=new goog.dom.TagName("DIALOG"),goog.dom.TagName.DIR=new goog.dom.TagName("DIR"),goog.dom.TagName.DIV=new goog.dom.TagName("DIV"),goog.dom.TagName.DL=new goog.dom.TagName("DL"),goog.dom.TagName.DT=new goog.dom.TagName("DT"),goog.dom.TagName.EM=new goog.dom.TagName("EM"),goog.dom.TagName.EMBED=new goog.dom.TagName("EMBED"),goog.dom.TagName.FIELDSET=new goog.dom.TagName("FIELDSET"),goog.dom.TagName.FIGCAPTION=new goog.dom.TagName("FIGCAPTION"),goog.dom.TagName.FIGURE=new goog.dom.TagName("FIGURE"),goog.dom.TagName.FONT=new goog.dom.TagName("FONT"),goog.dom.TagName.FOOTER=new goog.dom.TagName("FOOTER"),goog.dom.TagName.FORM=new goog.dom.TagName("FORM"),goog.dom.TagName.FRAME=new goog.dom.TagName("FRAME"),goog.dom.TagName.FRAMESET=new goog.dom.TagName("FRAMESET"),goog.dom.TagName.H1=new goog.dom.TagName("H1"),goog.dom.TagName.H2=new goog.dom.TagName("H2"),goog.dom.TagName.H3=new goog.dom.TagName("H3"),goog.dom.TagName.H4=new goog.dom.TagName("H4"),goog.dom.TagName.H5=new goog.dom.TagName("H5"),goog.dom.TagName.H6=new goog.dom.TagName("H6"),goog.dom.TagName.HEAD=new goog.dom.TagName("HEAD"),goog.dom.TagName.HEADER=new goog.dom.TagName("HEADER"),goog.dom.TagName.HGROUP=new goog.dom.TagName("HGROUP"),goog.dom.TagName.HR=new goog.dom.TagName("HR"),goog.dom.TagName.HTML=new goog.dom.TagName("HTML"),goog.dom.TagName.I=new goog.dom.TagName("I"),goog.dom.TagName.IFRAME=new goog.dom.TagName("IFRAME"),goog.dom.TagName.IMG=new goog.dom.TagName("IMG"),goog.dom.TagName.INPUT=new goog.dom.TagName("INPUT"),goog.dom.TagName.INS=new goog.dom.TagName("INS"),goog.dom.TagName.ISINDEX=new goog.dom.TagName("ISINDEX"),goog.dom.TagName.KBD=new goog.dom.TagName("KBD"),goog.dom.TagName.KEYGEN=new goog.dom.TagName("KEYGEN"),goog.dom.TagName.LABEL=new goog.dom.TagName("LABEL"),goog.dom.TagName.LEGEND=new goog.dom.TagName("LEGEND"),goog.dom.TagName.LI=new goog.dom.TagName("LI"),goog.dom.TagName.LINK=new goog.dom.TagName("LINK"),goog.dom.TagName.MAIN=new goog.dom.TagName("MAIN"),goog.dom.TagName.MAP=new goog.dom.TagName("MAP"),goog.dom.TagName.MARK=new goog.dom.TagName("MARK"),goog.dom.TagName.MATH=new goog.dom.TagName("MATH"),goog.dom.TagName.MENU=new goog.dom.TagName("MENU"),goog.dom.TagName.MENUITEM=new goog.dom.TagName("MENUITEM"),goog.dom.TagName.META=new goog.dom.TagName("META"),goog.dom.TagName.METER=new goog.dom.TagName("METER"),goog.dom.TagName.NAV=new goog.dom.TagName("NAV"),goog.dom.TagName.NOFRAMES=new goog.dom.TagName("NOFRAMES"),goog.dom.TagName.NOSCRIPT=new goog.dom.TagName("NOSCRIPT"),goog.dom.TagName.OBJECT=new goog.dom.TagName("OBJECT"),goog.dom.TagName.OL=new goog.dom.TagName("OL"),goog.dom.TagName.OPTGROUP=new goog.dom.TagName("OPTGROUP"),goog.dom.TagName.OPTION=new goog.dom.TagName("OPTION"),goog.dom.TagName.OUTPUT=new goog.dom.TagName("OUTPUT"),goog.dom.TagName.P=new goog.dom.TagName("P"),goog.dom.TagName.PARAM=new goog.dom.TagName("PARAM"),goog.dom.TagName.PICTURE=new goog.dom.TagName("PICTURE"),goog.dom.TagName.PRE=new goog.dom.TagName("PRE"),goog.dom.TagName.PROGRESS=new goog.dom.TagName("PROGRESS"),goog.dom.TagName.Q=new goog.dom.TagName("Q"),goog.dom.TagName.RP=new goog.dom.TagName("RP"),goog.dom.TagName.RT=new goog.dom.TagName("RT"),goog.dom.TagName.RTC=new goog.dom.TagName("RTC"),goog.dom.TagName.RUBY=new goog.dom.TagName("RUBY"),goog.dom.TagName.S=new goog.dom.TagName("S"),goog.dom.TagName.SAMP=new goog.dom.TagName("SAMP"),goog.dom.TagName.SCRIPT=new goog.dom.TagName("SCRIPT"),goog.dom.TagName.SECTION=new goog.dom.TagName("SECTION"),goog.dom.TagName.SELECT=new goog.dom.TagName("SELECT"),goog.dom.TagName.SMALL=new goog.dom.TagName("SMALL"),goog.dom.TagName.SOURCE=new goog.dom.TagName("SOURCE"),goog.dom.TagName.SPAN=new goog.dom.TagName("SPAN"),goog.dom.TagName.STRIKE=new goog.dom.TagName("STRIKE"),goog.dom.TagName.STRONG=new goog.dom.TagName("STRONG"),goog.dom.TagName.STYLE=new goog.dom.TagName("STYLE"),goog.dom.TagName.SUB=new goog.dom.TagName("SUB"),goog.dom.TagName.SUMMARY=new goog.dom.TagName("SUMMARY"),goog.dom.TagName.SUP=new goog.dom.TagName("SUP"),goog.dom.TagName.SVG=new goog.dom.TagName("SVG"),goog.dom.TagName.TABLE=new goog.dom.TagName("TABLE"),goog.dom.TagName.TBODY=new goog.dom.TagName("TBODY"),goog.dom.TagName.TD=new goog.dom.TagName("TD"),goog.dom.TagName.TEMPLATE=new goog.dom.TagName("TEMPLATE"),goog.dom.TagName.TEXTAREA=new goog.dom.TagName("TEXTAREA"),goog.dom.TagName.TFOOT=new goog.dom.TagName("TFOOT"),goog.dom.TagName.TH=new goog.dom.TagName("TH"),goog.dom.TagName.THEAD=new goog.dom.TagName("THEAD"),goog.dom.TagName.TIME=new goog.dom.TagName("TIME"),goog.dom.TagName.TITLE=new goog.dom.TagName("TITLE"),goog.dom.TagName.TR=new goog.dom.TagName("TR"),goog.dom.TagName.TRACK=new goog.dom.TagName("TRACK"),goog.dom.TagName.TT=new goog.dom.TagName("TT"),goog.dom.TagName.U=new goog.dom.TagName("U"),goog.dom.TagName.UL=new goog.dom.TagName("UL"),goog.dom.TagName.VAR=new goog.dom.TagName("VAR"),goog.dom.TagName.VIDEO=new goog.dom.TagName("VIDEO"),goog.dom.TagName.WBR=new goog.dom.TagName("WBR"),goog.labs={},goog.labs.userAgent={},goog.labs.userAgent.util={},goog.labs.userAgent.util.getNativeUserAgentString_=function(){var e=goog.labs.userAgent.util.getNavigator_();return e&&(e=e.userAgent)?e:""},goog.labs.userAgent.util.getNavigator_=function(){return goog.global.navigator},goog.labs.userAgent.util.userAgent_=goog.labs.userAgent.util.getNativeUserAgentString_(),goog.labs.userAgent.util.setUserAgent=function(e){goog.labs.userAgent.util.userAgent_=e||goog.labs.userAgent.util.getNativeUserAgentString_()},goog.labs.userAgent.util.getUserAgent=function(){return goog.labs.userAgent.util.userAgent_},goog.labs.userAgent.util.matchUserAgent=function(e){var t=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.contains(t,e)},goog.labs.userAgent.util.matchUserAgentIgnoreCase=function(e){var t=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.caseInsensitiveContains(t,e)},goog.labs.userAgent.util.extractVersionTuples=function(e){for(var t,o=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,r=[];t=o.exec(e);)r.push([t[1],t[2],t[3]||void 0]);return r},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.matchEdgeHtml_=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")},goog.labs.userAgent.browser.matchEdgeChromium_=function(){return goog.labs.userAgent.util.matchUserAgent("Edg/")},goog.labs.userAgent.browser.matchOperaChromium_=function(){return goog.labs.userAgent.util.matchUserAgent("OPR")},goog.labs.userAgent.browser.matchFirefox_=function(){return goog.labs.userAgent.util.matchUserAgent("Firefox")||goog.labs.userAgent.util.matchUserAgent("FxiOS")},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.matchEdgeHtml_()||goog.labs.userAgent.browser.matchEdgeChromium_()||goog.labs.userAgent.browser.matchOperaChromium_()||goog.labs.userAgent.browser.matchFirefox_()||goog.labs.userAgent.browser.isSilk()||goog.labs.userAgent.util.matchUserAgent("Android"))},goog.labs.userAgent.browser.matchCoast_=function(){return goog.labs.userAgent.util.matchUserAgent("Coast")},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.browser.matchFirefox_()&&goog.labs.userAgent.util.matchUserAgent("AppleWebKit")},goog.labs.userAgent.browser.matchChrome_=function(){return(goog.labs.userAgent.util.matchUserAgent("Chrome")||goog.labs.userAgent.util.matchUserAgent("CriOS"))&&!goog.labs.userAgent.browser.matchEdgeHtml_()},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())},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.matchEdgeHtml_,goog.labs.userAgent.browser.isEdgeChromium=goog.labs.userAgent.browser.matchEdgeChromium_,goog.labs.userAgent.browser.isOperaChromium=goog.labs.userAgent.browser.matchOperaChromium_,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_,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")},goog.labs.userAgent.browser.getVersion=function(){function e(e){return e=goog.array.find(e,r),o[e]||""}var t=goog.labs.userAgent.util.getUserAgent();if(goog.labs.userAgent.browser.isIE())return goog.labs.userAgent.browser.getIEVersion_(t);t=goog.labs.userAgent.util.extractVersionTuples(t);var o={};goog.array.forEach(t,(function(e){o[e[0]]=e[1]}));var r=goog.partial(goog.object.containsKey,o);return goog.labs.userAgent.browser.isOpera()?e(["Version","Opera"]):goog.labs.userAgent.browser.isEdge()?e(["Edge"]):goog.labs.userAgent.browser.isEdgeChromium()?e(["Edg"]):goog.labs.userAgent.browser.isChrome()?e(["Chrome","CriOS"]):(t=t[2])&&t[1]||""},goog.labs.userAgent.browser.isVersionOrHigher=function(e){return 0<=goog.string.internal.compareVersions(goog.labs.userAgent.browser.getVersion(),e)},goog.labs.userAgent.browser.getIEVersion_=function(e){var t=/rv: *([\d\.]*)/.exec(e);if(t&&t[1])return t[1];t="";var o=/MSIE +([\d\.]+)/.exec(e);if(o&&o[1])if(e=/Trident\/(\d.\d)/.exec(e),"7.0"==o[1])if(e&&e[1])switch(e[1]){case"4.0":t="8.0";break;case"5.0":t="9.0";break;case"6.0":t="10.0";break;case"7.0":t="11.0"}else t="7.0";else t=o[1];return t},goog.html.SafeHtml=function(){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_="",this.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_,this.dir_=null},goog.html.SafeHtml.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeHtml.prototype.getDirection=function(){return this.dir_},goog.html.SafeHtml.prototype.implementsGoogStringTypedString=!0,goog.html.SafeHtml.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()},goog.DEBUG&&(goog.html.SafeHtml.prototype.toString=function(){return"SafeHtml{"+this.privateDoNotAccessOrElseSafeHtmlWrappedValue_+"}"}),goog.html.SafeHtml.unwrap=function(e){return goog.html.SafeHtml.unwrapTrustedHTML(e).toString()},goog.html.SafeHtml.unwrapTrustedHTML=function(e){return e instanceof goog.html.SafeHtml&&e.constructor===goog.html.SafeHtml&&e.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeHtmlWrappedValue_:(goog.asserts.fail("expected object of type SafeHtml, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeHtml")},goog.html.SafeHtml.htmlEscape=function(e){if(e instanceof goog.html.SafeHtml)return e;var t="object"==typeof e,o=null;return t&&e.implementsGoogI18nBidiDirectionalString&&(o=e.getDirection()),e=t&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(e),o)},goog.html.SafeHtml.htmlEscapePreservingNewlines=function(e){return e instanceof goog.html.SafeHtml?e:(e=goog.html.SafeHtml.htmlEscape(e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(goog.html.SafeHtml.unwrap(e)),e.getDirection()))},goog.html.SafeHtml.htmlEscapePreservingNewlinesAndSpaces=function(e){return e instanceof goog.html.SafeHtml?e:(e=goog.html.SafeHtml.htmlEscape(e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(goog.html.SafeHtml.unwrap(e)),e.getDirection()))},goog.html.SafeHtml.from=goog.html.SafeHtml.htmlEscape,goog.html.SafeHtml.VALID_NAMES_IN_TAG_=/^[a-zA-Z0-9-]+$/,goog.html.SafeHtml.URL_ATTRIBUTES_={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.html.SafeHtml.create=function(e,t,o){return goog.html.SafeHtml.verifyTagName(String(e)),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(e),t,o)},goog.html.SafeHtml.verifyTagName=function(e){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(e))throw Error("Invalid tag name <"+e+">.");if(e.toUpperCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error("Tag name <"+e+"> is not allowed for SafeHtml.")},goog.html.SafeHtml.createIframe=function(e,t,o,r){e&&goog.html.TrustedResourceUrl.unwrap(e);var s={};return s.src=e||null,s.srcdoc=t&&goog.html.SafeHtml.unwrap(t),e=goog.html.SafeHtml.combineAttributes(s,{sandbox:""},o),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",e,r)},goog.html.SafeHtml.createSandboxIframe=function(e,t,o,r){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error("The browser does not support sandboxed iframes.");var s={};return s.src=e?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(e)):null,s.srcdoc=t||null,s.sandbox="",e=goog.html.SafeHtml.combineAttributes(s,{},o),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",e,r)},goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype},goog.html.SafeHtml.createScriptSrc=function(e,t){return goog.html.TrustedResourceUrl.unwrap(e),e=goog.html.SafeHtml.combineAttributes({src:e},{},t),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",e)},goog.html.SafeHtml.createScript=function(e,t){for(var o in t){var r=o.toLowerCase();if("language"==r||"src"==r||"text"==r||"type"==r)throw Error('Cannot set "'+r+'" attribute')}for(o="",e=goog.array.concat(e),r=0;r<e.length;r++)o+=goog.html.SafeScript.unwrap(e[r]);return e=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(o,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",t,e)},goog.html.SafeHtml.createStyle=function(e,t){t=goog.html.SafeHtml.combineAttributes({type:"text/css"},{},t);var o="";e=goog.array.concat(e);for(var r=0;r<e.length;r++)o+=goog.html.SafeStyleSheet.unwrap(e[r]);return e=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(o,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style",t,e)},goog.html.SafeHtml.createMetaRefresh=function(e,t){return e=goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(e)),(goog.labs.userAgent.browser.isIE()||goog.labs.userAgent.browser.isEdge())&&goog.string.internal.contains(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta",{"http-equiv":"refresh",content:(t||0)+"; url="+e})},goog.html.SafeHtml.getAttrNameAndValue_=function(e,t,o){if(o instanceof goog.string.Const)o=goog.string.Const.unwrap(o);else if("style"==t.toLowerCase())o=goog.html.SafeHtml.getStyleValue_(o);else{if(/^on/i.test(t))throw Error('Attribute "'+t+'" requires goog.string.Const value, "'+o+'" given.');if(t.toLowerCase()in goog.html.SafeHtml.URL_ATTRIBUTES_)if(o instanceof goog.html.TrustedResourceUrl)o=goog.html.TrustedResourceUrl.unwrap(o);else if(o instanceof goog.html.SafeUrl)o=goog.html.SafeUrl.unwrap(o);else{if(!goog.isString(o))throw Error('Attribute "'+t+'" on tag "'+e+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+o+'" given.');o=goog.html.SafeUrl.sanitize(o).getTypedStringValue()}}return o.implementsGoogStringTypedString&&(o=o.getTypedStringValue()),goog.asserts.assert(goog.isString(o)||goog.isNumber(o),"String or number value expected, got "+typeof o+" with value: "+o),t+'="'+goog.string.internal.htmlEscape(String(o))+'"'},goog.html.SafeHtml.getStyleValue_=function(e){if(!goog.isObject(e))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof e+" given: "+e);return e instanceof goog.html.SafeStyle||(e=goog.html.SafeStyle.create(e)),goog.html.SafeStyle.unwrap(e)},goog.html.SafeHtml.createWithDir=function(e,t,o,r){return(t=goog.html.SafeHtml.create(t,o,r)).dir_=e,t},goog.html.SafeHtml.join=function(e,t){var o=(e=goog.html.SafeHtml.htmlEscape(e)).getDirection(),r=[],s=function(e){goog.isArray(e)?goog.array.forEach(e,s):(e=goog.html.SafeHtml.htmlEscape(e),r.push(goog.html.SafeHtml.unwrap(e)),e=e.getDirection(),o==goog.i18n.bidi.Dir.NEUTRAL?o=e:e!=goog.i18n.bidi.Dir.NEUTRAL&&o!=e&&(o=null))};return goog.array.forEach(t,s),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r.join(goog.html.SafeHtml.unwrap(e)),o)},goog.html.SafeHtml.concat=function(e){return goog.html.SafeHtml.join(goog.html.SafeHtml.EMPTY,Array.prototype.slice.call(arguments))},goog.html.SafeHtml.concatWithDir=function(e,t){var o=goog.html.SafeHtml.concat(goog.array.slice(arguments,1));return o.dir_=e,o},goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse=function(e,t){return(new goog.html.SafeHtml).initSecurityPrivateDoNotAccessOrElse_(e,t)},goog.html.SafeHtml.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e,t){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createHTML(e):e,this.dir_=t,this},goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse=function(e,t,o){var r=null,s="<"+e+goog.html.SafeHtml.stringifyAttributes(e,t);return goog.isDefAndNotNull(o)?goog.isArray(o)||(o=[o]):o=[],goog.dom.tags.isVoidTag(e.toLowerCase())?(goog.asserts.assert(!o.length,"Void tag <"+e+"> does not allow content."),s+=">"):(r=goog.html.SafeHtml.concat(o),s+=">"+goog.html.SafeHtml.unwrap(r)+"</"+e+">",r=r.getDirection()),(e=t&&t.dir)&&(r=/^(ltr|rtl|auto)$/i.test(e)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(s,r)},goog.html.SafeHtml.stringifyAttributes=function(e,t){var o="";if(t)for(var r in t){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(r))throw Error('Invalid attribute name "'+r+'".');var s=t[r];goog.isDefAndNotNull(s)&&(o+=" "+goog.html.SafeHtml.getAttrNameAndValue_(e,r,s))}return o},goog.html.SafeHtml.combineAttributes=function(e,t,o){var r,s={};for(r in e)goog.asserts.assert(r.toLowerCase()==r,"Must be lower case"),s[r]=e[r];for(r in t)goog.asserts.assert(r.toLowerCase()==r,"Must be lower case"),s[r]=t[r];for(r in o){var n=r.toLowerCase();if(n in e)throw Error('Cannot override "'+n+'" attribute, got "'+r+'" with value "'+o[r]+'"');n in t&&delete s[n],s[r]=o[r]}return s},goog.html.SafeHtml.DOCTYPE_HTML=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.EMPTY=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.BR=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>",goog.i18n.bidi.Dir.NEUTRAL),goog.html.uncheckedconversions={},goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract=function(e,t,o){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(t,o||null)},goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)},goog.dom.asserts={},goog.dom.asserts.assertIsLocation=function(e){if(goog.asserts.ENABLE_ASSERTS){var t=goog.dom.asserts.getWindow_(e);t&&(!e||!(e instanceof t.Location)&&e instanceof t.Element)&&goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s",goog.dom.asserts.debugStringForType_(e))}return e},goog.dom.asserts.assertIsElementType_=function(e,t){if(goog.asserts.ENABLE_ASSERTS){var o=goog.dom.asserts.getWindow_(e);o&&void 0!==o[t]&&(e&&(e instanceof o[t]||!(e instanceof o.Location||e instanceof o.Element))||goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s",t,goog.dom.asserts.debugStringForType_(e)))}return e},goog.dom.asserts.assertIsHTMLAnchorElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLAnchorElement")},goog.dom.asserts.assertIsHTMLButtonElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLButtonElement")},goog.dom.asserts.assertIsHTMLLinkElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLLinkElement")},goog.dom.asserts.assertIsHTMLImageElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLImageElement")},goog.dom.asserts.assertIsHTMLAudioElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLAudioElement")},goog.dom.asserts.assertIsHTMLVideoElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLVideoElement")},goog.dom.asserts.assertIsHTMLInputElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLInputElement")},goog.dom.asserts.assertIsHTMLTextAreaElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLTextAreaElement")},goog.dom.asserts.assertIsHTMLCanvasElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLCanvasElement")},goog.dom.asserts.assertIsHTMLEmbedElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLEmbedElement")},goog.dom.asserts.assertIsHTMLFormElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLFormElement")},goog.dom.asserts.assertIsHTMLFrameElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLFrameElement")},goog.dom.asserts.assertIsHTMLIFrameElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLIFrameElement")},goog.dom.asserts.assertIsHTMLObjectElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLObjectElement")},goog.dom.asserts.assertIsHTMLScriptElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLScriptElement")},goog.dom.asserts.debugStringForType_=function(e){if(!goog.isObject(e))return void 0===e?"undefined":null===e?"null":typeof e;try{return e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch(e){return"<object could not be stringified>"}},goog.dom.asserts.getWindow_=function(e){try{var t=e&&e.ownerDocument,o=t&&(t.defaultView||t.parentWindow);if((o=o||goog.global).Element&&o.Location)return o}catch(e){}return null},goog.functions={},goog.functions.constant=function(e){return function(){return e}},goog.functions.FALSE=function(){return!1},goog.functions.TRUE=function(){return!0},goog.functions.NULL=function(){return null},goog.functions.identity=function(e,t){return e},goog.functions.error=function(e){return function(){throw Error(e)}},goog.functions.fail=function(e){return function(){throw e}},goog.functions.lock=function(e,t){return t=t||0,function(){return e.apply(this,Array.prototype.slice.call(arguments,0,t))}},goog.functions.nth=function(e){return function(){return arguments[e]}},goog.functions.partialRight=function(e,t){var o=Array.prototype.slice.call(arguments,1);return function(){var t=Array.prototype.slice.call(arguments);return t.push.apply(t,o),e.apply(this,t)}},goog.functions.withReturnValue=function(e,t){return goog.functions.sequence(e,goog.functions.constant(t))},goog.functions.equalTo=function(e,t){return function(o){return t?e==o:e===o}},goog.functions.compose=function(e,t){var o=arguments,r=o.length;return function(){var e;r&&(e=o[r-1].apply(this,arguments));for(var t=r-2;0<=t;t--)e=o[t].call(this,e);return e}},goog.functions.sequence=function(e){var t=arguments,o=t.length;return function(){for(var e,r=0;r<o;r++)e=t[r].apply(this,arguments);return e}},goog.functions.and=function(e){var t=arguments,o=t.length;return function(){for(var e=0;e<o;e++)if(!t[e].apply(this,arguments))return!1;return!0}},goog.functions.or=function(e){var t=arguments,o=t.length;return function(){for(var e=0;e<o;e++)if(t[e].apply(this,arguments))return!0;return!1}},goog.functions.not=function(e){return function(){return!e.apply(this,arguments)}},goog.functions.create=function(e,t){var o=function(){};return o.prototype=e.prototype,o=new o,e.apply(o,Array.prototype.slice.call(arguments,1)),o},goog.functions.CACHE_RETURN_VALUE=!0,goog.functions.cacheReturnValue=function(e){var t,o=!1;return function(){return goog.functions.CACHE_RETURN_VALUE?(o||(t=e(),o=!0),t):e()}},goog.functions.once=function(e){var t=e;return function(){if(t){var e=t;t=null,e()}}},goog.functions.debounce=function(e,t,o){var r=0;return function(s){goog.global.clearTimeout(r);var n=arguments;r=goog.global.setTimeout((function(){e.apply(o,n)}),t)}},goog.functions.throttle=function(e,t,o){var r=0,s=!1,n=[],i=function(){r=0,s&&(s=!1,a())},a=function(){r=goog.global.setTimeout(i,t),e.apply(o,n)};return function(e){n=arguments,r?s=!0:a()}},goog.functions.rateLimit=function(e,t,o){var r=0,s=function(){r=0};return function(n){r||(r=goog.global.setTimeout(s,t),e.apply(o,arguments))}},goog.dom.safe={},goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"},goog.dom.safe.insertAdjacentHtml=function(e,t,o){e.insertAdjacentHTML(t,goog.html.SafeHtml.unwrapTrustedHTML(o))},goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.dom.safe.isInnerHtmlCleanupRecursive_=goog.functions.cacheReturnValue((function(){if(goog.DEBUG&&"undefined"==typeof document)return!1;var e=document.createElement("div"),t=document.createElement("div");return t.appendChild(document.createElement("div")),e.appendChild(t),!(goog.DEBUG&&!e.firstChild)&&(t=e.firstChild.firstChild,e.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(goog.html.SafeHtml.EMPTY),!t.parentElement)})),goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(e,t){if(goog.dom.safe.isInnerHtmlCleanupRecursive_())for(;e.lastChild;)e.removeChild(e.lastChild);e.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setInnerHtml=function(e,t){if(goog.asserts.ENABLE_ASSERTS){var o=e.tagName.toUpperCase();if(goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[o])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+e.tagName+".")}goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(e,t)},goog.dom.safe.setOuterHtml=function(e,t){e.outerHTML=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setFormElementAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLFormElement(e).action=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setButtonFormAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLButtonElement(e).formAction=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setInputFormAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLInputElement(e).formAction=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setStyle=function(e,t){e.style.cssText=goog.html.SafeStyle.unwrap(t)},goog.dom.safe.documentWrite=function(e,t){e.write(goog.html.SafeHtml.unwrapTrustedHTML(t))},goog.dom.safe.setAnchorHref=function(e,t){goog.dom.asserts.assertIsHTMLAnchorElement(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.href=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setImageSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLImageElement(e),!(t instanceof goog.html.SafeUrl)){var o=/^data:image\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,o)}e.src=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setAudioSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLAudioElement(e),!(t instanceof goog.html.SafeUrl)){var o=/^data:audio\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,o)}e.src=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setVideoSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLVideoElement(e),!(t instanceof goog.html.SafeUrl)){var o=/^data:video\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,o)}e.src=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setEmbedSrc=function(e,t){goog.dom.asserts.assertIsHTMLEmbedElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setFrameSrc=function(e,t){goog.dom.asserts.assertIsHTMLFrameElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedURL(t)},goog.dom.safe.setIframeSrc=function(e,t){goog.dom.asserts.assertIsHTMLIFrameElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedURL(t)},goog.dom.safe.setIframeSrcdoc=function(e,t){goog.dom.asserts.assertIsHTMLIFrameElement(e),e.srcdoc=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setLinkHrefAndRel=function(e,t,o){goog.dom.asserts.assertIsHTMLLinkElement(e),e.rel=o,goog.string.internal.caseInsensitiveContains(o,"stylesheet")?(goog.asserts.assert(t instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),e.href=goog.html.TrustedResourceUrl.unwrapTrustedURL(t)):e.href=t instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrapTrustedURL(t):t instanceof goog.html.SafeUrl?goog.html.SafeUrl.unwrapTrustedURL(t):goog.html.SafeUrl.unwrapTrustedURL(goog.html.SafeUrl.sanitizeAssertUnchanged(t))},goog.dom.safe.setObjectData=function(e,t){goog.dom.asserts.assertIsHTMLObjectElement(e),e.data=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setScriptSrc=function(e,t){goog.dom.asserts.assertIsHTMLScriptElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t),(t=goog.getScriptNonce())&&e.setAttribute("nonce",t)},goog.dom.safe.setScriptContent=function(e,t){goog.dom.asserts.assertIsHTMLScriptElement(e),e.text=goog.html.SafeScript.unwrapTrustedScript(t),(t=goog.getScriptNonce())&&e.setAttribute("nonce",t)},goog.dom.safe.setLocationHref=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.href=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.assignLocation=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.assign(goog.html.SafeUrl.unwrapTrustedURL(t))},goog.dom.safe.replaceLocation=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.replace(goog.html.SafeUrl.unwrapTrustedURL(t))},goog.dom.safe.openInWindow=function(e,t,o,r,s){return e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),(t||goog.global).open(goog.html.SafeUrl.unwrapTrustedURL(e),o?goog.string.Const.unwrap(o):"",r,s)},goog.dom.safe.parseFromStringHtml=function(e,t){return goog.dom.safe.parseFromString(e,t,"text/html")},goog.dom.safe.parseFromString=function(e,t,o){return e.parseFromString(goog.html.SafeHtml.unwrapTrustedHTML(t),o)},goog.dom.safe.createImageFromBlob=function(e){if(!/^image\/.*/g.test(e.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var t=goog.global.URL.createObjectURL(e);return(e=new goog.global.Image).onload=function(){goog.global.URL.revokeObjectURL(t)},goog.dom.safe.setImageSrc(e,goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Image blob URL."),t)),e},goog.string.DETECT_DOUBLE_ESCAPING=!1,goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1,goog.string.Unicode={NBSP:" "},goog.string.startsWith=goog.string.internal.startsWith,goog.string.endsWith=goog.string.internal.endsWith,goog.string.caseInsensitiveStartsWith=goog.string.internal.caseInsensitiveStartsWith,goog.string.caseInsensitiveEndsWith=goog.string.internal.caseInsensitiveEndsWith,goog.string.caseInsensitiveEquals=goog.string.internal.caseInsensitiveEquals,goog.string.subs=function(e,t){for(var o=e.split("%s"),r="",s=Array.prototype.slice.call(arguments,1);s.length&&1<o.length;)r+=o.shift()+s.shift();return r+o.join("%s")},goog.string.collapseWhitespace=function(e){return e.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},goog.string.isEmptyOrWhitespace=goog.string.internal.isEmptyOrWhitespace,goog.string.isEmptyString=function(e){return 0==e.length},goog.string.isEmpty=goog.string.isEmptyOrWhitespace,goog.string.isEmptyOrWhitespaceSafe=function(e){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(e))},goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe,goog.string.isBreakingWhitespace=function(e){return!/[^\t\n\r ]/.test(e)},goog.string.isAlpha=function(e){return!/[^a-zA-Z]/.test(e)},goog.string.isNumeric=function(e){return!/[^0-9]/.test(e)},goog.string.isAlphaNumeric=function(e){return!/[^a-zA-Z0-9]/.test(e)},goog.string.isSpace=function(e){return" "==e},goog.string.isUnicodeChar=function(e){return 1==e.length&&" "<=e&&"~">=e||""<=e&&"�">=e},goog.string.stripNewlines=function(e){return e.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(e){return e.replace(/(\r\n|\r|\n)/g,"\n")},goog.string.normalizeWhitespace=function(e){return e.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(e){return e.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(e){return e.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(e){return e.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(e){return e.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(e,t,o){if(e==t)return 0;if(!e)return-1;if(!t)return 1;for(var r=e.toLowerCase().match(o),s=t.toLowerCase().match(o),n=Math.min(r.length,s.length),i=0;i<n;i++){o=r[i];var a=s[i];if(o!=a)return e=parseInt(o,10),!isNaN(e)&&(t=parseInt(a,10),!isNaN(t)&&e-t)?e-t:o<a?-1:1}return r.length!=s.length?r.length-s.length:e<t?-1:1},goog.string.intAwareCompare=function(e,t){return goog.string.numberAwareCompare_(e,t,/\d+|\D+/g)},goog.string.floatAwareCompare=function(e,t){return goog.string.numberAwareCompare_(e,t,/\d+|\.\d+|\D+/g)},goog.string.numerateCompare=goog.string.floatAwareCompare,goog.string.urlEncode=function(e){return encodeURIComponent(String(e))},goog.string.urlDecode=function(e){return decodeURIComponent(e.replace(/\+/g," "))},goog.string.newLineToBr=goog.string.internal.newLineToBr,goog.string.htmlEscape=function(e,t){return e=goog.string.internal.htmlEscape(e,t),goog.string.DETECT_DOUBLE_ESCAPING&&(e=e.replace(goog.string.E_RE_,"&#101;")),e},goog.string.E_RE_=/e/g,goog.string.unescapeEntities=function(e){return goog.string.contains(e,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(e):goog.string.unescapePureXmlEntities_(e):e},goog.string.unescapeEntitiesWithDocument=function(e,t){return goog.string.contains(e,"&")?goog.string.unescapeEntitiesUsingDom_(e,t):e},goog.string.unescapeEntitiesUsingDom_=function(e,t){var o={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},r=t?t.createElement("div"):goog.global.document.createElement("div");return e.replace(goog.string.HTML_ENTITY_PATTERN_,(function(e,t){var s=o[e];return s||("#"==t.charAt(0)&&(t=Number("0"+t.substr(1)),isNaN(t)||(s=String.fromCharCode(t))),s||(goog.dom.safe.setInnerHtml(r,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),e+" ")),s=r.firstChild.nodeValue.slice(0,-1)),o[e]=s)}))},goog.string.unescapePureXmlEntities_=function(e){return e.replace(/&([^;]+);/g,(function(e,t){switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return"#"!=t.charAt(0)||(t=Number("0"+t.substr(1)),isNaN(t))?e:String.fromCharCode(t)}}))},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(e,t){return goog.string.newLineToBr(e.replace(/  /g," &#160;"),t)},goog.string.preserveSpaces=function(e){return e.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(e,t){for(var o=t.length,r=0;r<o;r++){var s=1==o?t:t.charAt(r);if(e.charAt(0)==s&&e.charAt(e.length-1)==s)return e.substring(1,e.length-1)}return e},goog.string.truncate=function(e,t,o){return o&&(e=goog.string.unescapeEntities(e)),e.length>t&&(e=e.substring(0,t-3)+"..."),o&&(e=goog.string.htmlEscape(e)),e},goog.string.truncateMiddle=function(e,t,o,r){if(o&&(e=goog.string.unescapeEntities(e)),r&&e.length>t){r>t&&(r=t);var s=e.length-r;e=e.substring(0,t-r)+"..."+e.substring(s)}else e.length>t&&(r=Math.floor(t/2),s=e.length-r,e=e.substring(0,r+t%2)+"..."+e.substring(s));return o&&(e=goog.string.htmlEscape(e)),e},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(e){e=String(e);for(var t=['"'],o=0;o<e.length;o++){var r=e.charAt(o),s=r.charCodeAt(0);t[o+1]=goog.string.specialEscapeChars_[r]||(31<s&&127>s?r:goog.string.escapeChar(r))}return t.push('"'),t.join("")},goog.string.escapeString=function(e){for(var t=[],o=0;o<e.length;o++)t[o]=goog.string.escapeChar(e.charAt(o));return t.join("")},goog.string.escapeChar=function(e){if(e in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[e];if(e in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[e]=goog.string.specialEscapeChars_[e];var t=e.charCodeAt(0);if(31<t&&127>t)var o=e;else 256>t?(o="\\x",(16>t||256<t)&&(o+="0")):(o="\\u",4096>t&&(o+="0")),o+=t.toString(16).toUpperCase();return goog.string.jsEscapeCache_[e]=o},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(e,t){return e&&t?e.split(t).length-1:0},goog.string.removeAt=function(e,t,o){var r=e;return 0<=t&&t<e.length&&0<o&&(r=e.substr(0,t)+e.substr(t+o,e.length-t-o)),r},goog.string.remove=function(e,t){return e.replace(t,"")},goog.string.removeAll=function(e,t){return t=new RegExp(goog.string.regExpEscape(t),"g"),e.replace(t,"")},goog.string.replaceAll=function(e,t,o){return t=new RegExp(goog.string.regExpEscape(t),"g"),e.replace(t,o.replace(/\$/g,"$$$$"))},goog.string.regExpEscape=function(e){return String(e).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},goog.string.repeat=String.prototype.repeat?function(e,t){return e.repeat(t)}:function(e,t){return Array(t+1).join(e)},goog.string.padNumber=function(e,t,o){return-1==(o=(e=goog.isDef(o)?e.toFixed(o):String(e)).indexOf("."))&&(o=e.length),goog.string.repeat("0",Math.max(0,t-o))+e},goog.string.makeSafe=function(e){return null==e?"":String(e)},goog.string.buildString=function(e){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)},goog.string.compareVersions=goog.string.internal.compareVersions,goog.string.hashCode=function(e){for(var t=0,o=0;o<e.length;++o)t=31*t+e.charCodeAt(o)>>>0;return t},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(e){var t=Number(e);return 0==t&&goog.string.isEmptyOrWhitespace(e)?NaN:t},goog.string.isLowerCamelCase=function(e){return/^[a-z]+([A-Z][a-z]*)*$/.test(e)},goog.string.isUpperCamelCase=function(e){return/^([A-Z][a-z]*)+$/.test(e)},goog.string.toCamelCase=function(e){return String(e).replace(/\-([a-z])/g,(function(e,t){return t.toUpperCase()}))},goog.string.toSelectorCase=function(e){return String(e).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(e,t){return t=goog.isString(t)?goog.string.regExpEscape(t):"\\s",e.replace(new RegExp("(^"+(t?"|["+t+"]+":"")+")([a-z])","g"),(function(e,t,o){return t+o.toUpperCase()}))},goog.string.capitalize=function(e){return String(e.charAt(0)).toUpperCase()+String(e.substr(1)).toLowerCase()},goog.string.parseInt=function(e){return isFinite(e)&&(e=String(e)),goog.isString(e)?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN},goog.string.splitLimit=function(e,t,o){e=e.split(t);for(var r=[];0<o&&e.length;)r.push(e.shift()),o--;return e.length&&r.push(e.join(t)),r},goog.string.lastComponent=function(e,t){if(!t)return e;"string"==typeof t&&(t=[t]);for(var o=-1,r=0;r<t.length;r++)if(""!=t[r]){var s=e.lastIndexOf(t[r]);s>o&&(o=s)}return-1==o?e:e.slice(o+1)},goog.string.editDistance=function(e,t){var o=[],r=[];if(e==t)return 0;if(!e.length||!t.length)return Math.max(e.length,t.length);for(var s=0;s<t.length+1;s++)o[s]=s;for(s=0;s<e.length;s++){r[0]=s+1;for(var n=0;n<t.length;n++)r[n+1]=Math.min(r[n]+1,o[n+1]+1,o[n]+Number(e[s]!=t[n]));for(n=0;n<o.length;n++)o[n]=r[n]}return r[t.length]},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")},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")},goog.labs.userAgent.platform.isChromeOS=function(){return goog.labs.userAgent.util.matchUserAgent("CrOS")},goog.labs.userAgent.platform.isChromecast=function(){return goog.labs.userAgent.util.matchUserAgent("CrKey")},goog.labs.userAgent.platform.isKaiOS=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("KaiOS")},goog.labs.userAgent.platform.isGo2Phone=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("GAFP")},goog.labs.userAgent.platform.getVersion=function(){var e=goog.labs.userAgent.util.getUserAgent(),t="";return goog.labs.userAgent.platform.isWindows()?t=(e=(t=/Windows (?:NT|Phone) ([0-9.]+)/).exec(e))?e[1]:"0.0":goog.labs.userAgent.platform.isIos()?t=(e=(t=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/).exec(e))&&e[1].replace(/_/g,"."):goog.labs.userAgent.platform.isMacintosh()?t=(e=(t=/Mac OS X ([0-9_.]+)/).exec(e))?e[1].replace(/_/g,"."):"10":goog.labs.userAgent.platform.isKaiOS()?t=(e=(t=/(?:KaiOS)\/(\S+)/i).exec(e))&&e[1]:goog.labs.userAgent.platform.isAndroid()?t=(e=(t=/Android\s+([^\);]+)(\)|;)/).exec(e))&&e[1]:goog.labs.userAgent.platform.isChromeOS()&&(t=(e=(t=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/).exec(e))&&e[1]),t||""},goog.labs.userAgent.platform.isVersionOrHigher=function(e){return 0<=goog.string.compareVersions(goog.labs.userAgent.platform.getVersion(),e)},goog.reflect={},goog.reflect.object=function(e,t){return t},goog.reflect.objectProperty=function(e,t){return e},goog.reflect.sinkValue=function(e){return goog.reflect.sinkValue[" "](e),e},goog.reflect.sinkValue[" "]=goog.nullFunction,goog.reflect.canAccessProperty=function(e,t){try{return goog.reflect.sinkValue(e[t]),!0}catch(e){}return!1},goog.reflect.cache=function(e,t,o,r){return r=r?r(t):t,Object.prototype.hasOwnProperty.call(e,r)?e[r]:e[r]=o(t)},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")},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()},goog.labs.userAgent.engine.getVersion=function(){var e=goog.labs.userAgent.util.getUserAgent();if(e){e=goog.labs.userAgent.util.extractVersionTuples(e);var t,o=goog.labs.userAgent.engine.getEngineTuple_(e);if(o)return"Gecko"==o[0]?goog.labs.userAgent.engine.getVersionForKey_(e,"Firefox"):o[1];if((e=e[0])&&(t=e[2])&&(t=/Trident\/([^\s;]+)/.exec(t)))return t[1]}return""},goog.labs.userAgent.engine.getEngineTuple_=function(e){if(!goog.labs.userAgent.engine.isEdge())return e[1];for(var t=0;t<e.length;t++){var o=e[t];if("Edge"==o[0])return o}},goog.labs.userAgent.engine.isVersionOrHigher=function(e){return 0<=goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(),e)},goog.labs.userAgent.engine.getVersionForKey_=function(e,t){return(e=goog.array.find(e,(function(e){return t==e[0]})))&&e[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()},goog.userAgent.getNavigatorTyped=function(){return goog.global.navigator||null},goog.userAgent.getNavigator=function(){return goog.userAgent.getNavigatorTyped()},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,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,goog.userAgent.determinePlatform_=function(){var e=goog.userAgent.getNavigatorTyped();return e&&e.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,goog.userAgent.ASSUME_KAIOS=!1,goog.userAgent.ASSUME_GO2PHONE=!1,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(),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 e=goog.userAgent.getNavigatorTyped();return!!e&&goog.string.contains(e.appVersion||"","X11")},goog.userAgent.X11=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_X11:goog.userAgent.isX11_(),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(),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.KAIOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_KAIOS:goog.labs.userAgent.platform.isKaiOS(),goog.userAgent.GO2PHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_GO2PHONE:goog.labs.userAgent.platform.isGo2Phone(),goog.userAgent.determineVersion_=function(){var e="",t=goog.userAgent.getVersionRegexResult_();return t&&(e=t?t[1]:""),goog.userAgent.IE&&(null!=(t=goog.userAgent.getDocumentMode_())&&t>parseFloat(e))?String(t):e},goog.userAgent.getVersionRegexResult_=function(){var e=goog.userAgent.getUserAgentString();return goog.userAgent.GECKO?/rv:([^\);]+)(\)|;)/.exec(e):goog.userAgent.EDGE?/Edge\/([\d\.]+)/.exec(e):goog.userAgent.IE?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):goog.userAgent.WEBKIT?/WebKit\/(\S+)/.exec(e):goog.userAgent.OPERA?/(?:Version)[ \/]?(\S+)/.exec(e):void 0},goog.userAgent.getDocumentMode_=function(){var e=goog.global.document;return e?e.documentMode:void 0},goog.userAgent.VERSION=goog.userAgent.determineVersion_(),goog.userAgent.compare=function(e,t){return goog.string.compareVersions(e,t)},goog.userAgent.isVersionOrHigherCache_={},goog.userAgent.isVersionOrHigher=function(e){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,e,(function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,e)}))},goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher,goog.userAgent.isDocumentModeOrHigher=function(e){return Number(goog.userAgent.DOCUMENT_MODE)>=e},goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher,goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE)return goog.userAgent.getDocumentMode_()}(),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,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,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_(),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(),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.DEFAULT_ALPHABET_COMMON_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",goog.crypt.base64.ENCODED_VALS=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"+/=",goog.crypt.base64.ENCODED_VALS_WEBSAFE=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"-_.",goog.crypt.base64.Alphabet={DEFAULT:0,NO_PADDING:1,WEBSAFE:2,WEBSAFE_DOT_PADDING:3,WEBSAFE_NO_PADDING:4},goog.crypt.base64.paddingChars_="=.",goog.crypt.base64.isPadding_=function(e){return goog.string.contains(goog.crypt.base64.paddingChars_,e)},goog.crypt.base64.byteToCharMaps_={},goog.crypt.base64.charToByteMap_=null,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,goog.crypt.base64.encodeByteArray=function(e,t){goog.asserts.assert(goog.isArrayLike(e),"encodeByteArray takes an array as a parameter"),void 0===t&&(t=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),t=goog.crypt.base64.byteToCharMaps_[t];for(var o=[],r=0;r<e.length;r+=3){var s=e[r],n=r+1<e.length,i=n?e[r+1]:0,a=r+2<e.length,g=a?e[r+2]:0,u=s>>2;s=(3&s)<<4|i>>4,i=(15&i)<<2|g>>6,g&=63,a||(g=64,n||(i=64)),o.push(t[u],t[s],t[i]||"",t[g]||"")}return o.join("")},goog.crypt.base64.encodeString=function(e,t){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!t?goog.global.btoa(e):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(e),t)},goog.crypt.base64.decodeString=function(e,t){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!t)return goog.global.atob(e);var o="";return goog.crypt.base64.decodeStringInternal_(e,(function(e){o+=String.fromCharCode(e)})),o},goog.crypt.base64.decodeStringToByteArray=function(e,t){var o=[];return goog.crypt.base64.decodeStringInternal_(e,(function(e){o.push(e)})),o},goog.crypt.base64.decodeStringToUint8Array=function(e){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var t=e.length,o=3*t/4;o%3?o=Math.floor(o):goog.crypt.base64.isPadding_(e[t-1])&&(o=goog.crypt.base64.isPadding_(e[t-2])?o-2:o-1);var r=new Uint8Array(o),s=0;return goog.crypt.base64.decodeStringInternal_(e,(function(e){r[s++]=e})),r.subarray(0,s)},goog.crypt.base64.decodeStringInternal_=function(e,t){function o(t){for(;r<e.length;){var o=e.charAt(r++),s=goog.crypt.base64.charToByteMap_[o];if(null!=s)return s;if(!goog.string.isEmptyOrWhitespace(o))throw Error("Unknown base64 encoding at char: "+o)}return t}goog.crypt.base64.init_();for(var r=0;;){var s=o(-1),n=o(0),i=o(64),a=o(64);if(64===a&&-1===s)break;t(s<<2|n>>4),64!=i&&(t(n<<4&240|i>>2),64!=a&&t(i<<6&192|a))}},goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var e=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),t=["+/=","+/","-_=","-_.","-_"],o=0;5>o;o++){var r=e.concat(t[o].split(""));goog.crypt.base64.byteToCharMaps_[o]=r;for(var s=0;s<r.length;s++){var n=r[s],i=goog.crypt.base64.charToByteMap_[n];void 0===i?goog.crypt.base64.charToByteMap_[n]=s:goog.asserts.assert(i===s)}}}},jspb.utils={},jspb.utils.split64Low=0,jspb.utils.split64High=0,jspb.utils.splitUint64=function(e){var t=e>>>0;e=Math.floor((e-t)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=t,jspb.utils.split64High=e},jspb.utils.splitInt64=function(e){var t=0>e,o=(e=Math.abs(e))>>>0;e=Math.floor((e-o)/jspb.BinaryConstants.TWO_TO_32),e>>>=0,t&&(e=~e>>>0,4294967295<(o=1+(~o>>>0))&&(o=0,4294967295<++e&&(e=0))),jspb.utils.split64Low=o,jspb.utils.split64High=e},jspb.utils.splitZigzag64=function(e){var t=0>e;e=2*Math.abs(e),jspb.utils.splitUint64(e),e=jspb.utils.split64Low;var o=jspb.utils.split64High;t&&(0==e?0==o?o=e=4294967295:(o--,e=4294967295):e--),jspb.utils.split64Low=e,jspb.utils.split64High=o},jspb.utils.splitFloat32=function(e){var t=0>e?1:0;if(0===(e=t?-e:e))0<1/e?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(e))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(e>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|2139095040)>>>0;else if(e<jspb.BinaryConstants.FLOAT32_MIN)e=Math.round(e/Math.pow(2,-149)),jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|e)>>>0;else{var o=Math.floor(Math.log(e)/Math.LN2);e*=Math.pow(2,-o),e=8388607&Math.round(e*jspb.BinaryConstants.TWO_TO_23),jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|o+127<<23|e)>>>0}},jspb.utils.splitFloat64=function(e){var t=0>e?1:0;if(0===(e=t?-e:e))jspb.utils.split64High=0<1/e?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(e))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(e>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(t<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(e<jspb.BinaryConstants.FLOAT64_MIN){var o=e/Math.pow(2,-1074);e=o/jspb.BinaryConstants.TWO_TO_32,jspb.utils.split64High=(t<<31|e)>>>0,jspb.utils.split64Low=o>>>0}else{var r=0;if(2<=(o=e))for(;2<=o&&1023>r;)r++,o/=2;else for(;1>o&&-1022<r;)o*=2,r--;e=(o=e*Math.pow(2,-r))*jspb.BinaryConstants.TWO_TO_20&1048575,o=o*jspb.BinaryConstants.TWO_TO_52>>>0,jspb.utils.split64High=(t<<31|r+1023<<20|e)>>>0,jspb.utils.split64Low=o}},jspb.utils.splitHash64=function(e){var t=e.charCodeAt(0),o=e.charCodeAt(1),r=e.charCodeAt(2),s=e.charCodeAt(3),n=e.charCodeAt(4),i=e.charCodeAt(5),a=e.charCodeAt(6);e=e.charCodeAt(7),jspb.utils.split64Low=t+(o<<8)+(r<<16)+(s<<24)>>>0,jspb.utils.split64High=n+(i<<8)+(a<<16)+(e<<24)>>>0},jspb.utils.joinUint64=function(e,t){return t*jspb.BinaryConstants.TWO_TO_32+(e>>>0)},jspb.utils.joinInt64=function(e,t){var o=2147483648&t;return o&&(t=~t>>>0,0==(e=1+~e>>>0)&&(t=t+1>>>0)),e=jspb.utils.joinUint64(e,t),o?-e:e},jspb.utils.toZigzag64=function(e,t,o){var r=t>>31;return o(e<<1^r,(t<<1|e>>>31)^r)},jspb.utils.joinZigzag64=function(e,t){return jspb.utils.fromZigzag64(e,t,jspb.utils.joinInt64)},jspb.utils.fromZigzag64=function(e,t,o){var r=-(1&e);return o((e>>>1|t<<31)^r,t>>>1^r)},jspb.utils.joinFloat32=function(e,t){t=2*(e>>31)+1;var o=e>>>23&255;return e&=8388607,255==o?e?NaN:1/0*t:0==o?t*Math.pow(2,-149)*e:t*Math.pow(2,o-150)*(e+Math.pow(2,23))},jspb.utils.joinFloat64=function(e,t){var o=2*(t>>31)+1,r=t>>>20&2047;return e=jspb.BinaryConstants.TWO_TO_32*(1048575&t)+e,2047==r?e?NaN:1/0*o:0==r?o*Math.pow(2,-1074)*e:o*Math.pow(2,r-1075)*(e+jspb.BinaryConstants.TWO_TO_52)},jspb.utils.joinHash64=function(e,t){return String.fromCharCode(e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255,t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255)},jspb.utils.DIGITS="0123456789abcdef".split(""),jspb.utils.ZERO_CHAR_CODE_=48,jspb.utils.A_CHAR_CODE_=97,jspb.utils.joinUnsignedDecimalString=function(e,t){function o(e,t){return e=e?String(e):"",t?"0000000".slice(e.length)+e:e}if(2097151>=t)return""+jspb.utils.joinUint64(e,t);var r=(e>>>24|t<<8)>>>0&16777215;return e=(16777215&e)+6777216*r+6710656*(t=t>>16&65535),r+=8147497*t,t*=2,1e7<=e&&(r+=Math.floor(e/1e7),e%=1e7),1e7<=r&&(t+=Math.floor(r/1e7),r%=1e7),o(t,0)+o(r,t)+o(e,1)},jspb.utils.joinSignedDecimalString=function(e,t){var o=2147483648&t;return o&&(t=~t+(0==(e=1+~e>>>0)?1:0)>>>0),e=jspb.utils.joinUnsignedDecimalString(e,t),o?"-"+e:e},jspb.utils.hash64ToDecimalString=function(e,t){jspb.utils.splitHash64(e),e=jspb.utils.split64Low;var o=jspb.utils.split64High;return t?jspb.utils.joinSignedDecimalString(e,o):jspb.utils.joinUnsignedDecimalString(e,o)},jspb.utils.hash64ArrayToDecimalStrings=function(e,t){for(var o=Array(e.length),r=0;r<e.length;r++)o[r]=jspb.utils.hash64ToDecimalString(e[r],t);return o},jspb.utils.decimalStringToHash64=function(e){function t(e,t){for(var o=0;8>o&&(1!==e||0<t);o++)t=e*r[o]+t,r[o]=255&t,t>>>=8}goog.asserts.assert(0<e.length);var o=!1;"-"===e[0]&&(o=!0,e=e.slice(1));for(var r=[0,0,0,0,0,0,0,0],s=0;s<e.length;s++)t(10,e.charCodeAt(s)-jspb.utils.ZERO_CHAR_CODE_);return o&&(function(){for(var e=0;8>e;e++)r[e]=255&~r[e]}(),t(1,1)),goog.crypt.byteArrayToString(r)},jspb.utils.splitDecimalString=function(e){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(e))},jspb.utils.toHexDigit_=function(e){return String.fromCharCode(10>e?jspb.utils.ZERO_CHAR_CODE_+e:jspb.utils.A_CHAR_CODE_-10+e)},jspb.utils.fromHexCharCode_=function(e){return e>=jspb.utils.A_CHAR_CODE_?e-jspb.utils.A_CHAR_CODE_+10:e-jspb.utils.ZERO_CHAR_CODE_},jspb.utils.hash64ToHexString=function(e){var t=Array(18);t[0]="0",t[1]="x";for(var o=0;8>o;o++){var r=e.charCodeAt(7-o);t[2*o+2]=jspb.utils.toHexDigit_(r>>4),t[2*o+3]=jspb.utils.toHexDigit_(15&r)}return t.join("")},jspb.utils.hexStringToHash64=function(e){e=e.toLowerCase(),goog.asserts.assert(18==e.length),goog.asserts.assert("0"==e[0]),goog.asserts.assert("x"==e[1]);for(var t="",o=0;8>o;o++){var r=jspb.utils.fromHexCharCode_(e.charCodeAt(2*o+2)),s=jspb.utils.fromHexCharCode_(e.charCodeAt(2*o+3));t=String.fromCharCode(16*r+s)+t}return t},jspb.utils.hash64ToNumber=function(e,t){jspb.utils.splitHash64(e),e=jspb.utils.split64Low;var o=jspb.utils.split64High;return t?jspb.utils.joinInt64(e,o):jspb.utils.joinUint64(e,o)},jspb.utils.numberToHash64=function(e){return jspb.utils.splitInt64(e),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.utils.countVarints=function(e,t,o){for(var r=0,s=t;s<o;s++)r+=e[s]>>7;return o-t-r},jspb.utils.countVarintFields=function(e,t,o,r){var s=0;if(128>(r=8*r+jspb.BinaryConstants.WireType.VARINT))for(;t<o&&e[t++]==r;)for(s++;;){var n=e[t++];if(0==(128&n))break}else for(;t<o;){for(n=r;128<n;){if(e[t]!=(127&n|128))return s;t++,n>>=7}if(e[t++]!=n)break;for(s++;0!=(128&(n=e[t++])););}return s},jspb.utils.countFixedFields_=function(e,t,o,r,s){var n=0;if(128>r)for(;t<o&&e[t++]==r;)n++,t+=s;else for(;t<o;){for(var i=r;128<i;){if(e[t++]!=(127&i|128))return n;i>>=7}if(e[t++]!=i)break;n++,t+=s}return n},jspb.utils.countFixed32Fields=function(e,t,o,r){return jspb.utils.countFixedFields_(e,t,o,8*r+jspb.BinaryConstants.WireType.FIXED32,4)},jspb.utils.countFixed64Fields=function(e,t,o,r){return jspb.utils.countFixedFields_(e,t,o,8*r+jspb.BinaryConstants.WireType.FIXED64,8)},jspb.utils.countDelimitedFields=function(e,t,o,r){var s=0;for(r=8*r+jspb.BinaryConstants.WireType.DELIMITED;t<o;){for(var n=r;128<n;){if(e[t++]!=(127&n|128))return s;n>>=7}if(e[t++]!=n)break;s++;for(var i=0,a=1;i+=(127&(n=e[t++]))*a,a*=128,0!=(128&n););t+=i}return s},jspb.utils.debugBytesToTextFormat=function(e){var t='"';if(e){e=jspb.utils.byteSourceToUint8Array(e);for(var o=0;o<e.length;o++)t+="\\x",16>e[o]&&(t+="0"),t+=e[o].toString(16)}return t+'"'},jspb.utils.debugScalarToTextFormat=function(e){return"string"==typeof e?goog.string.quote(e):e.toString()},jspb.utils.stringToByteArray=function(e){for(var t=new Uint8Array(e.length),o=0;o<e.length;o++){var r=e.charCodeAt(o);if(255<r)throw Error("Conversion error: string contains codepoint outside of byte range");t[o]=r}return t},jspb.utils.byteSourceToUint8Array=function(e){return e.constructor===Uint8Array?e:e.constructor===ArrayBuffer||"undefined"!=typeof Buffer&&e.constructor===Buffer||e.constructor===Array?new Uint8Array(e):e.constructor===String?goog.crypt.base64.decodeStringToUint8Array(e):(goog.asserts.fail("Type not convertible to Uint8Array."),new Uint8Array(0))},jspb.BinaryDecoder=function(e,t,o){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1,e&&this.setBlock(e,t,o)},jspb.BinaryDecoder.instanceCache_=[],jspb.BinaryDecoder.alloc=function(e,t,o){if(jspb.BinaryDecoder.instanceCache_.length){var r=jspb.BinaryDecoder.instanceCache_.pop();return e&&r.setBlock(e,t,o),r}return new jspb.BinaryDecoder(e,t,o)},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_)},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(e,t,o){this.bytes_=jspb.utils.byteSourceToUint8Array(e),this.start_=void 0!==t?t:0,this.end_=void 0!==o?this.start_+o:this.bytes_.length,this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getEnd=function(){return this.end_},jspb.BinaryDecoder.prototype.setEnd=function(e){this.end_=e},jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_},jspb.BinaryDecoder.prototype.setCursor=function(e){this.cursor_=e},jspb.BinaryDecoder.prototype.advance=function(e){this.cursor_+=e,goog.asserts.assert(this.cursor_<=this.end_)},jspb.BinaryDecoder.prototype.atEnd=function(){return this.cursor_==this.end_},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_},jspb.BinaryDecoder.prototype.readSplitVarint64=function(e){for(var t=128,o=0,r=0,s=0;4>s&&128<=t;s++)o|=(127&(t=this.bytes_[this.cursor_++]))<<7*s;if(128<=t&&(o|=(127&(t=this.bytes_[this.cursor_++]))<<28,r|=(127&t)>>4),128<=t)for(s=0;5>s&&128<=t;s++)r|=(127&(t=this.bytes_[this.cursor_++]))<<7*s+3;if(128>t)return e(o>>>0,r>>>0);goog.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0},jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(e){return this.readSplitVarint64((function(t,o){return jspb.utils.fromZigzag64(t,o,e)}))},jspb.BinaryDecoder.prototype.readSplitFixed64=function(e){var t=this.bytes_,o=this.cursor_;this.cursor_+=8;for(var r=0,s=0,n=o+7;n>=o;n--)r=r<<8|t[n],s=s<<8|t[n+4];return e(r,s)},jspb.BinaryDecoder.prototype.skipVarint=function(){for(;128&this.bytes_[this.cursor_];)this.cursor_++;this.cursor_++},jspb.BinaryDecoder.prototype.unskipVarint=function(e){for(;128<e;)this.cursor_--,e>>>=7;this.cursor_--},jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var e=this.bytes_,t=e[this.cursor_+0],o=127&t;return 128>t?(this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),o):(o|=(127&(t=e[this.cursor_+1]))<<7,128>t?(this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),o):(o|=(127&(t=e[this.cursor_+2]))<<14,128>t?(this.cursor_+=3,goog.asserts.assert(this.cursor_<=this.end_),o):(o|=(127&(t=e[this.cursor_+3]))<<21,128>t?(this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),o):(o|=(15&(t=e[this.cursor_+4]))<<28,128>t?(this.cursor_+=5,goog.asserts.assert(this.cursor_<=this.end_),o>>>0):(this.cursor_+=5,128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&goog.asserts.assert(!1),goog.asserts.assert(this.cursor_<=this.end_),o)))))},jspb.BinaryDecoder.prototype.readSignedVarint32=jspb.BinaryDecoder.prototype.readUnsignedVarint32,jspb.BinaryDecoder.prototype.readUnsignedVarint32String=function(){return this.readUnsignedVarint32().toString()},jspb.BinaryDecoder.prototype.readSignedVarint32String=function(){return this.readSignedVarint32().toString()},jspb.BinaryDecoder.prototype.readZigzagVarint32=function(){var e=this.readUnsignedVarint32();return e>>>1^-(1&e)},jspb.BinaryDecoder.prototype.readUnsignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinUint64)},jspb.BinaryDecoder.prototype.readUnsignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinUnsignedDecimalString)},jspb.BinaryDecoder.prototype.readSignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinInt64)},jspb.BinaryDecoder.prototype.readSignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readZigzagVarint64=function(){return this.readSplitVarint64(jspb.utils.joinZigzag64)},jspb.BinaryDecoder.prototype.readZigzagVarintHash64=function(){return this.readSplitZigzagVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readZigzagVarint64String=function(){return this.readSplitZigzagVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readUint8=function(){var e=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),e},jspb.BinaryDecoder.prototype.readUint16=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),e<<0|t<<8},jspb.BinaryDecoder.prototype.readUint32=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1],o=this.bytes_[this.cursor_+2],r=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),(e<<0|t<<8|o<<16|r<<24)>>>0},jspb.BinaryDecoder.prototype.readUint64=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinUint64(e,t)},jspb.BinaryDecoder.prototype.readUint64String=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinUnsignedDecimalString(e,t)},jspb.BinaryDecoder.prototype.readInt8=function(){var e=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),e<<24>>24},jspb.BinaryDecoder.prototype.readInt16=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),(e<<0|t<<8)<<16>>16},jspb.BinaryDecoder.prototype.readInt32=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1],o=this.bytes_[this.cursor_+2],r=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),e<<0|t<<8|o<<16|r<<24},jspb.BinaryDecoder.prototype.readInt64=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinInt64(e,t)},jspb.BinaryDecoder.prototype.readInt64String=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinSignedDecimalString(e,t)},jspb.BinaryDecoder.prototype.readFloat=function(){var e=this.readUint32();return jspb.utils.joinFloat32(e,0)},jspb.BinaryDecoder.prototype.readDouble=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinFloat64(e,t)},jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]},jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()},jspb.BinaryDecoder.prototype.readString=function(e){var t=this.bytes_,o=this.cursor_;e=o+e;for(var r=[],s="";o<e;){var n=t[o++];if(128>n)r.push(n);else{if(192>n)continue;if(224>n){var i=t[o++];r.push((31&n)<<6|63&i)}else if(240>n){i=t[o++];var a=t[o++];r.push((15&n)<<12|(63&i)<<6|63&a)}else if(248>n){n=(7&n)<<18|(63&(i=t[o++]))<<12|(63&(a=t[o++]))<<6|63&t[o++],n-=65536,r.push(55296+(n>>10&1023),56320+(1023&n))}}8192<=r.length&&(s+=String.fromCharCode.apply(null,r),r.length=0)}return s+=goog.crypt.byteArrayToString(r),this.cursor_=o,s},jspb.BinaryDecoder.prototype.readStringWithLength=function(){var e=this.readUnsignedVarint32();return this.readString(e)},jspb.BinaryDecoder.prototype.readBytes=function(e){if(0>e||this.cursor_+e>this.bytes_.length)return this.error_=!0,goog.asserts.fail("Invalid byte length!"),new Uint8Array(0);var t=this.bytes_.subarray(this.cursor_,this.cursor_+e);return this.cursor_+=e,goog.asserts.assert(this.cursor_<=this.end_),t},jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readFixedHash64=function(){var e=this.bytes_,t=this.cursor_,o=e[t+0],r=e[t+1],s=e[t+2],n=e[t+3],i=e[t+4],a=e[t+5],g=e[t+6];return e=e[t+7],this.cursor_+=8,String.fromCharCode(o,r,s,n,i,a,g,e)},jspb.BinaryReader=function(e,t,o){this.decoder_=jspb.BinaryDecoder.alloc(e,t,o),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_=[],jspb.BinaryReader.alloc=function(e,t,o){if(jspb.BinaryReader.instanceCache_.length){var r=jspb.BinaryReader.instanceCache_.pop();return e&&r.decoder_.setBlock(e,t,o),r}return new jspb.BinaryReader(e,t,o)},jspb.BinaryReader.prototype.alloc=jspb.BinaryReader.alloc,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()},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.isDelimited=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED},jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP},jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()},jspb.BinaryReader.prototype.setBlock=function(e,t,o){this.decoder_.setBlock(e,t,o),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(e){this.decoder_.advance(e)},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 e=this.decoder_.readUnsignedVarint32(),t=e>>>3;return(e&=7)!=jspb.BinaryConstants.WireType.VARINT&&e!=jspb.BinaryConstants.WireType.FIXED32&&e!=jspb.BinaryConstants.WireType.FIXED64&&e!=jspb.BinaryConstants.WireType.DELIMITED&&e!=jspb.BinaryConstants.WireType.START_GROUP&&e!=jspb.BinaryConstants.WireType.END_GROUP?(goog.asserts.fail("Invalid wire type: %s (at position %s)",e,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=t,this.nextWireType_=e,!0)},jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)},jspb.BinaryReader.prototype.skipMatchingFields=function(){var e=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==e;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()},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 e=this.decoder_.readUnsignedVarint32();this.decoder_.advance(e)}},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)},jspb.BinaryReader.prototype.skipGroup=function(){for(var e=this.nextField_;;){if(!this.nextField()){goog.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=e&&(goog.asserts.fail("Unmatched end-group tag"),this.error_=!0);break}this.skipField()}},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.")}},jspb.BinaryReader.prototype.registerReadCallback=function(e,t){null===this.readCallbacks_&&(this.readCallbacks_={}),goog.asserts.assert(!this.readCallbacks_[e]),this.readCallbacks_[e]=t},jspb.BinaryReader.prototype.runReadCallback=function(e){return goog.asserts.assert(null!==this.readCallbacks_),e=this.readCallbacks_[e],goog.asserts.assert(e),e(this)},jspb.BinaryReader.prototype.readAny=function(e){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(e);var t=jspb.BinaryConstants.FieldType;switch(e){case t.DOUBLE:return this.readDouble();case t.FLOAT:return this.readFloat();case t.INT64:return this.readInt64();case t.UINT64:return this.readUint64();case t.INT32:return this.readInt32();case t.FIXED64:return this.readFixed64();case t.FIXED32:return this.readFixed32();case t.BOOL:return this.readBool();case t.STRING:return this.readString();case t.GROUP:goog.asserts.fail("Group field type not supported in readAny()");case t.MESSAGE:goog.asserts.fail("Message field type not supported in readAny()");case t.BYTES:return this.readBytes();case t.UINT32:return this.readUint32();case t.ENUM:return this.readEnum();case t.SFIXED32:return this.readSfixed32();case t.SFIXED64:return this.readSfixed64();case t.SINT32:return this.readSint32();case t.SINT64:return this.readSint64();case t.FHASH64:return this.readFixedHash64();case t.VHASH64:return this.readVarintHash64();default:goog.asserts.fail("Invalid field type in readAny()")}return 0},jspb.BinaryReader.prototype.readMessage=function(e,t){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.getEnd(),r=this.decoder_.readUnsignedVarint32();r=this.decoder_.getCursor()+r,this.decoder_.setEnd(r),t(e,this),this.decoder_.setCursor(r),this.decoder_.setEnd(o)},jspb.BinaryReader.prototype.readGroup=function(e,t,o){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),goog.asserts.assert(this.nextField_==e),o(t,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)},jspb.BinaryReader.prototype.getFieldDecoder=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32(),t=this.decoder_.getCursor(),o=t+e;return e=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),t,e),this.decoder_.setCursor(o),e},jspb.BinaryReader.prototype.readInt32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()},jspb.BinaryReader.prototype.readInt32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()},jspb.BinaryReader.prototype.readInt64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},jspb.BinaryReader.prototype.readInt64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()},jspb.BinaryReader.prototype.readUint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()},jspb.BinaryReader.prototype.readUint32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()},jspb.BinaryReader.prototype.readUint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()},jspb.BinaryReader.prototype.readUint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()},jspb.BinaryReader.prototype.readSint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()},jspb.BinaryReader.prototype.readSint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()},jspb.BinaryReader.prototype.readSint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()},jspb.BinaryReader.prototype.readFixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()},jspb.BinaryReader.prototype.readFixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()},jspb.BinaryReader.prototype.readFixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()},jspb.BinaryReader.prototype.readSfixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()},jspb.BinaryReader.prototype.readSfixed32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()},jspb.BinaryReader.prototype.readSfixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()},jspb.BinaryReader.prototype.readSfixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()},jspb.BinaryReader.prototype.readFloat=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()},jspb.BinaryReader.prototype.readDouble=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()},jspb.BinaryReader.prototype.readBool=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()},jspb.BinaryReader.prototype.readEnum=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},jspb.BinaryReader.prototype.readString=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(e)},jspb.BinaryReader.prototype.readBytes=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(e)},jspb.BinaryReader.prototype.readVarintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()},jspb.BinaryReader.prototype.readSintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()},jspb.BinaryReader.prototype.readSplitVarint64=function(e){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(e)},jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(e){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64((function(t,o){return jspb.utils.fromZigzag64(t,o,e)}))},jspb.BinaryReader.prototype.readFixedHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()},jspb.BinaryReader.prototype.readSplitFixed64=function(e){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(e)},jspb.BinaryReader.prototype.readPackedField_=function(e){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var t=this.decoder_.readUnsignedVarint32();t=this.decoder_.getCursor()+t;for(var o=[];this.decoder_.getCursor()<t;)o.push(e.call(this.decoder_));return o},jspb.BinaryReader.prototype.readPackedInt32=function(){return this.readPackedField_(this.decoder_.readSignedVarint32)},jspb.BinaryReader.prototype.readPackedInt32String=function(){return this.readPackedField_(this.decoder_.readSignedVarint32String)},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)},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)},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)},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)},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)},jspb.BinaryReader.prototype.readPackedFixedHash64=function(){return this.readPackedField_(this.decoder_.readFixedHash64)},jspb.Map=function(e,t){this.arr_=e,this.valueCtor_=t,this.map_={},this.arrClean=!0,0<this.arr_.length&&this.loadFromArray_()},jspb.Map.prototype.loadFromArray_=function(){for(var e=0;e<this.arr_.length;e++){var t=this.arr_[e],o=t[0];this.map_[o.toString()]=new jspb.Map.Entry_(o,t[1])}this.arrClean=!0},jspb.Map.prototype.toArray=function(){if(this.arrClean){if(this.valueCtor_){var e,t=this.map_;for(e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var o=t[e].valueWrapper;o&&o.toArray()}}}else{for(this.arr_.length=0,(t=this.stringKeys_()).sort(),e=0;e<t.length;e++){var r=this.map_[t[e]];(o=r.valueWrapper)&&o.toArray(),this.arr_.push([r.key,r.value])}this.arrClean=!0}return this.arr_},jspb.Map.prototype.toObject=function(e,t){for(var o=this.toArray(),r=[],s=0;s<o.length;s++){var n=this.map_[o[s][0].toString()];this.wrapEntry_(n);var i=n.valueWrapper;i?(goog.asserts.assert(t),r.push([n.key,t(e,i)])):r.push([n.key,n.value])}return r},jspb.Map.fromObject=function(e,t,o){t=new jspb.Map([],t);for(var r=0;r<e.length;r++){var s=e[r][0],n=o(e[r][1]);t.set(s,n)}return t},jspb.Map.ArrayIteratorIterable_=function(e){this.idx_=0,this.arr_=e},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},jspb.Map.prototype.del=function(e){e=e.toString();var t=this.map_.hasOwnProperty(e);return delete this.map_[e],this.arrClean=!1,t},jspb.Map.prototype.getEntryList=function(){var e=[],t=this.stringKeys_();t.sort();for(var o=0;o<t.length;o++){var r=this.map_[t[o]];e.push([r.key,r.value])}return e},jspb.Map.prototype.entries=function(){var e=[],t=this.stringKeys_();t.sort();for(var o=0;o<t.length;o++){var r=this.map_[t[o]];e.push([r.key,this.wrapEntry_(r)])}return new jspb.Map.ArrayIteratorIterable_(e)},jspb.Map.prototype.keys=function(){var e=[],t=this.stringKeys_();t.sort();for(var o=0;o<t.length;o++)e.push(this.map_[t[o]].key);return new jspb.Map.ArrayIteratorIterable_(e)},jspb.Map.prototype.values=function(){var e=[],t=this.stringKeys_();t.sort();for(var o=0;o<t.length;o++)e.push(this.wrapEntry_(this.map_[t[o]]));return new jspb.Map.ArrayIteratorIterable_(e)},jspb.Map.prototype.forEach=function(e,t){var o=this.stringKeys_();o.sort();for(var r=0;r<o.length;r++){var s=this.map_[o[r]];e.call(t,this.wrapEntry_(s),s.key,this)}},jspb.Map.prototype.set=function(e,t){var o=new jspb.Map.Entry_(e);return this.valueCtor_?(o.valueWrapper=t,o.value=t.toArray()):o.value=t,this.map_[e.toString()]=o,this.arrClean=!1,this},jspb.Map.prototype.wrapEntry_=function(e){return this.valueCtor_?(e.valueWrapper||(e.valueWrapper=new this.valueCtor_(e.value)),e.valueWrapper):e.value},jspb.Map.prototype.get=function(e){if(e=this.map_[e.toString()])return this.wrapEntry_(e)},jspb.Map.prototype.has=function(e){return e.toString()in this.map_},jspb.Map.prototype.serializeBinary=function(e,t,o,r,s){var n=this.stringKeys_();n.sort();for(var i=0;i<n.length;i++){var a=this.map_[n[i]];t.beginSubMessage(e),o.call(t,1,a.key),this.valueCtor_?r.call(t,2,this.wrapEntry_(a),s):r.call(t,2,a.value),t.endSubMessage()}},jspb.Map.deserializeBinary=function(e,t,o,r,s,n,i){for(;t.nextField()&&!t.isEndGroup();){var a=t.getFieldNumber();1==a?n=o.call(t):2==a&&(e.valueCtor_?(goog.asserts.assert(s),i||(i=new e.valueCtor_),r.call(t,i,s)):i=r.call(t))}goog.asserts.assert(null!=n),goog.asserts.assert(null!=i),e.set(n,i)},jspb.Map.prototype.stringKeys_=function(){var e,t=this.map_,o=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&o.push(e);return o},jspb.Map.Entry_=function(e,t){this.key=e,this.value=t,this.valueWrapper=void 0},jspb.ExtensionFieldInfo=function(e,t,o,r,s){this.fieldIndex=e,this.fieldName=t,this.ctor=o,this.toObjectFn=r,this.isRepeated=s},jspb.ExtensionFieldBinaryInfo=function(e,t,o,r,s,n){this.fieldInfo=e,this.binaryReaderFn=t,this.binaryWriterFn=o,this.binaryMessageSerializeFn=r,this.binaryMessageDeserializeFn=s,this.isPacked=n},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,jspb.Message.GENERATE_TO_STRING=!0,jspb.Message.ASSUME_LOCAL_ARRAYS=!1,jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS=!0,jspb.Message.SUPPORTS_UINT8ARRAY_="function"==typeof Uint8Array,jspb.Message.prototype.getJsPbMessageId=function(){return this.messageId_},jspb.Message.getIndex_=function(e,t){return t+e.arrayIndexOffset_},jspb.Message.hiddenES6Property_=function(){},jspb.Message.getFieldNumber_=function(e,t){return t-e.arrayIndexOffset_},jspb.Message.initialize=function(e,t,o,r,s,n){if(e.wrappers_=null,t||(t=o?[o]:[]),e.messageId_=o?String(o):void 0,e.arrayIndexOffset_=0===o?-1:0,e.array=t,jspb.Message.initPivotAndExtensionObject_(e,r),e.convertedPrimitiveFields_={},jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS||(e.repeatedFields=s),s)for(t=0;t<s.length;t++)(o=s[t])<e.pivot_?(o=jspb.Message.getIndex_(e,o),e.array[o]=e.array[o]||jspb.Message.EMPTY_LIST_SENTINEL_):(jspb.Message.maybeInitEmptyExtensionObject_(e),e.extensionObject_[o]=e.extensionObject_[o]||jspb.Message.EMPTY_LIST_SENTINEL_);if(n&&n.length)for(t=0;t<n.length;t++)jspb.Message.computeOneofCase(e,n[t])},jspb.Message.EMPTY_LIST_SENTINEL_=goog.DEBUG&&Object.freeze?Object.freeze([]):[],jspb.Message.isArray_=function(e){return jspb.Message.ASSUME_LOCAL_ARRAYS?e instanceof Array:Array.isArray(e)},jspb.Message.isExtensionObject_=function(e){return!(null===e||"object"!=typeof e||jspb.Message.isArray_(e)||jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array)},jspb.Message.initPivotAndExtensionObject_=function(e,t){var o=e.array.length,r=-1;if(o&&(r=o-1,o=e.array[r],jspb.Message.isExtensionObject_(o)))return e.pivot_=jspb.Message.getFieldNumber_(e,r),void(e.extensionObject_=o);-1<t?(e.pivot_=Math.max(t,jspb.Message.getFieldNumber_(e,r+1)),e.extensionObject_=null):e.pivot_=Number.MAX_VALUE},jspb.Message.maybeInitEmptyExtensionObject_=function(e){var t=jspb.Message.getIndex_(e,e.pivot_);e.array[t]||(e.extensionObject_=e.array[t]={})},jspb.Message.toObjectList=function(e,t,o){for(var r=[],s=0;s<e.length;s++)r[s]=t.call(e[s],o,e[s]);return r},jspb.Message.toObjectExtension=function(e,t,o,r,s){for(var n in o){var i=o[n],a=r.call(e,i);if(null!=a){for(var g in i.fieldName)if(i.fieldName.hasOwnProperty(g))break;t[g]=i.toObjectFn?i.isRepeated?jspb.Message.toObjectList(a,i.toObjectFn,s):i.toObjectFn(s,a):a}}},jspb.Message.serializeBinaryExtensions=function(e,t,o,r){for(var s in o){var n=o[s],i=n.fieldInfo;if(!n.binaryWriterFn)throw Error("Message extension present that was generated without binary serialization support");var a=r.call(e,i);if(null!=a)if(i.isMessageType()){if(!n.binaryMessageSerializeFn)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");n.binaryWriterFn.call(t,i.fieldIndex,a,n.binaryMessageSerializeFn)}else n.binaryWriterFn.call(t,i.fieldIndex,a)}},jspb.Message.readBinaryExtension=function(e,t,o,r,s){var n=o[t.getFieldNumber()];if(n){if(o=n.fieldInfo,!n.binaryReaderFn)throw Error("Deserializing extension whose generated code does not support binary format");if(o.isMessageType()){var i=new o.ctor;n.binaryReaderFn.call(t,i,n.binaryMessageDeserializeFn)}else i=n.binaryReaderFn.call(t);o.isRepeated&&!n.isPacked?(t=r.call(e,o))?t.push(i):s.call(e,o,[i]):s.call(e,o,i)}else t.skipField()},jspb.Message.getField=function(e,t){if(t<e.pivot_){t=jspb.Message.getIndex_(e,t);var o=e.array[t];return o===jspb.Message.EMPTY_LIST_SENTINEL_?e.array[t]=[]:o}if(e.extensionObject_)return(o=e.extensionObject_[t])===jspb.Message.EMPTY_LIST_SENTINEL_?e.extensionObject_[t]=[]:o},jspb.Message.getRepeatedField=function(e,t){return jspb.Message.getField(e,t)},jspb.Message.getOptionalFloatingPointField=function(e,t){return null==(e=jspb.Message.getField(e,t))?e:+e},jspb.Message.getBooleanField=function(e,t){return null==(e=jspb.Message.getField(e,t))?e:!!e},jspb.Message.getRepeatedFloatingPointField=function(e,t){var o=jspb.Message.getRepeatedField(e,t);if(e.convertedPrimitiveFields_||(e.convertedPrimitiveFields_={}),!e.convertedPrimitiveFields_[t]){for(var r=0;r<o.length;r++)o[r]=+o[r];e.convertedPrimitiveFields_[t]=!0}return o},jspb.Message.getRepeatedBooleanField=function(e,t){var o=jspb.Message.getRepeatedField(e,t);if(e.convertedPrimitiveFields_||(e.convertedPrimitiveFields_={}),!e.convertedPrimitiveFields_[t]){for(var r=0;r<o.length;r++)o[r]=!!o[r];e.convertedPrimitiveFields_[t]=!0}return o},jspb.Message.bytesAsB64=function(e){return null==e||"string"==typeof e?e:jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array?goog.crypt.base64.encodeByteArray(e):(goog.asserts.fail("Cannot coerce to b64 string: "+goog.typeOf(e)),null)},jspb.Message.bytesAsU8=function(e){return null==e||e instanceof Uint8Array?e:"string"==typeof e?goog.crypt.base64.decodeStringToUint8Array(e):(goog.asserts.fail("Cannot coerce to Uint8Array: "+goog.typeOf(e)),null)},jspb.Message.bytesListAsB64=function(e){return jspb.Message.assertConsistentTypes_(e),e.length&&"string"!=typeof e[0]?goog.array.map(e,jspb.Message.bytesAsB64):e},jspb.Message.bytesListAsU8=function(e){return jspb.Message.assertConsistentTypes_(e),!e.length||e[0]instanceof Uint8Array?e:goog.array.map(e,jspb.Message.bytesAsU8)},jspb.Message.assertConsistentTypes_=function(e){if(goog.DEBUG&&e&&1<e.length){var t=goog.typeOf(e[0]);goog.array.forEach(e,(function(e){goog.typeOf(e)!=t&&goog.asserts.fail("Inconsistent type in JSPB repeated field array. Got "+goog.typeOf(e)+" expected "+t)}))}},jspb.Message.getFieldWithDefault=function(e,t,o){return null==(e=jspb.Message.getField(e,t))?o:e},jspb.Message.getBooleanFieldWithDefault=function(e,t,o){return null==(e=jspb.Message.getBooleanField(e,t))?o:e},jspb.Message.getFloatingPointFieldWithDefault=function(e,t,o){return null==(e=jspb.Message.getOptionalFloatingPointField(e,t))?o:e},jspb.Message.getFieldProto3=jspb.Message.getFieldWithDefault,jspb.Message.getMapField=function(e,t,o,r){if(e.wrappers_||(e.wrappers_={}),t in e.wrappers_)return e.wrappers_[t];var s=jspb.Message.getField(e,t);if(!s){if(o)return;s=[],jspb.Message.setField(e,t,s)}return e.wrappers_[t]=new jspb.Map(s,r)},jspb.Message.setField=function(e,t,o){return goog.asserts.assertInstanceof(e,jspb.Message),t<e.pivot_?e.array[jspb.Message.getIndex_(e,t)]=o:(jspb.Message.maybeInitEmptyExtensionObject_(e),e.extensionObject_[t]=o),e},jspb.Message.setProto3IntField=function(e,t,o){return jspb.Message.setFieldIgnoringDefault_(e,t,o,0)},jspb.Message.setProto3FloatField=function(e,t,o){return jspb.Message.setFieldIgnoringDefault_(e,t,o,0)},jspb.Message.setProto3BooleanField=function(e,t,o){return jspb.Message.setFieldIgnoringDefault_(e,t,o,!1)},jspb.Message.setProto3StringField=function(e,t,o){return jspb.Message.setFieldIgnoringDefault_(e,t,o,"")},jspb.Message.setProto3BytesField=function(e,t,o){return jspb.Message.setFieldIgnoringDefault_(e,t,o,"")},jspb.Message.setProto3EnumField=function(e,t,o){return jspb.Message.setFieldIgnoringDefault_(e,t,o,0)},jspb.Message.setProto3StringIntField=function(e,t,o){return jspb.Message.setFieldIgnoringDefault_(e,t,o,"0")},jspb.Message.setFieldIgnoringDefault_=function(e,t,o,r){return goog.asserts.assertInstanceof(e,jspb.Message),o!==r?jspb.Message.setField(e,t,o):t<e.pivot_?e.array[jspb.Message.getIndex_(e,t)]=null:(jspb.Message.maybeInitEmptyExtensionObject_(e),delete e.extensionObject_[t]),e},jspb.Message.addToRepeatedField=function(e,t,o,r){return goog.asserts.assertInstanceof(e,jspb.Message),t=jspb.Message.getRepeatedField(e,t),null!=r?t.splice(r,0,o):t.push(o),e},jspb.Message.setOneofField=function(e,t,o,r){return goog.asserts.assertInstanceof(e,jspb.Message),(o=jspb.Message.computeOneofCase(e,o))&&o!==t&&void 0!==r&&(e.wrappers_&&o in e.wrappers_&&(e.wrappers_[o]=void 0),jspb.Message.setField(e,o,void 0)),jspb.Message.setField(e,t,r)},jspb.Message.computeOneofCase=function(e,t){for(var o,r,s=0;s<t.length;s++){var n=t[s],i=jspb.Message.getField(e,n);null!=i&&(o=n,r=i,jspb.Message.setField(e,n,void 0))}return o?(jspb.Message.setField(e,o,r),o):0},jspb.Message.getWrapperField=function(e,t,o,r){if(e.wrappers_||(e.wrappers_={}),!e.wrappers_[o]){var s=jspb.Message.getField(e,o);(r||s)&&(e.wrappers_[o]=new t(s))}return e.wrappers_[o]},jspb.Message.getRepeatedWrapperField=function(e,t,o){return jspb.Message.wrapRepeatedField_(e,t,o),(t=e.wrappers_[o])==jspb.Message.EMPTY_LIST_SENTINEL_&&(t=e.wrappers_[o]=[]),t},jspb.Message.wrapRepeatedField_=function(e,t,o){if(e.wrappers_||(e.wrappers_={}),!e.wrappers_[o]){for(var r=jspb.Message.getRepeatedField(e,o),s=[],n=0;n<r.length;n++)s[n]=new t(r[n]);e.wrappers_[o]=s}},jspb.Message.setWrapperField=function(e,t,o){goog.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={});var r=o?o.toArray():o;return e.wrappers_[t]=o,jspb.Message.setField(e,t,r)},jspb.Message.setOneofWrapperField=function(e,t,o,r){goog.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={});var s=r?r.toArray():r;return e.wrappers_[t]=r,jspb.Message.setOneofField(e,t,o,s)},jspb.Message.setRepeatedWrapperField=function(e,t,o){goog.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={}),o=o||[];for(var r=[],s=0;s<o.length;s++)r[s]=o[s].toArray();return e.wrappers_[t]=o,jspb.Message.setField(e,t,r)},jspb.Message.addToRepeatedWrapperField=function(e,t,o,r,s){jspb.Message.wrapRepeatedField_(e,r,t);var n=e.wrappers_[t];return n||(n=e.wrappers_[t]=[]),o=o||new r,e=jspb.Message.getRepeatedField(e,t),null!=s?(n.splice(s,0,o),e.splice(s,0,o.toArray())):(n.push(o),e.push(o.toArray())),o},jspb.Message.toMap=function(e,t,o,r){for(var s={},n=0;n<e.length;n++)s[t.call(e[n])]=o?o.call(e[n],r,e[n]):e[n];return s},jspb.Message.prototype.syncMapFields_=function(){if(this.wrappers_)for(var e in this.wrappers_){var t=this.wrappers_[e];if(Array.isArray(t))for(var o=0;o<t.length;o++)t[o]&&t[o].toArray();else t&&t.toArray()}},jspb.Message.prototype.toArray=function(){return this.syncMapFields_(),this.array},jspb.Message.GENERATE_TO_STRING&&(jspb.Message.prototype.toString=function(){return this.syncMapFields_(),this.array.toString()}),jspb.Message.prototype.getExtension=function(e){if(this.extensionObject_){this.wrappers_||(this.wrappers_={});var t=e.fieldIndex;if(e.isRepeated){if(e.isMessageType())return this.wrappers_[t]||(this.wrappers_[t]=goog.array.map(this.extensionObject_[t]||[],(function(t){return new e.ctor(t)}))),this.wrappers_[t]}else if(e.isMessageType())return!this.wrappers_[t]&&this.extensionObject_[t]&&(this.wrappers_[t]=new e.ctor(this.extensionObject_[t])),this.wrappers_[t];return this.extensionObject_[t]}},jspb.Message.prototype.setExtension=function(e,t){this.wrappers_||(this.wrappers_={}),jspb.Message.maybeInitEmptyExtensionObject_(this);var o=e.fieldIndex;return e.isRepeated?(t=t||[],e.isMessageType()?(this.wrappers_[o]=t,this.extensionObject_[o]=goog.array.map(t,(function(e){return e.toArray()}))):this.extensionObject_[o]=t):e.isMessageType()?(this.wrappers_[o]=t,this.extensionObject_[o]=t?t.toArray():t):this.extensionObject_[o]=t,this},jspb.Message.difference=function(e,t){if(!(e instanceof t.constructor))throw Error("Messages have different types.");var o=e.toArray();t=t.toArray();var r=[],s=0,n=o.length>t.length?o.length:t.length;for(e.getJsPbMessageId()&&(r[0]=e.getJsPbMessageId(),s=1);s<n;s++)jspb.Message.compareFields(o[s],t[s])||(r[s]=t[s]);return new e.constructor(r)},jspb.Message.equals=function(e,t){return e==t||!(!e||!t)&&e instanceof t.constructor&&jspb.Message.compareFields(e.toArray(),t.toArray())},jspb.Message.compareExtensions=function(e,t){e=e||{},t=t||{};var o,r={};for(o in e)r[o]=0;for(o in t)r[o]=0;for(o in r)if(!jspb.Message.compareFields(e[o],t[o]))return!1;return!0},jspb.Message.compareFields=function(e,t){if(e==t)return!0;if(!goog.isObject(e)||!goog.isObject(t))return!!("number"==typeof e&&isNaN(e)||"number"==typeof t&&isNaN(t))&&String(e)==String(t);if(e.constructor!=t.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&e.constructor===Uint8Array){if(e.length!=t.length)return!1;for(var o=0;o<e.length;o++)if(e[o]!=t[o])return!1;return!0}if(e.constructor===Array){var r=void 0,s=void 0,n=Math.max(e.length,t.length);for(o=0;o<n;o++){var i=e[o],a=t[o];if(i&&i.constructor==Object&&(goog.asserts.assert(void 0===r),goog.asserts.assert(o===e.length-1),r=i,i=void 0),a&&a.constructor==Object&&(goog.asserts.assert(void 0===s),goog.asserts.assert(o===t.length-1),s=a,a=void 0),!jspb.Message.compareFields(i,a))return!1}return!r&&!s||(r=r||{},s=s||{},jspb.Message.compareExtensions(r,s))}if(e.constructor===Object)return jspb.Message.compareExtensions(e,t);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)},jspb.Message.clone=function(e){return jspb.Message.cloneMessage(e)},jspb.Message.cloneMessage=function(e){return new e.constructor(jspb.Message.clone_(e.toArray()))},jspb.Message.copyInto=function(e,t){goog.asserts.assertInstanceof(e,jspb.Message),goog.asserts.assertInstanceof(t,jspb.Message),goog.asserts.assert(e.constructor==t.constructor,"Copy source and target message should have the same type."),e=jspb.Message.clone(e);for(var o=t.toArray(),r=e.toArray(),s=o.length=0;s<r.length;s++)o[s]=r[s];t.wrappers_=e.wrappers_,t.extensionObject_=e.extensionObject_},jspb.Message.clone_=function(e){if(Array.isArray(e)){for(var t=Array(e.length),o=0;o<e.length;o++){var r=e[o];null!=r&&(t[o]="object"==typeof r?jspb.Message.clone_(goog.asserts.assert(r)):r)}return t}if(jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array)return new Uint8Array(e);for(o in t={},e)null!=(r=e[o])&&(t[o]="object"==typeof r?jspb.Message.clone_(goog.asserts.assert(r)):r);return t},jspb.Message.registerMessageType=function(e,t){t.messageId=e},jspb.Message.messageSetExtensions={},jspb.Message.messageSetExtensionsBinary={},jspb.arith={},jspb.arith.UInt64=function(e,t){this.lo=e,this.hi=t},jspb.arith.UInt64.prototype.cmp=function(e){return this.hi<e.hi||this.hi==e.hi&&this.lo<e.lo?-1:this.hi==e.hi&&this.lo==e.lo?0:1},jspb.arith.UInt64.prototype.rightShift=function(){return new jspb.arith.UInt64((this.lo>>>1|(1&this.hi)<<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)},jspb.arith.UInt64.prototype.msb=function(){return!!(2147483648&this.hi)},jspb.arith.UInt64.prototype.lsb=function(){return!!(1&this.lo)},jspb.arith.UInt64.prototype.zero=function(){return 0==this.lo&&0==this.hi},jspb.arith.UInt64.prototype.add=function(e){return new jspb.arith.UInt64((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},jspb.arith.UInt64.prototype.sub=function(e){return new jspb.arith.UInt64((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},jspb.arith.UInt64.mul32x32=function(e,t){var o=65535&e,r=65535&t,s=t>>>16;for(t=o*r+65536*(o*s&65535)+65536*((e>>>=16)*r&65535),o=e*s+(o*s>>>16)+(e*r>>>16);4294967296<=t;)t-=4294967296,o+=1;return new jspb.arith.UInt64(t>>>0,o>>>0)},jspb.arith.UInt64.prototype.mul=function(e){var t=jspb.arith.UInt64.mul32x32(this.lo,e);return(e=jspb.arith.UInt64.mul32x32(this.hi,e)).hi=e.lo,e.lo=0,t.add(e)},jspb.arith.UInt64.prototype.div=function(e){if(0==e)return[];var t=new jspb.arith.UInt64(0,0),o=new jspb.arith.UInt64(this.lo,this.hi);e=new jspb.arith.UInt64(e,0);for(var r=new jspb.arith.UInt64(1,0);!e.msb();)e=e.leftShift(),r=r.leftShift();for(;!r.zero();)0>=e.cmp(o)&&(t=t.add(r),o=o.sub(e)),e=e.rightShift(),r=r.rightShift();return[t,o]},jspb.arith.UInt64.prototype.toString=function(){for(var e="",t=this;!t.zero();){var o=(t=t.div(10))[0];e=t[1].lo+e,t=o}return""==e&&(e="0"),e},jspb.arith.UInt64.fromString=function(e){for(var t=new jspb.arith.UInt64(0,0),o=new jspb.arith.UInt64(0,0),r=0;r<e.length;r++){if("0">e[r]||"9"<e[r])return null;var s=parseInt(e[r],10);o.lo=s,t=t.mul(10).add(o)}return t},jspb.arith.UInt64.prototype.clone=function(){return new jspb.arith.UInt64(this.lo,this.hi)},jspb.arith.Int64=function(e,t){this.lo=e,this.hi=t},jspb.arith.Int64.prototype.add=function(e){return new jspb.arith.Int64((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},jspb.arith.Int64.prototype.sub=function(e){return new jspb.arith.Int64((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},jspb.arith.Int64.prototype.clone=function(){return new jspb.arith.Int64(this.lo,this.hi)},jspb.arith.Int64.prototype.toString=function(){var e=0!=(2147483648&this.hi),t=new jspb.arith.UInt64(this.lo,this.hi);return e&&(t=new jspb.arith.UInt64(0,0).sub(t)),(e?"-":"")+t.toString()},jspb.arith.Int64.fromString=function(e){var t=0<e.length&&"-"==e[0];return t&&(e=e.substring(1)),null===(e=jspb.arith.UInt64.fromString(e))?null:(t&&(e=new jspb.arith.UInt64(0,0).sub(e)),new jspb.arith.Int64(e.lo,e.hi))},jspb.BinaryEncoder=function(){this.buffer_=[]},jspb.BinaryEncoder.prototype.length=function(){return this.buffer_.length},jspb.BinaryEncoder.prototype.end=function(){var e=this.buffer_;return this.buffer_=[],e},jspb.BinaryEncoder.prototype.writeSplitVarint64=function(e,t){for(goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32);0<t||127<e;)this.buffer_.push(127&e|128),e=(e>>>7|t<<25)>>>0,t>>>=7;this.buffer_.push(e)},jspb.BinaryEncoder.prototype.writeSplitFixed64=function(e,t){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUint32(e),this.writeUint32(t)},jspb.BinaryEncoder.prototype.writeUnsignedVarint32=function(e){for(goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32);127<e;)this.buffer_.push(127&e|128),e>>>=7;this.buffer_.push(e)},jspb.BinaryEncoder.prototype.writeSignedVarint32=function(e){if(goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),0<=e)this.writeUnsignedVarint32(e);else{for(var t=0;9>t;t++)this.buffer_.push(127&e|128),e>>=7;this.buffer_.push(1)}},jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitInt64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeSignedVarint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint32=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeUnsignedVarint32((e<<1^e>>31)>>>0)},jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitZigzag64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint64String=function(e){this.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(e))},jspb.BinaryEncoder.prototype.writeZigzagVarintHash64=function(e){var t=this;jspb.utils.splitHash64(e),jspb.utils.toZigzag64(jspb.utils.split64Low,jspb.utils.split64High,(function(e,o){t.writeSplitVarint64(e>>>0,o>>>0)}))},jspb.BinaryEncoder.prototype.writeUint8=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&256>e),this.buffer_.push(e>>>0&255)},jspb.BinaryEncoder.prototype.writeUint16=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&65536>e),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255)},jspb.BinaryEncoder.prototype.writeUint32=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255),this.buffer_.push(e>>>16&255),this.buffer_.push(e>>>24&255)},jspb.BinaryEncoder.prototype.writeUint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitUint64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt8=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(-128<=e&&128>e),this.buffer_.push(e>>>0&255)},jspb.BinaryEncoder.prototype.writeInt16=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(-32768<=e&&32768>e),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255)},jspb.BinaryEncoder.prototype.writeInt32=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255),this.buffer_.push(e>>>16&255),this.buffer_.push(e>>>24&255)},jspb.BinaryEncoder.prototype.writeInt64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(e),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt64String=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(+e>=-jspb.BinaryConstants.TWO_TO_63&&+e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(e)),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFloat=function(e){goog.asserts.assert(1/0===e||-1/0===e||isNaN(e)||e>=-jspb.BinaryConstants.FLOAT32_MAX&&e<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(e),this.writeUint32(jspb.utils.split64Low)},jspb.BinaryEncoder.prototype.writeDouble=function(e){goog.asserts.assert(1/0===e||-1/0===e||isNaN(e)||e>=-jspb.BinaryConstants.FLOAT64_MAX&&e<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeBool=function(e){goog.asserts.assert("boolean"==typeof e||"number"==typeof e),this.buffer_.push(e?1:0)},jspb.BinaryEncoder.prototype.writeEnum=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32(e)},jspb.BinaryEncoder.prototype.writeBytes=function(e){this.buffer_.push.apply(this.buffer_,e)},jspb.BinaryEncoder.prototype.writeVarintHash64=function(e){jspb.utils.splitHash64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFixedHash64=function(e){jspb.utils.splitHash64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeString=function(e){for(var t=this.buffer_.length,o=0;o<e.length;o++){var r=e.charCodeAt(o);if(128>r)this.buffer_.push(r);else if(2048>r)this.buffer_.push(r>>6|192),this.buffer_.push(63&r|128);else if(65536>r)if(55296<=r&&56319>=r&&o+1<e.length){var s=e.charCodeAt(o+1);56320<=s&&57343>=s&&(r=1024*(r-55296)+s-56320+65536,this.buffer_.push(r>>18|240),this.buffer_.push(r>>12&63|128),this.buffer_.push(r>>6&63|128),this.buffer_.push(63&r|128),o++)}else this.buffer_.push(r>>12|224),this.buffer_.push(r>>6&63|128),this.buffer_.push(63&r|128)}return this.buffer_.length-t},jspb.BinaryWriter=function(){this.blocks_=[],this.totalLength_=0,this.encoder_=new jspb.BinaryEncoder,this.bookmarks_=[]},jspb.BinaryWriter.prototype.appendUint8Array_=function(e){var t=this.encoder_.end();this.blocks_.push(t),this.blocks_.push(e),this.totalLength_+=t.length+e.length},jspb.BinaryWriter.prototype.beginDelimited_=function(e){return this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),e=this.encoder_.end(),this.blocks_.push(e),this.totalLength_+=e.length,e.push(this.totalLength_),e},jspb.BinaryWriter.prototype.endDelimited_=function(e){var t=e.pop();for(t=this.totalLength_+this.encoder_.length()-t,goog.asserts.assert(0<=t);127<t;)e.push(127&t|128),t>>>=7,this.totalLength_++;e.push(t),this.totalLength_++},jspb.BinaryWriter.prototype.writeSerializedMessage=function(e,t,o){this.appendUint8Array_(e.subarray(t,o))},jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(e,t,o){null!=e&&null!=t&&null!=o&&this.writeSerializedMessage(e,t,o)},jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]},jspb.BinaryWriter.prototype.getResultBuffer=function(){goog.asserts.assert(0==this.bookmarks_.length);for(var e=new Uint8Array(this.totalLength_+this.encoder_.length()),t=this.blocks_,o=t.length,r=0,s=0;s<o;s++){var n=t[s];e.set(n,r),r+=n.length}return t=this.encoder_.end(),e.set(t,r),r+=t.length,goog.asserts.assert(r==e.length),this.blocks_=[e],e},jspb.BinaryWriter.prototype.getResultBase64String=function(e){return goog.crypt.base64.encodeByteArray(this.getResultBuffer(),e)},jspb.BinaryWriter.prototype.beginSubMessage=function(e){this.bookmarks_.push(this.beginDelimited_(e))},jspb.BinaryWriter.prototype.endSubMessage=function(){goog.asserts.assert(0<=this.bookmarks_.length),this.endDelimited_(this.bookmarks_.pop())},jspb.BinaryWriter.prototype.writeFieldHeader_=function(e,t){goog.asserts.assert(1<=e&&e==Math.floor(e)),this.encoder_.writeUnsignedVarint32(8*e+t)},jspb.BinaryWriter.prototype.writeAny=function(e,t,o){var r=jspb.BinaryConstants.FieldType;switch(e){case r.DOUBLE:this.writeDouble(t,o);break;case r.FLOAT:this.writeFloat(t,o);break;case r.INT64:this.writeInt64(t,o);break;case r.UINT64:this.writeUint64(t,o);break;case r.INT32:this.writeInt32(t,o);break;case r.FIXED64:this.writeFixed64(t,o);break;case r.FIXED32:this.writeFixed32(t,o);break;case r.BOOL:this.writeBool(t,o);break;case r.STRING:this.writeString(t,o);break;case r.GROUP:goog.asserts.fail("Group field type not supported in writeAny()");break;case r.MESSAGE:goog.asserts.fail("Message field type not supported in writeAny()");break;case r.BYTES:this.writeBytes(t,o);break;case r.UINT32:this.writeUint32(t,o);break;case r.ENUM:this.writeEnum(t,o);break;case r.SFIXED32:this.writeSfixed32(t,o);break;case r.SFIXED64:this.writeSfixed64(t,o);break;case r.SINT32:this.writeSint32(t,o);break;case r.SINT64:this.writeSint64(t,o);break;case r.FHASH64:this.writeFixedHash64(t,o);break;case r.VHASH64:this.writeVarintHash64(t,o);break;default:goog.asserts.fail("Invalid field type in writeAny()")}},jspb.BinaryWriter.prototype.writeUnsignedVarint32_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(t))},jspb.BinaryWriter.prototype.writeSignedVarint32_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t))},jspb.BinaryWriter.prototype.writeUnsignedVarint64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint64(t))},jspb.BinaryWriter.prototype.writeSignedVarint64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint64(t))},jspb.BinaryWriter.prototype.writeZigzagVarint32_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(t))},jspb.BinaryWriter.prototype.writeZigzagVarint64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64(t))},jspb.BinaryWriter.prototype.writeZigzagVarint64String_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64String(t))},jspb.BinaryWriter.prototype.writeZigzagVarintHash64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarintHash64(t))},jspb.BinaryWriter.prototype.writeInt32=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeInt32String=function(e,t){null!=t&&(t=parseInt(t,10),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeInt64=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeSignedVarint64_(e,t))},jspb.BinaryWriter.prototype.writeInt64String=function(e,t){null!=t&&(t=jspb.arith.Int64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeUint32=function(e,t){null!=t&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeUint32String=function(e,t){null!=t&&(t=parseInt(t,10),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeUint64=function(e,t){null!=t&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),this.writeUnsignedVarint64_(e,t))},jspb.BinaryWriter.prototype.writeUint64String=function(e,t){null!=t&&(t=jspb.arith.UInt64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeSint32=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeZigzagVarint32_(e,t))},jspb.BinaryWriter.prototype.writeSint64=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeZigzagVarint64_(e,t))},jspb.BinaryWriter.prototype.writeSintHash64=function(e,t){null!=t&&this.writeZigzagVarintHash64_(e,t)},jspb.BinaryWriter.prototype.writeSint64String=function(e,t){null!=t&&this.writeZigzagVarint64String_(e,t)},jspb.BinaryWriter.prototype.writeFixed32=function(e,t){null!=t&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeUint32(t))},jspb.BinaryWriter.prototype.writeFixed64=function(e,t){null!=t&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeUint64(t))},jspb.BinaryWriter.prototype.writeFixed64String=function(e,t){null!=t&&(t=jspb.arith.UInt64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeSfixed32=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeInt32(t))},jspb.BinaryWriter.prototype.writeSfixed64=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeInt64(t))},jspb.BinaryWriter.prototype.writeSfixed64String=function(e,t){null!=t&&(t=jspb.arith.Int64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeFloat=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeFloat(t))},jspb.BinaryWriter.prototype.writeDouble=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeDouble(t))},jspb.BinaryWriter.prototype.writeBool=function(e,t){null!=t&&(goog.asserts.assert("boolean"==typeof t||"number"==typeof t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeBool(t))},jspb.BinaryWriter.prototype.writeEnum=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t))},jspb.BinaryWriter.prototype.writeString=function(e,t){null!=t&&(e=this.beginDelimited_(e),this.encoder_.writeString(t),this.endDelimited_(e))},jspb.BinaryWriter.prototype.writeBytes=function(e,t){null!=t&&(t=jspb.utils.byteSourceToUint8Array(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(t.length),this.appendUint8Array_(t))},jspb.BinaryWriter.prototype.writeMessage=function(e,t,o){null!=t&&(e=this.beginDelimited_(e),o(t,this),this.endDelimited_(e))},jspb.BinaryWriter.prototype.writeMessageSet=function(e,t,o){null!=t&&(this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.START_GROUP),this.writeFieldHeader_(2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(e),e=this.beginDelimited_(3),o(t,this),this.endDelimited_(e),this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.END_GROUP))},jspb.BinaryWriter.prototype.writeGroup=function(e,t,o){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.START_GROUP),o(t,this),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.END_GROUP))},jspb.BinaryWriter.prototype.writeFixedHash64=function(e,t){null!=t&&(goog.asserts.assert(8==t.length),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeFixedHash64(t))},jspb.BinaryWriter.prototype.writeVarintHash64=function(e,t){null!=t&&(goog.asserts.assert(8==t.length),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeVarintHash64(t))},jspb.BinaryWriter.prototype.writeSplitFixed64=function(e,t,o){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t,o)},jspb.BinaryWriter.prototype.writeSplitVarint64=function(e,t,o){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t,o)},jspb.BinaryWriter.prototype.writeSplitZigzagVarint64=function(e,t,o){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT);var r=this.encoder_;jspb.utils.toZigzag64(t,o,(function(e,t){r.writeSplitVarint64(e>>>0,t>>>0)}))},jspb.BinaryWriter.prototype.writeRepeatedInt32=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeSignedVarint32_(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedInt32String=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeInt32String(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedInt64=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeSignedVarint64_(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedSplitFixed64=function(e,t,o,r){if(null!=t)for(var s=0;s<t.length;s++)this.writeSplitFixed64(e,o(t[s]),r(t[s]))},jspb.BinaryWriter.prototype.writeRepeatedSplitVarint64=function(e,t,o,r){if(null!=t)for(var s=0;s<t.length;s++)this.writeSplitVarint64(e,o(t[s]),r(t[s]))},jspb.BinaryWriter.prototype.writeRepeatedSplitZigzagVarint64=function(e,t,o,r){if(null!=t)for(var s=0;s<t.length;s++)this.writeSplitZigzagVarint64(e,o(t[s]),r(t[s]))},jspb.BinaryWriter.prototype.writeRepeatedInt64String=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeInt64String(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedUint32=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeUnsignedVarint32_(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedUint32String=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeUint32String(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedUint64=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeUnsignedVarint64_(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedUint64String=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeUint64String(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedSint32=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeZigzagVarint32_(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedSint64=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeZigzagVarint64_(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedSint64String=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeZigzagVarint64String_(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedSintHash64=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeZigzagVarintHash64_(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedFixed32=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeFixed32(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedFixed64=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeFixed64(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedFixed64String=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeFixed64String(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedSfixed32=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeSfixed32(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedSfixed64=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeSfixed64(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedSfixed64String=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeSfixed64String(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedFloat=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeFloat(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedDouble=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeDouble(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedBool=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeBool(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedEnum=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeEnum(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedString=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeString(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedBytes=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeBytes(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedMessage=function(e,t,o){if(null!=t)for(var r=0;r<t.length;r++){var s=this.beginDelimited_(e);o(t[r],this),this.endDelimited_(s)}},jspb.BinaryWriter.prototype.writeRepeatedGroup=function(e,t,o){if(null!=t)for(var r=0;r<t.length;r++)this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.START_GROUP),o(t[r],this),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.END_GROUP)},jspb.BinaryWriter.prototype.writeRepeatedFixedHash64=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeFixedHash64(e,t[o])},jspb.BinaryWriter.prototype.writeRepeatedVarintHash64=function(e,t){if(null!=t)for(var o=0;o<t.length;o++)this.writeVarintHash64(e,t[o])},jspb.BinaryWriter.prototype.writePackedInt32=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var o=0;o<t.length;o++)this.encoder_.writeSignedVarint32(t[o]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt32String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var o=0;o<t.length;o++)this.encoder_.writeSignedVarint32(parseInt(t[o],10));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var o=0;o<t.length;o++)this.encoder_.writeSignedVarint64(t[o]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitFixed64=function(e,t,o,r){if(null!=t){e=this.beginDelimited_(e);for(var s=0;s<t.length;s++)this.encoder_.writeSplitFixed64(o(t[s]),r(t[s]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitVarint64=function(e,t,o,r){if(null!=t){e=this.beginDelimited_(e);for(var s=0;s<t.length;s++)this.encoder_.writeSplitVarint64(o(t[s]),r(t[s]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitZigzagVarint64=function(e,t,o,r){if(null!=t){e=this.beginDelimited_(e);for(var s=this.encoder_,n=0;n<t.length;n++)jspb.utils.toZigzag64(o(t[n]),r(t[n]),(function(e,t){s.writeSplitVarint64(e>>>0,t>>>0)}));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt64String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var o=0;o<t.length;o++){var r=jspb.arith.Int64.fromString(t[o]);this.encoder_.writeSplitVarint64(r.lo,r.hi)}this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint32=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var o=0;o<t.length;o++)this.encoder_.writeUnsignedVarint32(t[o]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint32String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var o=0;o<t.length;o++)this.encoder_.writeUnsignedVarint32(parseInt(t[o],10));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var o=0;o<t.length;o++)this.encoder_.writeUnsignedVarint64(t[o]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint64String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var o=0;o<t.length;o++){var r=jspb.arith.UInt64.fromString(t[o]);this.encoder_.writeSplitVarint64(r.lo,r.hi)}this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSint32=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var o=0;o<t.length;o++)this.encoder_.writeZigzagVarint32(t[o]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSint64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var o=0;o<t.length;o++)this.encoder_.writeZigzagVarint64(t[o]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSint64String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var o=0;o<t.length;o++)this.encoder_.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(t[o]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSintHash64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var o=0;o<t.length;o++)this.encoder_.writeZigzagVarintHash64(t[o]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedFixed32=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeUint32(t[e])},jspb.BinaryWriter.prototype.writePackedFixed64=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeUint64(t[e])},jspb.BinaryWriter.prototype.writePackedFixed64String=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++){var o=jspb.arith.UInt64.fromString(t[e]);this.encoder_.writeSplitFixed64(o.lo,o.hi)}},jspb.BinaryWriter.prototype.writePackedSfixed32=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeInt32(t[e])},jspb.BinaryWriter.prototype.writePackedSfixed64=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeInt64(t[e])},jspb.BinaryWriter.prototype.writePackedSfixed64String=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeInt64String(t[e])},jspb.BinaryWriter.prototype.writePackedFloat=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeFloat(t[e])},jspb.BinaryWriter.prototype.writePackedDouble=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeDouble(t[e])},jspb.BinaryWriter.prototype.writePackedBool=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(t.length),e=0;e<t.length;e++)this.encoder_.writeBool(t[e])},jspb.BinaryWriter.prototype.writePackedEnum=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var o=0;o<t.length;o++)this.encoder_.writeEnum(t[o]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedFixedHash64=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeFixedHash64(t[e])},jspb.BinaryWriter.prototype.writePackedVarintHash64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var o=0;o<t.length;o++)this.encoder_.writeVarintHash64(t[o]);this.endDelimited_(e)}},jspb.Export={};var _Map=jspb.Map,Message=jspb.Message,BinaryReader=jspb.BinaryReader,BinaryWriter=jspb.BinaryWriter,ExtensionFieldInfo=jspb.ExtensionFieldInfo,ExtensionFieldBinaryInfo=jspb.ExtensionFieldBinaryInfo,exportSymbol=goog.exportSymbol,inherits=goog.inherits,object={extend:goog.object.extend},typeOf=goog.typeOf,googleProtobuf={Map:_Map,Message:Message,BinaryReader:BinaryReader,BinaryWriter:BinaryWriter,ExtensionFieldInfo:ExtensionFieldInfo,ExtensionFieldBinaryInfo:ExtensionFieldBinaryInfo,exportSymbol:exportSymbol,inherits:inherits,object:object,typeOf:typeOf},timestamp_pb=createCommonjsModule((function(e,t){var o=googleProtobuf,r=Function("return this")();o.exportSymbol("proto.google.protobuf.Timestamp",null,r),proto.google.protobuf.Timestamp=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.google.protobuf.Timestamp,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.google.protobuf.Timestamp.displayName="proto.google.protobuf.Timestamp"),googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Timestamp.prototype.toObject=function(e){return proto.google.protobuf.Timestamp.toObject(e,this)},proto.google.protobuf.Timestamp.toObject=function(e,t){var o={seconds:googleProtobuf.Message.getFieldWithDefault(t,1,0),nanos:googleProtobuf.Message.getFieldWithDefault(t,2,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.google.protobuf.Timestamp.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.google.protobuf.Timestamp;return proto.google.protobuf.Timestamp.deserializeBinaryFromReader(o,t)},proto.google.protobuf.Timestamp.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readInt64();e.setSeconds(o);break;case 2:o=t.readInt32();e.setNanos(o);break;default:t.skipField()}}return e},proto.google.protobuf.Timestamp.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.google.protobuf.Timestamp.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.Timestamp.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getSeconds())&&t.writeInt64(1,o),0!==(o=e.getNanos())&&t.writeInt32(2,o)},proto.google.protobuf.Timestamp.prototype.getSeconds=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.Timestamp.prototype.setSeconds=function(e){return googleProtobuf.Message.setProto3IntField(this,1,e)},proto.google.protobuf.Timestamp.prototype.getNanos=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,0)},proto.google.protobuf.Timestamp.prototype.setNanos=function(e){return googleProtobuf.Message.setProto3IntField(this,2,e)},o.object.extend(t,proto.google.protobuf),proto.google.protobuf.Timestamp.prototype.toDate=function(){var e=this.getSeconds(),t=this.getNanos();return new Date(1e3*e+t/1e6)},proto.google.protobuf.Timestamp.prototype.fromDate=function(e){this.setSeconds(Math.floor(e.getTime()/1e3)),this.setNanos(1e6*e.getMilliseconds())},proto.google.protobuf.Timestamp.fromDate=function(e){var t=new proto.google.protobuf.Timestamp;return t.fromDate(e),t}})),user_pb=createCommonjsModule((function(e,t){var o=googleProtobuf,r=Function("return this")();o.object.extend(proto,timestamp_pb),o.exportSymbol("proto.powergate.user.v1.AddrInfo",null,r),o.exportSymbol("proto.powergate.user.v1.AddrInfo.VerifiedClientInfo",null,r),o.exportSymbol("proto.powergate.user.v1.AddressesRequest",null,r),o.exportSymbol("proto.powergate.user.v1.AddressesResponse",null,r),o.exportSymbol("proto.powergate.user.v1.ApplyStorageConfigRequest",null,r),o.exportSymbol("proto.powergate.user.v1.ApplyStorageConfigResponse",null,r),o.exportSymbol("proto.powergate.user.v1.BalanceRequest",null,r),o.exportSymbol("proto.powergate.user.v1.BalanceResponse",null,r),o.exportSymbol("proto.powergate.user.v1.BuildInfoRequest",null,r),o.exportSymbol("proto.powergate.user.v1.BuildInfoResponse",null,r),o.exportSymbol("proto.powergate.user.v1.CancelStorageJobRequest",null,r),o.exportSymbol("proto.powergate.user.v1.CancelStorageJobResponse",null,r),o.exportSymbol("proto.powergate.user.v1.CidInfo",null,r),o.exportSymbol("proto.powergate.user.v1.CidInfoRequest",null,r),o.exportSymbol("proto.powergate.user.v1.CidInfoResponse",null,r),o.exportSymbol("proto.powergate.user.v1.CidSummary",null,r),o.exportSymbol("proto.powergate.user.v1.CidSummaryRequest",null,r),o.exportSymbol("proto.powergate.user.v1.CidSummaryResponse",null,r),o.exportSymbol("proto.powergate.user.v1.ColdConfig",null,r),o.exportSymbol("proto.powergate.user.v1.ColdInfo",null,r),o.exportSymbol("proto.powergate.user.v1.DealError",null,r),o.exportSymbol("proto.powergate.user.v1.DealInfo",null,r),o.exportSymbol("proto.powergate.user.v1.DealRecordsConfig",null,r),o.exportSymbol("proto.powergate.user.v1.DefaultStorageConfigRequest",null,r),o.exportSymbol("proto.powergate.user.v1.DefaultStorageConfigResponse",null,r),o.exportSymbol("proto.powergate.user.v1.FilConfig",null,r),o.exportSymbol("proto.powergate.user.v1.FilInfo",null,r),o.exportSymbol("proto.powergate.user.v1.FilRenew",null,r),o.exportSymbol("proto.powergate.user.v1.FilStorage",null,r),o.exportSymbol("proto.powergate.user.v1.GetRequest",null,r),o.exportSymbol("proto.powergate.user.v1.GetResponse",null,r),o.exportSymbol("proto.powergate.user.v1.HotConfig",null,r),o.exportSymbol("proto.powergate.user.v1.HotInfo",null,r),o.exportSymbol("proto.powergate.user.v1.IpfsConfig",null,r),o.exportSymbol("proto.powergate.user.v1.IpfsHotInfo",null,r),o.exportSymbol("proto.powergate.user.v1.JobStatus",null,r),o.exportSymbol("proto.powergate.user.v1.ListStorageInfoRequest",null,r),o.exportSymbol("proto.powergate.user.v1.ListStorageInfoResponse",null,r),o.exportSymbol("proto.powergate.user.v1.ListStorageJobsRequest",null,r),o.exportSymbol("proto.powergate.user.v1.ListStorageJobsResponse",null,r),o.exportSymbol("proto.powergate.user.v1.LogEntry",null,r),o.exportSymbol("proto.powergate.user.v1.NewAddressRequest",null,r),o.exportSymbol("proto.powergate.user.v1.NewAddressResponse",null,r),o.exportSymbol("proto.powergate.user.v1.RemoveRequest",null,r),o.exportSymbol("proto.powergate.user.v1.RemoveResponse",null,r),o.exportSymbol("proto.powergate.user.v1.ReplaceDataRequest",null,r),o.exportSymbol("proto.powergate.user.v1.ReplaceDataResponse",null,r),o.exportSymbol("proto.powergate.user.v1.RetrievalDealInfo",null,r),o.exportSymbol("proto.powergate.user.v1.RetrievalDealRecord",null,r),o.exportSymbol("proto.powergate.user.v1.RetrievalDealRecordsRequest",null,r),o.exportSymbol("proto.powergate.user.v1.RetrievalDealRecordsResponse",null,r),o.exportSymbol("proto.powergate.user.v1.SendFilRequest",null,r),o.exportSymbol("proto.powergate.user.v1.SendFilResponse",null,r),o.exportSymbol("proto.powergate.user.v1.SetDefaultStorageConfigRequest",null,r),o.exportSymbol("proto.powergate.user.v1.SetDefaultStorageConfigResponse",null,r),o.exportSymbol("proto.powergate.user.v1.SignMessageRequest",null,r),o.exportSymbol("proto.powergate.user.v1.SignMessageResponse",null,r),o.exportSymbol("proto.powergate.user.v1.StageCidRequest",null,r),o.exportSymbol("proto.powergate.user.v1.StageCidResponse",null,r),o.exportSymbol("proto.powergate.user.v1.StageRequest",null,r),o.exportSymbol("proto.powergate.user.v1.StageResponse",null,r),o.exportSymbol("proto.powergate.user.v1.StorageConfig",null,r),o.exportSymbol("proto.powergate.user.v1.StorageConfigForJobRequest",null,r),o.exportSymbol("proto.powergate.user.v1.StorageConfigForJobResponse",null,r),o.exportSymbol("proto.powergate.user.v1.StorageDealInfo",null,r),o.exportSymbol("proto.powergate.user.v1.StorageDealRecord",null,r),o.exportSymbol("proto.powergate.user.v1.StorageDealRecordsRequest",null,r),o.exportSymbol("proto.powergate.user.v1.StorageDealRecordsResponse",null,r),o.exportSymbol("proto.powergate.user.v1.StorageInfo",null,r),o.exportSymbol("proto.powergate.user.v1.StorageInfoRequest",null,r),o.exportSymbol("proto.powergate.user.v1.StorageInfoResponse",null,r),o.exportSymbol("proto.powergate.user.v1.StorageJob",null,r),o.exportSymbol("proto.powergate.user.v1.StorageJobRequest",null,r),o.exportSymbol("proto.powergate.user.v1.StorageJobResponse",null,r),o.exportSymbol("proto.powergate.user.v1.StorageJobsSelector",null,r),o.exportSymbol("proto.powergate.user.v1.StorageJobsSummaryRequest",null,r),o.exportSymbol("proto.powergate.user.v1.StorageJobsSummaryResponse",null,r),o.exportSymbol("proto.powergate.user.v1.UserIdentifierRequest",null,r),o.exportSymbol("proto.powergate.user.v1.UserIdentifierResponse",null,r),o.exportSymbol("proto.powergate.user.v1.VerifyMessageRequest",null,r),o.exportSymbol("proto.powergate.user.v1.VerifyMessageResponse",null,r),o.exportSymbol("proto.powergate.user.v1.WatchLogsRequest",null,r),o.exportSymbol("proto.powergate.user.v1.WatchLogsResponse",null,r),o.exportSymbol("proto.powergate.user.v1.WatchStorageJobsRequest",null,r),o.exportSymbol("proto.powergate.user.v1.WatchStorageJobsResponse",null,r),proto.powergate.user.v1.BuildInfoRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.BuildInfoRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.BuildInfoRequest.displayName="proto.powergate.user.v1.BuildInfoRequest"),proto.powergate.user.v1.BuildInfoResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.BuildInfoResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.BuildInfoResponse.displayName="proto.powergate.user.v1.BuildInfoResponse"),proto.powergate.user.v1.UserIdentifierRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.UserIdentifierRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.UserIdentifierRequest.displayName="proto.powergate.user.v1.UserIdentifierRequest"),proto.powergate.user.v1.UserIdentifierResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.UserIdentifierResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.UserIdentifierResponse.displayName="proto.powergate.user.v1.UserIdentifierResponse"),proto.powergate.user.v1.DefaultStorageConfigRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.DefaultStorageConfigRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.DefaultStorageConfigRequest.displayName="proto.powergate.user.v1.DefaultStorageConfigRequest"),proto.powergate.user.v1.DefaultStorageConfigResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.DefaultStorageConfigResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.DefaultStorageConfigResponse.displayName="proto.powergate.user.v1.DefaultStorageConfigResponse"),proto.powergate.user.v1.SetDefaultStorageConfigRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.SetDefaultStorageConfigRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.SetDefaultStorageConfigRequest.displayName="proto.powergate.user.v1.SetDefaultStorageConfigRequest"),proto.powergate.user.v1.SetDefaultStorageConfigResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.SetDefaultStorageConfigResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.SetDefaultStorageConfigResponse.displayName="proto.powergate.user.v1.SetDefaultStorageConfigResponse"),proto.powergate.user.v1.StageRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.StageRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StageRequest.displayName="proto.powergate.user.v1.StageRequest"),proto.powergate.user.v1.StageResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.StageResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StageResponse.displayName="proto.powergate.user.v1.StageResponse"),proto.powergate.user.v1.StageCidRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.StageCidRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StageCidRequest.displayName="proto.powergate.user.v1.StageCidRequest"),proto.powergate.user.v1.StageCidResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.StageCidResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StageCidResponse.displayName="proto.powergate.user.v1.StageCidResponse"),proto.powergate.user.v1.ApplyStorageConfigRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,proto.powergate.user.v1.ApplyStorageConfigRequest.repeatedFields_,null)},o.inherits(proto.powergate.user.v1.ApplyStorageConfigRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.ApplyStorageConfigRequest.displayName="proto.powergate.user.v1.ApplyStorageConfigRequest"),proto.powergate.user.v1.ApplyStorageConfigResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.ApplyStorageConfigResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.ApplyStorageConfigResponse.displayName="proto.powergate.user.v1.ApplyStorageConfigResponse"),proto.powergate.user.v1.ReplaceDataRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.ReplaceDataRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.ReplaceDataRequest.displayName="proto.powergate.user.v1.ReplaceDataRequest"),proto.powergate.user.v1.ReplaceDataResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.ReplaceDataResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.ReplaceDataResponse.displayName="proto.powergate.user.v1.ReplaceDataResponse"),proto.powergate.user.v1.GetRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.GetRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.GetRequest.displayName="proto.powergate.user.v1.GetRequest"),proto.powergate.user.v1.GetResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.GetResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.GetResponse.displayName="proto.powergate.user.v1.GetResponse"),proto.powergate.user.v1.RemoveRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.RemoveRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.RemoveRequest.displayName="proto.powergate.user.v1.RemoveRequest"),proto.powergate.user.v1.RemoveResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.RemoveResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.RemoveResponse.displayName="proto.powergate.user.v1.RemoveResponse"),proto.powergate.user.v1.WatchLogsRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.WatchLogsRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.WatchLogsRequest.displayName="proto.powergate.user.v1.WatchLogsRequest"),proto.powergate.user.v1.WatchLogsResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.WatchLogsResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.WatchLogsResponse.displayName="proto.powergate.user.v1.WatchLogsResponse"),proto.powergate.user.v1.CidSummaryRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,proto.powergate.user.v1.CidSummaryRequest.repeatedFields_,null)},o.inherits(proto.powergate.user.v1.CidSummaryRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.CidSummaryRequest.displayName="proto.powergate.user.v1.CidSummaryRequest"),proto.powergate.user.v1.CidSummaryResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,proto.powergate.user.v1.CidSummaryResponse.repeatedFields_,null)},o.inherits(proto.powergate.user.v1.CidSummaryResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.CidSummaryResponse.displayName="proto.powergate.user.v1.CidSummaryResponse"),proto.powergate.user.v1.CidInfoRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.CidInfoRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.CidInfoRequest.displayName="proto.powergate.user.v1.CidInfoRequest"),proto.powergate.user.v1.CidInfoResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.CidInfoResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.CidInfoResponse.displayName="proto.powergate.user.v1.CidInfoResponse"),proto.powergate.user.v1.BalanceRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.BalanceRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.BalanceRequest.displayName="proto.powergate.user.v1.BalanceRequest"),proto.powergate.user.v1.BalanceResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.BalanceResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.BalanceResponse.displayName="proto.powergate.user.v1.BalanceResponse"),proto.powergate.user.v1.NewAddressRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.NewAddressRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.NewAddressRequest.displayName="proto.powergate.user.v1.NewAddressRequest"),proto.powergate.user.v1.NewAddressResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.NewAddressResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.NewAddressResponse.displayName="proto.powergate.user.v1.NewAddressResponse"),proto.powergate.user.v1.AddressesRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.AddressesRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.AddressesRequest.displayName="proto.powergate.user.v1.AddressesRequest"),proto.powergate.user.v1.AddressesResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,proto.powergate.user.v1.AddressesResponse.repeatedFields_,null)},o.inherits(proto.powergate.user.v1.AddressesResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.AddressesResponse.displayName="proto.powergate.user.v1.AddressesResponse"),proto.powergate.user.v1.SendFilRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.SendFilRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.SendFilRequest.displayName="proto.powergate.user.v1.SendFilRequest"),proto.powergate.user.v1.SendFilResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.SendFilResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.SendFilResponse.displayName="proto.powergate.user.v1.SendFilResponse"),proto.powergate.user.v1.SignMessageRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.SignMessageRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.SignMessageRequest.displayName="proto.powergate.user.v1.SignMessageRequest"),proto.powergate.user.v1.SignMessageResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.SignMessageResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.SignMessageResponse.displayName="proto.powergate.user.v1.SignMessageResponse"),proto.powergate.user.v1.VerifyMessageRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.VerifyMessageRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.VerifyMessageRequest.displayName="proto.powergate.user.v1.VerifyMessageRequest"),proto.powergate.user.v1.VerifyMessageResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.VerifyMessageResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.VerifyMessageResponse.displayName="proto.powergate.user.v1.VerifyMessageResponse"),proto.powergate.user.v1.StorageInfoRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.StorageInfoRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StorageInfoRequest.displayName="proto.powergate.user.v1.StorageInfoRequest"),proto.powergate.user.v1.StorageInfoResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.StorageInfoResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StorageInfoResponse.displayName="proto.powergate.user.v1.StorageInfoResponse"),proto.powergate.user.v1.ListStorageInfoRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,proto.powergate.user.v1.ListStorageInfoRequest.repeatedFields_,null)},o.inherits(proto.powergate.user.v1.ListStorageInfoRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.ListStorageInfoRequest.displayName="proto.powergate.user.v1.ListStorageInfoRequest"),proto.powergate.user.v1.ListStorageInfoResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,proto.powergate.user.v1.ListStorageInfoResponse.repeatedFields_,null)},o.inherits(proto.powergate.user.v1.ListStorageInfoResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.ListStorageInfoResponse.displayName="proto.powergate.user.v1.ListStorageInfoResponse"),proto.powergate.user.v1.CancelStorageJobRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.CancelStorageJobRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.CancelStorageJobRequest.displayName="proto.powergate.user.v1.CancelStorageJobRequest"),proto.powergate.user.v1.CancelStorageJobResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.CancelStorageJobResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.CancelStorageJobResponse.displayName="proto.powergate.user.v1.CancelStorageJobResponse"),proto.powergate.user.v1.StorageJobRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.StorageJobRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StorageJobRequest.displayName="proto.powergate.user.v1.StorageJobRequest"),proto.powergate.user.v1.StorageJobResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.StorageJobResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StorageJobResponse.displayName="proto.powergate.user.v1.StorageJobResponse"),proto.powergate.user.v1.StorageConfigForJobRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.StorageConfigForJobRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StorageConfigForJobRequest.displayName="proto.powergate.user.v1.StorageConfigForJobRequest"),proto.powergate.user.v1.StorageConfigForJobResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.StorageConfigForJobResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StorageConfigForJobResponse.displayName="proto.powergate.user.v1.StorageConfigForJobResponse"),proto.powergate.user.v1.ListStorageJobsRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.ListStorageJobsRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.ListStorageJobsRequest.displayName="proto.powergate.user.v1.ListStorageJobsRequest"),proto.powergate.user.v1.ListStorageJobsResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,proto.powergate.user.v1.ListStorageJobsResponse.repeatedFields_,null)},o.inherits(proto.powergate.user.v1.ListStorageJobsResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.ListStorageJobsResponse.displayName="proto.powergate.user.v1.ListStorageJobsResponse"),proto.powergate.user.v1.StorageJobsSummaryRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.StorageJobsSummaryRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StorageJobsSummaryRequest.displayName="proto.powergate.user.v1.StorageJobsSummaryRequest"),proto.powergate.user.v1.StorageJobsSummaryResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,proto.powergate.user.v1.StorageJobsSummaryResponse.repeatedFields_,null)},o.inherits(proto.powergate.user.v1.StorageJobsSummaryResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StorageJobsSummaryResponse.displayName="proto.powergate.user.v1.StorageJobsSummaryResponse"),proto.powergate.user.v1.WatchStorageJobsRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,proto.powergate.user.v1.WatchStorageJobsRequest.repeatedFields_,null)},o.inherits(proto.powergate.user.v1.WatchStorageJobsRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.WatchStorageJobsRequest.displayName="proto.powergate.user.v1.WatchStorageJobsRequest"),proto.powergate.user.v1.WatchStorageJobsResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.WatchStorageJobsResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.WatchStorageJobsResponse.displayName="proto.powergate.user.v1.WatchStorageJobsResponse"),proto.powergate.user.v1.StorageDealRecordsRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.StorageDealRecordsRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StorageDealRecordsRequest.displayName="proto.powergate.user.v1.StorageDealRecordsRequest"),proto.powergate.user.v1.StorageDealRecordsResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,proto.powergate.user.v1.StorageDealRecordsResponse.repeatedFields_,null)},o.inherits(proto.powergate.user.v1.StorageDealRecordsResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StorageDealRecordsResponse.displayName="proto.powergate.user.v1.StorageDealRecordsResponse"),proto.powergate.user.v1.RetrievalDealRecordsRequest=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.RetrievalDealRecordsRequest,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.RetrievalDealRecordsRequest.displayName="proto.powergate.user.v1.RetrievalDealRecordsRequest"),proto.powergate.user.v1.RetrievalDealRecordsResponse=function(e){googleProtobuf.Message.initialize(this,e,0,-1,proto.powergate.user.v1.RetrievalDealRecordsResponse.repeatedFields_,null)},o.inherits(proto.powergate.user.v1.RetrievalDealRecordsResponse,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.RetrievalDealRecordsResponse.displayName="proto.powergate.user.v1.RetrievalDealRecordsResponse"),proto.powergate.user.v1.AddrInfo=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.AddrInfo,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.AddrInfo.displayName="proto.powergate.user.v1.AddrInfo"),proto.powergate.user.v1.AddrInfo.VerifiedClientInfo=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.AddrInfo.VerifiedClientInfo,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.AddrInfo.VerifiedClientInfo.displayName="proto.powergate.user.v1.AddrInfo.VerifiedClientInfo"),proto.powergate.user.v1.CidSummary=function(e){googleProtobuf.Message.initialize(this,e,0,-1,proto.powergate.user.v1.CidSummary.repeatedFields_,null)},o.inherits(proto.powergate.user.v1.CidSummary,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.CidSummary.displayName="proto.powergate.user.v1.CidSummary"),proto.powergate.user.v1.IpfsConfig=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.IpfsConfig,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.IpfsConfig.displayName="proto.powergate.user.v1.IpfsConfig"),proto.powergate.user.v1.HotConfig=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.HotConfig,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.HotConfig.displayName="proto.powergate.user.v1.HotConfig"),proto.powergate.user.v1.FilRenew=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.FilRenew,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.FilRenew.displayName="proto.powergate.user.v1.FilRenew"),proto.powergate.user.v1.FilConfig=function(e){googleProtobuf.Message.initialize(this,e,0,-1,proto.powergate.user.v1.FilConfig.repeatedFields_,null)},o.inherits(proto.powergate.user.v1.FilConfig,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.FilConfig.displayName="proto.powergate.user.v1.FilConfig"),proto.powergate.user.v1.ColdConfig=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.ColdConfig,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.ColdConfig.displayName="proto.powergate.user.v1.ColdConfig"),proto.powergate.user.v1.StorageConfig=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.StorageConfig,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StorageConfig.displayName="proto.powergate.user.v1.StorageConfig"),proto.powergate.user.v1.IpfsHotInfo=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.IpfsHotInfo,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.IpfsHotInfo.displayName="proto.powergate.user.v1.IpfsHotInfo"),proto.powergate.user.v1.HotInfo=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.HotInfo,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.HotInfo.displayName="proto.powergate.user.v1.HotInfo"),proto.powergate.user.v1.FilStorage=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.FilStorage,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.FilStorage.displayName="proto.powergate.user.v1.FilStorage"),proto.powergate.user.v1.FilInfo=function(e){googleProtobuf.Message.initialize(this,e,0,-1,proto.powergate.user.v1.FilInfo.repeatedFields_,null)},o.inherits(proto.powergate.user.v1.FilInfo,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.FilInfo.displayName="proto.powergate.user.v1.FilInfo"),proto.powergate.user.v1.ColdInfo=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.ColdInfo,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.ColdInfo.displayName="proto.powergate.user.v1.ColdInfo"),proto.powergate.user.v1.StorageInfo=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.StorageInfo,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StorageInfo.displayName="proto.powergate.user.v1.StorageInfo"),proto.powergate.user.v1.CidInfo=function(e){googleProtobuf.Message.initialize(this,e,0,-1,proto.powergate.user.v1.CidInfo.repeatedFields_,null)},o.inherits(proto.powergate.user.v1.CidInfo,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.CidInfo.displayName="proto.powergate.user.v1.CidInfo"),proto.powergate.user.v1.DealInfo=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.DealInfo,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.DealInfo.displayName="proto.powergate.user.v1.DealInfo"),proto.powergate.user.v1.StorageJob=function(e){googleProtobuf.Message.initialize(this,e,0,-1,proto.powergate.user.v1.StorageJob.repeatedFields_,null)},o.inherits(proto.powergate.user.v1.StorageJob,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StorageJob.displayName="proto.powergate.user.v1.StorageJob"),proto.powergate.user.v1.DealError=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.DealError,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.DealError.displayName="proto.powergate.user.v1.DealError"),proto.powergate.user.v1.LogEntry=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.LogEntry,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.LogEntry.displayName="proto.powergate.user.v1.LogEntry"),proto.powergate.user.v1.DealRecordsConfig=function(e){googleProtobuf.Message.initialize(this,e,0,-1,proto.powergate.user.v1.DealRecordsConfig.repeatedFields_,null)},o.inherits(proto.powergate.user.v1.DealRecordsConfig,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.DealRecordsConfig.displayName="proto.powergate.user.v1.DealRecordsConfig"),proto.powergate.user.v1.StorageDealInfo=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.StorageDealInfo,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StorageDealInfo.displayName="proto.powergate.user.v1.StorageDealInfo"),proto.powergate.user.v1.StorageDealRecord=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.StorageDealRecord,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.StorageDealRecord.displayName="proto.powergate.user.v1.StorageDealRecord"),proto.powergate.user.v1.RetrievalDealInfo=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.RetrievalDealInfo,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.RetrievalDealInfo.displayName="proto.powergate.user.v1.RetrievalDealInfo"),proto.powergate.user.v1.RetrievalDealRecord=function(e){googleProtobuf.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.powergate.user.v1.RetrievalDealRecord,googleProtobuf.Message),o.DEBUG&&!COMPILED&&(proto.powergate.user.v1.RetrievalDealRecord.displayName="proto.powergate.user.v1.RetrievalDealRecord"),googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.BuildInfoRequest.prototype.toObject=function(e){return proto.powergate.user.v1.BuildInfoRequest.toObject(e,this)},proto.powergate.user.v1.BuildInfoRequest.toObject=function(e,t){var o={};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.BuildInfoRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.BuildInfoRequest;return proto.powergate.user.v1.BuildInfoRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.BuildInfoRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.powergate.user.v1.BuildInfoRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.BuildInfoRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.BuildInfoRequest.serializeBinaryToWriter=function(e,t){},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.BuildInfoResponse.prototype.toObject=function(e){return proto.powergate.user.v1.BuildInfoResponse.toObject(e,this)},proto.powergate.user.v1.BuildInfoResponse.toObject=function(e,t){var o={gitCommit:googleProtobuf.Message.getFieldWithDefault(t,1,""),gitBranch:googleProtobuf.Message.getFieldWithDefault(t,2,""),gitState:googleProtobuf.Message.getFieldWithDefault(t,3,""),gitSummary:googleProtobuf.Message.getFieldWithDefault(t,4,""),buildDate:googleProtobuf.Message.getFieldWithDefault(t,5,""),version:googleProtobuf.Message.getFieldWithDefault(t,6,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.BuildInfoResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.BuildInfoResponse;return proto.powergate.user.v1.BuildInfoResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.BuildInfoResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setGitCommit(o);break;case 2:o=t.readString();e.setGitBranch(o);break;case 3:o=t.readString();e.setGitState(o);break;case 4:o=t.readString();e.setGitSummary(o);break;case 5:o=t.readString();e.setBuildDate(o);break;case 6:o=t.readString();e.setVersion(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.BuildInfoResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.BuildInfoResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.BuildInfoResponse.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getGitCommit()).length>0&&t.writeString(1,o),(o=e.getGitBranch()).length>0&&t.writeString(2,o),(o=e.getGitState()).length>0&&t.writeString(3,o),(o=e.getGitSummary()).length>0&&t.writeString(4,o),(o=e.getBuildDate()).length>0&&t.writeString(5,o),(o=e.getVersion()).length>0&&t.writeString(6,o)},proto.powergate.user.v1.BuildInfoResponse.prototype.getGitCommit=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.BuildInfoResponse.prototype.setGitCommit=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.BuildInfoResponse.prototype.getGitBranch=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,"")},proto.powergate.user.v1.BuildInfoResponse.prototype.setGitBranch=function(e){return googleProtobuf.Message.setProto3StringField(this,2,e)},proto.powergate.user.v1.BuildInfoResponse.prototype.getGitState=function(){return googleProtobuf.Message.getFieldWithDefault(this,3,"")},proto.powergate.user.v1.BuildInfoResponse.prototype.setGitState=function(e){return googleProtobuf.Message.setProto3StringField(this,3,e)},proto.powergate.user.v1.BuildInfoResponse.prototype.getGitSummary=function(){return googleProtobuf.Message.getFieldWithDefault(this,4,"")},proto.powergate.user.v1.BuildInfoResponse.prototype.setGitSummary=function(e){return googleProtobuf.Message.setProto3StringField(this,4,e)},proto.powergate.user.v1.BuildInfoResponse.prototype.getBuildDate=function(){return googleProtobuf.Message.getFieldWithDefault(this,5,"")},proto.powergate.user.v1.BuildInfoResponse.prototype.setBuildDate=function(e){return googleProtobuf.Message.setProto3StringField(this,5,e)},proto.powergate.user.v1.BuildInfoResponse.prototype.getVersion=function(){return googleProtobuf.Message.getFieldWithDefault(this,6,"")},proto.powergate.user.v1.BuildInfoResponse.prototype.setVersion=function(e){return googleProtobuf.Message.setProto3StringField(this,6,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.UserIdentifierRequest.prototype.toObject=function(e){return proto.powergate.user.v1.UserIdentifierRequest.toObject(e,this)},proto.powergate.user.v1.UserIdentifierRequest.toObject=function(e,t){var o={};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.UserIdentifierRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.UserIdentifierRequest;return proto.powergate.user.v1.UserIdentifierRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.UserIdentifierRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.powergate.user.v1.UserIdentifierRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.UserIdentifierRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.UserIdentifierRequest.serializeBinaryToWriter=function(e,t){},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.UserIdentifierResponse.prototype.toObject=function(e){return proto.powergate.user.v1.UserIdentifierResponse.toObject(e,this)},proto.powergate.user.v1.UserIdentifierResponse.toObject=function(e,t){var o={id:googleProtobuf.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.UserIdentifierResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.UserIdentifierResponse;return proto.powergate.user.v1.UserIdentifierResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.UserIdentifierResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setId(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.UserIdentifierResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.UserIdentifierResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.UserIdentifierResponse.serializeBinaryToWriter=function(e,t){var o;(o=e.getId()).length>0&&t.writeString(1,o)},proto.powergate.user.v1.UserIdentifierResponse.prototype.getId=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.UserIdentifierResponse.prototype.setId=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.DefaultStorageConfigRequest.prototype.toObject=function(e){return proto.powergate.user.v1.DefaultStorageConfigRequest.toObject(e,this)},proto.powergate.user.v1.DefaultStorageConfigRequest.toObject=function(e,t){var o={};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.DefaultStorageConfigRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.DefaultStorageConfigRequest;return proto.powergate.user.v1.DefaultStorageConfigRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.DefaultStorageConfigRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.powergate.user.v1.DefaultStorageConfigRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.DefaultStorageConfigRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.DefaultStorageConfigRequest.serializeBinaryToWriter=function(e,t){},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.DefaultStorageConfigResponse.prototype.toObject=function(e){return proto.powergate.user.v1.DefaultStorageConfigResponse.toObject(e,this)},proto.powergate.user.v1.DefaultStorageConfigResponse.toObject=function(e,t){var o,r={defaultStorageConfig:(o=t.getDefaultStorageConfig())&&proto.powergate.user.v1.StorageConfig.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.DefaultStorageConfigResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.DefaultStorageConfigResponse;return proto.powergate.user.v1.DefaultStorageConfigResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.DefaultStorageConfigResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.powergate.user.v1.StorageConfig;t.readMessage(o,proto.powergate.user.v1.StorageConfig.deserializeBinaryFromReader),e.setDefaultStorageConfig(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.DefaultStorageConfigResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.DefaultStorageConfigResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.DefaultStorageConfigResponse.serializeBinaryToWriter=function(e,t){var o;null!=(o=e.getDefaultStorageConfig())&&t.writeMessage(1,o,proto.powergate.user.v1.StorageConfig.serializeBinaryToWriter)},proto.powergate.user.v1.DefaultStorageConfigResponse.prototype.getDefaultStorageConfig=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.StorageConfig,1)},proto.powergate.user.v1.DefaultStorageConfigResponse.prototype.setDefaultStorageConfig=function(e){return googleProtobuf.Message.setWrapperField(this,1,e)},proto.powergate.user.v1.DefaultStorageConfigResponse.prototype.clearDefaultStorageConfig=function(){return this.setDefaultStorageConfig(void 0)},proto.powergate.user.v1.DefaultStorageConfigResponse.prototype.hasDefaultStorageConfig=function(){return null!=googleProtobuf.Message.getField(this,1)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.SetDefaultStorageConfigRequest.prototype.toObject=function(e){return proto.powergate.user.v1.SetDefaultStorageConfigRequest.toObject(e,this)},proto.powergate.user.v1.SetDefaultStorageConfigRequest.toObject=function(e,t){var o,r={config:(o=t.getConfig())&&proto.powergate.user.v1.StorageConfig.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.SetDefaultStorageConfigRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.SetDefaultStorageConfigRequest;return proto.powergate.user.v1.SetDefaultStorageConfigRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.SetDefaultStorageConfigRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.powergate.user.v1.StorageConfig;t.readMessage(o,proto.powergate.user.v1.StorageConfig.deserializeBinaryFromReader),e.setConfig(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.SetDefaultStorageConfigRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.SetDefaultStorageConfigRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.SetDefaultStorageConfigRequest.serializeBinaryToWriter=function(e,t){var o;null!=(o=e.getConfig())&&t.writeMessage(1,o,proto.powergate.user.v1.StorageConfig.serializeBinaryToWriter)},proto.powergate.user.v1.SetDefaultStorageConfigRequest.prototype.getConfig=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.StorageConfig,1)},proto.powergate.user.v1.SetDefaultStorageConfigRequest.prototype.setConfig=function(e){return googleProtobuf.Message.setWrapperField(this,1,e)},proto.powergate.user.v1.SetDefaultStorageConfigRequest.prototype.clearConfig=function(){return this.setConfig(void 0)},proto.powergate.user.v1.SetDefaultStorageConfigRequest.prototype.hasConfig=function(){return null!=googleProtobuf.Message.getField(this,1)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.SetDefaultStorageConfigResponse.prototype.toObject=function(e){return proto.powergate.user.v1.SetDefaultStorageConfigResponse.toObject(e,this)},proto.powergate.user.v1.SetDefaultStorageConfigResponse.toObject=function(e,t){var o={};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.SetDefaultStorageConfigResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.SetDefaultStorageConfigResponse;return proto.powergate.user.v1.SetDefaultStorageConfigResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.SetDefaultStorageConfigResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.powergate.user.v1.SetDefaultStorageConfigResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.SetDefaultStorageConfigResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.SetDefaultStorageConfigResponse.serializeBinaryToWriter=function(e,t){},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StageRequest.prototype.toObject=function(e){return proto.powergate.user.v1.StageRequest.toObject(e,this)},proto.powergate.user.v1.StageRequest.toObject=function(e,t){var o={chunk:t.getChunk_asB64()};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.StageRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StageRequest;return proto.powergate.user.v1.StageRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StageRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readBytes();e.setChunk(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.StageRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StageRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StageRequest.serializeBinaryToWriter=function(e,t){var o;(o=e.getChunk_asU8()).length>0&&t.writeBytes(1,o)},proto.powergate.user.v1.StageRequest.prototype.getChunk=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.StageRequest.prototype.getChunk_asB64=function(){return googleProtobuf.Message.bytesAsB64(this.getChunk())},proto.powergate.user.v1.StageRequest.prototype.getChunk_asU8=function(){return googleProtobuf.Message.bytesAsU8(this.getChunk())},proto.powergate.user.v1.StageRequest.prototype.setChunk=function(e){return googleProtobuf.Message.setProto3BytesField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StageResponse.prototype.toObject=function(e){return proto.powergate.user.v1.StageResponse.toObject(e,this)},proto.powergate.user.v1.StageResponse.toObject=function(e,t){var o={cid:googleProtobuf.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.StageResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StageResponse;return proto.powergate.user.v1.StageResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StageResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setCid(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.StageResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StageResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StageResponse.serializeBinaryToWriter=function(e,t){var o;(o=e.getCid()).length>0&&t.writeString(1,o)},proto.powergate.user.v1.StageResponse.prototype.getCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.StageResponse.prototype.setCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StageCidRequest.prototype.toObject=function(e){return proto.powergate.user.v1.StageCidRequest.toObject(e,this)},proto.powergate.user.v1.StageCidRequest.toObject=function(e,t){var o={cid:googleProtobuf.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.StageCidRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StageCidRequest;return proto.powergate.user.v1.StageCidRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StageCidRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setCid(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.StageCidRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StageCidRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StageCidRequest.serializeBinaryToWriter=function(e,t){var o;(o=e.getCid()).length>0&&t.writeString(1,o)},proto.powergate.user.v1.StageCidRequest.prototype.getCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.StageCidRequest.prototype.setCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StageCidResponse.prototype.toObject=function(e){return proto.powergate.user.v1.StageCidResponse.toObject(e,this)},proto.powergate.user.v1.StageCidResponse.toObject=function(e,t){var o={};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.StageCidResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StageCidResponse;return proto.powergate.user.v1.StageCidResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StageCidResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.powergate.user.v1.StageCidResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StageCidResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StageCidResponse.serializeBinaryToWriter=function(e,t){},proto.powergate.user.v1.ApplyStorageConfigRequest.repeatedFields_=[6],googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.toObject=function(e){return proto.powergate.user.v1.ApplyStorageConfigRequest.toObject(e,this)},proto.powergate.user.v1.ApplyStorageConfigRequest.toObject=function(e,t){var o,r={cid:googleProtobuf.Message.getFieldWithDefault(t,1,""),config:(o=t.getConfig())&&proto.powergate.user.v1.StorageConfig.toObject(e,o),hasConfig:googleProtobuf.Message.getBooleanFieldWithDefault(t,3,!1),overrideConfig:googleProtobuf.Message.getBooleanFieldWithDefault(t,4,!1),hasOverrideConfig:googleProtobuf.Message.getBooleanFieldWithDefault(t,5,!1),importDealIdsList:null==(o=googleProtobuf.Message.getRepeatedField(t,6))?void 0:o,noExec:googleProtobuf.Message.getBooleanFieldWithDefault(t,7,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.ApplyStorageConfigRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.ApplyStorageConfigRequest;return proto.powergate.user.v1.ApplyStorageConfigRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.ApplyStorageConfigRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setCid(o);break;case 2:o=new proto.powergate.user.v1.StorageConfig;t.readMessage(o,proto.powergate.user.v1.StorageConfig.deserializeBinaryFromReader),e.setConfig(o);break;case 3:o=t.readBool();e.setHasConfig(o);break;case 4:o=t.readBool();e.setOverrideConfig(o);break;case 5:o=t.readBool();e.setHasOverrideConfig(o);break;case 6:o=t.readPackedUint64();e.setImportDealIdsList(o);break;case 7:o=t.readBool();e.setNoExec(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.ApplyStorageConfigRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.ApplyStorageConfigRequest.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getCid()).length>0&&t.writeString(1,o),null!=(o=e.getConfig())&&t.writeMessage(2,o,proto.powergate.user.v1.StorageConfig.serializeBinaryToWriter),(o=e.getHasConfig())&&t.writeBool(3,o),(o=e.getOverrideConfig())&&t.writeBool(4,o),(o=e.getHasOverrideConfig())&&t.writeBool(5,o),(o=e.getImportDealIdsList()).length>0&&t.writePackedUint64(6,o),(o=e.getNoExec())&&t.writeBool(7,o)},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.getCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.setCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.getConfig=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.StorageConfig,2)},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.setConfig=function(e){return googleProtobuf.Message.setWrapperField(this,2,e)},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.clearConfig=function(){return this.setConfig(void 0)},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.hasConfig=function(){return null!=googleProtobuf.Message.getField(this,2)},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.getHasConfig=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,3,!1)},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.setHasConfig=function(e){return googleProtobuf.Message.setProto3BooleanField(this,3,e)},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.getOverrideConfig=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,4,!1)},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.setOverrideConfig=function(e){return googleProtobuf.Message.setProto3BooleanField(this,4,e)},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.getHasOverrideConfig=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,5,!1)},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.setHasOverrideConfig=function(e){return googleProtobuf.Message.setProto3BooleanField(this,5,e)},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.getImportDealIdsList=function(){return googleProtobuf.Message.getRepeatedField(this,6)},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.setImportDealIdsList=function(e){return googleProtobuf.Message.setField(this,6,e||[])},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.addImportDealIds=function(e,t){return googleProtobuf.Message.addToRepeatedField(this,6,e,t)},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.clearImportDealIdsList=function(){return this.setImportDealIdsList([])},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.getNoExec=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,7,!1)},proto.powergate.user.v1.ApplyStorageConfigRequest.prototype.setNoExec=function(e){return googleProtobuf.Message.setProto3BooleanField(this,7,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.ApplyStorageConfigResponse.prototype.toObject=function(e){return proto.powergate.user.v1.ApplyStorageConfigResponse.toObject(e,this)},proto.powergate.user.v1.ApplyStorageConfigResponse.toObject=function(e,t){var o={jobId:googleProtobuf.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.ApplyStorageConfigResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.ApplyStorageConfigResponse;return proto.powergate.user.v1.ApplyStorageConfigResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.ApplyStorageConfigResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setJobId(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.ApplyStorageConfigResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.ApplyStorageConfigResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.ApplyStorageConfigResponse.serializeBinaryToWriter=function(e,t){var o;(o=e.getJobId()).length>0&&t.writeString(1,o)},proto.powergate.user.v1.ApplyStorageConfigResponse.prototype.getJobId=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.ApplyStorageConfigResponse.prototype.setJobId=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.ReplaceDataRequest.prototype.toObject=function(e){return proto.powergate.user.v1.ReplaceDataRequest.toObject(e,this)},proto.powergate.user.v1.ReplaceDataRequest.toObject=function(e,t){var o={cid1:googleProtobuf.Message.getFieldWithDefault(t,1,""),cid2:googleProtobuf.Message.getFieldWithDefault(t,2,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.ReplaceDataRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.ReplaceDataRequest;return proto.powergate.user.v1.ReplaceDataRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.ReplaceDataRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setCid1(o);break;case 2:o=t.readString();e.setCid2(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.ReplaceDataRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.ReplaceDataRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.ReplaceDataRequest.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getCid1()).length>0&&t.writeString(1,o),(o=e.getCid2()).length>0&&t.writeString(2,o)},proto.powergate.user.v1.ReplaceDataRequest.prototype.getCid1=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.ReplaceDataRequest.prototype.setCid1=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.ReplaceDataRequest.prototype.getCid2=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,"")},proto.powergate.user.v1.ReplaceDataRequest.prototype.setCid2=function(e){return googleProtobuf.Message.setProto3StringField(this,2,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.ReplaceDataResponse.prototype.toObject=function(e){return proto.powergate.user.v1.ReplaceDataResponse.toObject(e,this)},proto.powergate.user.v1.ReplaceDataResponse.toObject=function(e,t){var o={jobId:googleProtobuf.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.ReplaceDataResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.ReplaceDataResponse;return proto.powergate.user.v1.ReplaceDataResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.ReplaceDataResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setJobId(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.ReplaceDataResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.ReplaceDataResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.ReplaceDataResponse.serializeBinaryToWriter=function(e,t){var o;(o=e.getJobId()).length>0&&t.writeString(1,o)},proto.powergate.user.v1.ReplaceDataResponse.prototype.getJobId=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.ReplaceDataResponse.prototype.setJobId=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.GetRequest.prototype.toObject=function(e){return proto.powergate.user.v1.GetRequest.toObject(e,this)},proto.powergate.user.v1.GetRequest.toObject=function(e,t){var o={cid:googleProtobuf.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.GetRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.GetRequest;return proto.powergate.user.v1.GetRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.GetRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setCid(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.GetRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.GetRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.GetRequest.serializeBinaryToWriter=function(e,t){var o;(o=e.getCid()).length>0&&t.writeString(1,o)},proto.powergate.user.v1.GetRequest.prototype.getCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.GetRequest.prototype.setCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.GetResponse.prototype.toObject=function(e){return proto.powergate.user.v1.GetResponse.toObject(e,this)},proto.powergate.user.v1.GetResponse.toObject=function(e,t){var o={chunk:t.getChunk_asB64()};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.GetResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.GetResponse;return proto.powergate.user.v1.GetResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.GetResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readBytes();e.setChunk(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.GetResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.GetResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.GetResponse.serializeBinaryToWriter=function(e,t){var o;(o=e.getChunk_asU8()).length>0&&t.writeBytes(1,o)},proto.powergate.user.v1.GetResponse.prototype.getChunk=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.GetResponse.prototype.getChunk_asB64=function(){return googleProtobuf.Message.bytesAsB64(this.getChunk())},proto.powergate.user.v1.GetResponse.prototype.getChunk_asU8=function(){return googleProtobuf.Message.bytesAsU8(this.getChunk())},proto.powergate.user.v1.GetResponse.prototype.setChunk=function(e){return googleProtobuf.Message.setProto3BytesField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.RemoveRequest.prototype.toObject=function(e){return proto.powergate.user.v1.RemoveRequest.toObject(e,this)},proto.powergate.user.v1.RemoveRequest.toObject=function(e,t){var o={cid:googleProtobuf.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.RemoveRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.RemoveRequest;return proto.powergate.user.v1.RemoveRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.RemoveRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setCid(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.RemoveRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.RemoveRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.RemoveRequest.serializeBinaryToWriter=function(e,t){var o;(o=e.getCid()).length>0&&t.writeString(1,o)},proto.powergate.user.v1.RemoveRequest.prototype.getCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.RemoveRequest.prototype.setCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.RemoveResponse.prototype.toObject=function(e){return proto.powergate.user.v1.RemoveResponse.toObject(e,this)},proto.powergate.user.v1.RemoveResponse.toObject=function(e,t){var o={};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.RemoveResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.RemoveResponse;return proto.powergate.user.v1.RemoveResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.RemoveResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.powergate.user.v1.RemoveResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.RemoveResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.RemoveResponse.serializeBinaryToWriter=function(e,t){},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.WatchLogsRequest.prototype.toObject=function(e){return proto.powergate.user.v1.WatchLogsRequest.toObject(e,this)},proto.powergate.user.v1.WatchLogsRequest.toObject=function(e,t){var o={cid:googleProtobuf.Message.getFieldWithDefault(t,1,""),jobId:googleProtobuf.Message.getFieldWithDefault(t,2,""),history:googleProtobuf.Message.getBooleanFieldWithDefault(t,3,!1)};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.WatchLogsRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.WatchLogsRequest;return proto.powergate.user.v1.WatchLogsRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.WatchLogsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setCid(o);break;case 2:o=t.readString();e.setJobId(o);break;case 3:o=t.readBool();e.setHistory(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.WatchLogsRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.WatchLogsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.WatchLogsRequest.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getCid()).length>0&&t.writeString(1,o),(o=e.getJobId()).length>0&&t.writeString(2,o),(o=e.getHistory())&&t.writeBool(3,o)},proto.powergate.user.v1.WatchLogsRequest.prototype.getCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.WatchLogsRequest.prototype.setCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.WatchLogsRequest.prototype.getJobId=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,"")},proto.powergate.user.v1.WatchLogsRequest.prototype.setJobId=function(e){return googleProtobuf.Message.setProto3StringField(this,2,e)},proto.powergate.user.v1.WatchLogsRequest.prototype.getHistory=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,3,!1)},proto.powergate.user.v1.WatchLogsRequest.prototype.setHistory=function(e){return googleProtobuf.Message.setProto3BooleanField(this,3,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.WatchLogsResponse.prototype.toObject=function(e){return proto.powergate.user.v1.WatchLogsResponse.toObject(e,this)},proto.powergate.user.v1.WatchLogsResponse.toObject=function(e,t){var o,r={logEntry:(o=t.getLogEntry())&&proto.powergate.user.v1.LogEntry.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.WatchLogsResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.WatchLogsResponse;return proto.powergate.user.v1.WatchLogsResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.WatchLogsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.powergate.user.v1.LogEntry;t.readMessage(o,proto.powergate.user.v1.LogEntry.deserializeBinaryFromReader),e.setLogEntry(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.WatchLogsResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.WatchLogsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.WatchLogsResponse.serializeBinaryToWriter=function(e,t){var o;null!=(o=e.getLogEntry())&&t.writeMessage(1,o,proto.powergate.user.v1.LogEntry.serializeBinaryToWriter)},proto.powergate.user.v1.WatchLogsResponse.prototype.getLogEntry=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.LogEntry,1)},proto.powergate.user.v1.WatchLogsResponse.prototype.setLogEntry=function(e){return googleProtobuf.Message.setWrapperField(this,1,e)},proto.powergate.user.v1.WatchLogsResponse.prototype.clearLogEntry=function(){return this.setLogEntry(void 0)},proto.powergate.user.v1.WatchLogsResponse.prototype.hasLogEntry=function(){return null!=googleProtobuf.Message.getField(this,1)},proto.powergate.user.v1.CidSummaryRequest.repeatedFields_=[1],googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.CidSummaryRequest.prototype.toObject=function(e){return proto.powergate.user.v1.CidSummaryRequest.toObject(e,this)},proto.powergate.user.v1.CidSummaryRequest.toObject=function(e,t){var o,r={cidsList:null==(o=googleProtobuf.Message.getRepeatedField(t,1))?void 0:o};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.CidSummaryRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.CidSummaryRequest;return proto.powergate.user.v1.CidSummaryRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.CidSummaryRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.addCids(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.CidSummaryRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.CidSummaryRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.CidSummaryRequest.serializeBinaryToWriter=function(e,t){var o;(o=e.getCidsList()).length>0&&t.writeRepeatedString(1,o)},proto.powergate.user.v1.CidSummaryRequest.prototype.getCidsList=function(){return googleProtobuf.Message.getRepeatedField(this,1)},proto.powergate.user.v1.CidSummaryRequest.prototype.setCidsList=function(e){return googleProtobuf.Message.setField(this,1,e||[])},proto.powergate.user.v1.CidSummaryRequest.prototype.addCids=function(e,t){return googleProtobuf.Message.addToRepeatedField(this,1,e,t)},proto.powergate.user.v1.CidSummaryRequest.prototype.clearCidsList=function(){return this.setCidsList([])},proto.powergate.user.v1.CidSummaryResponse.repeatedFields_=[1],googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.CidSummaryResponse.prototype.toObject=function(e){return proto.powergate.user.v1.CidSummaryResponse.toObject(e,this)},proto.powergate.user.v1.CidSummaryResponse.toObject=function(e,t){var o={cidSummaryList:googleProtobuf.Message.toObjectList(t.getCidSummaryList(),proto.powergate.user.v1.CidSummary.toObject,e)};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.CidSummaryResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.CidSummaryResponse;return proto.powergate.user.v1.CidSummaryResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.CidSummaryResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.powergate.user.v1.CidSummary;t.readMessage(o,proto.powergate.user.v1.CidSummary.deserializeBinaryFromReader),e.addCidSummary(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.CidSummaryResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.CidSummaryResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.CidSummaryResponse.serializeBinaryToWriter=function(e,t){var o;(o=e.getCidSummaryList()).length>0&&t.writeRepeatedMessage(1,o,proto.powergate.user.v1.CidSummary.serializeBinaryToWriter)},proto.powergate.user.v1.CidSummaryResponse.prototype.getCidSummaryList=function(){return googleProtobuf.Message.getRepeatedWrapperField(this,proto.powergate.user.v1.CidSummary,1)},proto.powergate.user.v1.CidSummaryResponse.prototype.setCidSummaryList=function(e){return googleProtobuf.Message.setRepeatedWrapperField(this,1,e)},proto.powergate.user.v1.CidSummaryResponse.prototype.addCidSummary=function(e,t){return googleProtobuf.Message.addToRepeatedWrapperField(this,1,e,proto.powergate.user.v1.CidSummary,t)},proto.powergate.user.v1.CidSummaryResponse.prototype.clearCidSummaryList=function(){return this.setCidSummaryList([])},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.CidInfoRequest.prototype.toObject=function(e){return proto.powergate.user.v1.CidInfoRequest.toObject(e,this)},proto.powergate.user.v1.CidInfoRequest.toObject=function(e,t){var o={cid:googleProtobuf.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.CidInfoRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.CidInfoRequest;return proto.powergate.user.v1.CidInfoRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.CidInfoRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setCid(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.CidInfoRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.CidInfoRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.CidInfoRequest.serializeBinaryToWriter=function(e,t){var o;(o=e.getCid()).length>0&&t.writeString(1,o)},proto.powergate.user.v1.CidInfoRequest.prototype.getCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.CidInfoRequest.prototype.setCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.CidInfoResponse.prototype.toObject=function(e){return proto.powergate.user.v1.CidInfoResponse.toObject(e,this)},proto.powergate.user.v1.CidInfoResponse.toObject=function(e,t){var o,r={cidInfo:(o=t.getCidInfo())&&proto.powergate.user.v1.CidInfo.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.CidInfoResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.CidInfoResponse;return proto.powergate.user.v1.CidInfoResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.CidInfoResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.powergate.user.v1.CidInfo;t.readMessage(o,proto.powergate.user.v1.CidInfo.deserializeBinaryFromReader),e.setCidInfo(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.CidInfoResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.CidInfoResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.CidInfoResponse.serializeBinaryToWriter=function(e,t){var o;null!=(o=e.getCidInfo())&&t.writeMessage(1,o,proto.powergate.user.v1.CidInfo.serializeBinaryToWriter)},proto.powergate.user.v1.CidInfoResponse.prototype.getCidInfo=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.CidInfo,1)},proto.powergate.user.v1.CidInfoResponse.prototype.setCidInfo=function(e){return googleProtobuf.Message.setWrapperField(this,1,e)},proto.powergate.user.v1.CidInfoResponse.prototype.clearCidInfo=function(){return this.setCidInfo(void 0)},proto.powergate.user.v1.CidInfoResponse.prototype.hasCidInfo=function(){return null!=googleProtobuf.Message.getField(this,1)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.BalanceRequest.prototype.toObject=function(e){return proto.powergate.user.v1.BalanceRequest.toObject(e,this)},proto.powergate.user.v1.BalanceRequest.toObject=function(e,t){var o={address:googleProtobuf.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.BalanceRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.BalanceRequest;return proto.powergate.user.v1.BalanceRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.BalanceRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setAddress(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.BalanceRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.BalanceRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.BalanceRequest.serializeBinaryToWriter=function(e,t){var o;(o=e.getAddress()).length>0&&t.writeString(1,o)},proto.powergate.user.v1.BalanceRequest.prototype.getAddress=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.BalanceRequest.prototype.setAddress=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.BalanceResponse.prototype.toObject=function(e){return proto.powergate.user.v1.BalanceResponse.toObject(e,this)},proto.powergate.user.v1.BalanceResponse.toObject=function(e,t){var o={balance:googleProtobuf.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.BalanceResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.BalanceResponse;return proto.powergate.user.v1.BalanceResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.BalanceResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setBalance(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.BalanceResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.BalanceResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.BalanceResponse.serializeBinaryToWriter=function(e,t){var o;(o=e.getBalance()).length>0&&t.writeString(1,o)},proto.powergate.user.v1.BalanceResponse.prototype.getBalance=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.BalanceResponse.prototype.setBalance=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.NewAddressRequest.prototype.toObject=function(e){return proto.powergate.user.v1.NewAddressRequest.toObject(e,this)},proto.powergate.user.v1.NewAddressRequest.toObject=function(e,t){var o={name:googleProtobuf.Message.getFieldWithDefault(t,1,""),addressType:googleProtobuf.Message.getFieldWithDefault(t,2,""),makeDefault:googleProtobuf.Message.getBooleanFieldWithDefault(t,3,!1)};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.NewAddressRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.NewAddressRequest;return proto.powergate.user.v1.NewAddressRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.NewAddressRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setName(o);break;case 2:o=t.readString();e.setAddressType(o);break;case 3:o=t.readBool();e.setMakeDefault(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.NewAddressRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.NewAddressRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.NewAddressRequest.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getName()).length>0&&t.writeString(1,o),(o=e.getAddressType()).length>0&&t.writeString(2,o),(o=e.getMakeDefault())&&t.writeBool(3,o)},proto.powergate.user.v1.NewAddressRequest.prototype.getName=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.NewAddressRequest.prototype.setName=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.NewAddressRequest.prototype.getAddressType=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,"")},proto.powergate.user.v1.NewAddressRequest.prototype.setAddressType=function(e){return googleProtobuf.Message.setProto3StringField(this,2,e)},proto.powergate.user.v1.NewAddressRequest.prototype.getMakeDefault=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,3,!1)},proto.powergate.user.v1.NewAddressRequest.prototype.setMakeDefault=function(e){return googleProtobuf.Message.setProto3BooleanField(this,3,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.NewAddressResponse.prototype.toObject=function(e){return proto.powergate.user.v1.NewAddressResponse.toObject(e,this)},proto.powergate.user.v1.NewAddressResponse.toObject=function(e,t){var o={address:googleProtobuf.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.NewAddressResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.NewAddressResponse;return proto.powergate.user.v1.NewAddressResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.NewAddressResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setAddress(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.NewAddressResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.NewAddressResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.NewAddressResponse.serializeBinaryToWriter=function(e,t){var o;(o=e.getAddress()).length>0&&t.writeString(1,o)},proto.powergate.user.v1.NewAddressResponse.prototype.getAddress=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.NewAddressResponse.prototype.setAddress=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.AddressesRequest.prototype.toObject=function(e){return proto.powergate.user.v1.AddressesRequest.toObject(e,this)},proto.powergate.user.v1.AddressesRequest.toObject=function(e,t){var o={};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.AddressesRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.AddressesRequest;return proto.powergate.user.v1.AddressesRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.AddressesRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.powergate.user.v1.AddressesRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.AddressesRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.AddressesRequest.serializeBinaryToWriter=function(e,t){},proto.powergate.user.v1.AddressesResponse.repeatedFields_=[1],googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.AddressesResponse.prototype.toObject=function(e){return proto.powergate.user.v1.AddressesResponse.toObject(e,this)},proto.powergate.user.v1.AddressesResponse.toObject=function(e,t){var o={addressesList:googleProtobuf.Message.toObjectList(t.getAddressesList(),proto.powergate.user.v1.AddrInfo.toObject,e)};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.AddressesResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.AddressesResponse;return proto.powergate.user.v1.AddressesResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.AddressesResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.powergate.user.v1.AddrInfo;t.readMessage(o,proto.powergate.user.v1.AddrInfo.deserializeBinaryFromReader),e.addAddresses(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.AddressesResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.AddressesResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.AddressesResponse.serializeBinaryToWriter=function(e,t){var o;(o=e.getAddressesList()).length>0&&t.writeRepeatedMessage(1,o,proto.powergate.user.v1.AddrInfo.serializeBinaryToWriter)},proto.powergate.user.v1.AddressesResponse.prototype.getAddressesList=function(){return googleProtobuf.Message.getRepeatedWrapperField(this,proto.powergate.user.v1.AddrInfo,1)},proto.powergate.user.v1.AddressesResponse.prototype.setAddressesList=function(e){return googleProtobuf.Message.setRepeatedWrapperField(this,1,e)},proto.powergate.user.v1.AddressesResponse.prototype.addAddresses=function(e,t){return googleProtobuf.Message.addToRepeatedWrapperField(this,1,e,proto.powergate.user.v1.AddrInfo,t)},proto.powergate.user.v1.AddressesResponse.prototype.clearAddressesList=function(){return this.setAddressesList([])},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.SendFilRequest.prototype.toObject=function(e){return proto.powergate.user.v1.SendFilRequest.toObject(e,this)},proto.powergate.user.v1.SendFilRequest.toObject=function(e,t){var o={from:googleProtobuf.Message.getFieldWithDefault(t,1,""),to:googleProtobuf.Message.getFieldWithDefault(t,2,""),amount:googleProtobuf.Message.getFieldWithDefault(t,3,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.SendFilRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.SendFilRequest;return proto.powergate.user.v1.SendFilRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.SendFilRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setFrom(o);break;case 2:o=t.readString();e.setTo(o);break;case 3:o=t.readString();e.setAmount(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.SendFilRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.SendFilRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.SendFilRequest.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getFrom()).length>0&&t.writeString(1,o),(o=e.getTo()).length>0&&t.writeString(2,o),(o=e.getAmount()).length>0&&t.writeString(3,o)},proto.powergate.user.v1.SendFilRequest.prototype.getFrom=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.SendFilRequest.prototype.setFrom=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.SendFilRequest.prototype.getTo=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,"")},proto.powergate.user.v1.SendFilRequest.prototype.setTo=function(e){return googleProtobuf.Message.setProto3StringField(this,2,e)},proto.powergate.user.v1.SendFilRequest.prototype.getAmount=function(){return googleProtobuf.Message.getFieldWithDefault(this,3,"")},proto.powergate.user.v1.SendFilRequest.prototype.setAmount=function(e){return googleProtobuf.Message.setProto3StringField(this,3,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.SendFilResponse.prototype.toObject=function(e){return proto.powergate.user.v1.SendFilResponse.toObject(e,this)},proto.powergate.user.v1.SendFilResponse.toObject=function(e,t){var o={cid:googleProtobuf.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.SendFilResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.SendFilResponse;return proto.powergate.user.v1.SendFilResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.SendFilResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setCid(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.SendFilResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.SendFilResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.SendFilResponse.serializeBinaryToWriter=function(e,t){var o;(o=e.getCid()).length>0&&t.writeString(1,o)},proto.powergate.user.v1.SendFilResponse.prototype.getCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.SendFilResponse.prototype.setCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.SignMessageRequest.prototype.toObject=function(e){return proto.powergate.user.v1.SignMessageRequest.toObject(e,this)},proto.powergate.user.v1.SignMessageRequest.toObject=function(e,t){var o={address:googleProtobuf.Message.getFieldWithDefault(t,1,""),message:t.getMessage_asB64()};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.SignMessageRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.SignMessageRequest;return proto.powergate.user.v1.SignMessageRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.SignMessageRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setAddress(o);break;case 2:o=t.readBytes();e.setMessage(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.SignMessageRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.SignMessageRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.SignMessageRequest.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getAddress()).length>0&&t.writeString(1,o),(o=e.getMessage_asU8()).length>0&&t.writeBytes(2,o)},proto.powergate.user.v1.SignMessageRequest.prototype.getAddress=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.SignMessageRequest.prototype.setAddress=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.SignMessageRequest.prototype.getMessage=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,"")},proto.powergate.user.v1.SignMessageRequest.prototype.getMessage_asB64=function(){return googleProtobuf.Message.bytesAsB64(this.getMessage())},proto.powergate.user.v1.SignMessageRequest.prototype.getMessage_asU8=function(){return googleProtobuf.Message.bytesAsU8(this.getMessage())},proto.powergate.user.v1.SignMessageRequest.prototype.setMessage=function(e){return googleProtobuf.Message.setProto3BytesField(this,2,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.SignMessageResponse.prototype.toObject=function(e){return proto.powergate.user.v1.SignMessageResponse.toObject(e,this)},proto.powergate.user.v1.SignMessageResponse.toObject=function(e,t){var o={signature:t.getSignature_asB64()};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.SignMessageResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.SignMessageResponse;return proto.powergate.user.v1.SignMessageResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.SignMessageResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readBytes();e.setSignature(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.SignMessageResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.SignMessageResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.SignMessageResponse.serializeBinaryToWriter=function(e,t){var o;(o=e.getSignature_asU8()).length>0&&t.writeBytes(1,o)},proto.powergate.user.v1.SignMessageResponse.prototype.getSignature=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.SignMessageResponse.prototype.getSignature_asB64=function(){return googleProtobuf.Message.bytesAsB64(this.getSignature())},proto.powergate.user.v1.SignMessageResponse.prototype.getSignature_asU8=function(){return googleProtobuf.Message.bytesAsU8(this.getSignature())},proto.powergate.user.v1.SignMessageResponse.prototype.setSignature=function(e){return googleProtobuf.Message.setProto3BytesField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.VerifyMessageRequest.prototype.toObject=function(e){return proto.powergate.user.v1.VerifyMessageRequest.toObject(e,this)},proto.powergate.user.v1.VerifyMessageRequest.toObject=function(e,t){var o={address:googleProtobuf.Message.getFieldWithDefault(t,1,""),message:t.getMessage_asB64(),signature:t.getSignature_asB64()};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.VerifyMessageRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.VerifyMessageRequest;return proto.powergate.user.v1.VerifyMessageRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.VerifyMessageRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setAddress(o);break;case 2:o=t.readBytes();e.setMessage(o);break;case 3:o=t.readBytes();e.setSignature(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.VerifyMessageRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.VerifyMessageRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.VerifyMessageRequest.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getAddress()).length>0&&t.writeString(1,o),(o=e.getMessage_asU8()).length>0&&t.writeBytes(2,o),(o=e.getSignature_asU8()).length>0&&t.writeBytes(3,o)},proto.powergate.user.v1.VerifyMessageRequest.prototype.getAddress=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.VerifyMessageRequest.prototype.setAddress=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.VerifyMessageRequest.prototype.getMessage=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,"")},proto.powergate.user.v1.VerifyMessageRequest.prototype.getMessage_asB64=function(){return googleProtobuf.Message.bytesAsB64(this.getMessage())},proto.powergate.user.v1.VerifyMessageRequest.prototype.getMessage_asU8=function(){return googleProtobuf.Message.bytesAsU8(this.getMessage())},proto.powergate.user.v1.VerifyMessageRequest.prototype.setMessage=function(e){return googleProtobuf.Message.setProto3BytesField(this,2,e)},proto.powergate.user.v1.VerifyMessageRequest.prototype.getSignature=function(){return googleProtobuf.Message.getFieldWithDefault(this,3,"")},proto.powergate.user.v1.VerifyMessageRequest.prototype.getSignature_asB64=function(){return googleProtobuf.Message.bytesAsB64(this.getSignature())},proto.powergate.user.v1.VerifyMessageRequest.prototype.getSignature_asU8=function(){return googleProtobuf.Message.bytesAsU8(this.getSignature())},proto.powergate.user.v1.VerifyMessageRequest.prototype.setSignature=function(e){return googleProtobuf.Message.setProto3BytesField(this,3,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.VerifyMessageResponse.prototype.toObject=function(e){return proto.powergate.user.v1.VerifyMessageResponse.toObject(e,this)},proto.powergate.user.v1.VerifyMessageResponse.toObject=function(e,t){var o={ok:googleProtobuf.Message.getBooleanFieldWithDefault(t,1,!1)};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.VerifyMessageResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.VerifyMessageResponse;return proto.powergate.user.v1.VerifyMessageResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.VerifyMessageResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readBool();e.setOk(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.VerifyMessageResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.VerifyMessageResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.VerifyMessageResponse.serializeBinaryToWriter=function(e,t){var o;(o=e.getOk())&&t.writeBool(1,o)},proto.powergate.user.v1.VerifyMessageResponse.prototype.getOk=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,1,!1)},proto.powergate.user.v1.VerifyMessageResponse.prototype.setOk=function(e){return googleProtobuf.Message.setProto3BooleanField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StorageInfoRequest.prototype.toObject=function(e){return proto.powergate.user.v1.StorageInfoRequest.toObject(e,this)},proto.powergate.user.v1.StorageInfoRequest.toObject=function(e,t){var o={cid:googleProtobuf.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.StorageInfoRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StorageInfoRequest;return proto.powergate.user.v1.StorageInfoRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StorageInfoRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setCid(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.StorageInfoRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StorageInfoRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StorageInfoRequest.serializeBinaryToWriter=function(e,t){var o;(o=e.getCid()).length>0&&t.writeString(1,o)},proto.powergate.user.v1.StorageInfoRequest.prototype.getCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.StorageInfoRequest.prototype.setCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StorageInfoResponse.prototype.toObject=function(e){return proto.powergate.user.v1.StorageInfoResponse.toObject(e,this)},proto.powergate.user.v1.StorageInfoResponse.toObject=function(e,t){var o,r={storageInfo:(o=t.getStorageInfo())&&proto.powergate.user.v1.StorageInfo.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.StorageInfoResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StorageInfoResponse;return proto.powergate.user.v1.StorageInfoResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StorageInfoResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.powergate.user.v1.StorageInfo;t.readMessage(o,proto.powergate.user.v1.StorageInfo.deserializeBinaryFromReader),e.setStorageInfo(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.StorageInfoResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StorageInfoResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StorageInfoResponse.serializeBinaryToWriter=function(e,t){var o;null!=(o=e.getStorageInfo())&&t.writeMessage(1,o,proto.powergate.user.v1.StorageInfo.serializeBinaryToWriter)},proto.powergate.user.v1.StorageInfoResponse.prototype.getStorageInfo=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.StorageInfo,1)},proto.powergate.user.v1.StorageInfoResponse.prototype.setStorageInfo=function(e){return googleProtobuf.Message.setWrapperField(this,1,e)},proto.powergate.user.v1.StorageInfoResponse.prototype.clearStorageInfo=function(){return this.setStorageInfo(void 0)},proto.powergate.user.v1.StorageInfoResponse.prototype.hasStorageInfo=function(){return null!=googleProtobuf.Message.getField(this,1)},proto.powergate.user.v1.ListStorageInfoRequest.repeatedFields_=[1],googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.ListStorageInfoRequest.prototype.toObject=function(e){return proto.powergate.user.v1.ListStorageInfoRequest.toObject(e,this)},proto.powergate.user.v1.ListStorageInfoRequest.toObject=function(e,t){var o,r={cidsList:null==(o=googleProtobuf.Message.getRepeatedField(t,1))?void 0:o};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.ListStorageInfoRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.ListStorageInfoRequest;return proto.powergate.user.v1.ListStorageInfoRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.ListStorageInfoRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.addCids(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.ListStorageInfoRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.ListStorageInfoRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.ListStorageInfoRequest.serializeBinaryToWriter=function(e,t){var o;(o=e.getCidsList()).length>0&&t.writeRepeatedString(1,o)},proto.powergate.user.v1.ListStorageInfoRequest.prototype.getCidsList=function(){return googleProtobuf.Message.getRepeatedField(this,1)},proto.powergate.user.v1.ListStorageInfoRequest.prototype.setCidsList=function(e){return googleProtobuf.Message.setField(this,1,e||[])},proto.powergate.user.v1.ListStorageInfoRequest.prototype.addCids=function(e,t){return googleProtobuf.Message.addToRepeatedField(this,1,e,t)},proto.powergate.user.v1.ListStorageInfoRequest.prototype.clearCidsList=function(){return this.setCidsList([])},proto.powergate.user.v1.ListStorageInfoResponse.repeatedFields_=[1],googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.ListStorageInfoResponse.prototype.toObject=function(e){return proto.powergate.user.v1.ListStorageInfoResponse.toObject(e,this)},proto.powergate.user.v1.ListStorageInfoResponse.toObject=function(e,t){var o={storageInfoList:googleProtobuf.Message.toObjectList(t.getStorageInfoList(),proto.powergate.user.v1.StorageInfo.toObject,e)};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.ListStorageInfoResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.ListStorageInfoResponse;return proto.powergate.user.v1.ListStorageInfoResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.ListStorageInfoResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.powergate.user.v1.StorageInfo;t.readMessage(o,proto.powergate.user.v1.StorageInfo.deserializeBinaryFromReader),e.addStorageInfo(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.ListStorageInfoResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.ListStorageInfoResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.ListStorageInfoResponse.serializeBinaryToWriter=function(e,t){var o;(o=e.getStorageInfoList()).length>0&&t.writeRepeatedMessage(1,o,proto.powergate.user.v1.StorageInfo.serializeBinaryToWriter)},proto.powergate.user.v1.ListStorageInfoResponse.prototype.getStorageInfoList=function(){return googleProtobuf.Message.getRepeatedWrapperField(this,proto.powergate.user.v1.StorageInfo,1)},proto.powergate.user.v1.ListStorageInfoResponse.prototype.setStorageInfoList=function(e){return googleProtobuf.Message.setRepeatedWrapperField(this,1,e)},proto.powergate.user.v1.ListStorageInfoResponse.prototype.addStorageInfo=function(e,t){return googleProtobuf.Message.addToRepeatedWrapperField(this,1,e,proto.powergate.user.v1.StorageInfo,t)},proto.powergate.user.v1.ListStorageInfoResponse.prototype.clearStorageInfoList=function(){return this.setStorageInfoList([])},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.CancelStorageJobRequest.prototype.toObject=function(e){return proto.powergate.user.v1.CancelStorageJobRequest.toObject(e,this)},proto.powergate.user.v1.CancelStorageJobRequest.toObject=function(e,t){var o={jobId:googleProtobuf.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.CancelStorageJobRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.CancelStorageJobRequest;return proto.powergate.user.v1.CancelStorageJobRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.CancelStorageJobRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setJobId(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.CancelStorageJobRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.CancelStorageJobRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.CancelStorageJobRequest.serializeBinaryToWriter=function(e,t){var o;(o=e.getJobId()).length>0&&t.writeString(1,o)},proto.powergate.user.v1.CancelStorageJobRequest.prototype.getJobId=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.CancelStorageJobRequest.prototype.setJobId=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.CancelStorageJobResponse.prototype.toObject=function(e){return proto.powergate.user.v1.CancelStorageJobResponse.toObject(e,this)},proto.powergate.user.v1.CancelStorageJobResponse.toObject=function(e,t){var o={};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.CancelStorageJobResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.CancelStorageJobResponse;return proto.powergate.user.v1.CancelStorageJobResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.CancelStorageJobResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.powergate.user.v1.CancelStorageJobResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.CancelStorageJobResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.CancelStorageJobResponse.serializeBinaryToWriter=function(e,t){},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StorageJobRequest.prototype.toObject=function(e){return proto.powergate.user.v1.StorageJobRequest.toObject(e,this)},proto.powergate.user.v1.StorageJobRequest.toObject=function(e,t){var o={jobId:googleProtobuf.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.StorageJobRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StorageJobRequest;return proto.powergate.user.v1.StorageJobRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StorageJobRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setJobId(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.StorageJobRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StorageJobRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StorageJobRequest.serializeBinaryToWriter=function(e,t){var o;(o=e.getJobId()).length>0&&t.writeString(1,o)},proto.powergate.user.v1.StorageJobRequest.prototype.getJobId=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.StorageJobRequest.prototype.setJobId=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StorageJobResponse.prototype.toObject=function(e){return proto.powergate.user.v1.StorageJobResponse.toObject(e,this)},proto.powergate.user.v1.StorageJobResponse.toObject=function(e,t){var o,r={storageJob:(o=t.getStorageJob())&&proto.powergate.user.v1.StorageJob.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.StorageJobResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StorageJobResponse;return proto.powergate.user.v1.StorageJobResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StorageJobResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.powergate.user.v1.StorageJob;t.readMessage(o,proto.powergate.user.v1.StorageJob.deserializeBinaryFromReader),e.setStorageJob(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.StorageJobResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StorageJobResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StorageJobResponse.serializeBinaryToWriter=function(e,t){var o;null!=(o=e.getStorageJob())&&t.writeMessage(1,o,proto.powergate.user.v1.StorageJob.serializeBinaryToWriter)},proto.powergate.user.v1.StorageJobResponse.prototype.getStorageJob=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.StorageJob,1)},proto.powergate.user.v1.StorageJobResponse.prototype.setStorageJob=function(e){return googleProtobuf.Message.setWrapperField(this,1,e)},proto.powergate.user.v1.StorageJobResponse.prototype.clearStorageJob=function(){return this.setStorageJob(void 0)},proto.powergate.user.v1.StorageJobResponse.prototype.hasStorageJob=function(){return null!=googleProtobuf.Message.getField(this,1)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StorageConfigForJobRequest.prototype.toObject=function(e){return proto.powergate.user.v1.StorageConfigForJobRequest.toObject(e,this)},proto.powergate.user.v1.StorageConfigForJobRequest.toObject=function(e,t){var o={jobId:googleProtobuf.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.StorageConfigForJobRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StorageConfigForJobRequest;return proto.powergate.user.v1.StorageConfigForJobRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StorageConfigForJobRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setJobId(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.StorageConfigForJobRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StorageConfigForJobRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StorageConfigForJobRequest.serializeBinaryToWriter=function(e,t){var o;(o=e.getJobId()).length>0&&t.writeString(1,o)},proto.powergate.user.v1.StorageConfigForJobRequest.prototype.getJobId=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.StorageConfigForJobRequest.prototype.setJobId=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StorageConfigForJobResponse.prototype.toObject=function(e){return proto.powergate.user.v1.StorageConfigForJobResponse.toObject(e,this)},proto.powergate.user.v1.StorageConfigForJobResponse.toObject=function(e,t){var o,r={storageConfig:(o=t.getStorageConfig())&&proto.powergate.user.v1.StorageConfig.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.StorageConfigForJobResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StorageConfigForJobResponse;return proto.powergate.user.v1.StorageConfigForJobResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StorageConfigForJobResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.powergate.user.v1.StorageConfig;t.readMessage(o,proto.powergate.user.v1.StorageConfig.deserializeBinaryFromReader),e.setStorageConfig(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.StorageConfigForJobResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StorageConfigForJobResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StorageConfigForJobResponse.serializeBinaryToWriter=function(e,t){var o;null!=(o=e.getStorageConfig())&&t.writeMessage(1,o,proto.powergate.user.v1.StorageConfig.serializeBinaryToWriter)},proto.powergate.user.v1.StorageConfigForJobResponse.prototype.getStorageConfig=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.StorageConfig,1)},proto.powergate.user.v1.StorageConfigForJobResponse.prototype.setStorageConfig=function(e){return googleProtobuf.Message.setWrapperField(this,1,e)},proto.powergate.user.v1.StorageConfigForJobResponse.prototype.clearStorageConfig=function(){return this.setStorageConfig(void 0)},proto.powergate.user.v1.StorageConfigForJobResponse.prototype.hasStorageConfig=function(){return null!=googleProtobuf.Message.getField(this,1)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.ListStorageJobsRequest.prototype.toObject=function(e){return proto.powergate.user.v1.ListStorageJobsRequest.toObject(e,this)},proto.powergate.user.v1.ListStorageJobsRequest.toObject=function(e,t){var o={cidFilter:googleProtobuf.Message.getFieldWithDefault(t,1,""),limit:googleProtobuf.Message.getFieldWithDefault(t,2,0),ascending:googleProtobuf.Message.getBooleanFieldWithDefault(t,3,!1),nextPageToken:googleProtobuf.Message.getFieldWithDefault(t,4,""),selector:googleProtobuf.Message.getFieldWithDefault(t,5,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.ListStorageJobsRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.ListStorageJobsRequest;return proto.powergate.user.v1.ListStorageJobsRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.ListStorageJobsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setCidFilter(o);break;case 2:o=t.readUint64();e.setLimit(o);break;case 3:o=t.readBool();e.setAscending(o);break;case 4:o=t.readString();e.setNextPageToken(o);break;case 5:o=t.readEnum();e.setSelector(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.ListStorageJobsRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.ListStorageJobsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.ListStorageJobsRequest.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getCidFilter()).length>0&&t.writeString(1,o),0!==(o=e.getLimit())&&t.writeUint64(2,o),(o=e.getAscending())&&t.writeBool(3,o),(o=e.getNextPageToken()).length>0&&t.writeString(4,o),0!==(o=e.getSelector())&&t.writeEnum(5,o)},proto.powergate.user.v1.ListStorageJobsRequest.prototype.getCidFilter=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.ListStorageJobsRequest.prototype.setCidFilter=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.ListStorageJobsRequest.prototype.getLimit=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,0)},proto.powergate.user.v1.ListStorageJobsRequest.prototype.setLimit=function(e){return googleProtobuf.Message.setProto3IntField(this,2,e)},proto.powergate.user.v1.ListStorageJobsRequest.prototype.getAscending=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,3,!1)},proto.powergate.user.v1.ListStorageJobsRequest.prototype.setAscending=function(e){return googleProtobuf.Message.setProto3BooleanField(this,3,e)},proto.powergate.user.v1.ListStorageJobsRequest.prototype.getNextPageToken=function(){return googleProtobuf.Message.getFieldWithDefault(this,4,"")},proto.powergate.user.v1.ListStorageJobsRequest.prototype.setNextPageToken=function(e){return googleProtobuf.Message.setProto3StringField(this,4,e)},proto.powergate.user.v1.ListStorageJobsRequest.prototype.getSelector=function(){return googleProtobuf.Message.getFieldWithDefault(this,5,0)},proto.powergate.user.v1.ListStorageJobsRequest.prototype.setSelector=function(e){return googleProtobuf.Message.setProto3EnumField(this,5,e)},proto.powergate.user.v1.ListStorageJobsResponse.repeatedFields_=[1],googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.ListStorageJobsResponse.prototype.toObject=function(e){return proto.powergate.user.v1.ListStorageJobsResponse.toObject(e,this)},proto.powergate.user.v1.ListStorageJobsResponse.toObject=function(e,t){var o={storageJobsList:googleProtobuf.Message.toObjectList(t.getStorageJobsList(),proto.powergate.user.v1.StorageJob.toObject,e),more:googleProtobuf.Message.getBooleanFieldWithDefault(t,2,!1),nextPageToken:googleProtobuf.Message.getFieldWithDefault(t,3,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.ListStorageJobsResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.ListStorageJobsResponse;return proto.powergate.user.v1.ListStorageJobsResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.ListStorageJobsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.powergate.user.v1.StorageJob;t.readMessage(o,proto.powergate.user.v1.StorageJob.deserializeBinaryFromReader),e.addStorageJobs(o);break;case 2:o=t.readBool();e.setMore(o);break;case 3:o=t.readString();e.setNextPageToken(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.ListStorageJobsResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.ListStorageJobsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.ListStorageJobsResponse.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getStorageJobsList()).length>0&&t.writeRepeatedMessage(1,o,proto.powergate.user.v1.StorageJob.serializeBinaryToWriter),(o=e.getMore())&&t.writeBool(2,o),(o=e.getNextPageToken()).length>0&&t.writeString(3,o)},proto.powergate.user.v1.ListStorageJobsResponse.prototype.getStorageJobsList=function(){return googleProtobuf.Message.getRepeatedWrapperField(this,proto.powergate.user.v1.StorageJob,1)},proto.powergate.user.v1.ListStorageJobsResponse.prototype.setStorageJobsList=function(e){return googleProtobuf.Message.setRepeatedWrapperField(this,1,e)},proto.powergate.user.v1.ListStorageJobsResponse.prototype.addStorageJobs=function(e,t){return googleProtobuf.Message.addToRepeatedWrapperField(this,1,e,proto.powergate.user.v1.StorageJob,t)},proto.powergate.user.v1.ListStorageJobsResponse.prototype.clearStorageJobsList=function(){return this.setStorageJobsList([])},proto.powergate.user.v1.ListStorageJobsResponse.prototype.getMore=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,2,!1)},proto.powergate.user.v1.ListStorageJobsResponse.prototype.setMore=function(e){return googleProtobuf.Message.setProto3BooleanField(this,2,e)},proto.powergate.user.v1.ListStorageJobsResponse.prototype.getNextPageToken=function(){return googleProtobuf.Message.getFieldWithDefault(this,3,"")},proto.powergate.user.v1.ListStorageJobsResponse.prototype.setNextPageToken=function(e){return googleProtobuf.Message.setProto3StringField(this,3,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StorageJobsSummaryRequest.prototype.toObject=function(e){return proto.powergate.user.v1.StorageJobsSummaryRequest.toObject(e,this)},proto.powergate.user.v1.StorageJobsSummaryRequest.toObject=function(e,t){var o={cid:googleProtobuf.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.StorageJobsSummaryRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StorageJobsSummaryRequest;return proto.powergate.user.v1.StorageJobsSummaryRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StorageJobsSummaryRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setCid(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.StorageJobsSummaryRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StorageJobsSummaryRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StorageJobsSummaryRequest.serializeBinaryToWriter=function(e,t){var o;(o=e.getCid()).length>0&&t.writeString(1,o)},proto.powergate.user.v1.StorageJobsSummaryRequest.prototype.getCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.StorageJobsSummaryRequest.prototype.setCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.StorageJobsSummaryResponse.repeatedFields_=[1,2,3],googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StorageJobsSummaryResponse.prototype.toObject=function(e){return proto.powergate.user.v1.StorageJobsSummaryResponse.toObject(e,this)},proto.powergate.user.v1.StorageJobsSummaryResponse.toObject=function(e,t){var o,r={queuedStorageJobsList:null==(o=googleProtobuf.Message.getRepeatedField(t,1))?void 0:o,executingStorageJobsList:null==(o=googleProtobuf.Message.getRepeatedField(t,2))?void 0:o,finalStorageJobsList:null==(o=googleProtobuf.Message.getRepeatedField(t,3))?void 0:o};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.StorageJobsSummaryResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StorageJobsSummaryResponse;return proto.powergate.user.v1.StorageJobsSummaryResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StorageJobsSummaryResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.addQueuedStorageJobs(o);break;case 2:o=t.readString();e.addExecutingStorageJobs(o);break;case 3:o=t.readString();e.addFinalStorageJobs(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.StorageJobsSummaryResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StorageJobsSummaryResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StorageJobsSummaryResponse.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getQueuedStorageJobsList()).length>0&&t.writeRepeatedString(1,o),(o=e.getExecutingStorageJobsList()).length>0&&t.writeRepeatedString(2,o),(o=e.getFinalStorageJobsList()).length>0&&t.writeRepeatedString(3,o)},proto.powergate.user.v1.StorageJobsSummaryResponse.prototype.getQueuedStorageJobsList=function(){return googleProtobuf.Message.getRepeatedField(this,1)},proto.powergate.user.v1.StorageJobsSummaryResponse.prototype.setQueuedStorageJobsList=function(e){return googleProtobuf.Message.setField(this,1,e||[])},proto.powergate.user.v1.StorageJobsSummaryResponse.prototype.addQueuedStorageJobs=function(e,t){return googleProtobuf.Message.addToRepeatedField(this,1,e,t)},proto.powergate.user.v1.StorageJobsSummaryResponse.prototype.clearQueuedStorageJobsList=function(){return this.setQueuedStorageJobsList([])},proto.powergate.user.v1.StorageJobsSummaryResponse.prototype.getExecutingStorageJobsList=function(){return googleProtobuf.Message.getRepeatedField(this,2)},proto.powergate.user.v1.StorageJobsSummaryResponse.prototype.setExecutingStorageJobsList=function(e){return googleProtobuf.Message.setField(this,2,e||[])},proto.powergate.user.v1.StorageJobsSummaryResponse.prototype.addExecutingStorageJobs=function(e,t){return googleProtobuf.Message.addToRepeatedField(this,2,e,t)},proto.powergate.user.v1.StorageJobsSummaryResponse.prototype.clearExecutingStorageJobsList=function(){return this.setExecutingStorageJobsList([])},proto.powergate.user.v1.StorageJobsSummaryResponse.prototype.getFinalStorageJobsList=function(){return googleProtobuf.Message.getRepeatedField(this,3)},proto.powergate.user.v1.StorageJobsSummaryResponse.prototype.setFinalStorageJobsList=function(e){return googleProtobuf.Message.setField(this,3,e||[])},proto.powergate.user.v1.StorageJobsSummaryResponse.prototype.addFinalStorageJobs=function(e,t){return googleProtobuf.Message.addToRepeatedField(this,3,e,t)},proto.powergate.user.v1.StorageJobsSummaryResponse.prototype.clearFinalStorageJobsList=function(){return this.setFinalStorageJobsList([])},proto.powergate.user.v1.WatchStorageJobsRequest.repeatedFields_=[1],googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.WatchStorageJobsRequest.prototype.toObject=function(e){return proto.powergate.user.v1.WatchStorageJobsRequest.toObject(e,this)},proto.powergate.user.v1.WatchStorageJobsRequest.toObject=function(e,t){var o,r={jobIdsList:null==(o=googleProtobuf.Message.getRepeatedField(t,1))?void 0:o};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.WatchStorageJobsRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.WatchStorageJobsRequest;return proto.powergate.user.v1.WatchStorageJobsRequest.deserializeBinaryFromReader(o,t)};proto.powergate.user.v1.WatchStorageJobsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.addJobIds(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.WatchStorageJobsRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.WatchStorageJobsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.WatchStorageJobsRequest.serializeBinaryToWriter=function(e,t){var o;(o=e.getJobIdsList()).length>0&&t.writeRepeatedString(1,o)},proto.powergate.user.v1.WatchStorageJobsRequest.prototype.getJobIdsList=function(){return googleProtobuf.Message.getRepeatedField(this,1)},proto.powergate.user.v1.WatchStorageJobsRequest.prototype.setJobIdsList=function(e){return googleProtobuf.Message.setField(this,1,e||[])},proto.powergate.user.v1.WatchStorageJobsRequest.prototype.addJobIds=function(e,t){return googleProtobuf.Message.addToRepeatedField(this,1,e,t)},proto.powergate.user.v1.WatchStorageJobsRequest.prototype.clearJobIdsList=function(){return this.setJobIdsList([])},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.WatchStorageJobsResponse.prototype.toObject=function(e){return proto.powergate.user.v1.WatchStorageJobsResponse.toObject(e,this)},proto.powergate.user.v1.WatchStorageJobsResponse.toObject=function(e,t){var o,r={storageJob:(o=t.getStorageJob())&&proto.powergate.user.v1.StorageJob.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.WatchStorageJobsResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.WatchStorageJobsResponse;return proto.powergate.user.v1.WatchStorageJobsResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.WatchStorageJobsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.powergate.user.v1.StorageJob;t.readMessage(o,proto.powergate.user.v1.StorageJob.deserializeBinaryFromReader),e.setStorageJob(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.WatchStorageJobsResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.WatchStorageJobsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.WatchStorageJobsResponse.serializeBinaryToWriter=function(e,t){var o;null!=(o=e.getStorageJob())&&t.writeMessage(1,o,proto.powergate.user.v1.StorageJob.serializeBinaryToWriter)},proto.powergate.user.v1.WatchStorageJobsResponse.prototype.getStorageJob=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.StorageJob,1)},proto.powergate.user.v1.WatchStorageJobsResponse.prototype.setStorageJob=function(e){return googleProtobuf.Message.setWrapperField(this,1,e)},proto.powergate.user.v1.WatchStorageJobsResponse.prototype.clearStorageJob=function(){return this.setStorageJob(void 0)},proto.powergate.user.v1.WatchStorageJobsResponse.prototype.hasStorageJob=function(){return null!=googleProtobuf.Message.getField(this,1)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StorageDealRecordsRequest.prototype.toObject=function(e){return proto.powergate.user.v1.StorageDealRecordsRequest.toObject(e,this)},proto.powergate.user.v1.StorageDealRecordsRequest.toObject=function(e,t){var o,r={config:(o=t.getConfig())&&proto.powergate.user.v1.DealRecordsConfig.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.StorageDealRecordsRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StorageDealRecordsRequest;return proto.powergate.user.v1.StorageDealRecordsRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StorageDealRecordsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.powergate.user.v1.DealRecordsConfig;t.readMessage(o,proto.powergate.user.v1.DealRecordsConfig.deserializeBinaryFromReader),e.setConfig(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.StorageDealRecordsRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StorageDealRecordsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StorageDealRecordsRequest.serializeBinaryToWriter=function(e,t){var o;null!=(o=e.getConfig())&&t.writeMessage(1,o,proto.powergate.user.v1.DealRecordsConfig.serializeBinaryToWriter)},proto.powergate.user.v1.StorageDealRecordsRequest.prototype.getConfig=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.DealRecordsConfig,1)},proto.powergate.user.v1.StorageDealRecordsRequest.prototype.setConfig=function(e){return googleProtobuf.Message.setWrapperField(this,1,e)},proto.powergate.user.v1.StorageDealRecordsRequest.prototype.clearConfig=function(){return this.setConfig(void 0)},proto.powergate.user.v1.StorageDealRecordsRequest.prototype.hasConfig=function(){return null!=googleProtobuf.Message.getField(this,1)},proto.powergate.user.v1.StorageDealRecordsResponse.repeatedFields_=[1],googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StorageDealRecordsResponse.prototype.toObject=function(e){return proto.powergate.user.v1.StorageDealRecordsResponse.toObject(e,this)},proto.powergate.user.v1.StorageDealRecordsResponse.toObject=function(e,t){var o={recordsList:googleProtobuf.Message.toObjectList(t.getRecordsList(),proto.powergate.user.v1.StorageDealRecord.toObject,e)};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.StorageDealRecordsResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StorageDealRecordsResponse;return proto.powergate.user.v1.StorageDealRecordsResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StorageDealRecordsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.powergate.user.v1.StorageDealRecord;t.readMessage(o,proto.powergate.user.v1.StorageDealRecord.deserializeBinaryFromReader),e.addRecords(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.StorageDealRecordsResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StorageDealRecordsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StorageDealRecordsResponse.serializeBinaryToWriter=function(e,t){var o;(o=e.getRecordsList()).length>0&&t.writeRepeatedMessage(1,o,proto.powergate.user.v1.StorageDealRecord.serializeBinaryToWriter)},proto.powergate.user.v1.StorageDealRecordsResponse.prototype.getRecordsList=function(){return googleProtobuf.Message.getRepeatedWrapperField(this,proto.powergate.user.v1.StorageDealRecord,1)},proto.powergate.user.v1.StorageDealRecordsResponse.prototype.setRecordsList=function(e){return googleProtobuf.Message.setRepeatedWrapperField(this,1,e)},proto.powergate.user.v1.StorageDealRecordsResponse.prototype.addRecords=function(e,t){return googleProtobuf.Message.addToRepeatedWrapperField(this,1,e,proto.powergate.user.v1.StorageDealRecord,t)},proto.powergate.user.v1.StorageDealRecordsResponse.prototype.clearRecordsList=function(){return this.setRecordsList([])},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.RetrievalDealRecordsRequest.prototype.toObject=function(e){return proto.powergate.user.v1.RetrievalDealRecordsRequest.toObject(e,this)},proto.powergate.user.v1.RetrievalDealRecordsRequest.toObject=function(e,t){var o,r={config:(o=t.getConfig())&&proto.powergate.user.v1.DealRecordsConfig.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.RetrievalDealRecordsRequest.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.RetrievalDealRecordsRequest;return proto.powergate.user.v1.RetrievalDealRecordsRequest.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.RetrievalDealRecordsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.powergate.user.v1.DealRecordsConfig;t.readMessage(o,proto.powergate.user.v1.DealRecordsConfig.deserializeBinaryFromReader),e.setConfig(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.RetrievalDealRecordsRequest.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.RetrievalDealRecordsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.RetrievalDealRecordsRequest.serializeBinaryToWriter=function(e,t){var o;null!=(o=e.getConfig())&&t.writeMessage(1,o,proto.powergate.user.v1.DealRecordsConfig.serializeBinaryToWriter)},proto.powergate.user.v1.RetrievalDealRecordsRequest.prototype.getConfig=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.DealRecordsConfig,1)},proto.powergate.user.v1.RetrievalDealRecordsRequest.prototype.setConfig=function(e){return googleProtobuf.Message.setWrapperField(this,1,e)},proto.powergate.user.v1.RetrievalDealRecordsRequest.prototype.clearConfig=function(){return this.setConfig(void 0)},proto.powergate.user.v1.RetrievalDealRecordsRequest.prototype.hasConfig=function(){return null!=googleProtobuf.Message.getField(this,1)},proto.powergate.user.v1.RetrievalDealRecordsResponse.repeatedFields_=[1],googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.RetrievalDealRecordsResponse.prototype.toObject=function(e){return proto.powergate.user.v1.RetrievalDealRecordsResponse.toObject(e,this)},proto.powergate.user.v1.RetrievalDealRecordsResponse.toObject=function(e,t){var o={recordsList:googleProtobuf.Message.toObjectList(t.getRecordsList(),proto.powergate.user.v1.RetrievalDealRecord.toObject,e)};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.RetrievalDealRecordsResponse.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.RetrievalDealRecordsResponse;return proto.powergate.user.v1.RetrievalDealRecordsResponse.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.RetrievalDealRecordsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.powergate.user.v1.RetrievalDealRecord;t.readMessage(o,proto.powergate.user.v1.RetrievalDealRecord.deserializeBinaryFromReader),e.addRecords(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.RetrievalDealRecordsResponse.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.RetrievalDealRecordsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.RetrievalDealRecordsResponse.serializeBinaryToWriter=function(e,t){var o;(o=e.getRecordsList()).length>0&&t.writeRepeatedMessage(1,o,proto.powergate.user.v1.RetrievalDealRecord.serializeBinaryToWriter)},proto.powergate.user.v1.RetrievalDealRecordsResponse.prototype.getRecordsList=function(){return googleProtobuf.Message.getRepeatedWrapperField(this,proto.powergate.user.v1.RetrievalDealRecord,1)},proto.powergate.user.v1.RetrievalDealRecordsResponse.prototype.setRecordsList=function(e){return googleProtobuf.Message.setRepeatedWrapperField(this,1,e)},proto.powergate.user.v1.RetrievalDealRecordsResponse.prototype.addRecords=function(e,t){return googleProtobuf.Message.addToRepeatedWrapperField(this,1,e,proto.powergate.user.v1.RetrievalDealRecord,t)},proto.powergate.user.v1.RetrievalDealRecordsResponse.prototype.clearRecordsList=function(){return this.setRecordsList([])},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.AddrInfo.prototype.toObject=function(e){return proto.powergate.user.v1.AddrInfo.toObject(e,this)},proto.powergate.user.v1.AddrInfo.toObject=function(e,t){var o,r={name:googleProtobuf.Message.getFieldWithDefault(t,1,""),address:googleProtobuf.Message.getFieldWithDefault(t,2,""),type:googleProtobuf.Message.getFieldWithDefault(t,3,""),balance:googleProtobuf.Message.getFieldWithDefault(t,4,""),verifiedClientInfo:(o=t.getVerifiedClientInfo())&&proto.powergate.user.v1.AddrInfo.VerifiedClientInfo.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.AddrInfo.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.AddrInfo;return proto.powergate.user.v1.AddrInfo.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.AddrInfo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setName(o);break;case 2:o=t.readString();e.setAddress(o);break;case 3:o=t.readString();e.setType(o);break;case 4:o=t.readString();e.setBalance(o);break;case 5:o=new proto.powergate.user.v1.AddrInfo.VerifiedClientInfo;t.readMessage(o,proto.powergate.user.v1.AddrInfo.VerifiedClientInfo.deserializeBinaryFromReader),e.setVerifiedClientInfo(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.AddrInfo.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.AddrInfo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.AddrInfo.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getName()).length>0&&t.writeString(1,o),(o=e.getAddress()).length>0&&t.writeString(2,o),(o=e.getType()).length>0&&t.writeString(3,o),(o=e.getBalance()).length>0&&t.writeString(4,o),null!=(o=e.getVerifiedClientInfo())&&t.writeMessage(5,o,proto.powergate.user.v1.AddrInfo.VerifiedClientInfo.serializeBinaryToWriter)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.AddrInfo.VerifiedClientInfo.prototype.toObject=function(e){return proto.powergate.user.v1.AddrInfo.VerifiedClientInfo.toObject(e,this)},proto.powergate.user.v1.AddrInfo.VerifiedClientInfo.toObject=function(e,t){var o={remainingDatacapBytes:googleProtobuf.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.AddrInfo.VerifiedClientInfo.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.AddrInfo.VerifiedClientInfo;return proto.powergate.user.v1.AddrInfo.VerifiedClientInfo.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.AddrInfo.VerifiedClientInfo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setRemainingDatacapBytes(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.AddrInfo.VerifiedClientInfo.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.AddrInfo.VerifiedClientInfo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.AddrInfo.VerifiedClientInfo.serializeBinaryToWriter=function(e,t){var o;(o=e.getRemainingDatacapBytes()).length>0&&t.writeString(1,o)},proto.powergate.user.v1.AddrInfo.VerifiedClientInfo.prototype.getRemainingDatacapBytes=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.AddrInfo.VerifiedClientInfo.prototype.setRemainingDatacapBytes=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.AddrInfo.prototype.getName=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.AddrInfo.prototype.setName=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.AddrInfo.prototype.getAddress=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,"")},proto.powergate.user.v1.AddrInfo.prototype.setAddress=function(e){return googleProtobuf.Message.setProto3StringField(this,2,e)},proto.powergate.user.v1.AddrInfo.prototype.getType=function(){return googleProtobuf.Message.getFieldWithDefault(this,3,"")},proto.powergate.user.v1.AddrInfo.prototype.setType=function(e){return googleProtobuf.Message.setProto3StringField(this,3,e)},proto.powergate.user.v1.AddrInfo.prototype.getBalance=function(){return googleProtobuf.Message.getFieldWithDefault(this,4,"")},proto.powergate.user.v1.AddrInfo.prototype.setBalance=function(e){return googleProtobuf.Message.setProto3StringField(this,4,e)},proto.powergate.user.v1.AddrInfo.prototype.getVerifiedClientInfo=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.AddrInfo.VerifiedClientInfo,5)},proto.powergate.user.v1.AddrInfo.prototype.setVerifiedClientInfo=function(e){return googleProtobuf.Message.setWrapperField(this,5,e)},proto.powergate.user.v1.AddrInfo.prototype.clearVerifiedClientInfo=function(){return this.setVerifiedClientInfo(void 0)},proto.powergate.user.v1.AddrInfo.prototype.hasVerifiedClientInfo=function(){return null!=googleProtobuf.Message.getField(this,5)},proto.powergate.user.v1.CidSummary.repeatedFields_=[3],googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.CidSummary.prototype.toObject=function(e){return proto.powergate.user.v1.CidSummary.toObject(e,this)},proto.powergate.user.v1.CidSummary.toObject=function(e,t){var o,r={cid:googleProtobuf.Message.getFieldWithDefault(t,1,""),stored:googleProtobuf.Message.getBooleanFieldWithDefault(t,2,!1),queuedJobsList:null==(o=googleProtobuf.Message.getRepeatedField(t,3))?void 0:o,executingJob:googleProtobuf.Message.getFieldWithDefault(t,4,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.CidSummary.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.CidSummary;return proto.powergate.user.v1.CidSummary.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.CidSummary.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setCid(o);break;case 2:o=t.readBool();e.setStored(o);break;case 3:o=t.readString();e.addQueuedJobs(o);break;case 4:o=t.readString();e.setExecutingJob(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.CidSummary.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.CidSummary.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.CidSummary.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getCid()).length>0&&t.writeString(1,o),(o=e.getStored())&&t.writeBool(2,o),(o=e.getQueuedJobsList()).length>0&&t.writeRepeatedString(3,o),(o=e.getExecutingJob()).length>0&&t.writeString(4,o)},proto.powergate.user.v1.CidSummary.prototype.getCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.CidSummary.prototype.setCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.CidSummary.prototype.getStored=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,2,!1)},proto.powergate.user.v1.CidSummary.prototype.setStored=function(e){return googleProtobuf.Message.setProto3BooleanField(this,2,e)},proto.powergate.user.v1.CidSummary.prototype.getQueuedJobsList=function(){return googleProtobuf.Message.getRepeatedField(this,3)},proto.powergate.user.v1.CidSummary.prototype.setQueuedJobsList=function(e){return googleProtobuf.Message.setField(this,3,e||[])},proto.powergate.user.v1.CidSummary.prototype.addQueuedJobs=function(e,t){return googleProtobuf.Message.addToRepeatedField(this,3,e,t)},proto.powergate.user.v1.CidSummary.prototype.clearQueuedJobsList=function(){return this.setQueuedJobsList([])},proto.powergate.user.v1.CidSummary.prototype.getExecutingJob=function(){return googleProtobuf.Message.getFieldWithDefault(this,4,"")},proto.powergate.user.v1.CidSummary.prototype.setExecutingJob=function(e){return googleProtobuf.Message.setProto3StringField(this,4,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.IpfsConfig.prototype.toObject=function(e){return proto.powergate.user.v1.IpfsConfig.toObject(e,this)},proto.powergate.user.v1.IpfsConfig.toObject=function(e,t){var o={addTimeout:googleProtobuf.Message.getFieldWithDefault(t,1,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.IpfsConfig.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.IpfsConfig;return proto.powergate.user.v1.IpfsConfig.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.IpfsConfig.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readInt64();e.setAddTimeout(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.IpfsConfig.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.IpfsConfig.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.IpfsConfig.serializeBinaryToWriter=function(e,t){var o;0!==(o=e.getAddTimeout())&&t.writeInt64(1,o)},proto.powergate.user.v1.IpfsConfig.prototype.getAddTimeout=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,0)},proto.powergate.user.v1.IpfsConfig.prototype.setAddTimeout=function(e){return googleProtobuf.Message.setProto3IntField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.HotConfig.prototype.toObject=function(e){return proto.powergate.user.v1.HotConfig.toObject(e,this)},proto.powergate.user.v1.HotConfig.toObject=function(e,t){var o,r={enabled:googleProtobuf.Message.getBooleanFieldWithDefault(t,1,!1),allowUnfreeze:googleProtobuf.Message.getBooleanFieldWithDefault(t,2,!1),unfreezeMaxPrice:googleProtobuf.Message.getFieldWithDefault(t,3,0),ipfs:(o=t.getIpfs())&&proto.powergate.user.v1.IpfsConfig.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.HotConfig.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.HotConfig;return proto.powergate.user.v1.HotConfig.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.HotConfig.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readBool();e.setEnabled(o);break;case 2:o=t.readBool();e.setAllowUnfreeze(o);break;case 3:o=t.readUint64();e.setUnfreezeMaxPrice(o);break;case 4:o=new proto.powergate.user.v1.IpfsConfig;t.readMessage(o,proto.powergate.user.v1.IpfsConfig.deserializeBinaryFromReader),e.setIpfs(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.HotConfig.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.HotConfig.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.HotConfig.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getEnabled())&&t.writeBool(1,o),(o=e.getAllowUnfreeze())&&t.writeBool(2,o),0!==(o=e.getUnfreezeMaxPrice())&&t.writeUint64(3,o),null!=(o=e.getIpfs())&&t.writeMessage(4,o,proto.powergate.user.v1.IpfsConfig.serializeBinaryToWriter)},proto.powergate.user.v1.HotConfig.prototype.getEnabled=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,1,!1)},proto.powergate.user.v1.HotConfig.prototype.setEnabled=function(e){return googleProtobuf.Message.setProto3BooleanField(this,1,e)},proto.powergate.user.v1.HotConfig.prototype.getAllowUnfreeze=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,2,!1)},proto.powergate.user.v1.HotConfig.prototype.setAllowUnfreeze=function(e){return googleProtobuf.Message.setProto3BooleanField(this,2,e)},proto.powergate.user.v1.HotConfig.prototype.getUnfreezeMaxPrice=function(){return googleProtobuf.Message.getFieldWithDefault(this,3,0)},proto.powergate.user.v1.HotConfig.prototype.setUnfreezeMaxPrice=function(e){return googleProtobuf.Message.setProto3IntField(this,3,e)},proto.powergate.user.v1.HotConfig.prototype.getIpfs=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.IpfsConfig,4)},proto.powergate.user.v1.HotConfig.prototype.setIpfs=function(e){return googleProtobuf.Message.setWrapperField(this,4,e)},proto.powergate.user.v1.HotConfig.prototype.clearIpfs=function(){return this.setIpfs(void 0)},proto.powergate.user.v1.HotConfig.prototype.hasIpfs=function(){return null!=googleProtobuf.Message.getField(this,4)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.FilRenew.prototype.toObject=function(e){return proto.powergate.user.v1.FilRenew.toObject(e,this)},proto.powergate.user.v1.FilRenew.toObject=function(e,t){var o={enabled:googleProtobuf.Message.getBooleanFieldWithDefault(t,1,!1),threshold:googleProtobuf.Message.getFieldWithDefault(t,2,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.FilRenew.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.FilRenew;return proto.powergate.user.v1.FilRenew.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.FilRenew.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readBool();e.setEnabled(o);break;case 2:o=t.readInt64();e.setThreshold(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.FilRenew.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.FilRenew.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.FilRenew.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getEnabled())&&t.writeBool(1,o),0!==(o=e.getThreshold())&&t.writeInt64(2,o)},proto.powergate.user.v1.FilRenew.prototype.getEnabled=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,1,!1)},proto.powergate.user.v1.FilRenew.prototype.setEnabled=function(e){return googleProtobuf.Message.setProto3BooleanField(this,1,e)},proto.powergate.user.v1.FilRenew.prototype.getThreshold=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,0)},proto.powergate.user.v1.FilRenew.prototype.setThreshold=function(e){return googleProtobuf.Message.setProto3IntField(this,2,e)},proto.powergate.user.v1.FilConfig.repeatedFields_=[3,4,5],googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.FilConfig.prototype.toObject=function(e){return proto.powergate.user.v1.FilConfig.toObject(e,this)},proto.powergate.user.v1.FilConfig.toObject=function(e,t){var o,r={replicationFactor:googleProtobuf.Message.getFieldWithDefault(t,1,0),dealMinDuration:googleProtobuf.Message.getFieldWithDefault(t,2,0),excludedMinersList:null==(o=googleProtobuf.Message.getRepeatedField(t,3))?void 0:o,trustedMinersList:null==(o=googleProtobuf.Message.getRepeatedField(t,4))?void 0:o,countryCodesList:null==(o=googleProtobuf.Message.getRepeatedField(t,5))?void 0:o,renew:(o=t.getRenew())&&proto.powergate.user.v1.FilRenew.toObject(e,o),address:googleProtobuf.Message.getFieldWithDefault(t,7,""),maxPrice:googleProtobuf.Message.getFieldWithDefault(t,8,0),fastRetrieval:googleProtobuf.Message.getBooleanFieldWithDefault(t,9,!1),dealStartOffset:googleProtobuf.Message.getFieldWithDefault(t,10,0),verifiedDeal:googleProtobuf.Message.getBooleanFieldWithDefault(t,11,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.FilConfig.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.FilConfig;return proto.powergate.user.v1.FilConfig.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.FilConfig.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readInt64();e.setReplicationFactor(o);break;case 2:o=t.readInt64();e.setDealMinDuration(o);break;case 3:o=t.readString();e.addExcludedMiners(o);break;case 4:o=t.readString();e.addTrustedMiners(o);break;case 5:o=t.readString();e.addCountryCodes(o);break;case 6:o=new proto.powergate.user.v1.FilRenew;t.readMessage(o,proto.powergate.user.v1.FilRenew.deserializeBinaryFromReader),e.setRenew(o);break;case 7:o=t.readString();e.setAddress(o);break;case 8:o=t.readUint64();e.setMaxPrice(o);break;case 9:o=t.readBool();e.setFastRetrieval(o);break;case 10:o=t.readInt64();e.setDealStartOffset(o);break;case 11:o=t.readBool();e.setVerifiedDeal(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.FilConfig.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.FilConfig.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.FilConfig.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getReplicationFactor())&&t.writeInt64(1,o),0!==(o=e.getDealMinDuration())&&t.writeInt64(2,o),(o=e.getExcludedMinersList()).length>0&&t.writeRepeatedString(3,o),(o=e.getTrustedMinersList()).length>0&&t.writeRepeatedString(4,o),(o=e.getCountryCodesList()).length>0&&t.writeRepeatedString(5,o),null!=(o=e.getRenew())&&t.writeMessage(6,o,proto.powergate.user.v1.FilRenew.serializeBinaryToWriter),(o=e.getAddress()).length>0&&t.writeString(7,o),0!==(o=e.getMaxPrice())&&t.writeUint64(8,o),(o=e.getFastRetrieval())&&t.writeBool(9,o),0!==(o=e.getDealStartOffset())&&t.writeInt64(10,o),(o=e.getVerifiedDeal())&&t.writeBool(11,o)},proto.powergate.user.v1.FilConfig.prototype.getReplicationFactor=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,0)},proto.powergate.user.v1.FilConfig.prototype.setReplicationFactor=function(e){return googleProtobuf.Message.setProto3IntField(this,1,e)},proto.powergate.user.v1.FilConfig.prototype.getDealMinDuration=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,0)},proto.powergate.user.v1.FilConfig.prototype.setDealMinDuration=function(e){return googleProtobuf.Message.setProto3IntField(this,2,e)},proto.powergate.user.v1.FilConfig.prototype.getExcludedMinersList=function(){return googleProtobuf.Message.getRepeatedField(this,3)},proto.powergate.user.v1.FilConfig.prototype.setExcludedMinersList=function(e){return googleProtobuf.Message.setField(this,3,e||[])},proto.powergate.user.v1.FilConfig.prototype.addExcludedMiners=function(e,t){return googleProtobuf.Message.addToRepeatedField(this,3,e,t)},proto.powergate.user.v1.FilConfig.prototype.clearExcludedMinersList=function(){return this.setExcludedMinersList([])},proto.powergate.user.v1.FilConfig.prototype.getTrustedMinersList=function(){return googleProtobuf.Message.getRepeatedField(this,4)},proto.powergate.user.v1.FilConfig.prototype.setTrustedMinersList=function(e){return googleProtobuf.Message.setField(this,4,e||[])},proto.powergate.user.v1.FilConfig.prototype.addTrustedMiners=function(e,t){return googleProtobuf.Message.addToRepeatedField(this,4,e,t)},proto.powergate.user.v1.FilConfig.prototype.clearTrustedMinersList=function(){return this.setTrustedMinersList([])},proto.powergate.user.v1.FilConfig.prototype.getCountryCodesList=function(){return googleProtobuf.Message.getRepeatedField(this,5)},proto.powergate.user.v1.FilConfig.prototype.setCountryCodesList=function(e){return googleProtobuf.Message.setField(this,5,e||[])},proto.powergate.user.v1.FilConfig.prototype.addCountryCodes=function(e,t){return googleProtobuf.Message.addToRepeatedField(this,5,e,t)},proto.powergate.user.v1.FilConfig.prototype.clearCountryCodesList=function(){return this.setCountryCodesList([])},proto.powergate.user.v1.FilConfig.prototype.getRenew=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.FilRenew,6)},proto.powergate.user.v1.FilConfig.prototype.setRenew=function(e){return googleProtobuf.Message.setWrapperField(this,6,e)},proto.powergate.user.v1.FilConfig.prototype.clearRenew=function(){return this.setRenew(void 0)},proto.powergate.user.v1.FilConfig.prototype.hasRenew=function(){return null!=googleProtobuf.Message.getField(this,6)},proto.powergate.user.v1.FilConfig.prototype.getAddress=function(){return googleProtobuf.Message.getFieldWithDefault(this,7,"")},proto.powergate.user.v1.FilConfig.prototype.setAddress=function(e){return googleProtobuf.Message.setProto3StringField(this,7,e)},proto.powergate.user.v1.FilConfig.prototype.getMaxPrice=function(){return googleProtobuf.Message.getFieldWithDefault(this,8,0)},proto.powergate.user.v1.FilConfig.prototype.setMaxPrice=function(e){return googleProtobuf.Message.setProto3IntField(this,8,e)},proto.powergate.user.v1.FilConfig.prototype.getFastRetrieval=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,9,!1)},proto.powergate.user.v1.FilConfig.prototype.setFastRetrieval=function(e){return googleProtobuf.Message.setProto3BooleanField(this,9,e)},proto.powergate.user.v1.FilConfig.prototype.getDealStartOffset=function(){return googleProtobuf.Message.getFieldWithDefault(this,10,0)},proto.powergate.user.v1.FilConfig.prototype.setDealStartOffset=function(e){return googleProtobuf.Message.setProto3IntField(this,10,e)},proto.powergate.user.v1.FilConfig.prototype.getVerifiedDeal=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,11,!1)},proto.powergate.user.v1.FilConfig.prototype.setVerifiedDeal=function(e){return googleProtobuf.Message.setProto3BooleanField(this,11,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.ColdConfig.prototype.toObject=function(e){return proto.powergate.user.v1.ColdConfig.toObject(e,this)},proto.powergate.user.v1.ColdConfig.toObject=function(e,t){var o,r={enabled:googleProtobuf.Message.getBooleanFieldWithDefault(t,1,!1),filecoin:(o=t.getFilecoin())&&proto.powergate.user.v1.FilConfig.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.ColdConfig.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.ColdConfig;return proto.powergate.user.v1.ColdConfig.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.ColdConfig.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readBool();e.setEnabled(o);break;case 2:o=new proto.powergate.user.v1.FilConfig;t.readMessage(o,proto.powergate.user.v1.FilConfig.deserializeBinaryFromReader),e.setFilecoin(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.ColdConfig.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.ColdConfig.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.ColdConfig.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getEnabled())&&t.writeBool(1,o),null!=(o=e.getFilecoin())&&t.writeMessage(2,o,proto.powergate.user.v1.FilConfig.serializeBinaryToWriter)},proto.powergate.user.v1.ColdConfig.prototype.getEnabled=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,1,!1)},proto.powergate.user.v1.ColdConfig.prototype.setEnabled=function(e){return googleProtobuf.Message.setProto3BooleanField(this,1,e)},proto.powergate.user.v1.ColdConfig.prototype.getFilecoin=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.FilConfig,2)},proto.powergate.user.v1.ColdConfig.prototype.setFilecoin=function(e){return googleProtobuf.Message.setWrapperField(this,2,e)},proto.powergate.user.v1.ColdConfig.prototype.clearFilecoin=function(){return this.setFilecoin(void 0)},proto.powergate.user.v1.ColdConfig.prototype.hasFilecoin=function(){return null!=googleProtobuf.Message.getField(this,2)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StorageConfig.prototype.toObject=function(e){return proto.powergate.user.v1.StorageConfig.toObject(e,this)},proto.powergate.user.v1.StorageConfig.toObject=function(e,t){var o,r={hot:(o=t.getHot())&&proto.powergate.user.v1.HotConfig.toObject(e,o),cold:(o=t.getCold())&&proto.powergate.user.v1.ColdConfig.toObject(e,o),repairable:googleProtobuf.Message.getBooleanFieldWithDefault(t,3,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.StorageConfig.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StorageConfig;return proto.powergate.user.v1.StorageConfig.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StorageConfig.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.powergate.user.v1.HotConfig;t.readMessage(o,proto.powergate.user.v1.HotConfig.deserializeBinaryFromReader),e.setHot(o);break;case 2:o=new proto.powergate.user.v1.ColdConfig;t.readMessage(o,proto.powergate.user.v1.ColdConfig.deserializeBinaryFromReader),e.setCold(o);break;case 3:o=t.readBool();e.setRepairable(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.StorageConfig.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StorageConfig.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StorageConfig.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getHot())&&t.writeMessage(1,o,proto.powergate.user.v1.HotConfig.serializeBinaryToWriter),null!=(o=e.getCold())&&t.writeMessage(2,o,proto.powergate.user.v1.ColdConfig.serializeBinaryToWriter),(o=e.getRepairable())&&t.writeBool(3,o)},proto.powergate.user.v1.StorageConfig.prototype.getHot=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.HotConfig,1)},proto.powergate.user.v1.StorageConfig.prototype.setHot=function(e){return googleProtobuf.Message.setWrapperField(this,1,e)},proto.powergate.user.v1.StorageConfig.prototype.clearHot=function(){return this.setHot(void 0)},proto.powergate.user.v1.StorageConfig.prototype.hasHot=function(){return null!=googleProtobuf.Message.getField(this,1)},proto.powergate.user.v1.StorageConfig.prototype.getCold=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.ColdConfig,2)},proto.powergate.user.v1.StorageConfig.prototype.setCold=function(e){return googleProtobuf.Message.setWrapperField(this,2,e)},proto.powergate.user.v1.StorageConfig.prototype.clearCold=function(){return this.setCold(void 0)},proto.powergate.user.v1.StorageConfig.prototype.hasCold=function(){return null!=googleProtobuf.Message.getField(this,2)},proto.powergate.user.v1.StorageConfig.prototype.getRepairable=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,3,!1)},proto.powergate.user.v1.StorageConfig.prototype.setRepairable=function(e){return googleProtobuf.Message.setProto3BooleanField(this,3,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.IpfsHotInfo.prototype.toObject=function(e){return proto.powergate.user.v1.IpfsHotInfo.toObject(e,this)},proto.powergate.user.v1.IpfsHotInfo.toObject=function(e,t){var o={created:googleProtobuf.Message.getFieldWithDefault(t,1,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.IpfsHotInfo.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.IpfsHotInfo;return proto.powergate.user.v1.IpfsHotInfo.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.IpfsHotInfo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readInt64();e.setCreated(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.IpfsHotInfo.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.IpfsHotInfo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.IpfsHotInfo.serializeBinaryToWriter=function(e,t){var o;0!==(o=e.getCreated())&&t.writeInt64(1,o)},proto.powergate.user.v1.IpfsHotInfo.prototype.getCreated=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,0)},proto.powergate.user.v1.IpfsHotInfo.prototype.setCreated=function(e){return googleProtobuf.Message.setProto3IntField(this,1,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.HotInfo.prototype.toObject=function(e){return proto.powergate.user.v1.HotInfo.toObject(e,this)},proto.powergate.user.v1.HotInfo.toObject=function(e,t){var o,r={enabled:googleProtobuf.Message.getBooleanFieldWithDefault(t,1,!1),size:googleProtobuf.Message.getFieldWithDefault(t,2,0),ipfs:(o=t.getIpfs())&&proto.powergate.user.v1.IpfsHotInfo.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.HotInfo.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.HotInfo;return proto.powergate.user.v1.HotInfo.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.HotInfo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readBool();e.setEnabled(o);break;case 2:o=t.readInt64();e.setSize(o);break;case 3:o=new proto.powergate.user.v1.IpfsHotInfo;t.readMessage(o,proto.powergate.user.v1.IpfsHotInfo.deserializeBinaryFromReader),e.setIpfs(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.HotInfo.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.HotInfo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.HotInfo.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getEnabled())&&t.writeBool(1,o),0!==(o=e.getSize())&&t.writeInt64(2,o),null!=(o=e.getIpfs())&&t.writeMessage(3,o,proto.powergate.user.v1.IpfsHotInfo.serializeBinaryToWriter)},proto.powergate.user.v1.HotInfo.prototype.getEnabled=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,1,!1)},proto.powergate.user.v1.HotInfo.prototype.setEnabled=function(e){return googleProtobuf.Message.setProto3BooleanField(this,1,e)},proto.powergate.user.v1.HotInfo.prototype.getSize=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,0)},proto.powergate.user.v1.HotInfo.prototype.setSize=function(e){return googleProtobuf.Message.setProto3IntField(this,2,e)},proto.powergate.user.v1.HotInfo.prototype.getIpfs=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.IpfsHotInfo,3)},proto.powergate.user.v1.HotInfo.prototype.setIpfs=function(e){return googleProtobuf.Message.setWrapperField(this,3,e)},proto.powergate.user.v1.HotInfo.prototype.clearIpfs=function(){return this.setIpfs(void 0)},proto.powergate.user.v1.HotInfo.prototype.hasIpfs=function(){return null!=googleProtobuf.Message.getField(this,3)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.FilStorage.prototype.toObject=function(e){return proto.powergate.user.v1.FilStorage.toObject(e,this)},proto.powergate.user.v1.FilStorage.toObject=function(e,t){var o={dealId:googleProtobuf.Message.getFieldWithDefault(t,1,0),renewed:googleProtobuf.Message.getBooleanFieldWithDefault(t,2,!1),duration:googleProtobuf.Message.getFieldWithDefault(t,3,0),startEpoch:googleProtobuf.Message.getFieldWithDefault(t,4,0),miner:googleProtobuf.Message.getFieldWithDefault(t,5,""),epochPrice:googleProtobuf.Message.getFieldWithDefault(t,6,0),pieceCid:googleProtobuf.Message.getFieldWithDefault(t,7,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.FilStorage.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.FilStorage;return proto.powergate.user.v1.FilStorage.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.FilStorage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readInt64();e.setDealId(o);break;case 2:o=t.readBool();e.setRenewed(o);break;case 3:o=t.readInt64();e.setDuration(o);break;case 4:o=t.readUint64();e.setStartEpoch(o);break;case 5:o=t.readString();e.setMiner(o);break;case 6:o=t.readUint64();e.setEpochPrice(o);break;case 7:o=t.readString();e.setPieceCid(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.FilStorage.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.FilStorage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.FilStorage.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getDealId())&&t.writeInt64(1,o),(o=e.getRenewed())&&t.writeBool(2,o),0!==(o=e.getDuration())&&t.writeInt64(3,o),0!==(o=e.getStartEpoch())&&t.writeUint64(4,o),(o=e.getMiner()).length>0&&t.writeString(5,o),0!==(o=e.getEpochPrice())&&t.writeUint64(6,o),(o=e.getPieceCid()).length>0&&t.writeString(7,o)},proto.powergate.user.v1.FilStorage.prototype.getDealId=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,0)},proto.powergate.user.v1.FilStorage.prototype.setDealId=function(e){return googleProtobuf.Message.setProto3IntField(this,1,e)},proto.powergate.user.v1.FilStorage.prototype.getRenewed=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,2,!1)},proto.powergate.user.v1.FilStorage.prototype.setRenewed=function(e){return googleProtobuf.Message.setProto3BooleanField(this,2,e)},proto.powergate.user.v1.FilStorage.prototype.getDuration=function(){return googleProtobuf.Message.getFieldWithDefault(this,3,0)},proto.powergate.user.v1.FilStorage.prototype.setDuration=function(e){return googleProtobuf.Message.setProto3IntField(this,3,e)},proto.powergate.user.v1.FilStorage.prototype.getStartEpoch=function(){return googleProtobuf.Message.getFieldWithDefault(this,4,0)},proto.powergate.user.v1.FilStorage.prototype.setStartEpoch=function(e){return googleProtobuf.Message.setProto3IntField(this,4,e)},proto.powergate.user.v1.FilStorage.prototype.getMiner=function(){return googleProtobuf.Message.getFieldWithDefault(this,5,"")},proto.powergate.user.v1.FilStorage.prototype.setMiner=function(e){return googleProtobuf.Message.setProto3StringField(this,5,e)},proto.powergate.user.v1.FilStorage.prototype.getEpochPrice=function(){return googleProtobuf.Message.getFieldWithDefault(this,6,0)},proto.powergate.user.v1.FilStorage.prototype.setEpochPrice=function(e){return googleProtobuf.Message.setProto3IntField(this,6,e)},proto.powergate.user.v1.FilStorage.prototype.getPieceCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,7,"")},proto.powergate.user.v1.FilStorage.prototype.setPieceCid=function(e){return googleProtobuf.Message.setProto3StringField(this,7,e)},proto.powergate.user.v1.FilInfo.repeatedFields_=[3],googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.FilInfo.prototype.toObject=function(e){return proto.powergate.user.v1.FilInfo.toObject(e,this)},proto.powergate.user.v1.FilInfo.toObject=function(e,t){var o={dataCid:googleProtobuf.Message.getFieldWithDefault(t,1,""),size:googleProtobuf.Message.getFieldWithDefault(t,2,0),proposalsList:googleProtobuf.Message.toObjectList(t.getProposalsList(),proto.powergate.user.v1.FilStorage.toObject,e)};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.FilInfo.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.FilInfo;return proto.powergate.user.v1.FilInfo.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.FilInfo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setDataCid(o);break;case 2:o=t.readUint64();e.setSize(o);break;case 3:o=new proto.powergate.user.v1.FilStorage;t.readMessage(o,proto.powergate.user.v1.FilStorage.deserializeBinaryFromReader),e.addProposals(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.FilInfo.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.FilInfo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.FilInfo.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getDataCid()).length>0&&t.writeString(1,o),0!==(o=e.getSize())&&t.writeUint64(2,o),(o=e.getProposalsList()).length>0&&t.writeRepeatedMessage(3,o,proto.powergate.user.v1.FilStorage.serializeBinaryToWriter)},proto.powergate.user.v1.FilInfo.prototype.getDataCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.FilInfo.prototype.setDataCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.FilInfo.prototype.getSize=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,0)},proto.powergate.user.v1.FilInfo.prototype.setSize=function(e){return googleProtobuf.Message.setProto3IntField(this,2,e)},proto.powergate.user.v1.FilInfo.prototype.getProposalsList=function(){return googleProtobuf.Message.getRepeatedWrapperField(this,proto.powergate.user.v1.FilStorage,3)},proto.powergate.user.v1.FilInfo.prototype.setProposalsList=function(e){return googleProtobuf.Message.setRepeatedWrapperField(this,3,e)},proto.powergate.user.v1.FilInfo.prototype.addProposals=function(e,t){return googleProtobuf.Message.addToRepeatedWrapperField(this,3,e,proto.powergate.user.v1.FilStorage,t)},proto.powergate.user.v1.FilInfo.prototype.clearProposalsList=function(){return this.setProposalsList([])},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.ColdInfo.prototype.toObject=function(e){return proto.powergate.user.v1.ColdInfo.toObject(e,this)},proto.powergate.user.v1.ColdInfo.toObject=function(e,t){var o,r={enabled:googleProtobuf.Message.getBooleanFieldWithDefault(t,1,!1),filecoin:(o=t.getFilecoin())&&proto.powergate.user.v1.FilInfo.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.ColdInfo.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.ColdInfo;return proto.powergate.user.v1.ColdInfo.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.ColdInfo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readBool();e.setEnabled(o);break;case 2:o=new proto.powergate.user.v1.FilInfo;t.readMessage(o,proto.powergate.user.v1.FilInfo.deserializeBinaryFromReader),e.setFilecoin(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.ColdInfo.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.ColdInfo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.ColdInfo.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getEnabled())&&t.writeBool(1,o),null!=(o=e.getFilecoin())&&t.writeMessage(2,o,proto.powergate.user.v1.FilInfo.serializeBinaryToWriter)},proto.powergate.user.v1.ColdInfo.prototype.getEnabled=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,1,!1)},proto.powergate.user.v1.ColdInfo.prototype.setEnabled=function(e){return googleProtobuf.Message.setProto3BooleanField(this,1,e)},proto.powergate.user.v1.ColdInfo.prototype.getFilecoin=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.FilInfo,2)},proto.powergate.user.v1.ColdInfo.prototype.setFilecoin=function(e){return googleProtobuf.Message.setWrapperField(this,2,e)},proto.powergate.user.v1.ColdInfo.prototype.clearFilecoin=function(){return this.setFilecoin(void 0)},proto.powergate.user.v1.ColdInfo.prototype.hasFilecoin=function(){return null!=googleProtobuf.Message.getField(this,2)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StorageInfo.prototype.toObject=function(e){return proto.powergate.user.v1.StorageInfo.toObject(e,this)},proto.powergate.user.v1.StorageInfo.toObject=function(e,t){var o,r={jobId:googleProtobuf.Message.getFieldWithDefault(t,1,""),cid:googleProtobuf.Message.getFieldWithDefault(t,2,""),created:googleProtobuf.Message.getFieldWithDefault(t,3,0),hot:(o=t.getHot())&&proto.powergate.user.v1.HotInfo.toObject(e,o),cold:(o=t.getCold())&&proto.powergate.user.v1.ColdInfo.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.StorageInfo.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StorageInfo;return proto.powergate.user.v1.StorageInfo.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StorageInfo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setJobId(o);break;case 2:o=t.readString();e.setCid(o);break;case 3:o=t.readInt64();e.setCreated(o);break;case 4:o=new proto.powergate.user.v1.HotInfo;t.readMessage(o,proto.powergate.user.v1.HotInfo.deserializeBinaryFromReader),e.setHot(o);break;case 5:o=new proto.powergate.user.v1.ColdInfo;t.readMessage(o,proto.powergate.user.v1.ColdInfo.deserializeBinaryFromReader),e.setCold(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.StorageInfo.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StorageInfo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StorageInfo.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getJobId()).length>0&&t.writeString(1,o),(o=e.getCid()).length>0&&t.writeString(2,o),0!==(o=e.getCreated())&&t.writeInt64(3,o),null!=(o=e.getHot())&&t.writeMessage(4,o,proto.powergate.user.v1.HotInfo.serializeBinaryToWriter),null!=(o=e.getCold())&&t.writeMessage(5,o,proto.powergate.user.v1.ColdInfo.serializeBinaryToWriter)},proto.powergate.user.v1.StorageInfo.prototype.getJobId=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.StorageInfo.prototype.setJobId=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.StorageInfo.prototype.getCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,"")},proto.powergate.user.v1.StorageInfo.prototype.setCid=function(e){return googleProtobuf.Message.setProto3StringField(this,2,e)},proto.powergate.user.v1.StorageInfo.prototype.getCreated=function(){return googleProtobuf.Message.getFieldWithDefault(this,3,0)},proto.powergate.user.v1.StorageInfo.prototype.setCreated=function(e){return googleProtobuf.Message.setProto3IntField(this,3,e)},proto.powergate.user.v1.StorageInfo.prototype.getHot=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.HotInfo,4)},proto.powergate.user.v1.StorageInfo.prototype.setHot=function(e){return googleProtobuf.Message.setWrapperField(this,4,e)},proto.powergate.user.v1.StorageInfo.prototype.clearHot=function(){return this.setHot(void 0)},proto.powergate.user.v1.StorageInfo.prototype.hasHot=function(){return null!=googleProtobuf.Message.getField(this,4)},proto.powergate.user.v1.StorageInfo.prototype.getCold=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.ColdInfo,5)},proto.powergate.user.v1.StorageInfo.prototype.setCold=function(e){return googleProtobuf.Message.setWrapperField(this,5,e)},proto.powergate.user.v1.StorageInfo.prototype.clearCold=function(){return this.setCold(void 0)},proto.powergate.user.v1.StorageInfo.prototype.hasCold=function(){return null!=googleProtobuf.Message.getField(this,5)},proto.powergate.user.v1.CidInfo.repeatedFields_=[4],googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.CidInfo.prototype.toObject=function(e){return proto.powergate.user.v1.CidInfo.toObject(e,this)},proto.powergate.user.v1.CidInfo.toObject=function(e,t){var o,r={cid:googleProtobuf.Message.getFieldWithDefault(t,1,""),latestPushedStorageConfig:(o=t.getLatestPushedStorageConfig())&&proto.powergate.user.v1.StorageConfig.toObject(e,o),currentStorageInfo:(o=t.getCurrentStorageInfo())&&proto.powergate.user.v1.StorageInfo.toObject(e,o),queuedStorageJobsList:googleProtobuf.Message.toObjectList(t.getQueuedStorageJobsList(),proto.powergate.user.v1.StorageJob.toObject,e),executingStorageJob:(o=t.getExecutingStorageJob())&&proto.powergate.user.v1.StorageJob.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.CidInfo.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.CidInfo;return proto.powergate.user.v1.CidInfo.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.CidInfo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setCid(o);break;case 2:o=new proto.powergate.user.v1.StorageConfig;t.readMessage(o,proto.powergate.user.v1.StorageConfig.deserializeBinaryFromReader),e.setLatestPushedStorageConfig(o);break;case 3:o=new proto.powergate.user.v1.StorageInfo;t.readMessage(o,proto.powergate.user.v1.StorageInfo.deserializeBinaryFromReader),e.setCurrentStorageInfo(o);break;case 4:o=new proto.powergate.user.v1.StorageJob;t.readMessage(o,proto.powergate.user.v1.StorageJob.deserializeBinaryFromReader),e.addQueuedStorageJobs(o);break;case 5:o=new proto.powergate.user.v1.StorageJob;t.readMessage(o,proto.powergate.user.v1.StorageJob.deserializeBinaryFromReader),e.setExecutingStorageJob(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.CidInfo.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.CidInfo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.CidInfo.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getCid()).length>0&&t.writeString(1,o),null!=(o=e.getLatestPushedStorageConfig())&&t.writeMessage(2,o,proto.powergate.user.v1.StorageConfig.serializeBinaryToWriter),null!=(o=e.getCurrentStorageInfo())&&t.writeMessage(3,o,proto.powergate.user.v1.StorageInfo.serializeBinaryToWriter),(o=e.getQueuedStorageJobsList()).length>0&&t.writeRepeatedMessage(4,o,proto.powergate.user.v1.StorageJob.serializeBinaryToWriter),null!=(o=e.getExecutingStorageJob())&&t.writeMessage(5,o,proto.powergate.user.v1.StorageJob.serializeBinaryToWriter)},proto.powergate.user.v1.CidInfo.prototype.getCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.CidInfo.prototype.setCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.CidInfo.prototype.getLatestPushedStorageConfig=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.StorageConfig,2)},proto.powergate.user.v1.CidInfo.prototype.setLatestPushedStorageConfig=function(e){return googleProtobuf.Message.setWrapperField(this,2,e)},proto.powergate.user.v1.CidInfo.prototype.clearLatestPushedStorageConfig=function(){return this.setLatestPushedStorageConfig(void 0)},proto.powergate.user.v1.CidInfo.prototype.hasLatestPushedStorageConfig=function(){return null!=googleProtobuf.Message.getField(this,2)},proto.powergate.user.v1.CidInfo.prototype.getCurrentStorageInfo=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.StorageInfo,3)},proto.powergate.user.v1.CidInfo.prototype.setCurrentStorageInfo=function(e){return googleProtobuf.Message.setWrapperField(this,3,e)},proto.powergate.user.v1.CidInfo.prototype.clearCurrentStorageInfo=function(){return this.setCurrentStorageInfo(void 0)},proto.powergate.user.v1.CidInfo.prototype.hasCurrentStorageInfo=function(){return null!=googleProtobuf.Message.getField(this,3)},proto.powergate.user.v1.CidInfo.prototype.getQueuedStorageJobsList=function(){return googleProtobuf.Message.getRepeatedWrapperField(this,proto.powergate.user.v1.StorageJob,4)},proto.powergate.user.v1.CidInfo.prototype.setQueuedStorageJobsList=function(e){return googleProtobuf.Message.setRepeatedWrapperField(this,4,e)},proto.powergate.user.v1.CidInfo.prototype.addQueuedStorageJobs=function(e,t){return googleProtobuf.Message.addToRepeatedWrapperField(this,4,e,proto.powergate.user.v1.StorageJob,t)},proto.powergate.user.v1.CidInfo.prototype.clearQueuedStorageJobsList=function(){return this.setQueuedStorageJobsList([])},proto.powergate.user.v1.CidInfo.prototype.getExecutingStorageJob=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.StorageJob,5)},proto.powergate.user.v1.CidInfo.prototype.setExecutingStorageJob=function(e){return googleProtobuf.Message.setWrapperField(this,5,e)},proto.powergate.user.v1.CidInfo.prototype.clearExecutingStorageJob=function(){return this.setExecutingStorageJob(void 0)},proto.powergate.user.v1.CidInfo.prototype.hasExecutingStorageJob=function(){return null!=googleProtobuf.Message.getField(this,5)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.DealInfo.prototype.toObject=function(e){return proto.powergate.user.v1.DealInfo.toObject(e,this)},proto.powergate.user.v1.DealInfo.toObject=function(e,t){var o={proposalCid:googleProtobuf.Message.getFieldWithDefault(t,1,""),stateId:googleProtobuf.Message.getFieldWithDefault(t,2,0),stateName:googleProtobuf.Message.getFieldWithDefault(t,3,""),miner:googleProtobuf.Message.getFieldWithDefault(t,4,""),pieceCid:googleProtobuf.Message.getFieldWithDefault(t,5,""),size:googleProtobuf.Message.getFieldWithDefault(t,6,0),pricePerEpoch:googleProtobuf.Message.getFieldWithDefault(t,7,0),startEpoch:googleProtobuf.Message.getFieldWithDefault(t,8,0),duration:googleProtobuf.Message.getFieldWithDefault(t,9,0),dealId:googleProtobuf.Message.getFieldWithDefault(t,10,0),activationEpoch:googleProtobuf.Message.getFieldWithDefault(t,11,0),message:googleProtobuf.Message.getFieldWithDefault(t,12,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.DealInfo.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.DealInfo;return proto.powergate.user.v1.DealInfo.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.DealInfo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setProposalCid(o);break;case 2:o=t.readUint64();e.setStateId(o);break;case 3:o=t.readString();e.setStateName(o);break;case 4:o=t.readString();e.setMiner(o);break;case 5:o=t.readString();e.setPieceCid(o);break;case 6:o=t.readUint64();e.setSize(o);break;case 7:o=t.readUint64();e.setPricePerEpoch(o);break;case 8:o=t.readUint64();e.setStartEpoch(o);break;case 9:o=t.readUint64();e.setDuration(o);break;case 10:o=t.readUint64();e.setDealId(o);break;case 11:o=t.readInt64();e.setActivationEpoch(o);break;case 12:o=t.readString();e.setMessage(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.DealInfo.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.DealInfo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.DealInfo.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getProposalCid()).length>0&&t.writeString(1,o),0!==(o=e.getStateId())&&t.writeUint64(2,o),(o=e.getStateName()).length>0&&t.writeString(3,o),(o=e.getMiner()).length>0&&t.writeString(4,o),(o=e.getPieceCid()).length>0&&t.writeString(5,o),0!==(o=e.getSize())&&t.writeUint64(6,o),0!==(o=e.getPricePerEpoch())&&t.writeUint64(7,o),0!==(o=e.getStartEpoch())&&t.writeUint64(8,o),0!==(o=e.getDuration())&&t.writeUint64(9,o),0!==(o=e.getDealId())&&t.writeUint64(10,o),0!==(o=e.getActivationEpoch())&&t.writeInt64(11,o),(o=e.getMessage()).length>0&&t.writeString(12,o)},proto.powergate.user.v1.DealInfo.prototype.getProposalCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.DealInfo.prototype.setProposalCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.DealInfo.prototype.getStateId=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,0)},proto.powergate.user.v1.DealInfo.prototype.setStateId=function(e){return googleProtobuf.Message.setProto3IntField(this,2,e)},proto.powergate.user.v1.DealInfo.prototype.getStateName=function(){return googleProtobuf.Message.getFieldWithDefault(this,3,"")},proto.powergate.user.v1.DealInfo.prototype.setStateName=function(e){return googleProtobuf.Message.setProto3StringField(this,3,e)},proto.powergate.user.v1.DealInfo.prototype.getMiner=function(){return googleProtobuf.Message.getFieldWithDefault(this,4,"")},proto.powergate.user.v1.DealInfo.prototype.setMiner=function(e){return googleProtobuf.Message.setProto3StringField(this,4,e)},proto.powergate.user.v1.DealInfo.prototype.getPieceCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,5,"")},proto.powergate.user.v1.DealInfo.prototype.setPieceCid=function(e){return googleProtobuf.Message.setProto3StringField(this,5,e)},proto.powergate.user.v1.DealInfo.prototype.getSize=function(){return googleProtobuf.Message.getFieldWithDefault(this,6,0)},proto.powergate.user.v1.DealInfo.prototype.setSize=function(e){return googleProtobuf.Message.setProto3IntField(this,6,e)},proto.powergate.user.v1.DealInfo.prototype.getPricePerEpoch=function(){return googleProtobuf.Message.getFieldWithDefault(this,7,0)},proto.powergate.user.v1.DealInfo.prototype.setPricePerEpoch=function(e){return googleProtobuf.Message.setProto3IntField(this,7,e)},proto.powergate.user.v1.DealInfo.prototype.getStartEpoch=function(){return googleProtobuf.Message.getFieldWithDefault(this,8,0)},proto.powergate.user.v1.DealInfo.prototype.setStartEpoch=function(e){return googleProtobuf.Message.setProto3IntField(this,8,e)},proto.powergate.user.v1.DealInfo.prototype.getDuration=function(){return googleProtobuf.Message.getFieldWithDefault(this,9,0)},proto.powergate.user.v1.DealInfo.prototype.setDuration=function(e){return googleProtobuf.Message.setProto3IntField(this,9,e)},proto.powergate.user.v1.DealInfo.prototype.getDealId=function(){return googleProtobuf.Message.getFieldWithDefault(this,10,0)},proto.powergate.user.v1.DealInfo.prototype.setDealId=function(e){return googleProtobuf.Message.setProto3IntField(this,10,e)},proto.powergate.user.v1.DealInfo.prototype.getActivationEpoch=function(){return googleProtobuf.Message.getFieldWithDefault(this,11,0)},proto.powergate.user.v1.DealInfo.prototype.setActivationEpoch=function(e){return googleProtobuf.Message.setProto3IntField(this,11,e)},proto.powergate.user.v1.DealInfo.prototype.getMessage=function(){return googleProtobuf.Message.getFieldWithDefault(this,12,"")},proto.powergate.user.v1.DealInfo.prototype.setMessage=function(e){return googleProtobuf.Message.setProto3StringField(this,12,e)},proto.powergate.user.v1.StorageJob.repeatedFields_=[6,7],googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StorageJob.prototype.toObject=function(e){return proto.powergate.user.v1.StorageJob.toObject(e,this)},proto.powergate.user.v1.StorageJob.toObject=function(e,t){var o={id:googleProtobuf.Message.getFieldWithDefault(t,1,""),apiId:googleProtobuf.Message.getFieldWithDefault(t,2,""),cid:googleProtobuf.Message.getFieldWithDefault(t,3,""),status:googleProtobuf.Message.getFieldWithDefault(t,4,0),errorCause:googleProtobuf.Message.getFieldWithDefault(t,5,""),dealInfoList:googleProtobuf.Message.toObjectList(t.getDealInfoList(),proto.powergate.user.v1.DealInfo.toObject,e),dealErrorsList:googleProtobuf.Message.toObjectList(t.getDealErrorsList(),proto.powergate.user.v1.DealError.toObject,e),createdAt:googleProtobuf.Message.getFieldWithDefault(t,8,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.StorageJob.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StorageJob;return proto.powergate.user.v1.StorageJob.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StorageJob.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setId(o);break;case 2:o=t.readString();e.setApiId(o);break;case 3:o=t.readString();e.setCid(o);break;case 4:o=t.readEnum();e.setStatus(o);break;case 5:o=t.readString();e.setErrorCause(o);break;case 6:o=new proto.powergate.user.v1.DealInfo;t.readMessage(o,proto.powergate.user.v1.DealInfo.deserializeBinaryFromReader),e.addDealInfo(o);break;case 7:o=new proto.powergate.user.v1.DealError;t.readMessage(o,proto.powergate.user.v1.DealError.deserializeBinaryFromReader),e.addDealErrors(o);break;case 8:o=t.readInt64();e.setCreatedAt(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.StorageJob.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StorageJob.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StorageJob.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getId()).length>0&&t.writeString(1,o),(o=e.getApiId()).length>0&&t.writeString(2,o),(o=e.getCid()).length>0&&t.writeString(3,o),0!==(o=e.getStatus())&&t.writeEnum(4,o),(o=e.getErrorCause()).length>0&&t.writeString(5,o),(o=e.getDealInfoList()).length>0&&t.writeRepeatedMessage(6,o,proto.powergate.user.v1.DealInfo.serializeBinaryToWriter),(o=e.getDealErrorsList()).length>0&&t.writeRepeatedMessage(7,o,proto.powergate.user.v1.DealError.serializeBinaryToWriter),0!==(o=e.getCreatedAt())&&t.writeInt64(8,o)},proto.powergate.user.v1.StorageJob.prototype.getId=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.StorageJob.prototype.setId=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.StorageJob.prototype.getApiId=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,"")},proto.powergate.user.v1.StorageJob.prototype.setApiId=function(e){return googleProtobuf.Message.setProto3StringField(this,2,e)},proto.powergate.user.v1.StorageJob.prototype.getCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,3,"")},proto.powergate.user.v1.StorageJob.prototype.setCid=function(e){return googleProtobuf.Message.setProto3StringField(this,3,e)},proto.powergate.user.v1.StorageJob.prototype.getStatus=function(){return googleProtobuf.Message.getFieldWithDefault(this,4,0)},proto.powergate.user.v1.StorageJob.prototype.setStatus=function(e){return googleProtobuf.Message.setProto3EnumField(this,4,e)},proto.powergate.user.v1.StorageJob.prototype.getErrorCause=function(){return googleProtobuf.Message.getFieldWithDefault(this,5,"")},proto.powergate.user.v1.StorageJob.prototype.setErrorCause=function(e){return googleProtobuf.Message.setProto3StringField(this,5,e)},proto.powergate.user.v1.StorageJob.prototype.getDealInfoList=function(){return googleProtobuf.Message.getRepeatedWrapperField(this,proto.powergate.user.v1.DealInfo,6)},proto.powergate.user.v1.StorageJob.prototype.setDealInfoList=function(e){return googleProtobuf.Message.setRepeatedWrapperField(this,6,e)},proto.powergate.user.v1.StorageJob.prototype.addDealInfo=function(e,t){return googleProtobuf.Message.addToRepeatedWrapperField(this,6,e,proto.powergate.user.v1.DealInfo,t)},proto.powergate.user.v1.StorageJob.prototype.clearDealInfoList=function(){return this.setDealInfoList([])},proto.powergate.user.v1.StorageJob.prototype.getDealErrorsList=function(){return googleProtobuf.Message.getRepeatedWrapperField(this,proto.powergate.user.v1.DealError,7)},proto.powergate.user.v1.StorageJob.prototype.setDealErrorsList=function(e){return googleProtobuf.Message.setRepeatedWrapperField(this,7,e)},proto.powergate.user.v1.StorageJob.prototype.addDealErrors=function(e,t){return googleProtobuf.Message.addToRepeatedWrapperField(this,7,e,proto.powergate.user.v1.DealError,t)},proto.powergate.user.v1.StorageJob.prototype.clearDealErrorsList=function(){return this.setDealErrorsList([])},proto.powergate.user.v1.StorageJob.prototype.getCreatedAt=function(){return googleProtobuf.Message.getFieldWithDefault(this,8,0)},proto.powergate.user.v1.StorageJob.prototype.setCreatedAt=function(e){return googleProtobuf.Message.setProto3IntField(this,8,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.DealError.prototype.toObject=function(e){return proto.powergate.user.v1.DealError.toObject(e,this)},proto.powergate.user.v1.DealError.toObject=function(e,t){var o={proposalCid:googleProtobuf.Message.getFieldWithDefault(t,1,""),miner:googleProtobuf.Message.getFieldWithDefault(t,2,""),message:googleProtobuf.Message.getFieldWithDefault(t,3,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.DealError.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.DealError;return proto.powergate.user.v1.DealError.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.DealError.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setProposalCid(o);break;case 2:o=t.readString();e.setMiner(o);break;case 3:o=t.readString();e.setMessage(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.DealError.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.DealError.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.DealError.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getProposalCid()).length>0&&t.writeString(1,o),(o=e.getMiner()).length>0&&t.writeString(2,o),(o=e.getMessage()).length>0&&t.writeString(3,o)},proto.powergate.user.v1.DealError.prototype.getProposalCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.DealError.prototype.setProposalCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.DealError.prototype.getMiner=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,"")},proto.powergate.user.v1.DealError.prototype.setMiner=function(e){return googleProtobuf.Message.setProto3StringField(this,2,e)},proto.powergate.user.v1.DealError.prototype.getMessage=function(){return googleProtobuf.Message.getFieldWithDefault(this,3,"")},proto.powergate.user.v1.DealError.prototype.setMessage=function(e){return googleProtobuf.Message.setProto3StringField(this,3,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.LogEntry.prototype.toObject=function(e){return proto.powergate.user.v1.LogEntry.toObject(e,this)},proto.powergate.user.v1.LogEntry.toObject=function(e,t){var o={cid:googleProtobuf.Message.getFieldWithDefault(t,1,""),jobId:googleProtobuf.Message.getFieldWithDefault(t,2,""),time:googleProtobuf.Message.getFieldWithDefault(t,3,0),message:googleProtobuf.Message.getFieldWithDefault(t,4,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.LogEntry.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.LogEntry;return proto.powergate.user.v1.LogEntry.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.LogEntry.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setCid(o);break;case 2:o=t.readString();e.setJobId(o);break;case 3:o=t.readInt64();e.setTime(o);break;case 4:o=t.readString();e.setMessage(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.LogEntry.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.LogEntry.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.LogEntry.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getCid()).length>0&&t.writeString(1,o),(o=e.getJobId()).length>0&&t.writeString(2,o),0!==(o=e.getTime())&&t.writeInt64(3,o),(o=e.getMessage()).length>0&&t.writeString(4,o)},proto.powergate.user.v1.LogEntry.prototype.getCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.LogEntry.prototype.setCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.LogEntry.prototype.getJobId=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,"")},proto.powergate.user.v1.LogEntry.prototype.setJobId=function(e){return googleProtobuf.Message.setProto3StringField(this,2,e)},proto.powergate.user.v1.LogEntry.prototype.getTime=function(){return googleProtobuf.Message.getFieldWithDefault(this,3,0)},proto.powergate.user.v1.LogEntry.prototype.setTime=function(e){return googleProtobuf.Message.setProto3IntField(this,3,e)},proto.powergate.user.v1.LogEntry.prototype.getMessage=function(){return googleProtobuf.Message.getFieldWithDefault(this,4,"")},proto.powergate.user.v1.LogEntry.prototype.setMessage=function(e){return googleProtobuf.Message.setProto3StringField(this,4,e)},proto.powergate.user.v1.DealRecordsConfig.repeatedFields_=[1,2],googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.DealRecordsConfig.prototype.toObject=function(e){return proto.powergate.user.v1.DealRecordsConfig.toObject(e,this)},proto.powergate.user.v1.DealRecordsConfig.toObject=function(e,t){var o,r={fromAddrsList:null==(o=googleProtobuf.Message.getRepeatedField(t,1))?void 0:o,dataCidsList:null==(o=googleProtobuf.Message.getRepeatedField(t,2))?void 0:o,includePending:googleProtobuf.Message.getBooleanFieldWithDefault(t,3,!1),includeFinal:googleProtobuf.Message.getBooleanFieldWithDefault(t,4,!1),ascending:googleProtobuf.Message.getBooleanFieldWithDefault(t,5,!1),includeFailed:googleProtobuf.Message.getBooleanFieldWithDefault(t,6,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.DealRecordsConfig.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.DealRecordsConfig;return proto.powergate.user.v1.DealRecordsConfig.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.DealRecordsConfig.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.addFromAddrs(o);break;case 2:o=t.readString();e.addDataCids(o);break;case 3:o=t.readBool();e.setIncludePending(o);break;case 4:o=t.readBool();e.setIncludeFinal(o);break;case 5:o=t.readBool();e.setAscending(o);break;case 6:o=t.readBool();e.setIncludeFailed(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.DealRecordsConfig.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.DealRecordsConfig.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.DealRecordsConfig.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getFromAddrsList()).length>0&&t.writeRepeatedString(1,o),(o=e.getDataCidsList()).length>0&&t.writeRepeatedString(2,o),(o=e.getIncludePending())&&t.writeBool(3,o),(o=e.getIncludeFinal())&&t.writeBool(4,o),(o=e.getAscending())&&t.writeBool(5,o),(o=e.getIncludeFailed())&&t.writeBool(6,o)},proto.powergate.user.v1.DealRecordsConfig.prototype.getFromAddrsList=function(){return googleProtobuf.Message.getRepeatedField(this,1)},proto.powergate.user.v1.DealRecordsConfig.prototype.setFromAddrsList=function(e){return googleProtobuf.Message.setField(this,1,e||[])},proto.powergate.user.v1.DealRecordsConfig.prototype.addFromAddrs=function(e,t){return googleProtobuf.Message.addToRepeatedField(this,1,e,t)},proto.powergate.user.v1.DealRecordsConfig.prototype.clearFromAddrsList=function(){return this.setFromAddrsList([])},proto.powergate.user.v1.DealRecordsConfig.prototype.getDataCidsList=function(){return googleProtobuf.Message.getRepeatedField(this,2)},proto.powergate.user.v1.DealRecordsConfig.prototype.setDataCidsList=function(e){return googleProtobuf.Message.setField(this,2,e||[])},proto.powergate.user.v1.DealRecordsConfig.prototype.addDataCids=function(e,t){return googleProtobuf.Message.addToRepeatedField(this,2,e,t)},proto.powergate.user.v1.DealRecordsConfig.prototype.clearDataCidsList=function(){return this.setDataCidsList([])},proto.powergate.user.v1.DealRecordsConfig.prototype.getIncludePending=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,3,!1)},proto.powergate.user.v1.DealRecordsConfig.prototype.setIncludePending=function(e){return googleProtobuf.Message.setProto3BooleanField(this,3,e)},proto.powergate.user.v1.DealRecordsConfig.prototype.getIncludeFinal=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,4,!1)},proto.powergate.user.v1.DealRecordsConfig.prototype.setIncludeFinal=function(e){return googleProtobuf.Message.setProto3BooleanField(this,4,e)},proto.powergate.user.v1.DealRecordsConfig.prototype.getAscending=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,5,!1)},proto.powergate.user.v1.DealRecordsConfig.prototype.setAscending=function(e){return googleProtobuf.Message.setProto3BooleanField(this,5,e)},proto.powergate.user.v1.DealRecordsConfig.prototype.getIncludeFailed=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,6,!1)},proto.powergate.user.v1.DealRecordsConfig.prototype.setIncludeFailed=function(e){return googleProtobuf.Message.setProto3BooleanField(this,6,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StorageDealInfo.prototype.toObject=function(e){return proto.powergate.user.v1.StorageDealInfo.toObject(e,this)},proto.powergate.user.v1.StorageDealInfo.toObject=function(e,t){var o={proposalCid:googleProtobuf.Message.getFieldWithDefault(t,1,""),stateId:googleProtobuf.Message.getFieldWithDefault(t,2,0),stateName:googleProtobuf.Message.getFieldWithDefault(t,3,""),miner:googleProtobuf.Message.getFieldWithDefault(t,4,""),pieceCid:googleProtobuf.Message.getFieldWithDefault(t,5,""),size:googleProtobuf.Message.getFieldWithDefault(t,6,0),pricePerEpoch:googleProtobuf.Message.getFieldWithDefault(t,7,0),startEpoch:googleProtobuf.Message.getFieldWithDefault(t,8,0),duration:googleProtobuf.Message.getFieldWithDefault(t,9,0),dealId:googleProtobuf.Message.getFieldWithDefault(t,10,0),activationEpoch:googleProtobuf.Message.getFieldWithDefault(t,11,0),message:googleProtobuf.Message.getFieldWithDefault(t,12,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.StorageDealInfo.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StorageDealInfo;return proto.powergate.user.v1.StorageDealInfo.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StorageDealInfo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setProposalCid(o);break;case 2:o=t.readUint64();e.setStateId(o);break;case 3:o=t.readString();e.setStateName(o);break;case 4:o=t.readString();e.setMiner(o);break;case 5:o=t.readString();e.setPieceCid(o);break;case 6:o=t.readUint64();e.setSize(o);break;case 7:o=t.readUint64();e.setPricePerEpoch(o);break;case 8:o=t.readUint64();e.setStartEpoch(o);break;case 9:o=t.readUint64();e.setDuration(o);break;case 10:o=t.readUint64();e.setDealId(o);break;case 11:o=t.readInt64();e.setActivationEpoch(o);break;case 12:o=t.readString();e.setMessage(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.StorageDealInfo.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StorageDealInfo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StorageDealInfo.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getProposalCid()).length>0&&t.writeString(1,o),0!==(o=e.getStateId())&&t.writeUint64(2,o),(o=e.getStateName()).length>0&&t.writeString(3,o),(o=e.getMiner()).length>0&&t.writeString(4,o),(o=e.getPieceCid()).length>0&&t.writeString(5,o),0!==(o=e.getSize())&&t.writeUint64(6,o),0!==(o=e.getPricePerEpoch())&&t.writeUint64(7,o),0!==(o=e.getStartEpoch())&&t.writeUint64(8,o),0!==(o=e.getDuration())&&t.writeUint64(9,o),0!==(o=e.getDealId())&&t.writeUint64(10,o),0!==(o=e.getActivationEpoch())&&t.writeInt64(11,o),(o=e.getMessage()).length>0&&t.writeString(12,o)},proto.powergate.user.v1.StorageDealInfo.prototype.getProposalCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.StorageDealInfo.prototype.setProposalCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.StorageDealInfo.prototype.getStateId=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,0)},proto.powergate.user.v1.StorageDealInfo.prototype.setStateId=function(e){return googleProtobuf.Message.setProto3IntField(this,2,e)},proto.powergate.user.v1.StorageDealInfo.prototype.getStateName=function(){return googleProtobuf.Message.getFieldWithDefault(this,3,"")},proto.powergate.user.v1.StorageDealInfo.prototype.setStateName=function(e){return googleProtobuf.Message.setProto3StringField(this,3,e)},proto.powergate.user.v1.StorageDealInfo.prototype.getMiner=function(){return googleProtobuf.Message.getFieldWithDefault(this,4,"")},proto.powergate.user.v1.StorageDealInfo.prototype.setMiner=function(e){return googleProtobuf.Message.setProto3StringField(this,4,e)},proto.powergate.user.v1.StorageDealInfo.prototype.getPieceCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,5,"")},proto.powergate.user.v1.StorageDealInfo.prototype.setPieceCid=function(e){return googleProtobuf.Message.setProto3StringField(this,5,e)},proto.powergate.user.v1.StorageDealInfo.prototype.getSize=function(){return googleProtobuf.Message.getFieldWithDefault(this,6,0)},proto.powergate.user.v1.StorageDealInfo.prototype.setSize=function(e){return googleProtobuf.Message.setProto3IntField(this,6,e)},proto.powergate.user.v1.StorageDealInfo.prototype.getPricePerEpoch=function(){return googleProtobuf.Message.getFieldWithDefault(this,7,0)},proto.powergate.user.v1.StorageDealInfo.prototype.setPricePerEpoch=function(e){return googleProtobuf.Message.setProto3IntField(this,7,e)},proto.powergate.user.v1.StorageDealInfo.prototype.getStartEpoch=function(){return googleProtobuf.Message.getFieldWithDefault(this,8,0)},proto.powergate.user.v1.StorageDealInfo.prototype.setStartEpoch=function(e){return googleProtobuf.Message.setProto3IntField(this,8,e)},proto.powergate.user.v1.StorageDealInfo.prototype.getDuration=function(){return googleProtobuf.Message.getFieldWithDefault(this,9,0)},proto.powergate.user.v1.StorageDealInfo.prototype.setDuration=function(e){return googleProtobuf.Message.setProto3IntField(this,9,e)},proto.powergate.user.v1.StorageDealInfo.prototype.getDealId=function(){return googleProtobuf.Message.getFieldWithDefault(this,10,0)},proto.powergate.user.v1.StorageDealInfo.prototype.setDealId=function(e){return googleProtobuf.Message.setProto3IntField(this,10,e)},proto.powergate.user.v1.StorageDealInfo.prototype.getActivationEpoch=function(){return googleProtobuf.Message.getFieldWithDefault(this,11,0)},proto.powergate.user.v1.StorageDealInfo.prototype.setActivationEpoch=function(e){return googleProtobuf.Message.setProto3IntField(this,11,e)},proto.powergate.user.v1.StorageDealInfo.prototype.getMessage=function(){return googleProtobuf.Message.getFieldWithDefault(this,12,"")},proto.powergate.user.v1.StorageDealInfo.prototype.setMessage=function(e){return googleProtobuf.Message.setProto3StringField(this,12,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.StorageDealRecord.prototype.toObject=function(e){return proto.powergate.user.v1.StorageDealRecord.toObject(e,this)},proto.powergate.user.v1.StorageDealRecord.toObject=function(e,t){var o,r={rootCid:googleProtobuf.Message.getFieldWithDefault(t,1,""),address:googleProtobuf.Message.getFieldWithDefault(t,2,""),time:googleProtobuf.Message.getFieldWithDefault(t,3,0),pending:googleProtobuf.Message.getBooleanFieldWithDefault(t,4,!1),dealInfo:(o=t.getDealInfo())&&proto.powergate.user.v1.StorageDealInfo.toObject(e,o),transferSize:googleProtobuf.Message.getFieldWithDefault(t,6,0),dataTransferStart:(o=t.getDataTransferStart())&&timestamp_pb.Timestamp.toObject(e,o),dataTransferEnd:(o=t.getDataTransferEnd())&&timestamp_pb.Timestamp.toObject(e,o),sealingStart:(o=t.getSealingStart())&&timestamp_pb.Timestamp.toObject(e,o),sealingEnd:(o=t.getSealingEnd())&&timestamp_pb.Timestamp.toObject(e,o),errMsg:googleProtobuf.Message.getFieldWithDefault(t,11,""),updatedAt:(o=t.getUpdatedAt())&&timestamp_pb.Timestamp.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.StorageDealRecord.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.StorageDealRecord;return proto.powergate.user.v1.StorageDealRecord.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.StorageDealRecord.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setRootCid(o);break;case 2:o=t.readString();e.setAddress(o);break;case 3:o=t.readInt64();e.setTime(o);break;case 4:o=t.readBool();e.setPending(o);break;case 5:o=new proto.powergate.user.v1.StorageDealInfo;t.readMessage(o,proto.powergate.user.v1.StorageDealInfo.deserializeBinaryFromReader),e.setDealInfo(o);break;case 6:o=t.readInt64();e.setTransferSize(o);break;case 7:o=new timestamp_pb.Timestamp;t.readMessage(o,timestamp_pb.Timestamp.deserializeBinaryFromReader),e.setDataTransferStart(o);break;case 8:o=new timestamp_pb.Timestamp;t.readMessage(o,timestamp_pb.Timestamp.deserializeBinaryFromReader),e.setDataTransferEnd(o);break;case 9:o=new timestamp_pb.Timestamp;t.readMessage(o,timestamp_pb.Timestamp.deserializeBinaryFromReader),e.setSealingStart(o);break;case 10:o=new timestamp_pb.Timestamp;t.readMessage(o,timestamp_pb.Timestamp.deserializeBinaryFromReader),e.setSealingEnd(o);break;case 11:o=t.readString();e.setErrMsg(o);break;case 12:o=new timestamp_pb.Timestamp;t.readMessage(o,timestamp_pb.Timestamp.deserializeBinaryFromReader),e.setUpdatedAt(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.StorageDealRecord.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.StorageDealRecord.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.StorageDealRecord.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getRootCid()).length>0&&t.writeString(1,o),(o=e.getAddress()).length>0&&t.writeString(2,o),0!==(o=e.getTime())&&t.writeInt64(3,o),(o=e.getPending())&&t.writeBool(4,o),null!=(o=e.getDealInfo())&&t.writeMessage(5,o,proto.powergate.user.v1.StorageDealInfo.serializeBinaryToWriter),0!==(o=e.getTransferSize())&&t.writeInt64(6,o),null!=(o=e.getDataTransferStart())&&t.writeMessage(7,o,timestamp_pb.Timestamp.serializeBinaryToWriter),null!=(o=e.getDataTransferEnd())&&t.writeMessage(8,o,timestamp_pb.Timestamp.serializeBinaryToWriter),null!=(o=e.getSealingStart())&&t.writeMessage(9,o,timestamp_pb.Timestamp.serializeBinaryToWriter),null!=(o=e.getSealingEnd())&&t.writeMessage(10,o,timestamp_pb.Timestamp.serializeBinaryToWriter),(o=e.getErrMsg()).length>0&&t.writeString(11,o),null!=(o=e.getUpdatedAt())&&t.writeMessage(12,o,timestamp_pb.Timestamp.serializeBinaryToWriter)},proto.powergate.user.v1.StorageDealRecord.prototype.getRootCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.StorageDealRecord.prototype.setRootCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.StorageDealRecord.prototype.getAddress=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,"")},proto.powergate.user.v1.StorageDealRecord.prototype.setAddress=function(e){return googleProtobuf.Message.setProto3StringField(this,2,e)},proto.powergate.user.v1.StorageDealRecord.prototype.getTime=function(){return googleProtobuf.Message.getFieldWithDefault(this,3,0)},proto.powergate.user.v1.StorageDealRecord.prototype.setTime=function(e){return googleProtobuf.Message.setProto3IntField(this,3,e)},proto.powergate.user.v1.StorageDealRecord.prototype.getPending=function(){return googleProtobuf.Message.getBooleanFieldWithDefault(this,4,!1)},proto.powergate.user.v1.StorageDealRecord.prototype.setPending=function(e){return googleProtobuf.Message.setProto3BooleanField(this,4,e)},proto.powergate.user.v1.StorageDealRecord.prototype.getDealInfo=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.StorageDealInfo,5)},proto.powergate.user.v1.StorageDealRecord.prototype.setDealInfo=function(e){return googleProtobuf.Message.setWrapperField(this,5,e)},proto.powergate.user.v1.StorageDealRecord.prototype.clearDealInfo=function(){return this.setDealInfo(void 0)},proto.powergate.user.v1.StorageDealRecord.prototype.hasDealInfo=function(){return null!=googleProtobuf.Message.getField(this,5)},proto.powergate.user.v1.StorageDealRecord.prototype.getTransferSize=function(){return googleProtobuf.Message.getFieldWithDefault(this,6,0)},proto.powergate.user.v1.StorageDealRecord.prototype.setTransferSize=function(e){return googleProtobuf.Message.setProto3IntField(this,6,e)},proto.powergate.user.v1.StorageDealRecord.prototype.getDataTransferStart=function(){return googleProtobuf.Message.getWrapperField(this,timestamp_pb.Timestamp,7)},proto.powergate.user.v1.StorageDealRecord.prototype.setDataTransferStart=function(e){return googleProtobuf.Message.setWrapperField(this,7,e)},proto.powergate.user.v1.StorageDealRecord.prototype.clearDataTransferStart=function(){return this.setDataTransferStart(void 0)},proto.powergate.user.v1.StorageDealRecord.prototype.hasDataTransferStart=function(){return null!=googleProtobuf.Message.getField(this,7)},proto.powergate.user.v1.StorageDealRecord.prototype.getDataTransferEnd=function(){return googleProtobuf.Message.getWrapperField(this,timestamp_pb.Timestamp,8)},proto.powergate.user.v1.StorageDealRecord.prototype.setDataTransferEnd=function(e){return googleProtobuf.Message.setWrapperField(this,8,e)},proto.powergate.user.v1.StorageDealRecord.prototype.clearDataTransferEnd=function(){return this.setDataTransferEnd(void 0)},proto.powergate.user.v1.StorageDealRecord.prototype.hasDataTransferEnd=function(){return null!=googleProtobuf.Message.getField(this,8)},proto.powergate.user.v1.StorageDealRecord.prototype.getSealingStart=function(){return googleProtobuf.Message.getWrapperField(this,timestamp_pb.Timestamp,9)},proto.powergate.user.v1.StorageDealRecord.prototype.setSealingStart=function(e){return googleProtobuf.Message.setWrapperField(this,9,e)},proto.powergate.user.v1.StorageDealRecord.prototype.clearSealingStart=function(){return this.setSealingStart(void 0)},proto.powergate.user.v1.StorageDealRecord.prototype.hasSealingStart=function(){return null!=googleProtobuf.Message.getField(this,9)},proto.powergate.user.v1.StorageDealRecord.prototype.getSealingEnd=function(){return googleProtobuf.Message.getWrapperField(this,timestamp_pb.Timestamp,10)},proto.powergate.user.v1.StorageDealRecord.prototype.setSealingEnd=function(e){return googleProtobuf.Message.setWrapperField(this,10,e)},proto.powergate.user.v1.StorageDealRecord.prototype.clearSealingEnd=function(){return this.setSealingEnd(void 0)},proto.powergate.user.v1.StorageDealRecord.prototype.hasSealingEnd=function(){return null!=googleProtobuf.Message.getField(this,10)},proto.powergate.user.v1.StorageDealRecord.prototype.getErrMsg=function(){return googleProtobuf.Message.getFieldWithDefault(this,11,"")},proto.powergate.user.v1.StorageDealRecord.prototype.setErrMsg=function(e){return googleProtobuf.Message.setProto3StringField(this,11,e)},proto.powergate.user.v1.StorageDealRecord.prototype.getUpdatedAt=function(){return googleProtobuf.Message.getWrapperField(this,timestamp_pb.Timestamp,12)},proto.powergate.user.v1.StorageDealRecord.prototype.setUpdatedAt=function(e){return googleProtobuf.Message.setWrapperField(this,12,e)},proto.powergate.user.v1.StorageDealRecord.prototype.clearUpdatedAt=function(){return this.setUpdatedAt(void 0)},proto.powergate.user.v1.StorageDealRecord.prototype.hasUpdatedAt=function(){return null!=googleProtobuf.Message.getField(this,12)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.RetrievalDealInfo.prototype.toObject=function(e){return proto.powergate.user.v1.RetrievalDealInfo.toObject(e,this)},proto.powergate.user.v1.RetrievalDealInfo.toObject=function(e,t){var o={rootCid:googleProtobuf.Message.getFieldWithDefault(t,1,""),size:googleProtobuf.Message.getFieldWithDefault(t,2,0),minPrice:googleProtobuf.Message.getFieldWithDefault(t,3,0),paymentInterval:googleProtobuf.Message.getFieldWithDefault(t,4,0),paymentIntervalIncrease:googleProtobuf.Message.getFieldWithDefault(t,5,0),miner:googleProtobuf.Message.getFieldWithDefault(t,6,""),minerPeerId:googleProtobuf.Message.getFieldWithDefault(t,7,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.powergate.user.v1.RetrievalDealInfo.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.RetrievalDealInfo;return proto.powergate.user.v1.RetrievalDealInfo.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.RetrievalDealInfo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setRootCid(o);break;case 2:o=t.readUint64();e.setSize(o);break;case 3:o=t.readUint64();e.setMinPrice(o);break;case 4:o=t.readUint64();e.setPaymentInterval(o);break;case 5:o=t.readUint64();e.setPaymentIntervalIncrease(o);break;case 6:o=t.readString();e.setMiner(o);break;case 7:o=t.readString();e.setMinerPeerId(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.RetrievalDealInfo.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.RetrievalDealInfo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.RetrievalDealInfo.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getRootCid()).length>0&&t.writeString(1,o),0!==(o=e.getSize())&&t.writeUint64(2,o),0!==(o=e.getMinPrice())&&t.writeUint64(3,o),0!==(o=e.getPaymentInterval())&&t.writeUint64(4,o),0!==(o=e.getPaymentIntervalIncrease())&&t.writeUint64(5,o),(o=e.getMiner()).length>0&&t.writeString(6,o),(o=e.getMinerPeerId()).length>0&&t.writeString(7,o)},proto.powergate.user.v1.RetrievalDealInfo.prototype.getRootCid=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.RetrievalDealInfo.prototype.setRootCid=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.RetrievalDealInfo.prototype.getSize=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,0)},proto.powergate.user.v1.RetrievalDealInfo.prototype.setSize=function(e){return googleProtobuf.Message.setProto3IntField(this,2,e)},proto.powergate.user.v1.RetrievalDealInfo.prototype.getMinPrice=function(){return googleProtobuf.Message.getFieldWithDefault(this,3,0)},proto.powergate.user.v1.RetrievalDealInfo.prototype.setMinPrice=function(e){return googleProtobuf.Message.setProto3IntField(this,3,e)},proto.powergate.user.v1.RetrievalDealInfo.prototype.getPaymentInterval=function(){return googleProtobuf.Message.getFieldWithDefault(this,4,0)},proto.powergate.user.v1.RetrievalDealInfo.prototype.setPaymentInterval=function(e){return googleProtobuf.Message.setProto3IntField(this,4,e)},proto.powergate.user.v1.RetrievalDealInfo.prototype.getPaymentIntervalIncrease=function(){return googleProtobuf.Message.getFieldWithDefault(this,5,0)},proto.powergate.user.v1.RetrievalDealInfo.prototype.setPaymentIntervalIncrease=function(e){return googleProtobuf.Message.setProto3IntField(this,5,e)},proto.powergate.user.v1.RetrievalDealInfo.prototype.getMiner=function(){return googleProtobuf.Message.getFieldWithDefault(this,6,"")},proto.powergate.user.v1.RetrievalDealInfo.prototype.setMiner=function(e){return googleProtobuf.Message.setProto3StringField(this,6,e)},proto.powergate.user.v1.RetrievalDealInfo.prototype.getMinerPeerId=function(){return googleProtobuf.Message.getFieldWithDefault(this,7,"")},proto.powergate.user.v1.RetrievalDealInfo.prototype.setMinerPeerId=function(e){return googleProtobuf.Message.setProto3StringField(this,7,e)},googleProtobuf.Message.GENERATE_TO_OBJECT&&(proto.powergate.user.v1.RetrievalDealRecord.prototype.toObject=function(e){return proto.powergate.user.v1.RetrievalDealRecord.toObject(e,this)},proto.powergate.user.v1.RetrievalDealRecord.toObject=function(e,t){var o,r={address:googleProtobuf.Message.getFieldWithDefault(t,1,""),time:googleProtobuf.Message.getFieldWithDefault(t,2,0),dealInfo:(o=t.getDealInfo())&&proto.powergate.user.v1.RetrievalDealInfo.toObject(e,o),dataTransferStart:(o=t.getDataTransferStart())&&timestamp_pb.Timestamp.toObject(e,o),dataTransferEnd:(o=t.getDataTransferEnd())&&timestamp_pb.Timestamp.toObject(e,o),errMsg:googleProtobuf.Message.getFieldWithDefault(t,6,""),updatedAt:(o=t.getUpdatedAt())&&timestamp_pb.Timestamp.toObject(e,o),id:googleProtobuf.Message.getFieldWithDefault(t,8,""),bytesReceived:googleProtobuf.Message.getFieldWithDefault(t,9,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.powergate.user.v1.RetrievalDealRecord.deserializeBinary=function(e){var t=new googleProtobuf.BinaryReader(e),o=new proto.powergate.user.v1.RetrievalDealRecord;return proto.powergate.user.v1.RetrievalDealRecord.deserializeBinaryFromReader(o,t)},proto.powergate.user.v1.RetrievalDealRecord.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setAddress(o);break;case 2:o=t.readInt64();e.setTime(o);break;case 3:o=new proto.powergate.user.v1.RetrievalDealInfo;t.readMessage(o,proto.powergate.user.v1.RetrievalDealInfo.deserializeBinaryFromReader),e.setDealInfo(o);break;case 4:o=new timestamp_pb.Timestamp;t.readMessage(o,timestamp_pb.Timestamp.deserializeBinaryFromReader),e.setDataTransferStart(o);break;case 5:o=new timestamp_pb.Timestamp;t.readMessage(o,timestamp_pb.Timestamp.deserializeBinaryFromReader),e.setDataTransferEnd(o);break;case 6:o=t.readString();e.setErrMsg(o);break;case 7:o=new timestamp_pb.Timestamp;t.readMessage(o,timestamp_pb.Timestamp.deserializeBinaryFromReader),e.setUpdatedAt(o);break;case 8:o=t.readString();e.setId(o);break;case 9:o=t.readUint64();e.setBytesReceived(o);break;default:t.skipField()}}return e},proto.powergate.user.v1.RetrievalDealRecord.prototype.serializeBinary=function(){var e=new googleProtobuf.BinaryWriter;return proto.powergate.user.v1.RetrievalDealRecord.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.powergate.user.v1.RetrievalDealRecord.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getAddress()).length>0&&t.writeString(1,o),0!==(o=e.getTime())&&t.writeInt64(2,o),null!=(o=e.getDealInfo())&&t.writeMessage(3,o,proto.powergate.user.v1.RetrievalDealInfo.serializeBinaryToWriter),null!=(o=e.getDataTransferStart())&&t.writeMessage(4,o,timestamp_pb.Timestamp.serializeBinaryToWriter),null!=(o=e.getDataTransferEnd())&&t.writeMessage(5,o,timestamp_pb.Timestamp.serializeBinaryToWriter),(o=e.getErrMsg()).length>0&&t.writeString(6,o),null!=(o=e.getUpdatedAt())&&t.writeMessage(7,o,timestamp_pb.Timestamp.serializeBinaryToWriter),(o=e.getId()).length>0&&t.writeString(8,o),0!==(o=e.getBytesReceived())&&t.writeUint64(9,o)},proto.powergate.user.v1.RetrievalDealRecord.prototype.getAddress=function(){return googleProtobuf.Message.getFieldWithDefault(this,1,"")},proto.powergate.user.v1.RetrievalDealRecord.prototype.setAddress=function(e){return googleProtobuf.Message.setProto3StringField(this,1,e)},proto.powergate.user.v1.RetrievalDealRecord.prototype.getTime=function(){return googleProtobuf.Message.getFieldWithDefault(this,2,0)},proto.powergate.user.v1.RetrievalDealRecord.prototype.setTime=function(e){return googleProtobuf.Message.setProto3IntField(this,2,e)},proto.powergate.user.v1.RetrievalDealRecord.prototype.getDealInfo=function(){return googleProtobuf.Message.getWrapperField(this,proto.powergate.user.v1.RetrievalDealInfo,3)},proto.powergate.user.v1.RetrievalDealRecord.prototype.setDealInfo=function(e){return googleProtobuf.Message.setWrapperField(this,3,e)},proto.powergate.user.v1.RetrievalDealRecord.prototype.clearDealInfo=function(){return this.setDealInfo(void 0)},proto.powergate.user.v1.RetrievalDealRecord.prototype.hasDealInfo=function(){return null!=googleProtobuf.Message.getField(this,3)},proto.powergate.user.v1.RetrievalDealRecord.prototype.getDataTransferStart=function(){return googleProtobuf.Message.getWrapperField(this,timestamp_pb.Timestamp,4)},proto.powergate.user.v1.RetrievalDealRecord.prototype.setDataTransferStart=function(e){return googleProtobuf.Message.setWrapperField(this,4,e)},proto.powergate.user.v1.RetrievalDealRecord.prototype.clearDataTransferStart=function(){return this.setDataTransferStart(void 0)},proto.powergate.user.v1.RetrievalDealRecord.prototype.hasDataTransferStart=function(){return null!=googleProtobuf.Message.getField(this,4)},proto.powergate.user.v1.RetrievalDealRecord.prototype.getDataTransferEnd=function(){return googleProtobuf.Message.getWrapperField(this,timestamp_pb.Timestamp,5)},proto.powergate.user.v1.RetrievalDealRecord.prototype.setDataTransferEnd=function(e){return googleProtobuf.Message.setWrapperField(this,5,e)},proto.powergate.user.v1.RetrievalDealRecord.prototype.clearDataTransferEnd=function(){return this.setDataTransferEnd(void 0)},proto.powergate.user.v1.RetrievalDealRecord.prototype.hasDataTransferEnd=function(){return null!=googleProtobuf.Message.getField(this,5)},proto.powergate.user.v1.RetrievalDealRecord.prototype.getErrMsg=function(){return googleProtobuf.Message.getFieldWithDefault(this,6,"")},proto.powergate.user.v1.RetrievalDealRecord.prototype.setErrMsg=function(e){return googleProtobuf.Message.setProto3StringField(this,6,e)},proto.powergate.user.v1.RetrievalDealRecord.prototype.getUpdatedAt=function(){return googleProtobuf.Message.getWrapperField(this,timestamp_pb.Timestamp,7)},proto.powergate.user.v1.RetrievalDealRecord.prototype.setUpdatedAt=function(e){return googleProtobuf.Message.setWrapperField(this,7,e)},proto.powergate.user.v1.RetrievalDealRecord.prototype.clearUpdatedAt=function(){return this.setUpdatedAt(void 0)},proto.powergate.user.v1.RetrievalDealRecord.prototype.hasUpdatedAt=function(){return null!=googleProtobuf.Message.getField(this,7)},proto.powergate.user.v1.RetrievalDealRecord.prototype.getId=function(){return googleProtobuf.Message.getFieldWithDefault(this,8,"")},proto.powergate.user.v1.RetrievalDealRecord.prototype.setId=function(e){return googleProtobuf.Message.setProto3StringField(this,8,e)},proto.powergate.user.v1.RetrievalDealRecord.prototype.getBytesReceived=function(){return googleProtobuf.Message.getFieldWithDefault(this,9,0)},proto.powergate.user.v1.RetrievalDealRecord.prototype.setBytesReceived=function(e){return googleProtobuf.Message.setProto3IntField(this,9,e)},proto.powergate.user.v1.JobStatus={JOB_STATUS_UNSPECIFIED:0,JOB_STATUS_QUEUED:1,JOB_STATUS_EXECUTING:2,JOB_STATUS_FAILED:3,JOB_STATUS_CANCELED:4,JOB_STATUS_SUCCESS:5},proto.powergate.user.v1.StorageJobsSelector={STORAGE_JOBS_SELECTOR_UNSPECIFIED:0,STORAGE_JOBS_SELECTOR_ALL:1,STORAGE_JOBS_SELECTOR_QUEUED:2,STORAGE_JOBS_SELECTOR_EXECUTING:3,STORAGE_JOBS_SELECTOR_FINAL:4},o.object.extend(t,proto.powergate.user.v1)})),grpcWebClient_umd=createCommonjsModule((function(e,t){var o,r;e.exports=(o={84:function(e){var t;t=function(){return function(e){var t={};function o(r){if(t[r])return t[r].exports;var s=t[r]={i:r,l:!1,exports:{}};return e[r].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=e,o.c=t,o.i=function(e){return e},o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=1)}([function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0});var r=o(3),s=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={splitValues:!1});var o,s=this;this.headersMap={},e&&("undefined"!=typeof Headers&&e instanceof Headers?r.getHeaderKeys(e).forEach((function(o){r.getHeaderValues(e,o).forEach((function(e){t.splitValues?s.append(o,r.splitHeaderValue(e)):s.append(o,e)}))})):"object"==typeof(o=e)&&"object"==typeof o.headersMap&&"function"==typeof o.forEach?e.forEach((function(e,t){s.append(e,t)})):"undefined"!=typeof Map&&e instanceof Map?e.forEach((function(e,t){s.append(t,e)})):"string"==typeof e?this.appendFromString(e):"object"==typeof e&&Object.getOwnPropertyNames(e).forEach((function(t){var o=e[t];Array.isArray(o)?o.forEach((function(e){s.append(t,e)})):s.append(t,o)})))}return e.prototype.appendFromString=function(e){for(var t=e.split("\r\n"),o=0;o<t.length;o++){var r=t[o],s=r.indexOf(":");if(s>0){var n=r.substring(0,s).trim(),i=r.substring(s+1).trim();this.append(n,i)}}},e.prototype.delete=function(e,t){var o=r.normalizeName(e);if(void 0===t)delete this.headersMap[o];else{var s=this.headersMap[o];if(s){var n=s.indexOf(t);n>=0&&s.splice(n,1),0===s.length&&delete this.headersMap[o]}}},e.prototype.append=function(e,t){var o=this,s=r.normalizeName(e);Array.isArray(this.headersMap[s])||(this.headersMap[s]=[]),Array.isArray(t)?t.forEach((function(e){o.headersMap[s].push(r.normalizeValue(e))})):this.headersMap[s].push(r.normalizeValue(t))},e.prototype.set=function(e,t){var o=r.normalizeName(e);if(Array.isArray(t)){var s=[];t.forEach((function(e){s.push(r.normalizeValue(e))})),this.headersMap[o]=s}else this.headersMap[o]=[r.normalizeValue(t)]},e.prototype.has=function(e,t){var o=this.headersMap[r.normalizeName(e)];if(!Array.isArray(o))return!1;if(void 0!==t){var s=r.normalizeValue(t);return o.indexOf(s)>=0}return!0},e.prototype.get=function(e){var t=this.headersMap[r.normalizeName(e)];return void 0!==t?t.concat():[]},e.prototype.forEach=function(e){var t=this;Object.getOwnPropertyNames(this.headersMap).forEach((function(o){e(o,t.headersMap[o])}),this)},e.prototype.toHeaders=function(){if("undefined"!=typeof Headers){var e=new Headers;return this.forEach((function(t,o){o.forEach((function(o){e.append(t,o)}))})),e}throw new Error("Headers class is not defined")},e}();t.BrowserHeaders=s},function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0});var r=o(0);t.BrowserHeaders=r.BrowserHeaders},function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.iterateHeaders=function(e,t){for(var o=e[Symbol.iterator](),r=o.next();!r.done;)t(r.value[0]),r=o.next()},t.iterateHeadersKeys=function(e,t){for(var o=e.keys(),r=o.next();!r.done;)t(r.value),r=o.next()}},function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0});var r=o(2);t.normalizeName=function(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()},t.normalizeValue=function(e){return"string"!=typeof e&&(e=String(e)),e},t.getHeaderValues=function(e,t){var o=e;if(o instanceof Headers&&o.getAll)return o.getAll(t);var r=o.get(t);return r&&"string"==typeof r?[r]:r},t.getHeaderKeys=function(e){var t=e,o={},s=[];return t.keys?r.iterateHeadersKeys(t,(function(e){o[e]||(o[e]=!0,s.push(e))})):t.forEach?t.forEach((function(e,t){o[t]||(o[t]=!0,s.push(t))})):r.iterateHeaders(t,(function(e){var t=e[0];o[t]||(o[t]=!0,s.push(t))})),s},t.splitHeaderValue=function(e){var t=[];return e.split(", ").forEach((function(e){e.split(",").forEach((function(e){t.push(e)}))})),t}}])},e.exports=t()},617:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkParser=t.ChunkType=t.encodeASCII=t.decodeASCII=void 0;var r,s=o(65);function n(e){return 9===(t=e)||10===t||13===t||e>=32&&e<=126;var t}function i(e){for(var t=0;t!==e.length;++t)if(!n(e[t]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(e))}function a(e){return 128==(128&e.getUint8(0))}function g(e){return e.getUint32(1,!1)}function u(e,t,o){return e.byteLength-t>=o}function p(e,t,o){if(e.slice)return e.slice(t,o);var r=e.length;void 0!==o&&(r=o);for(var s=new Uint8Array(r-t),n=0,i=t;i<r;i++)s[n++]=e[i];return s}t.decodeASCII=i,t.encodeASCII=function(e){for(var t=new Uint8Array(e.length),o=0;o!==e.length;++o){var r=e.charCodeAt(o);if(!n(r))throw new Error("Metadata contains invalid ASCII");t[o]=r}return t},function(e){e[e.MESSAGE=1]="MESSAGE",e[e.TRAILERS=2]="TRAILERS"}(r=t.ChunkType||(t.ChunkType={}));var l=function(){function e(){this.buffer=null,this.position=0}return e.prototype.parse=function(e,t){if(0===e.length&&t)return[];var o,n=[];if(null==this.buffer)this.buffer=e,this.position=0;else if(this.position===this.buffer.byteLength)this.buffer=e,this.position=0;else{var l=this.buffer.byteLength-this.position,f=new Uint8Array(l+e.byteLength),d=p(this.buffer,this.position);f.set(d,0);var c=new Uint8Array(e);f.set(c,l),this.buffer=f,this.position=0}for(;;){if(!u(this.buffer,this.position,5))return n;var b=p(this.buffer,this.position,this.position+5),h=new DataView(b.buffer,b.byteOffset,b.byteLength),y=g(h);if(!u(this.buffer,this.position,5+y))return n;var S=p(this.buffer,this.position+5,this.position+5+y);if(this.position+=5+y,a(h))return n.push({chunkType:r.TRAILERS,trailers:(o=S,new s.Metadata(i(o)))}),n;n.push({chunkType:r.MESSAGE,data:S})}},e}();t.ChunkParser=l},8:(e,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.httpStatusToCode=t.Code=void 0,function(e){e[e.OK=0]="OK",e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.InvalidArgument=3]="InvalidArgument",e[e.DeadlineExceeded=4]="DeadlineExceeded",e[e.NotFound=5]="NotFound",e[e.AlreadyExists=6]="AlreadyExists",e[e.PermissionDenied=7]="PermissionDenied",e[e.ResourceExhausted=8]="ResourceExhausted",e[e.FailedPrecondition=9]="FailedPrecondition",e[e.Aborted=10]="Aborted",e[e.OutOfRange=11]="OutOfRange",e[e.Unimplemented=12]="Unimplemented",e[e.Internal=13]="Internal",e[e.Unavailable=14]="Unavailable",e[e.DataLoss=15]="DataLoss",e[e.Unauthenticated=16]="Unauthenticated"}(o=t.Code||(t.Code={})),t.httpStatusToCode=function(e){switch(e){case 0:return o.Internal;case 200:return o.OK;case 400:return o.InvalidArgument;case 401:return o.Unauthenticated;case 403:return o.PermissionDenied;case 404:return o.NotFound;case 409:return o.Aborted;case 412:return o.FailedPrecondition;case 429:return o.ResourceExhausted;case 499:return o.Canceled;case 500:return o.Unknown;case 501:return o.Unimplemented;case 503:return o.Unavailable;case 504:return o.DeadlineExceeded;default:return o.Unknown}}},934:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.client=void 0;var r=o(65),s=o(617),n=o(8),i=o(346),a=o(57),g=o(882);t.client=function(e,t){return new u(e,t)};var u=function(){function e(e,t){this.started=!1,this.sentFirstMessage=!1,this.completed=!1,this.closed=!1,this.finishedSending=!1,this.onHeadersCallbacks=[],this.onMessageCallbacks=[],this.onEndCallbacks=[],this.parser=new s.ChunkParser,this.methodDefinition=e,this.props=t,this.createTransport()}return e.prototype.createTransport=function(){var e=this.props.host+"/"+this.methodDefinition.service.serviceName+"/"+this.methodDefinition.methodName,t={methodDefinition:this.methodDefinition,debug:this.props.debug||!1,url:e,onHeaders:this.onTransportHeaders.bind(this),onChunk:this.onTransportChunk.bind(this),onEnd:this.onTransportEnd.bind(this)};this.props.transport?this.transport=this.props.transport(t):this.transport=a.makeDefaultTransport(t)},e.prototype.onTransportHeaders=function(e,t){if(this.props.debug&&i.debug("onHeaders",e,t),this.closed)this.props.debug&&i.debug("grpc.onHeaders received after request was closed - ignoring");else if(0===t);else{this.responseHeaders=e,this.props.debug&&i.debug("onHeaders.responseHeaders",JSON.stringify(this.responseHeaders,null,2));var o=p(e);this.props.debug&&i.debug("onHeaders.gRPCStatus",o);var r=o&&o>=0?o:n.httpStatusToCode(t);this.props.debug&&i.debug("onHeaders.code",r);var s=e.get("grpc-message")||[];if(this.props.debug&&i.debug("onHeaders.gRPCMessage",s),this.rawOnHeaders(e),r!==n.Code.OK){var a=this.decodeGRPCStatus(s[0]);this.rawOnError(r,a,e)}}},e.prototype.onTransportChunk=function(e){var t=this;if(this.closed)this.props.debug&&i.debug("grpc.onChunk received after request was closed - ignoring");else{var o=[];try{o=this.parser.parse(e)}catch(e){return this.props.debug&&i.debug("onChunk.parsing error",e,e.message),void this.rawOnError(n.Code.Internal,"parsing error: "+e.message)}o.forEach((function(e){if(e.chunkType===s.ChunkType.MESSAGE){var o=t.methodDefinition.responseType.deserializeBinary(e.data);t.rawOnMessage(o)}else e.chunkType===s.ChunkType.TRAILERS&&(t.responseHeaders?(t.responseTrailers=new r.Metadata(e.trailers),t.props.debug&&i.debug("onChunk.trailers",t.responseTrailers)):(t.responseHeaders=new r.Metadata(e.trailers),t.rawOnHeaders(t.responseHeaders)))}))}},e.prototype.onTransportEnd=function(){if(this.props.debug&&i.debug("grpc.onEnd"),this.closed)this.props.debug&&i.debug("grpc.onEnd received after request was closed - ignoring");else if(void 0!==this.responseTrailers){var e=p(this.responseTrailers);if(null!==e){var t=this.responseTrailers.get("grpc-message"),o=this.decodeGRPCStatus(t[0]);this.rawOnEnd(e,o,this.responseTrailers)}else this.rawOnError(n.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(void 0===this.responseHeaders)return void this.rawOnError(n.Code.Unknown,"Response closed without headers");var r=p(this.responseHeaders),s=this.responseHeaders.get("grpc-message");if(this.props.debug&&i.debug("grpc.headers only response ",r,s),null===r)return void this.rawOnEnd(n.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var a=this.decodeGRPCStatus(s[0]);this.rawOnEnd(r,a,this.responseHeaders)}},e.prototype.decodeGRPCStatus=function(e){if(!e)return"";try{return decodeURIComponent(e)}catch(t){return e}},e.prototype.rawOnEnd=function(e,t,o){var r=this;this.props.debug&&i.debug("rawOnEnd",e,t,o),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(s){if(!r.closed)try{s(e,t,o)}catch(e){setTimeout((function(){throw e}))}})))},e.prototype.rawOnHeaders=function(e){this.props.debug&&i.debug("rawOnHeaders",e),this.completed||this.onHeadersCallbacks.forEach((function(t){try{t(e)}catch(e){setTimeout((function(){throw e}))}}))},e.prototype.rawOnError=function(e,t,o){var s=this;void 0===o&&(o=new r.Metadata),this.props.debug&&i.debug("rawOnError",e,t),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(r){if(!s.closed)try{r(e,t,o)}catch(e){setTimeout((function(){throw e}))}})))},e.prototype.rawOnMessage=function(e){var t=this;this.props.debug&&i.debug("rawOnMessage",e.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach((function(o){if(!t.closed)try{o(e)}catch(e){setTimeout((function(){throw e}))}}))},e.prototype.onHeaders=function(e){this.onHeadersCallbacks.push(e)},e.prototype.onMessage=function(e){this.onMessageCallbacks.push(e)},e.prototype.onEnd=function(e){this.onEndCallbacks.push(e)},e.prototype.start=function(e){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var t=new r.Metadata(e||{});t.set("content-type","application/grpc-web+proto"),t.set("x-grpc-web","1"),this.transport.start(t)},e.prototype.send=function(e){if(!this.started)throw new Error("Client not started - .start() must be called before .send()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .send()");if(!this.methodDefinition.requestStream&&this.sentFirstMessage)throw new Error("Message already sent for non-client-streaming method - cannot .send()");this.sentFirstMessage=!0;var t=g.frameRequest(e);this.transport.sendMessage(t)},e.prototype.finishSend=function(){if(!this.started)throw new Error("Client not started - .finishSend() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .finishSend()");this.finishedSending=!0,this.transport.finishSend()},e.prototype.close=function(){if(!this.started)throw new Error("Client not started - .start() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .close()");this.closed=!0,this.props.debug&&i.debug("request.abort aborting request"),this.transport.cancel()},e}();function p(e){var t=e.get("grpc-status")||[];if(t.length>0)try{var o=t[0];return parseInt(o,10)}catch(e){return null}return null}},346:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.debug=void 0,t.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.debug?console.debug.apply(null,e):console.log.apply(null,e)}},607:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.grpc=void 0;var r,s=o(84),n=o(57),i=o(229),a=o(540),g=o(210),u=o(859),p=o(8),l=o(938),f=o(35),d=o(934);(r=t.grpc||(t.grpc={})).setDefaultTransport=n.setDefaultTransportFactory,r.CrossBrowserHttpTransport=u.CrossBrowserHttpTransport,r.FetchReadableStreamTransport=i.FetchReadableStreamTransport,r.XhrTransport=g.XhrTransport,r.WebsocketTransport=a.WebsocketTransport,r.Code=p.Code,r.Metadata=s.BrowserHeaders,r.client=function(e,t){return d.client(e,t)},r.invoke=l.invoke,r.unary=f.unary},938:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.invoke=void 0;var r=o(934);t.invoke=function(e,t){if(e.requestStream)throw new Error(".invoke cannot be used with client-streaming methods. Use .client instead.");var o=r.client(e,{host:t.host,transport:t.transport,debug:t.debug});return t.onHeaders&&o.onHeaders(t.onHeaders),t.onMessage&&o.onMessage(t.onMessage),t.onEnd&&o.onEnd(t.onEnd),o.start(t.metadata),o.send(t.request),o.finishSend(),{close:function(){o.close()}}}},65:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=o(84);Object.defineProperty(t,"Metadata",{enumerable:!0,get:function(){return r.BrowserHeaders}})},57:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.makeDefaultTransport=t.setDefaultTransportFactory=void 0;var r=o(859),s=function(e){return r.CrossBrowserHttpTransport({withCredentials:!1})(e)};t.setDefaultTransportFactory=function(e){s=e},t.makeDefaultTransport=function(e){return s(e)}},229:function(e,t,o){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var s in t=arguments[o])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.detectFetchSupport=t.FetchReadableStreamTransport=void 0;var s=o(65),n=o(346);t.FetchReadableStreamTransport=function(e){return function(t){return function(e,t){return e.debug&&n.debug("fetchRequest",e),new i(e,t)}(t,e)}};var i=function(){function e(e,t){this.cancelled=!1,this.controller=self.AbortController&&new AbortController,this.options=e,this.init=t}return e.prototype.pump=function(e,t){var o=this;if(this.reader=e,this.cancelled)return this.options.debug&&n.debug("Fetch.pump.cancel at first pump"),void this.reader.cancel().catch((function(e){o.options.debug&&n.debug("Fetch.pump.reader.cancel exception",e)}));this.reader.read().then((function(e){if(e.done)return o.options.onEnd(),t;o.options.onChunk(e.value),o.pump(o.reader,t)})).catch((function(e){o.cancelled?o.options.debug&&n.debug("Fetch.catch - request cancelled"):(o.cancelled=!0,o.options.debug&&n.debug("Fetch.catch",e.message),o.options.onEnd(e))}))},e.prototype.send=function(e){var t=this;fetch(this.options.url,r(r({},this.init),{headers:this.metadata.toHeaders(),method:"POST",body:e,signal:this.controller&&this.controller.signal})).then((function(e){if(t.options.debug&&n.debug("Fetch.response",e),t.options.onHeaders(new s.Metadata(e.headers),e.status),!e.body)return e;t.pump(e.body.getReader(),e)})).catch((function(e){t.cancelled?t.options.debug&&n.debug("Fetch.catch - request cancelled"):(t.cancelled=!0,t.options.debug&&n.debug("Fetch.catch",e.message),t.options.onEnd(e))}))},e.prototype.sendMessage=function(e){this.send(e)},e.prototype.finishSend=function(){},e.prototype.start=function(e){this.metadata=e},e.prototype.cancel=function(){var e=this;this.cancelled?this.options.debug&&n.debug("Fetch.cancel already cancelled"):(this.cancelled=!0,this.controller?(this.options.debug&&n.debug("Fetch.cancel.controller.abort"),this.controller.abort()):this.options.debug&&n.debug("Fetch.cancel.missing abort controller"),this.reader?(this.options.debug&&n.debug("Fetch.cancel.reader.cancel"),this.reader.cancel().catch((function(t){e.options.debug&&n.debug("Fetch.cancel.reader.cancel exception",t)}))):this.options.debug&&n.debug("Fetch.cancel before reader"))},e}();t.detectFetchSupport=function(){return"undefined"!=typeof Response&&Response.prototype.hasOwnProperty("body")&&"function"==typeof Headers}},859:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CrossBrowserHttpTransport=void 0;var r=o(229),s=o(210);t.CrossBrowserHttpTransport=function(e){if(r.detectFetchSupport()){var t={credentials:e.withCredentials?"include":"same-origin"};return r.FetchReadableStreamTransport(t)}return s.XhrTransport({withCredentials:e.withCredentials})}},210:function(e,t,o){var r,s=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0}),t.stringToArrayBuffer=t.MozChunkedArrayBufferXHR=t.XHR=t.XhrTransport=void 0;var n=o(65),i=o(346),a=o(849);t.XhrTransport=function(e){return function(t){if(a.detectMozXHRSupport())return new u(t,e);if(a.detectXHROverrideMimeTypeSupport())return new g(t,e);throw new Error("This environment's XHR implementation cannot support binary transfer.")}};var g=function(){function e(e,t){this.options=e,this.init=t}return e.prototype.onProgressEvent=function(){this.options.debug&&i.debug("XHR.onProgressEvent.length: ",this.xhr.response.length);var e=this.xhr.response.substr(this.index);this.index=this.xhr.response.length;var t=l(e);this.options.onChunk(t)},e.prototype.onLoadEvent=function(){this.options.debug&&i.debug("XHR.onLoadEvent"),this.options.onEnd()},e.prototype.onStateChange=function(){this.options.debug&&i.debug("XHR.onStateChange",this.xhr.readyState),this.xhr.readyState===XMLHttpRequest.HEADERS_RECEIVED&&this.options.onHeaders(new n.Metadata(this.xhr.getAllResponseHeaders()),this.xhr.status)},e.prototype.sendMessage=function(e){this.xhr.send(e)},e.prototype.finishSend=function(){},e.prototype.start=function(e){var t=this;this.metadata=e;var o=new XMLHttpRequest;this.xhr=o,o.open("POST",this.options.url),this.configureXhr(),this.metadata.forEach((function(e,t){o.setRequestHeader(e,t.join(", "))})),o.withCredentials=Boolean(this.init.withCredentials),o.addEventListener("readystatechange",this.onStateChange.bind(this)),o.addEventListener("progress",this.onProgressEvent.bind(this)),o.addEventListener("loadend",this.onLoadEvent.bind(this)),o.addEventListener("error",(function(e){t.options.debug&&i.debug("XHR.error",e),t.options.onEnd(e.error)}))},e.prototype.configureXhr=function(){this.xhr.responseType="text",this.xhr.overrideMimeType("text/plain; charset=x-user-defined")},e.prototype.cancel=function(){this.options.debug&&i.debug("XHR.abort"),this.xhr.abort()},e}();t.XHR=g;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.configureXhr=function(){this.options.debug&&i.debug("MozXHR.configureXhr: setting responseType to 'moz-chunked-arraybuffer'"),this.xhr.responseType="moz-chunked-arraybuffer"},t.prototype.onProgressEvent=function(){var e=this.xhr.response;this.options.debug&&i.debug("MozXHR.onProgressEvent: ",new Uint8Array(e)),this.options.onChunk(new Uint8Array(e))},t}(g);function p(e,t){var o=e.charCodeAt(t);if(o>=55296&&o<=56319){var r=e.charCodeAt(t+1);r>=56320&&r<=57343&&(o=65536+(o-55296<<10)+(r-56320))}return o}function l(e){for(var t=new Uint8Array(e.length),o=0,r=0;r<e.length;r++){var s=String.prototype.codePointAt?e.codePointAt(r):p(e,r);t[o++]=255&s}return t}t.MozChunkedArrayBufferXHR=u,t.stringToArrayBuffer=l},849:(e,t)=>{var o;function r(){if(void 0!==o)return o;if(XMLHttpRequest){o=new XMLHttpRequest;try{o.open("GET","https://localhost")}catch(e){}}return o}function s(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.detectXHROverrideMimeTypeSupport=t.detectMozXHRSupport=t.xhrSupportsResponseType=void 0,t.xhrSupportsResponseType=s,t.detectMozXHRSupport=function(){return"undefined"!=typeof XMLHttpRequest&&s("moz-chunked-arraybuffer")},t.detectXHROverrideMimeTypeSupport=function(){return"undefined"!=typeof XMLHttpRequest&&XMLHttpRequest.prototype.hasOwnProperty("overrideMimeType")}},540:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebsocketTransport=void 0;var r,s=o(346),n=o(617);!function(e){e[e.FINISH_SEND=1]="FINISH_SEND"}(r||(r={}));var i=new Uint8Array([1]);t.WebsocketTransport=function(){return function(e){return function(e){e.debug&&s.debug("websocketRequest",e);var t,o=function(e){if("https://"===e.substr(0,8))return"wss://"+e.substr(8);if("http://"===e.substr(0,7))return"ws://"+e.substr(7);throw new Error("Websocket transport constructed with non-https:// or http:// host.")}(e.url),a=[];function g(e){if(e===r.FINISH_SEND)t.send(i);else{var o=e,s=new Int8Array(o.byteLength+1);s.set(new Uint8Array([0])),s.set(o,1),t.send(s)}}return{sendMessage:function(e){t&&t.readyState!==t.CONNECTING?g(e):a.push(e)},finishSend:function(){t&&t.readyState!==t.CONNECTING?g(r.FINISH_SEND):a.push(r.FINISH_SEND)},start:function(r){(t=new WebSocket(o,["grpc-websockets"])).binaryType="arraybuffer",t.onopen=function(){var o;e.debug&&s.debug("websocketRequest.onopen"),t.send((o="",r.forEach((function(e,t){o+=e+": "+t.join(", ")+"\r\n"})),n.encodeASCII(o))),a.forEach((function(e){g(e)}))},t.onclose=function(t){e.debug&&s.debug("websocketRequest.onclose",t),e.onEnd()},t.onerror=function(t){e.debug&&s.debug("websocketRequest.onerror",t)},t.onmessage=function(t){e.onChunk(new Uint8Array(t.data))}},cancel:function(){e.debug&&s.debug("websocket.abort"),t.close()}}}(e)}}},35:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.unary=void 0;var r=o(65),s=o(934);t.unary=function(e,t){if(e.responseStream)throw new Error(".unary cannot be used with server-streaming methods. Use .invoke or .client instead.");if(e.requestStream)throw new Error(".unary cannot be used with client-streaming methods. Use .client instead.");var o=null,n=null,i=s.client(e,{host:t.host,transport:t.transport,debug:t.debug});return i.onHeaders((function(e){o=e})),i.onMessage((function(e){n=e})),i.onEnd((function(e,s,i){t.onEnd({status:e,statusMessage:s,headers:o||new r.Metadata,message:n,trailers:i})})),i.start(t.metadata),i.send(t.request),i.finishSend(),{close:function(){i.close()}}}},882:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.frameRequest=void 0,t.frameRequest=function(e){var t=e.serializeBinary(),o=new ArrayBuffer(t.byteLength+5);return new DataView(o,1,4).setUint32(0,t.length,!1),new Uint8Array(o,5).set(t),new Uint8Array(o)}}},r={},function e(t){if(r[t])return r[t].exports;var s=r[t]={exports:{}};return o[t].call(s.exports,s,s.exports,e),s.exports}(607))}));grpcWebClient_umd.grpc;var UserService=function(){function e(){}return e.serviceName="powergate.user.v1.UserService",e}();UserService.BuildInfo={methodName:"BuildInfo",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.BuildInfoRequest,responseType:user_pb.BuildInfoResponse},UserService.UserIdentifier={methodName:"UserIdentifier",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.UserIdentifierRequest,responseType:user_pb.UserIdentifierResponse},UserService.DefaultStorageConfig={methodName:"DefaultStorageConfig",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.DefaultStorageConfigRequest,responseType:user_pb.DefaultStorageConfigResponse},UserService.SetDefaultStorageConfig={methodName:"SetDefaultStorageConfig",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.SetDefaultStorageConfigRequest,responseType:user_pb.SetDefaultStorageConfigResponse},UserService.ApplyStorageConfig={methodName:"ApplyStorageConfig",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.ApplyStorageConfigRequest,responseType:user_pb.ApplyStorageConfigResponse},UserService.Remove={methodName:"Remove",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.RemoveRequest,responseType:user_pb.RemoveResponse},UserService.Stage={methodName:"Stage",service:UserService,requestStream:!0,responseStream:!1,requestType:user_pb.StageRequest,responseType:user_pb.StageResponse},UserService.StageCid={methodName:"StageCid",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.StageCidRequest,responseType:user_pb.StageCidResponse},UserService.ReplaceData={methodName:"ReplaceData",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.ReplaceDataRequest,responseType:user_pb.ReplaceDataResponse},UserService.Get={methodName:"Get",service:UserService,requestStream:!1,responseStream:!0,requestType:user_pb.GetRequest,responseType:user_pb.GetResponse},UserService.WatchLogs={methodName:"WatchLogs",service:UserService,requestStream:!1,responseStream:!0,requestType:user_pb.WatchLogsRequest,responseType:user_pb.WatchLogsResponse},UserService.CidSummary={methodName:"CidSummary",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.CidSummaryRequest,responseType:user_pb.CidSummaryResponse},UserService.CidInfo={methodName:"CidInfo",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.CidInfoRequest,responseType:user_pb.CidInfoResponse},UserService.Balance={methodName:"Balance",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.BalanceRequest,responseType:user_pb.BalanceResponse},UserService.NewAddress={methodName:"NewAddress",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.NewAddressRequest,responseType:user_pb.NewAddressResponse},UserService.Addresses={methodName:"Addresses",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.AddressesRequest,responseType:user_pb.AddressesResponse},UserService.SendFil={methodName:"SendFil",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.SendFilRequest,responseType:user_pb.SendFilResponse},UserService.SignMessage={methodName:"SignMessage",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.SignMessageRequest,responseType:user_pb.SignMessageResponse},UserService.VerifyMessage={methodName:"VerifyMessage",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.VerifyMessageRequest,responseType:user_pb.VerifyMessageResponse},UserService.StorageInfo={methodName:"StorageInfo",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.StorageInfoRequest,responseType:user_pb.StorageInfoResponse},UserService.ListStorageInfo={methodName:"ListStorageInfo",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.ListStorageInfoRequest,responseType:user_pb.ListStorageInfoResponse},UserService.StorageJob={methodName:"StorageJob",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.StorageJobRequest,responseType:user_pb.StorageJobResponse},UserService.StorageConfigForJob={methodName:"StorageConfigForJob",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.StorageConfigForJobRequest,responseType:user_pb.StorageConfigForJobResponse},UserService.ListStorageJobs={methodName:"ListStorageJobs",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.ListStorageJobsRequest,responseType:user_pb.ListStorageJobsResponse},UserService.StorageJobsSummary={methodName:"StorageJobsSummary",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.StorageJobsSummaryRequest,responseType:user_pb.StorageJobsSummaryResponse},UserService.WatchStorageJobs={methodName:"WatchStorageJobs",service:UserService,requestStream:!1,responseStream:!0,requestType:user_pb.WatchStorageJobsRequest,responseType:user_pb.WatchStorageJobsResponse},UserService.CancelStorageJob={methodName:"CancelStorageJob",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.CancelStorageJobRequest,responseType:user_pb.CancelStorageJobResponse},UserService.StorageDealRecords={methodName:"StorageDealRecords",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.StorageDealRecordsRequest,responseType:user_pb.StorageDealRecordsResponse},UserService.RetrievalDealRecords={methodName:"RetrievalDealRecords",service:UserService,requestStream:!1,responseStream:!1,requestType:user_pb.RetrievalDealRecordsRequest,responseType:user_pb.RetrievalDealRecordsResponse};var UserService_1=UserService,JobStatus;!function(e){e[e.Unspecified=0]="Unspecified",e[e.Queued=1]="Queued",e[e.Executing=2]="Executing",e[e.Failed=3]="Failed",e[e.Canceled=4]="Canceled",e[e.Success=5]="Success"}(JobStatus||(JobStatus={}));const logger=loglevel.getLogger("filecoin-api");function fromPbAddressInfo(e){return Object.assign(Object.assign({},e),{balance:BigInt(e.balance)})}function fromPbIpfsConfig(e){return Object.assign({},e)}function fromPbHotConfig(e){return Object.assign(Object.assign({},e),{ipfs:e.ipfs?fromPbIpfsConfig(e.ipfs):void 0})}function fromPbFilRenew(e){return Object.assign({},e)}function fromPbFilConfig(e){return Object.assign(Object.assign({},e),{countryCodes:e.countryCodesList,excludedMiners:e.excludedMinersList,trustedMiners:e.trustedMinersList,renew:e.renew?fromPbFilRenew(e.renew):void 0})}function fromPbColdConfig(e){return Object.assign(Object.assign({},e),{filecoin:e.filecoin?fromPbFilConfig(e.filecoin):void 0})}function fromPbStorageConfig(e){return Object.assign(Object.assign({},e),{cold:e.cold?fromPbColdConfig(e.cold):void 0,hot:e.hot?fromPbHotConfig(e.hot):void 0})}function fromPbIpfsHotInfo(e){return Object.assign(Object.assign({},e),{created:new Date(e.created/1e6)})}function fromPbHotInfo(e){return Object.assign(Object.assign({},e),{ipfs:e.ipfs?fromPbIpfsHotInfo(e.ipfs):void 0})}function fromPbFilStorage(e){return Object.assign({},e)}function fromPbFilInfo(e){return Object.assign(Object.assign({},e),{proposals:e.proposalsList.map(fromPbFilStorage)})}function fromPbColdInfo(e){return Object.assign(Object.assign({},e),{filecoin:e.filecoin?fromPbFilInfo(e.filecoin):void 0})}function fromPbStorageInfo(e){return Object.assign(Object.assign({},e),{created:new Date(e.created/1e6),cold:e.cold?fromPbColdInfo(e.cold):void 0,hot:e.hot?fromPbHotInfo(e.hot):void 0})}function fromPbDealInfo(e){return Object.assign({},e)}function fromPbDealError(e){return Object.assign({},e)}function fromPbJobStatus(e){switch(e){case user_pb.JobStatus.JOB_STATUS_CANCELED:return JobStatus.Canceled;case user_pb.JobStatus.JOB_STATUS_EXECUTING:return JobStatus.Executing;case user_pb.JobStatus.JOB_STATUS_FAILED:return JobStatus.Failed;case user_pb.JobStatus.JOB_STATUS_QUEUED:return JobStatus.Queued;case user_pb.JobStatus.JOB_STATUS_SUCCESS:return JobStatus.Success;case user_pb.JobStatus.JOB_STATUS_UNSPECIFIED:return JobStatus.Unspecified}}function fromPbStorageJob(e){return Object.assign(Object.assign({},e),{createdAt:new Date(1e3*e.createdAt),status:fromPbJobStatus(e.status),dealInfo:e.dealInfoList.map(fromPbDealInfo),dealErrors:e.dealErrorsList.map(fromPbDealError)})}function fromPbCidSummary(e){return Object.assign(Object.assign({},e),{queuedJobs:e.queuedJobsList,executingJob:""!=e.executingJob?e.executingJob:void 0})}function fromPbCidInfo(e){return Object.assign(Object.assign({},e),{latestStorageConfig:e.latestPushedStorageConfig?fromPbStorageConfig(e.latestPushedStorageConfig):void 0,currentStorageInfo:e.currentStorageInfo?fromPbStorageInfo(e.currentStorageInfo):void 0,queuedStorageJobs:e.queuedStorageJobsList.map(fromPbStorageJob),executingStorageJob:e.executingStorageJob?fromPbStorageJob(e.executingStorageJob):void 0})}function fromPbStorageDealRecord(e){return Object.assign(Object.assign({},e),{time:new Date(1e3*e.time),dealInfo:e.dealInfo?fromPbDealInfo(e.dealInfo):void 0})}function fromPbRetrievalDealInfo(e){return Object.assign({},e)}function fromPbRetrievalDealRecord(e){return Object.assign(Object.assign({},e),{time:new Date(1e3*e.time),dealInfo:e.dealInfo?fromPbRetrievalDealInfo(e.dealInfo):void 0})}function addresses(e,t){return __awaiter(this,void 0,void 0,(function*(){logger.debug("addresses request");return(yield e.unary(UserService_1.Addresses,new user_pb.AddressesRequest,t)).toObject().addressesList.map(fromPbAddressInfo)}))}function balance(e,t,o){return __awaiter(this,void 0,void 0,(function*(){const r=new user_pb.BalanceRequest;r.setAddress(t);const s=yield e.unary(UserService_1.Balance,r,o);return BigInt(s.getBalance())}))}function cidSummary(e,t,...o){return __awaiter(this,void 0,void 0,(function*(){const r=new user_pb.CidSummaryRequest;r.setCidsList(o);return(yield e.unary(UserService_1.CidSummary,r,t)).toObject().cidSummaryList.map(fromPbCidSummary)}))}function cidInfo(e,t,o){return __awaiter(this,void 0,void 0,(function*(){const r=new user_pb.CidInfoRequest;o&&r.setCid(o);const s=(yield e.unary(UserService_1.CidInfo,r,t)).toObject().cidInfo;if(s)return fromPbCidInfo(s);throw new Error("didn't receive cid info in response")}))}function storageDealRecords(e,t,o){return __awaiter(this,void 0,void 0,(function*(){const r=new user_pb.DealRecordsConfig;r.setAscending(t.ascending),r.setDataCidsList(t.dataCids),r.setFromAddrsList(t.fromAddrs),r.setIncludeFinal(t.includeFinal),r.setIncludePending(t.includePending);const s=new user_pb.StorageDealRecordsRequest;s.setConfig(r);return(yield e.unary(UserService_1.StorageDealRecords,s,o)).toObject().recordsList.map(fromPbStorageDealRecord)}))}function retrievalDealRecords(e,t,o){return __awaiter(this,void 0,void 0,(function*(){const r=new user_pb.DealRecordsConfig;r.setAscending(t.ascending),r.setDataCidsList(t.dataCids),r.setFromAddrsList(t.fromAddrs),r.setIncludeFinal(t.includeFinal),r.setIncludePending(t.includePending);const s=new user_pb.RetrievalDealRecordsRequest;s.setConfig(r);return(yield e.unary(UserService_1.RetrievalDealRecords,s,o)).toObject().recordsList.map(fromPbRetrievalDealRecord)}))}loglevel.getLogger("filecoin");class Filecoin extends GrpcAuthentication{static copyAuth(e,t){return new Filecoin(e.context,null==t?void 0:t.debug)}static withUserAuth(e,t){const o=super.withUserAuth(e,t);return this.copyAuth(o,t)}static withKeyInfo(e,t){const o=Object.create(null,{withKeyInfo:{get:()=>super.withKeyInfo}});return __awaiter(this,void 0,void 0,(function*(){const r=yield o.withKeyInfo.call(this,e,t);return this.copyAuth(r,t)}))}getToken(e){const t=Object.create(null,{getToken:{get:()=>super.getToken}});return __awaiter(this,void 0,void 0,(function*(){return t.getToken.call(this,e)}))}setToken(e){return super.setToken(e)}getTokenChallenge(e,t){const o=Object.create(null,{getTokenChallenge:{get:()=>super.getTokenChallenge}});return __awaiter(this,void 0,void 0,(function*(){return o.getTokenChallenge.call(this,e,t)}))}addresses(){return __awaiter(this,void 0,void 0,(function*(){return addresses(this)}))}balance(e){return __awaiter(this,void 0,void 0,(function*(){return balance(this,e)}))}cidSummary(...e){return __awaiter(this,void 0,void 0,(function*(){return cidSummary(this,void 0,...e)}))}cidInfo(e){return __awaiter(this,void 0,void 0,(function*(){return cidInfo(this,void 0,e)}))}storageDealRecords(e){return __awaiter(this,void 0,void 0,(function*(){return storageDealRecords(this,e)}))}retrievalDealRecords(e){return __awaiter(this,void 0,void 0,(function*(){return retrievalDealRecords(this,e)}))}}export{Filecoin,JobStatus};
