@viamrobotics/sdk 0.0.24 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.umd.js CHANGED
@@ -265,7 +265,7 @@
265
265
  //# 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,p=goog.global.$jscomp,t=p.transpile}}return t||(t=p.transpile=function(s,g){return goog.logToConsole_(g+" requires transpilation but no transpiler was found."),s}),t(o,e,r)},goog.typeOf=function(o){var e=typeof o;if(e=="object")if(o){if(o instanceof Array)return"array";if(o instanceof Object)return e;var r=Object.prototype.toString.call(o);if(r=="[object Window]")return"object";if(r=="[object Array]"||typeof o.length=="number"&&typeof o.splice<"u"&&typeof o.propertyIsEnumerable<"u"&&!o.propertyIsEnumerable("splice"))return"array";if(r=="[object Function]"||typeof o.call<"u"&&typeof o.propertyIsEnumerable<"u"&&!o.propertyIsEnumerable("call"))return"function"}else return"null";else if(e=="function"&&typeof o.call>"u")return"object";return e},goog.isArray=function(o){return goog.typeOf(o)=="array"},goog.isArrayLike=function(o){var e=goog.typeOf(o);return e=="array"||e=="object"&&typeof o.length=="number"},goog.isDateLike=function(o){return goog.isObject(o)&&typeof o.getFullYear=="function"},goog.isFunction=function(o){return goog.typeOf(o)=="function"},goog.isObject=function(o){var e=typeof o;return e=="object"&&o!=null||e=="function"},goog.getUid=function(o){return Object.prototype.hasOwnProperty.call(o,goog.UID_PROPERTY_)&&o[goog.UID_PROPERTY_]||(o[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(o){return!!o[goog.UID_PROPERTY_]},goog.removeUid=function(o){o!==null&&"removeAttribute"in o&&o.removeAttribute(goog.UID_PROPERTY_);try{delete o[goog.UID_PROPERTY_]}catch{}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(o){var e=goog.typeOf(o);if(e=="object"||e=="array"){if(typeof o.clone=="function")return o.clone();e=e=="array"?[]:{};for(var r in o)e[r]=goog.cloneObject(o[r]);return e}return o},goog.bindNative_=function(o,e,r){return o.call.apply(o.bind,arguments)},goog.bindJs_=function(o,e,r){if(!o)throw Error();if(2<arguments.length){var p=Array.prototype.slice.call(arguments,2);return function(){var t=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(t,p),o.apply(e,t)}}return function(){return o.apply(e,arguments)}},goog.bind=function(o,e,r){return Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(o,e){var r=Array.prototype.slice.call(arguments,1);return function(){var p=r.slice();return p.push.apply(p,arguments),o.apply(this,p)}},goog.mixin=function(o,e){for(var r in e)o[r]=e[r]},goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date},goog.globalEval=function(o){if(goog.global.execScript)goog.global.execScript(o,"JavaScript");else if(goog.global.eval){if(goog.evalWorksForGlobals_==null){try{goog.global.eval("var _evalTest_ = 1;")}catch{}if(typeof goog.global._evalTest_<"u"){try{delete goog.global._evalTest_}catch{}goog.evalWorksForGlobals_=!0}else goog.evalWorksForGlobals_=!1}if(goog.evalWorksForGlobals_)goog.global.eval(o);else{var e=goog.global.document,r=e.createElement("script");r.type="text/javascript",r.defer=!1,r.appendChild(e.createTextNode(o)),e.head.appendChild(r),e.head.removeChild(r)}}else throw Error("goog.globalEval not available")},goog.evalWorksForGlobals_=null,goog.getCssName=function(o,e){if(String(o).charAt(0)==".")throw Error('className passed in goog.getCssName must not start with ".". You passed: '+o);var r=function(t){return goog.cssNameMapping_[t]||t},p=function(t){t=t.split("-");for(var n=[],i=0;i<t.length;i++)n.push(r(t[i]));return n.join("-")};return p=goog.cssNameMapping_?goog.cssNameMappingStyle_=="BY_WHOLE"?r:p:function(t){return t},o=e?o+"-"+p(e):p(o),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(o):o},goog.setCssNameMapping=function(o,e){goog.cssNameMapping_=o,goog.cssNameMappingStyle_=e},goog.getMsg=function(o,e,r){return r&&r.html&&(o=o.replace(/</g,"&lt;")),e&&(o=o.replace(/\{\$([^}]+)}/g,function(p,t){return e!=null&&t in e?e[t]:p})),o},goog.getMsgWithFallback=function(o,e){return o},goog.exportSymbol=function(o,e,r){goog.exportPath_(o,e,r)},goog.exportProperty=function(o,e,r){o[e]=r},goog.inherits=function(o,e){function r(){}r.prototype=e.prototype,o.superClass_=e.prototype,o.prototype=new r,o.prototype.constructor=o,o.base=function(p,t,n){for(var i=Array(arguments.length-2),s=2;s<arguments.length;s++)i[s-2]=arguments[s];return e.prototype[t].apply(p,i)}},goog.scope=function(o){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");o.call(goog.global)},goog.defineClass=function(o,e){var r=e.constructor,p=e.statics;return r&&r!=Object.prototype.constructor||(r=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),r=goog.defineClass.createSealingConstructor_(r,o),o&&goog.inherits(r,o),delete e.constructor,delete e.statics,goog.defineClass.applyProperties_(r.prototype,e),p!=null&&(p instanceof Function?p(r):goog.defineClass.applyProperties_(r,p)),r},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(o,e){if(!goog.defineClass.SEAL_CLASS_INSTANCES)return o;var r=!goog.defineClass.isUnsealable_(e),p=function(){var t=o.apply(this,arguments)||this;return t[goog.UID_PROPERTY_]=t[goog.UID_PROPERTY_],this.constructor===p&&r&&Object.seal instanceof Function&&Object.seal(t),t};return p},goog.defineClass.isUnsealable_=function(o){return o&&o.prototype&&o.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(o,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);for(var p=0;p<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;p++)r=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[p],Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r])},goog.tagUnsealableClass=function(o){},goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable",goog.TRUSTED_TYPES_POLICY_NAME="",goog.identity_=function(o){return o},goog.createTrustedTypesPolicy=function(o){var e=null,r=goog.global.trustedTypes||goog.global.TrustedTypes;if(!r||!r.createPolicy)return e;try{e=r.createPolicy(o,{createHTML:goog.identity_,createScript:goog.identity_,createScriptURL:goog.identity_,createURL:goog.identity_})}catch(p){goog.logToConsole_(p.message)}return e},goog.TRUSTED_TYPES_POLICY_=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#base"):null,goog.object={},goog.object.is=function(o,e){return o===e?o!==0||1/o===1/e:o!==o&&e!==e},goog.object.forEach=function(o,e,r){for(var p in o)e.call(r,o[p],p,o)},goog.object.filter=function(o,e,r){var p={},t;for(t in o)e.call(r,o[t],t,o)&&(p[t]=o[t]);return p},goog.object.map=function(o,e,r){var p={},t;for(t in o)p[t]=e.call(r,o[t],t,o);return p},goog.object.some=function(o,e,r){for(var p in o)if(e.call(r,o[p],p,o))return!0;return!1},goog.object.every=function(o,e,r){for(var p in o)if(!e.call(r,o[p],p,o))return!1;return!0},goog.object.getCount=function(o){var e=0,r;for(r in o)e++;return e},goog.object.getAnyKey=function(o){for(var e in o)return e},goog.object.getAnyValue=function(o){for(var e in o)return o[e]},goog.object.contains=function(o,e){return goog.object.containsValue(o,e)},goog.object.getValues=function(o){var e=[],r=0,p;for(p in o)e[r++]=o[p];return e},goog.object.getKeys=function(o){var e=[],r=0,p;for(p in o)e[r++]=p;return e},goog.object.getValueByKeys=function(o,e){var r=goog.isArrayLike(e),p=r?e:arguments;for(r=r?0:1;r<p.length;r++){if(o==null)return;o=o[p[r]]}return o},goog.object.containsKey=function(o,e){return o!==null&&e in o},goog.object.containsValue=function(o,e){for(var r in o)if(o[r]==e)return!0;return!1},goog.object.findKey=function(o,e,r){for(var p in o)if(e.call(r,o[p],p,o))return p},goog.object.findValue=function(o,e,r){return(e=goog.object.findKey(o,e,r))&&o[e]},goog.object.isEmpty=function(o){for(var e in o)return!1;return!0},goog.object.clear=function(o){for(var e in o)delete o[e]},goog.object.remove=function(o,e){var r;return(r=e in o)&&delete o[e],r},goog.object.add=function(o,e,r){if(o!==null&&e in o)throw Error('The object already contains the key "'+e+'"');goog.object.set(o,e,r)},goog.object.get=function(o,e,r){return o!==null&&e in o?o[e]:r},goog.object.set=function(o,e,r){o[e]=r},goog.object.setIfUndefined=function(o,e,r){return e in o?o[e]:o[e]=r},goog.object.setWithReturnValueIfNotSet=function(o,e,r){return e in o?o[e]:(r=r(),o[e]=r)},goog.object.equals=function(o,e){for(var r in o)if(!(r in e)||o[r]!==e[r])return!1;for(var p in e)if(!(p in o))return!1;return!0},goog.object.clone=function(o){var e={},r;for(r in o)e[r]=o[r];return e},goog.object.unsafeClone=function(o){var e=goog.typeOf(o);if(e=="object"||e=="array"){if(goog.isFunction(o.clone))return o.clone();e=e=="array"?[]:{};for(var r in o)e[r]=goog.object.unsafeClone(o[r]);return e}return o},goog.object.transpose=function(o){var e={},r;for(r in o)e[o[r]]=r;return e},goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.object.extend=function(o,e){for(var r,p,t=1;t<arguments.length;t++){p=arguments[t];for(r in p)o[r]=p[r];for(var n=0;n<goog.object.PROTOTYPE_FIELDS_.length;n++)r=goog.object.PROTOTYPE_FIELDS_[n],Object.prototype.hasOwnProperty.call(p,r)&&(o[r]=p[r])}},goog.object.create=function(o){var e=arguments.length;if(e==1&&Array.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(e%2)throw Error("Uneven number of arguments");for(var r={},p=0;p<e;p+=2)r[arguments[p]]=arguments[p+1];return r},goog.object.createSet=function(o){var e=arguments.length;if(e==1&&Array.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var r={},p=0;p<e;p++)r[arguments[p]]=!0;return r},goog.object.createImmutableView=function(o){var e=o;return Object.isFrozen&&!Object.isFrozen(o)&&(e=Object.create(o),Object.freeze(e)),e},goog.object.isImmutableView=function(o){return!!Object.isFrozen&&Object.isFrozen(o)},goog.object.getAllPropertyNames=function(o,e,r){if(!o)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return goog.object.getKeys(o);for(var p={};o&&(o!==Object.prototype||e)&&(o!==Function.prototype||r);){for(var t=Object.getOwnPropertyNames(o),n=0;n<t.length;n++)p[t[n]]=!0;o=Object.getPrototypeOf(o)}return goog.object.getKeys(p)},goog.object.getSuperClass=function(o){return(o=Object.getPrototypeOf(o.prototype))&&o.constructor};var jspb={asserts:{}};jspb.asserts.doAssertFailure=function(o,e,r,p){var t="Assertion failed";if(r){t+=": "+r;var n=p}else o&&(t+=": "+o,n=e);throw Error(""+t,n||[])},jspb.asserts.assert=function(o,e,r){for(var p=[],t=2;t<arguments.length;++t)p[t-2]=arguments[t];return o||jspb.asserts.doAssertFailure("",null,e,p),o},jspb.asserts.assertString=function(o,e,r){for(var p=[],t=2;t<arguments.length;++t)p[t-2]=arguments[t];return typeof o!="string"&&jspb.asserts.doAssertFailure("Expected string but got %s: %s.",[goog.typeOf(o),o],e,p),o},jspb.asserts.assertArray=function(o,e,r){for(var p=[],t=2;t<arguments.length;++t)p[t-2]=arguments[t];return Array.isArray(o)||jspb.asserts.doAssertFailure("Expected array but got %s: %s.",[goog.typeOf(o),o],e,p),o},jspb.asserts.fail=function(o,e){for(var r=[],p=1;p<arguments.length;++p)r[p-1]=arguments[p];throw Error("Failure"+(o?": "+o:""),r)},jspb.asserts.assertInstanceof=function(o,e,r,p){for(var t=[],n=3;n<arguments.length;++n)t[n-3]=arguments[n];return o instanceof e||jspb.asserts.doAssertFailure("Expected instanceof %s but got %s.",[jspb.asserts.getType(e),jspb.asserts.getType(o)],r,t),o},jspb.asserts.getType=function(o){return o instanceof Function?o.displayName||o.name||"unknown type name":o instanceof Object?o.constructor.displayName||o.constructor.name||Object.prototype.toString.call(o):o===null?"null":typeof o},jspb.BinaryConstants={},jspb.ConstBinaryMessage=function(){},jspb.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(o){var e=jspb.BinaryConstants.FieldType,r=jspb.BinaryConstants.WireType;switch(o){case e.INT32:case e.INT64:case e.UINT32:case e.UINT64:case e.SINT32:case e.SINT64:case e.BOOL:case e.ENUM:case e.VHASH64:return r.VARINT;case e.DOUBLE:case e.FIXED64:case e.SFIXED64:case e.FHASH64:return r.FIXED64;case e.STRING:case e.MESSAGE:case e.BYTES:return r.DELIMITED;case e.FLOAT:case e.FIXED32:case e.SFIXED32:return r.FIXED32;default:return r.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=9223372036854776e3,jspb.BinaryConstants.TWO_TO_64=18446744073709552e3,jspb.BinaryConstants.ZERO_HASH="\0\0\0\0\0\0\0\0",goog.debug={},goog.debug.Error=function(o){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var e=Error().stack;e&&(this.stack=e)}o&&(this.message=String(o)),this.reportErrorToServer=!0},goog.inherits(goog.debug.Error,Error),goog.debug.Error.prototype.name="CustomError",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.asserts={},goog.asserts.ENABLE_ASSERTS=goog.DEBUG,goog.asserts.AssertionError=function(o,e){goog.debug.Error.call(this,goog.asserts.subs_(o,e)),this.messagePattern=o},goog.inherits(goog.asserts.AssertionError,goog.debug.Error),goog.asserts.AssertionError.prototype.name="AssertionError",goog.asserts.DEFAULT_ERROR_HANDLER=function(o){throw o},goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER,goog.asserts.subs_=function(o,e){o=o.split("%s");for(var r="",p=o.length-1,t=0;t<p;t++)r+=o[t]+(t<e.length?e[t]:"%s");return r+o[p]},goog.asserts.doAssertFailure_=function(o,e,r,p){var t="Assertion failed";if(r){t+=": "+r;var n=p}else o&&(t+=": "+o,n=e);o=new goog.asserts.AssertionError(""+t,n||[]),goog.asserts.errorHandler_(o)},goog.asserts.setErrorHandler=function(o){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=o)},goog.asserts.assert=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&!o&&goog.asserts.doAssertFailure_("",null,e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertExists=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&o==null&&goog.asserts.doAssertFailure_("Expected to exist: %s.",[o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.fail=function(o,e){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(o?": "+o:""),Array.prototype.slice.call(arguments,1)))},goog.asserts.assertNumber=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&typeof o!="number"&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertString=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&typeof o!="string"&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertFunction=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(o)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertObject=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(o)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertArray=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&!Array.isArray(o)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertBoolean=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&typeof o!="boolean"&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertElement=function(o,e,r){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(o)&&o.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertInstanceof=function(o,e,r,p){return!goog.asserts.ENABLE_ASSERTS||o instanceof e||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(e),goog.asserts.getType_(o)],r,Array.prototype.slice.call(arguments,3)),o},goog.asserts.assertFinite=function(o,e,r){return!goog.asserts.ENABLE_ASSERTS||typeof o=="number"&&isFinite(o)||goog.asserts.doAssertFailure_("Expected %s to be a finite number but it is not.",[o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertObjectPrototypeIsIntact=function(){for(var o in Object.prototype)goog.asserts.fail(o+" should not be enumerable in Object.prototype.")},goog.asserts.getType_=function(o){return o instanceof Function?o.displayName||o.name||"unknown type name":o instanceof Object?o.constructor.displayName||o.constructor.name||Object.prototype.toString.call(o):o===null?"null":typeof o},goog.array={},goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE,goog.array.ASSUME_NATIVE_FUNCTIONS=2012<goog.FEATURESET_YEAR,goog.array.peek=function(o){return o[o.length-1]},goog.array.last=goog.array.peek,goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(o,e,r){return goog.asserts.assert(o.length!=null),Array.prototype.indexOf.call(o,e,r)}:function(o,e,r){if(r=r==null?0:0>r?Math.max(0,o.length+r):r,typeof o=="string")return typeof e!="string"||e.length!=1?-1:o.indexOf(e,r);for(;r<o.length;r++)if(r in o&&o[r]===e)return r;return-1},goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(o,e,r){return goog.asserts.assert(o.length!=null),Array.prototype.lastIndexOf.call(o,e,r??o.length-1)}:function(o,e,r){if(r=r??o.length-1,0>r&&(r=Math.max(0,o.length+r)),typeof o=="string")return typeof e!="string"||e.length!=1?-1:o.lastIndexOf(e,r);for(;0<=r;r--)if(r in o&&o[r]===e)return r;return-1},goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(o,e,r){goog.asserts.assert(o.length!=null),Array.prototype.forEach.call(o,e,r)}:function(o,e,r){for(var p=o.length,t=typeof o=="string"?o.split(""):o,n=0;n<p;n++)n in t&&e.call(r,t[n],n,o)},goog.array.forEachRight=function(o,e,r){var p=o.length,t=typeof o=="string"?o.split(""):o;for(--p;0<=p;--p)p in t&&e.call(r,t[p],p,o)},goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(o,e,r){return goog.asserts.assert(o.length!=null),Array.prototype.filter.call(o,e,r)}:function(o,e,r){for(var p=o.length,t=[],n=0,i=typeof o=="string"?o.split(""):o,s=0;s<p;s++)if(s in i){var g=i[s];e.call(r,g,s,o)&&(t[n++]=g)}return t},goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(o,e,r){return goog.asserts.assert(o.length!=null),Array.prototype.map.call(o,e,r)}:function(o,e,r){for(var p=o.length,t=Array(p),n=typeof o=="string"?o.split(""):o,i=0;i<p;i++)i in n&&(t[i]=e.call(r,n[i],i,o));return t},goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(o,e,r,p){return goog.asserts.assert(o.length!=null),p&&(e=goog.bind(e,p)),Array.prototype.reduce.call(o,e,r)}:function(o,e,r,p){var t=r;return goog.array.forEach(o,function(n,i){t=e.call(p,t,n,i,o)}),t},goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(o,e,r,p){return goog.asserts.assert(o.length!=null),goog.asserts.assert(e!=null),p&&(e=goog.bind(e,p)),Array.prototype.reduceRight.call(o,e,r)}:function(o,e,r,p){var t=r;return goog.array.forEachRight(o,function(n,i){t=e.call(p,t,n,i,o)}),t},goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(o,e,r){return goog.asserts.assert(o.length!=null),Array.prototype.some.call(o,e,r)}:function(o,e,r){for(var p=o.length,t=typeof o=="string"?o.split(""):o,n=0;n<p;n++)if(n in t&&e.call(r,t[n],n,o))return!0;return!1},goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(o,e,r){return goog.asserts.assert(o.length!=null),Array.prototype.every.call(o,e,r)}:function(o,e,r){for(var p=o.length,t=typeof o=="string"?o.split(""):o,n=0;n<p;n++)if(n in t&&!e.call(r,t[n],n,o))return!1;return!0},goog.array.count=function(o,e,r){var p=0;return goog.array.forEach(o,function(t,n,i){e.call(r,t,n,i)&&++p},r),p},goog.array.find=function(o,e,r){return e=goog.array.findIndex(o,e,r),0>e?null:typeof o=="string"?o.charAt(e):o[e]},goog.array.findIndex=function(o,e,r){for(var p=o.length,t=typeof o=="string"?o.split(""):o,n=0;n<p;n++)if(n in t&&e.call(r,t[n],n,o))return n;return-1},goog.array.findRight=function(o,e,r){return e=goog.array.findIndexRight(o,e,r),0>e?null:typeof o=="string"?o.charAt(e):o[e]},goog.array.findIndexRight=function(o,e,r){var p=o.length,t=typeof o=="string"?o.split(""):o;for(--p;0<=p;p--)if(p in t&&e.call(r,t[p],p,o))return p;return-1},goog.array.contains=function(o,e){return 0<=goog.array.indexOf(o,e)},goog.array.isEmpty=function(o){return o.length==0},goog.array.clear=function(o){if(!Array.isArray(o))for(var e=o.length-1;0<=e;e--)delete o[e];o.length=0},goog.array.insert=function(o,e){goog.array.contains(o,e)||o.push(e)},goog.array.insertAt=function(o,e,r){goog.array.splice(o,r,0,e)},goog.array.insertArrayAt=function(o,e,r){goog.partial(goog.array.splice,o,r,0).apply(null,e)},goog.array.insertBefore=function(o,e,r){var p;arguments.length==2||0>(p=goog.array.indexOf(o,r))?o.push(e):goog.array.insertAt(o,e,p)},goog.array.remove=function(o,e){e=goog.array.indexOf(o,e);var r;return(r=0<=e)&&goog.array.removeAt(o,e),r},goog.array.removeLast=function(o,e){return e=goog.array.lastIndexOf(o,e),0<=e?(goog.array.removeAt(o,e),!0):!1},goog.array.removeAt=function(o,e){return goog.asserts.assert(o.length!=null),Array.prototype.splice.call(o,e,1).length==1},goog.array.removeIf=function(o,e,r){return e=goog.array.findIndex(o,e,r),0<=e?(goog.array.removeAt(o,e),!0):!1},goog.array.removeAllIf=function(o,e,r){var p=0;return goog.array.forEachRight(o,function(t,n){e.call(r,t,n,o)&&goog.array.removeAt(o,n)&&p++}),p},goog.array.concat=function(o){return Array.prototype.concat.apply([],arguments)},goog.array.join=function(o){return Array.prototype.concat.apply([],arguments)},goog.array.toArray=function(o){var e=o.length;if(0<e){for(var r=Array(e),p=0;p<e;p++)r[p]=o[p];return r}return[]},goog.array.clone=goog.array.toArray,goog.array.extend=function(o,e){for(var r=1;r<arguments.length;r++){var p=arguments[r];if(goog.isArrayLike(p)){var t=o.length||0,n=p.length||0;o.length=t+n;for(var i=0;i<n;i++)o[t+i]=p[i]}else o.push(p)}},goog.array.splice=function(o,e,r,p){return goog.asserts.assert(o.length!=null),Array.prototype.splice.apply(o,goog.array.slice(arguments,1))},goog.array.slice=function(o,e,r){return goog.asserts.assert(o.length!=null),2>=arguments.length?Array.prototype.slice.call(o,e):Array.prototype.slice.call(o,e,r)},goog.array.removeDuplicates=function(o,e,r){e=e||o;var p=function(g){return goog.isObject(g)?"o"+goog.getUid(g):(typeof g).charAt(0)+g};r=r||p,p={};for(var t=0,n=0;n<o.length;){var i=o[n++],s=r(i);Object.prototype.hasOwnProperty.call(p,s)||(p[s]=!0,e[t++]=i)}e.length=t},goog.array.binarySearch=function(o,e,r){return goog.array.binarySearch_(o,r||goog.array.defaultCompare,!1,e)},goog.array.binarySelect=function(o,e,r){return goog.array.binarySearch_(o,e,!0,void 0,r)},goog.array.binarySearch_=function(o,e,r,p,t){for(var n=0,i=o.length,s;n<i;){var g=n+(i-n>>>1),l=r?e.call(t,o[g],g,o):e(p,o[g]);0<l?n=g+1:(i=g,s=!l)}return s?n:-n-1},goog.array.sort=function(o,e){o.sort(e||goog.array.defaultCompare)},goog.array.stableSort=function(o,e){for(var r=Array(o.length),p=0;p<o.length;p++)r[p]={index:p,value:o[p]};var t=e||goog.array.defaultCompare;for(goog.array.sort(r,function(n,i){return t(n.value,i.value)||n.index-i.index}),p=0;p<o.length;p++)o[p]=r[p].value},goog.array.sortByKey=function(o,e,r){var p=r||goog.array.defaultCompare;goog.array.sort(o,function(t,n){return p(e(t),e(n))})},goog.array.sortObjectsByKey=function(o,e,r){goog.array.sortByKey(o,function(p){return p[e]},r)},goog.array.isSorted=function(o,e,r){e=e||goog.array.defaultCompare;for(var p=1;p<o.length;p++){var t=e(o[p-1],o[p]);if(0<t||t==0&&r)return!1}return!0},goog.array.equals=function(o,e,r){if(!goog.isArrayLike(o)||!goog.isArrayLike(e)||o.length!=e.length)return!1;var p=o.length;r=r||goog.array.defaultCompareEquality;for(var t=0;t<p;t++)if(!r(o[t],e[t]))return!1;return!0},goog.array.compare3=function(o,e,r){r=r||goog.array.defaultCompare;for(var p=Math.min(o.length,e.length),t=0;t<p;t++){var n=r(o[t],e[t]);if(n!=0)return n}return goog.array.defaultCompare(o.length,e.length)},goog.array.defaultCompare=function(o,e){return o>e?1:o<e?-1:0},goog.array.inverseDefaultCompare=function(o,e){return-goog.array.defaultCompare(o,e)},goog.array.defaultCompareEquality=function(o,e){return o===e},goog.array.binaryInsert=function(o,e,r){return r=goog.array.binarySearch(o,e,r),0>r?(goog.array.insertAt(o,e,-(r+1)),!0):!1},goog.array.binaryRemove=function(o,e,r){return e=goog.array.binarySearch(o,e,r),0<=e?goog.array.removeAt(o,e):!1},goog.array.bucket=function(o,e,r){for(var p={},t=0;t<o.length;t++){var n=o[t],i=e.call(r,n,t,o);i!==void 0&&(p[i]||(p[i]=[])).push(n)}return p},goog.array.toObject=function(o,e,r){var p={};return goog.array.forEach(o,function(t,n){p[e.call(r,t,n,o)]=t}),p},goog.array.range=function(o,e,r){var p=[],t=0,n=o;if(r=r||1,e!==void 0&&(t=o,n=e),0>r*(n-t))return[];if(0<r)for(o=t;o<n;o+=r)p.push(o);else for(o=t;o>n;o+=r)p.push(o);return p},goog.array.repeat=function(o,e){for(var r=[],p=0;p<e;p++)r[p]=o;return r},goog.array.flatten=function(o){for(var e=[],r=0;r<arguments.length;r++){var p=arguments[r];if(Array.isArray(p))for(var t=0;t<p.length;t+=8192){var n=goog.array.slice(p,t,t+8192);n=goog.array.flatten.apply(null,n);for(var i=0;i<n.length;i++)e.push(n[i])}else e.push(p)}return e},goog.array.rotate=function(o,e){return goog.asserts.assert(o.length!=null),o.length&&(e%=o.length,0<e?Array.prototype.unshift.apply(o,o.splice(-e,e)):0>e&&Array.prototype.push.apply(o,o.splice(0,-e))),o},goog.array.moveItem=function(o,e,r){goog.asserts.assert(0<=e&&e<o.length),goog.asserts.assert(0<=r&&r<o.length),e=Array.prototype.splice.call(o,e,1),Array.prototype.splice.call(o,r,0,e[0])},goog.array.zip=function(o){if(!arguments.length)return[];for(var e=[],r=arguments[0].length,p=1;p<arguments.length;p++)arguments[p].length<r&&(r=arguments[p].length);for(p=0;p<r;p++){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n][p]);e.push(t)}return e},goog.array.shuffle=function(o,e){e=e||Math.random;for(var r=o.length-1;0<r;r--){var p=Math.floor(e()*(r+1)),t=o[r];o[r]=o[p],o[p]=t}},goog.array.copyByIndex=function(o,e){var r=[];return goog.array.forEach(e,function(p){r.push(o[p])}),r},goog.array.concatMap=function(o,e,r){return goog.array.concat.apply([],goog.array.map(o,e,r))},goog.crypt={},goog.crypt.stringToByteArray=function(o){for(var e=[],r=0,p=0;p<o.length;p++){var t=o.charCodeAt(p);255<t&&(e[r++]=t&255,t>>=8),e[r++]=t}return e},goog.crypt.byteArrayToString=function(o){if(8192>=o.length)return String.fromCharCode.apply(null,o);for(var e="",r=0;r<o.length;r+=8192){var p=goog.array.slice(o,r,r+8192);e+=String.fromCharCode.apply(null,p)}return e},goog.crypt.byteArrayToHex=function(o,e){return goog.array.map(o,function(r){return r=r.toString(16),1<r.length?r:"0"+r}).join(e||"")},goog.crypt.hexToByteArray=function(o){goog.asserts.assert(o.length%2==0,"Key string length must be multiple of 2");for(var e=[],r=0;r<o.length;r+=2)e.push(parseInt(o.substring(r,r+2),16));return e},goog.crypt.stringToUtf8ByteArray=function(o){for(var e=[],r=0,p=0;p<o.length;p++){var t=o.charCodeAt(p);128>t?e[r++]=t:(2048>t?e[r++]=t>>6|192:((t&64512)==55296&&p+1<o.length&&(o.charCodeAt(p+1)&64512)==56320?(t=65536+((t&1023)<<10)+(o.charCodeAt(++p)&1023),e[r++]=t>>18|240,e[r++]=t>>12&63|128):e[r++]=t>>12|224,e[r++]=t>>6&63|128),e[r++]=t&63|128)}return e},goog.crypt.utf8ByteArrayToString=function(o){for(var e=[],r=0,p=0;r<o.length;){var t=o[r++];if(128>t)e[p++]=String.fromCharCode(t);else if(191<t&&224>t){var n=o[r++];e[p++]=String.fromCharCode((t&31)<<6|n&63)}else if(239<t&&365>t){n=o[r++];var i=o[r++],s=o[r++];t=((t&7)<<18|(n&63)<<12|(i&63)<<6|s&63)-65536,e[p++]=String.fromCharCode(55296+(t>>10)),e[p++]=String.fromCharCode(56320+(t&1023))}else n=o[r++],i=o[r++],e[p++]=String.fromCharCode((t&15)<<12|(n&63)<<6|i&63)}return e.join("")},goog.crypt.xorByteArray=function(o,e){goog.asserts.assert(o.length==e.length,"XOR array lengths must match");for(var r=[],p=0;p<o.length;p++)r.push(o[p]^e[p]);return r},goog.dom.asserts={},goog.dom.asserts.assertIsLocation=function(o){if(goog.asserts.ENABLE_ASSERTS){var e=goog.dom.asserts.getWindow_(o);e&&(!o||!(o instanceof e.Location)&&o instanceof e.Element)&&goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s",goog.dom.asserts.debugStringForType_(o))}return o},goog.dom.asserts.assertIsElementType_=function(o,e){if(goog.asserts.ENABLE_ASSERTS){var r=goog.dom.asserts.getWindow_(o);r&&typeof r[e]<"u"&&(o&&(o instanceof r[e]||!(o instanceof r.Location||o instanceof r.Element))||goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,goog.dom.asserts.debugStringForType_(o)))}return o},goog.dom.asserts.assertIsHTMLAnchorElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLAnchorElement")},goog.dom.asserts.assertIsHTMLButtonElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLButtonElement")},goog.dom.asserts.assertIsHTMLLinkElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLLinkElement")},goog.dom.asserts.assertIsHTMLImageElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLImageElement")},goog.dom.asserts.assertIsHTMLAudioElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLAudioElement")},goog.dom.asserts.assertIsHTMLVideoElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLVideoElement")},goog.dom.asserts.assertIsHTMLInputElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLInputElement")},goog.dom.asserts.assertIsHTMLTextAreaElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLTextAreaElement")},goog.dom.asserts.assertIsHTMLCanvasElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLCanvasElement")},goog.dom.asserts.assertIsHTMLEmbedElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLEmbedElement")},goog.dom.asserts.assertIsHTMLFormElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLFormElement")},goog.dom.asserts.assertIsHTMLFrameElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLFrameElement")},goog.dom.asserts.assertIsHTMLIFrameElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLIFrameElement")},goog.dom.asserts.assertIsHTMLObjectElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLObjectElement")},goog.dom.asserts.assertIsHTMLScriptElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLScriptElement")},goog.dom.asserts.debugStringForType_=function(o){if(goog.isObject(o))try{return o.constructor.displayName||o.constructor.name||Object.prototype.toString.call(o)}catch{return"<object could not be stringified>"}else return o===void 0?"undefined":o===null?"null":typeof o},goog.dom.asserts.getWindow_=function(o){try{var e=o&&o.ownerDocument,r=e&&(e.defaultView||e.parentWindow);if(r=r||goog.global,r.Element&&r.Location)return r}catch{}return null},goog.functions={},goog.functions.constant=function(o){return function(){return o}},goog.functions.FALSE=function(){return!1},goog.functions.TRUE=function(){return!0},goog.functions.NULL=function(){return null},goog.functions.identity=function(o,e){return o},goog.functions.error=function(o){return function(){throw Error(o)}},goog.functions.fail=function(o){return function(){throw o}},goog.functions.lock=function(o,e){return e=e||0,function(){return o.apply(this,Array.prototype.slice.call(arguments,0,e))}},goog.functions.nth=function(o){return function(){return arguments[o]}},goog.functions.partialRight=function(o,e){var r=Array.prototype.slice.call(arguments,1);return function(){var p=Array.prototype.slice.call(arguments);return p.push.apply(p,r),o.apply(this,p)}},goog.functions.withReturnValue=function(o,e){return goog.functions.sequence(o,goog.functions.constant(e))},goog.functions.equalTo=function(o,e){return function(r){return e?o==r:o===r}},goog.functions.compose=function(o,e){var r=arguments,p=r.length;return function(){var t;p&&(t=r[p-1].apply(this,arguments));for(var n=p-2;0<=n;n--)t=r[n].call(this,t);return t}},goog.functions.sequence=function(o){var e=arguments,r=e.length;return function(){for(var p,t=0;t<r;t++)p=e[t].apply(this,arguments);return p}},goog.functions.and=function(o){var e=arguments,r=e.length;return function(){for(var p=0;p<r;p++)if(!e[p].apply(this,arguments))return!1;return!0}},goog.functions.or=function(o){var e=arguments,r=e.length;return function(){for(var p=0;p<r;p++)if(e[p].apply(this,arguments))return!0;return!1}},goog.functions.not=function(o){return function(){return!o.apply(this,arguments)}},goog.functions.create=function(o,e){var r=function(){};return r.prototype=o.prototype,r=new r,o.apply(r,Array.prototype.slice.call(arguments,1)),r},goog.functions.CACHE_RETURN_VALUE=!0,goog.functions.cacheReturnValue=function(o){var e=!1,r;return function(){return goog.functions.CACHE_RETURN_VALUE?(e||(r=o(),e=!0),r):o()}},goog.functions.once=function(o){var e=o;return function(){if(e){var r=e;e=null,r()}}},goog.functions.debounce=function(o,e,r){var p=0;return function(t){goog.global.clearTimeout(p);var n=arguments;p=goog.global.setTimeout(function(){o.apply(r,n)},e)}},goog.functions.throttle=function(o,e,r){var p=0,t=!1,n=[],i=function(){p=0,t&&(t=!1,s())},s=function(){p=goog.global.setTimeout(i,e),o.apply(r,n)};return function(g){n=arguments,p?t=!0:s()}},goog.functions.rateLimit=function(o,e,r){var p=0,t=function(){p=0};return function(n){p||(p=goog.global.setTimeout(t,e),o.apply(r,arguments))}},goog.dom.HtmlElement=function(){},goog.dom.TagName=function(o){this.tagName_=o},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.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(o){return goog.dom.tags.VOID_TAGS_[o]===!0},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.string={},goog.string.TypedString=function(){},goog.string.Const=function(o,e){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=o===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&e||"",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.DEBUG&&(goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"}),goog.string.Const.unwrap=function(o){return o instanceof goog.string.Const&&o.constructor===goog.string.Const&&o.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?o.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+o+"'"),"type_error:Const")},goog.string.Const.from=function(o){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,o)},goog.string.Const.TYPE_MARKER_={},goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.Const.EMPTY=goog.string.Const.from(""),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(o){return o=goog.string.Const.unwrap(o),o.length===0?goog.html.SafeScript.EMPTY:goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeScript.fromConstantAndArgs=function(o,e){for(var r=[],p=1;p<arguments.length;p++)r.push(goog.html.SafeScript.stringify_(arguments[p]));return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("("+goog.string.Const.unwrap(o)+")("+r.join(", ")+");")},goog.html.SafeScript.fromJson=function(o){return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(goog.html.SafeScript.stringify_(o))},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(o){return goog.html.SafeScript.unwrapTrustedScript(o).toString()},goog.html.SafeScript.unwrapTrustedScript=function(o){return o instanceof goog.html.SafeScript&&o.constructor===goog.html.SafeScript&&o.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseSafeScriptWrappedValue_:(goog.asserts.fail("expected object of type SafeScript, got '"+o+"' of type "+goog.typeOf(o)),"type_error:SafeScript")},goog.html.SafeScript.stringify_=function(o){return JSON.stringify(o).replace(/</g,"\\x3c")},goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse=function(o){return new goog.html.SafeScript().initSecurityPrivateDoNotAccessOrElse_(o)},goog.html.SafeScript.prototype.initSecurityPrivateDoNotAccessOrElse_=function(o){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScript(o):o,this},goog.html.SafeScript.EMPTY=goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(""),goog.fs={},goog.fs.url={},goog.fs.url.createObjectUrl=function(o){return goog.fs.url.getUrlObject_().createObjectURL(o)},goog.fs.url.revokeObjectUrl=function(o){goog.fs.url.getUrlObject_().revokeObjectURL(o)},goog.fs.url.UrlObject_=function(){},goog.fs.url.UrlObject_.prototype.createObjectURL=function(o){},goog.fs.url.UrlObject_.prototype.revokeObjectURL=function(o){},goog.fs.url.getUrlObject_=function(){var o=goog.fs.url.findUrlObject_();if(o!=null)return o;throw Error("This browser doesn't seem to support blob URLs")},goog.fs.url.findUrlObject_=function(){return goog.global.URL!==void 0&&goog.global.URL.createObjectURL!==void 0?goog.global.URL:goog.global.webkitURL!==void 0&&goog.global.webkitURL.createObjectURL!==void 0?goog.global.webkitURL:goog.global.createObjectURL!==void 0?goog.global:null},goog.fs.url.browserSupportsObjectUrls=function(){return goog.fs.url.findUrlObject_()!=null},goog.fs.blob={},goog.fs.blob.getBlob=function(o){var e=goog.global.BlobBuilder||goog.global.WebKitBlobBuilder;if(e!==void 0){e=new e;for(var r=0;r<arguments.length;r++)e.append(arguments[r]);return e.getBlob()}return goog.fs.blob.getBlobWithProperties(goog.array.toArray(arguments))},goog.fs.blob.getBlobWithProperties=function(o,e,r){var p=goog.global.BlobBuilder||goog.global.WebKitBlobBuilder;if(p!==void 0){p=new p;for(var t=0;t<o.length;t++)p.append(o[t],r);return p.getBlob(e)}if(goog.global.Blob!==void 0)return p={},e&&(p.type=e),r&&(p.endings=r),new Blob(o,p);throw Error("This browser doesn't seem to support creating Blobs")},goog.i18n={},goog.i18n.bidi={},goog.i18n.bidi.FORCE_RTL=!1,goog.i18n.bidi.IS_RTL=goog.i18n.bidi.FORCE_RTL||(goog.LOCALE.substring(0,2).toLowerCase()=="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.length==2||goog.LOCALE.substring(2,3)=="-"||goog.LOCALE.substring(2,3)=="_")||3<=goog.LOCALE.length&&goog.LOCALE.substring(0,3).toLowerCase()=="ckb"&&(goog.LOCALE.length==3||goog.LOCALE.substring(3,4)=="-"||goog.LOCALE.substring(3,4)=="_")||7<=goog.LOCALE.length&&(goog.LOCALE.substring(2,3)=="-"||goog.LOCALE.substring(2,3)=="_")&&(goog.LOCALE.substring(3,7).toLowerCase()=="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")||8<=goog.LOCALE.length&&(goog.LOCALE.substring(3,4)=="-"||goog.LOCALE.substring(3,4)=="_")&&(goog.LOCALE.substring(4,8).toLowerCase()=="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.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(o,e){return typeof o=="number"?0<o?goog.i18n.bidi.Dir.LTR:0>o?goog.i18n.bidi.Dir.RTL:e?null:goog.i18n.bidi.Dir.NEUTRAL:o==null?null:o?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(o,e){return e?o.replace(goog.i18n.bidi.htmlSkipReg_,""):o},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(o,e){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,e))},goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl,goog.i18n.bidi.hasAnyLtr=function(o,e){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,e))},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(o){return goog.i18n.bidi.rtlRe_.test(o)},goog.i18n.bidi.isLtrChar=function(o){return goog.i18n.bidi.ltrRe_.test(o)},goog.i18n.bidi.isNeutralChar=function(o){return!goog.i18n.bidi.isLtrChar(o)&&!goog.i18n.bidi.isRtlChar(o)},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(o,e){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,e))},goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl,goog.i18n.bidi.startsWithLtr=function(o,e){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,e))},goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr,goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/,goog.i18n.bidi.isNeutralText=function(o,e){return o=goog.i18n.bidi.stripHtmlIfNeeded_(o,e),goog.i18n.bidi.isRequiredLtrRe_.test(o)||!goog.i18n.bidi.hasAnyLtr(o)&&!goog.i18n.bidi.hasAnyRtl(o)},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(o,e){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,e))},goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr,goog.i18n.bidi.endsWithRtl=function(o,e){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,e))},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(o){return goog.i18n.bidi.rtlLocalesRe_.test(o)},goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,goog.i18n.bidi.guardBracketInText=function(o,e){return e=(e===void 0?goog.i18n.bidi.hasAnyRtl(o):e)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,o.replace(goog.i18n.bidi.bracketGuardTextRe_,e+"$&"+e)},goog.i18n.bidi.enforceRtlInHtml=function(o){return o.charAt(0)=="<"?o.replace(/<\w+/,"$& dir=rtl"):`
266
266
  <span dir=rtl>`+o+"</span>"},goog.i18n.bidi.enforceRtlInText=function(o){return goog.i18n.bidi.Format.RLE+o+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.enforceLtrInHtml=function(o){return o.charAt(0)=="<"?o.replace(/<\w+/,"$& dir=ltr"):`
267
267
  <span dir=ltr>`+o+"</span>"},goog.i18n.bidi.enforceLtrInText=function(o){return goog.i18n.bidi.Format.LRE+o+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(o){return o.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(o){return o.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(o,e){var r=0,p=0,t=!1;for(o=goog.i18n.bidi.stripHtmlIfNeeded_(o,e).split(goog.i18n.bidi.wordSeparatorRe_),e=0;e<o.length;e++){var n=o[e];goog.i18n.bidi.startsWithRtl(n)?(r++,p++):goog.i18n.bidi.isRequiredLtrRe_.test(n)?t=!0:goog.i18n.bidi.hasAnyLtr(n)?p++:goog.i18n.bidi.hasNumeralsRe_.test(n)&&(t=!0)}return p==0?t?goog.i18n.bidi.Dir.LTR:goog.i18n.bidi.Dir.NEUTRAL:r/p>goog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.detectRtlDirectionality=function(o,e){return goog.i18n.bidi.estimateDirection(o,e)==goog.i18n.bidi.Dir.RTL},goog.i18n.bidi.setElementDirAndAlign=function(o,e){o&&(e=goog.i18n.bidi.toDir(e))&&(o.style.textAlign=e==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,o.dir=e==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")},goog.i18n.bidi.setElementDirByTextDirectionality=function(o,e){switch(goog.i18n.bidi.estimateDirection(e)){case goog.i18n.bidi.Dir.LTR:o.dir="ltr";break;case goog.i18n.bidi.Dir.RTL:o.dir="rtl";break;default:o.removeAttribute("dir")}},goog.i18n.bidi.DirectionalString=function(){},goog.html.TrustedResourceUrl=function(o,e){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=o===goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_&&e||"",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(o,e){var r=goog.html.TrustedResourceUrl.unwrap(this);r=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(r);var p=r[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(r[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",r[2]||"",o)+goog.html.TrustedResourceUrl.stringifyParams_("#",p,e))},goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"}),goog.html.TrustedResourceUrl.unwrap=function(o){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(o).toString()},goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(o){return o instanceof goog.html.TrustedResourceUrl&&o.constructor===goog.html.TrustedResourceUrl&&o.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+o+"' of type "+goog.typeOf(o)),"type_error:TrustedResourceUrl")},goog.html.TrustedResourceUrl.format=function(o,e){var r=goog.string.Const.unwrap(o);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(r))throw Error("Invalid TrustedResourceUrl format: "+r);return o=r.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,function(p,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw Error('Found marker, "'+t+'", in format string, "'+r+'", but no valid label mapping found in args: '+JSON.stringify(e));return p=e[t],p instanceof goog.string.Const?goog.string.Const.unwrap(p):encodeURIComponent(String(p))}),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(o)},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(o,e,r,p){return goog.html.TrustedResourceUrl.format(o,e).cloneWithParams(r,p)},goog.html.TrustedResourceUrl.fromConstant=function(o){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(o))},goog.html.TrustedResourceUrl.fromConstants=function(o){for(var e="",r=0;r<o.length;r++)e+=goog.string.Const.unwrap(o[r]);return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.TrustedResourceUrl.fromSafeScript=function(o){return o=goog.fs.blob.getBlobWithProperties([goog.html.SafeScript.unwrap(o)],"text/javascript"),o=goog.fs.url.createObjectUrl(o),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse=function(o){return o=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScriptURL(o):o,new goog.html.TrustedResourceUrl(goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_,o)},goog.html.TrustedResourceUrl.stringifyParams_=function(o,e,r){if(r==null)return e;if(typeof r=="string")return r?o+encodeURIComponent(r):"";for(var p in r){var t=r[p];t=Array.isArray(t)?t:[t];for(var n=0;n<t.length;n++){var i=t[n];i!=null&&(e||(e=o),e+=(e.length>o.length?"&":"")+encodeURIComponent(p)+"="+encodeURIComponent(String(i)))}}return e},goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.internal={},goog.string.internal.startsWith=function(o,e){return o.lastIndexOf(e,0)==0},goog.string.internal.endsWith=function(o,e){var r=o.length-e.length;return 0<=r&&o.indexOf(e,r)==r},goog.string.internal.caseInsensitiveStartsWith=function(o,e){return goog.string.internal.caseInsensitiveCompare(e,o.substr(0,e.length))==0},goog.string.internal.caseInsensitiveEndsWith=function(o,e){return goog.string.internal.caseInsensitiveCompare(e,o.substr(o.length-e.length,e.length))==0},goog.string.internal.caseInsensitiveEquals=function(o,e){return o.toLowerCase()==e.toLowerCase()},goog.string.internal.isEmptyOrWhitespace=function(o){return/^[\s\xa0]*$/.test(o)},goog.string.internal.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(o){return o.trim()}:function(o){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(o)[1]},goog.string.internal.caseInsensitiveCompare=function(o,e){return o=String(o).toLowerCase(),e=String(e).toLowerCase(),o<e?-1:o==e?0:1},goog.string.internal.newLineToBr=function(o,e){return o.replace(/(\r\n|\r|\n)/g,e?"<br />":"<br>")},goog.string.internal.htmlEscape=function(o,e){if(e)o=o.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(o))return o;o.indexOf("&")!=-1&&(o=o.replace(goog.string.internal.AMP_RE_,"&amp;")),o.indexOf("<")!=-1&&(o=o.replace(goog.string.internal.LT_RE_,"&lt;")),o.indexOf(">")!=-1&&(o=o.replace(goog.string.internal.GT_RE_,"&gt;")),o.indexOf('"')!=-1&&(o=o.replace(goog.string.internal.QUOT_RE_,"&quot;")),o.indexOf("'")!=-1&&(o=o.replace(goog.string.internal.SINGLE_QUOTE_RE_,"&#39;")),o.indexOf("\0")!=-1&&(o=o.replace(goog.string.internal.NULL_RE_,"&#0;"))}return o},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(o,e){return goog.string.internal.newLineToBr(o.replace(/ /g," &#160;"),e)},goog.string.internal.contains=function(o,e){return o.indexOf(e)!=-1},goog.string.internal.caseInsensitiveContains=function(o,e){return goog.string.internal.contains(o.toLowerCase(),e.toLowerCase())},goog.string.internal.compareVersions=function(o,e){var r=0;o=goog.string.internal.trim(String(o)).split("."),e=goog.string.internal.trim(String(e)).split(".");for(var p=Math.max(o.length,e.length),t=0;r==0&&t<p;t++){var n=o[t]||"",i=e[t]||"";do{if(n=/(\d*)(\D*)(.*)/.exec(n)||["","","",""],i=/(\d*)(\D*)(.*)/.exec(i)||["","","",""],n[0].length==0&&i[0].length==0)break;r=n[1].length==0?0:parseInt(n[1],10);var s=i[1].length==0?0:parseInt(i[1],10);r=goog.string.internal.compareElements_(r,s)||goog.string.internal.compareElements_(n[2].length==0,i[2].length==0)||goog.string.internal.compareElements_(n[2],i[2]),n=n[3],i=i[3]}while(r==0)}return r},goog.string.internal.compareElements_=function(o,e){return o<e?-1:o>e?1:0},goog.html.SafeUrl=function(o,e){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=o===goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_&&e||"",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(o){return o instanceof goog.html.SafeUrl&&o.constructor===goog.html.SafeUrl&&o.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+o+"' of type "+goog.typeOf(o)),"type_error:SafeUrl")},goog.html.SafeUrl.fromConstant=function(o){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(o))},goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,goog.html.SafeUrl.isSafeMimeType=function(o){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(o)},goog.html.SafeUrl.fromBlob=function(o){return o=goog.html.SafeUrl.isSafeMimeType(o.type)?goog.fs.url.createObjectUrl(o):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromMediaSource=function(o){return goog.asserts.assert("MediaSource"in goog.global,"No support for MediaSource"),o=o instanceof MediaSource?goog.fs.url.createObjectUrl(o):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.DATA_URL_PATTERN_=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,goog.html.SafeUrl.fromDataUrl=function(o){o=o.replace(/(%0A|%0D)/g,"");var e=o.match(goog.html.DATA_URL_PATTERN_);return e=e&&goog.html.SafeUrl.isSafeMimeType(e[1]),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e?o:goog.html.SafeUrl.INNOCUOUS_STRING)},goog.html.SafeUrl.fromTelUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"tel:")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i,goog.html.SafeUrl.fromSipUrl=function(o){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(o))||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromFacebookMessengerUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"fb-messenger://share")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromWhatsAppUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"whatsapp://send")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromSmsUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(o)||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.isSmsUrlBodyValid_=function(o){var e=o.indexOf("#");if(0<e&&(o=o.substring(0,e)),e=o.match(/[?&]body=/gi),!e)return!0;if(1<e.length)return!1;if(o=o.match(/[?&]body=([^&]*)/)[1],!o)return!0;try{decodeURIComponent(o)}catch{return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(o)},goog.html.SafeUrl.fromSshUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"ssh://")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.sanitizeChromeExtensionUrl=function(o,e){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//,o,e)},goog.html.SafeUrl.sanitizeFirefoxExtensionUrl=function(o,e){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^moz-extension:\/\/([^\/]+)\//,o,e)},goog.html.SafeUrl.sanitizeEdgeExtensionUrl=function(o,e){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^ms-browser-extension:\/\/([^\/]+)\//,o,e)},goog.html.SafeUrl.sanitizeExtensionUrl_=function(o,e,r){return(o=o.exec(e))?(o=o[1],(r instanceof goog.string.Const?[goog.string.Const.unwrap(r)]:r.map(function(p){return goog.string.Const.unwrap(p)})).indexOf(o)==-1&&(e=goog.html.SafeUrl.INNOCUOUS_STRING)):e=goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromTrustedResourceUrl=function(o){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(o))},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(o){return o instanceof goog.html.SafeUrl?o:(o=typeof o=="object"&&o.implementsGoogStringTypedString?o.getTypedStringValue():String(o),goog.html.SAFE_URL_PATTERN_.test(o)||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o))},goog.html.SafeUrl.sanitizeAssertUnchanged=function(o,e){return o instanceof goog.html.SafeUrl?o:(o=typeof o=="object"&&o.implementsGoogStringTypedString?o.getTypedStringValue():String(o),e&&/^data:/i.test(o)&&(e=goog.html.SafeUrl.fromDataUrl(o),e.getTypedStringValue()==o)?e:(goog.asserts.assert(goog.html.SAFE_URL_PATTERN_.test(o),"%s does not match the safe URL pattern",o)||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)))},goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse=function(o){return new goog.html.SafeUrl(goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_,o)},goog.html.SafeUrl.ABOUT_BLANK=goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank"),goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_={},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(o){return o=goog.string.Const.unwrap(o),o.length===0?goog.html.SafeStyle.EMPTY:(goog.asserts.assert(goog.string.internal.endsWith(o,";"),"Last character of style string is not ';': "+o),goog.asserts.assert(goog.string.internal.contains(o,":"),`Style string must contain at least one ':', to specify a "name: value" pair: `+o),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(o))},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(o){return o instanceof goog.html.SafeStyle&&o.constructor===goog.html.SafeStyle&&o.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseSafeStyleWrappedValue_:(goog.asserts.fail("expected object of type SafeStyle, got '"+o+"' of type "+goog.typeOf(o)),"type_error:SafeStyle")},goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse=function(o){return new goog.html.SafeStyle().initSecurityPrivateDoNotAccessOrElse_(o)},goog.html.SafeStyle.prototype.initSecurityPrivateDoNotAccessOrElse_=function(o){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_=o,this},goog.html.SafeStyle.EMPTY=goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(""),goog.html.SafeStyle.INNOCUOUS_STRING="zClosurez",goog.html.SafeStyle.create=function(o){var e="",r;for(r in o){if(!/^[-_a-zA-Z0-9]+$/.test(r))throw Error("Name allows only [-_a-zA-Z0-9], got: "+r);var p=o[r];p!=null&&(p=Array.isArray(p)?goog.array.map(p,goog.html.SafeStyle.sanitizePropertyValue_).join(" "):goog.html.SafeStyle.sanitizePropertyValue_(p),e+=r+":"+p+";")}return e?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(e):goog.html.SafeStyle.EMPTY},goog.html.SafeStyle.sanitizePropertyValue_=function(o){if(o instanceof goog.html.SafeUrl)return'url("'+goog.html.SafeUrl.unwrap(o).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(o=o instanceof goog.string.Const?goog.string.Const.unwrap(o):goog.html.SafeStyle.sanitizePropertyValueString_(String(o)),/[{;}]/.test(o))throw new goog.asserts.AssertionError("Value does not allow [{;}], got: %s.",[o]);return o},goog.html.SafeStyle.sanitizePropertyValueString_=function(o){var e=o.replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.URL_RE_,"url");if(goog.html.SafeStyle.VALUE_RE_.test(e)){if(goog.html.SafeStyle.COMMENT_RE_.test(o))return goog.asserts.fail("String value disallows comments, got: "+o),goog.html.SafeStyle.INNOCUOUS_STRING;if(!goog.html.SafeStyle.hasBalancedQuotes_(o))return goog.asserts.fail("String value requires balanced quotes, got: "+o),goog.html.SafeStyle.INNOCUOUS_STRING;if(!goog.html.SafeStyle.hasBalancedSquareBrackets_(o))return goog.asserts.fail("String value requires balanced square brackets and one identifier per pair of brackets, got: "+o),goog.html.SafeStyle.INNOCUOUS_STRING}else return goog.asserts.fail("String value allows only "+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+" and simple functions, got: "+o),goog.html.SafeStyle.INNOCUOUS_STRING;return goog.html.SafeStyle.sanitizeUrl_(o)},goog.html.SafeStyle.hasBalancedQuotes_=function(o){for(var e=!0,r=!0,p=0;p<o.length;p++){var t=o.charAt(p);t=="'"&&r?e=!e:t=='"'&&e&&(r=!r)}return e&&r},goog.html.SafeStyle.hasBalancedSquareBrackets_=function(o){for(var e=!0,r=/^[-_a-zA-Z0-9]$/,p=0;p<o.length;p++){var t=o.charAt(p);if(t=="]"){if(e)return!1;e=!0}else if(t=="["){if(!e)return!1;e=!1}else if(!e&&!r.test(t))return!1}return e},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.ALLOWED_FUNCTIONS_="calc cubic-bezier fit-content hsl hsla linear-gradient matrix minmax repeat rgb rgba (rotate|scale|translate)(X|Y|Z|3d)?".split(" "),goog.html.SafeStyle.FUNCTIONS_RE_=new RegExp("\\b("+goog.html.SafeStyle.ALLOWED_FUNCTIONS_.join("|")+")\\([-+*/0-9a-z.%\\[\\], ]+\\)","g"),goog.html.SafeStyle.COMMENT_RE_=/\/\*/,goog.html.SafeStyle.sanitizeUrl_=function(o){return o.replace(goog.html.SafeStyle.URL_RE_,function(e,r,p,t){var n="";return p=p.replace(/^(['"])(.*)\1$/,function(i,s,g){return n=s,g}),e=goog.html.SafeUrl.sanitize(p).getTypedStringValue(),r+n+e+n+t})},goog.html.SafeStyle.concat=function(o){var e="",r=function(p){Array.isArray(p)?goog.array.forEach(p,r):e+=goog.html.SafeStyle.unwrap(p)};return goog.array.forEach(arguments,r),e?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(e):goog.html.SafeStyle.EMPTY},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(o,e){if(goog.string.internal.contains(o,"<"))throw Error("Selector does not allow '<', got: "+o);var r=o.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g,"");if(!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=^$|]+$/.test(r))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+o);if(!goog.html.SafeStyleSheet.hasBalancedBrackets_(r))throw Error("() and [] in selector must be balanced, got: "+o);return e instanceof goog.html.SafeStyle||(e=goog.html.SafeStyle.create(e)),o=o+"{"+goog.html.SafeStyle.unwrap(e).replace(/</g,"\\3C ")+"}",goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeStyleSheet.hasBalancedBrackets_=function(o){for(var e={"(":")","[":"]"},r=[],p=0;p<o.length;p++){var t=o[p];if(e[t])r.push(e[t]);else if(goog.object.contains(e,t)&&r.pop()!=t)return!1}return r.length==0},goog.html.SafeStyleSheet.concat=function(o){var e="",r=function(p){Array.isArray(p)?goog.array.forEach(p,r):e+=goog.html.SafeStyleSheet.unwrap(p)};return goog.array.forEach(arguments,r),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeStyleSheet.fromConstant=function(o){return o=goog.string.Const.unwrap(o),o.length===0?goog.html.SafeStyleSheet.EMPTY:(goog.asserts.assert(!goog.string.internal.contains(o,"<"),"Forbidden '<' character in style sheet string: "+o),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(o))},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(o){return o instanceof goog.html.SafeStyleSheet&&o.constructor===goog.html.SafeStyleSheet&&o.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:(goog.asserts.fail("expected object of type SafeStyleSheet, got '"+o+"' of type "+goog.typeOf(o)),"type_error:SafeStyleSheet")},goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse=function(o){return new goog.html.SafeStyleSheet().initSecurityPrivateDoNotAccessOrElse_(o)},goog.html.SafeStyleSheet.prototype.initSecurityPrivateDoNotAccessOrElse_=function(o){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=o,this},goog.html.SafeStyleSheet.EMPTY=goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(""),goog.labs={},goog.labs.userAgent={},goog.labs.userAgent.util={},goog.labs.userAgent.util.getNativeUserAgentString_=function(){var o=goog.labs.userAgent.util.getNavigator_();return o&&(o=o.userAgent)?o:""},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(o){goog.labs.userAgent.util.userAgent_=o||goog.labs.userAgent.util.getNativeUserAgentString_()},goog.labs.userAgent.util.getUserAgent=function(){return goog.labs.userAgent.util.userAgent_},goog.labs.userAgent.util.matchUserAgent=function(o){var e=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.contains(e,o)},goog.labs.userAgent.util.matchUserAgentIgnoreCase=function(o){var e=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.caseInsensitiveContains(e,o)},goog.labs.userAgent.util.extractVersionTuples=function(o){for(var e=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,r=[],p;p=e.exec(o);)r.push([p[1],p[2],p[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 o(t){return t=goog.array.find(t,p),r[t]||""}var e=goog.labs.userAgent.util.getUserAgent();if(goog.labs.userAgent.browser.isIE())return goog.labs.userAgent.browser.getIEVersion_(e);e=goog.labs.userAgent.util.extractVersionTuples(e);var r={};goog.array.forEach(e,function(t){r[t[0]]=t[1]});var p=goog.partial(goog.object.containsKey,r);return goog.labs.userAgent.browser.isOpera()?o(["Version","Opera"]):goog.labs.userAgent.browser.isEdge()?o(["Edge"]):goog.labs.userAgent.browser.isEdgeChromium()?o(["Edg"]):goog.labs.userAgent.browser.isChrome()?o(["Chrome","CriOS","HeadlessChrome"]):(e=e[2])&&e[1]||""},goog.labs.userAgent.browser.isVersionOrHigher=function(o){return 0<=goog.string.internal.compareVersions(goog.labs.userAgent.browser.getVersion(),o)},goog.labs.userAgent.browser.getIEVersion_=function(o){var e=/rv: *([\d\.]*)/.exec(o);if(e&&e[1])return e[1];e="";var r=/MSIE +([\d\.]+)/.exec(o);if(r&&r[1])if(o=/Trident\/(\d.\d)/.exec(o),r[1]=="7.0")if(o&&o[1])switch(o[1]){case"4.0":e="8.0";break;case"5.0":e="9.0";break;case"6.0":e="10.0";break;case"7.0":e="11.0"}else e="7.0";else e=r[1];return e},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.ENABLE_ERROR_MESSAGES=goog.DEBUG,goog.html.SafeHtml.SUPPORT_STYLE_ATTRIBUTE=!0,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(o){return goog.html.SafeHtml.unwrapTrustedHTML(o).toString()},goog.html.SafeHtml.unwrapTrustedHTML=function(o){return o instanceof goog.html.SafeHtml&&o.constructor===goog.html.SafeHtml&&o.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseSafeHtmlWrappedValue_:(goog.asserts.fail("expected object of type SafeHtml, got '"+o+"' of type "+goog.typeOf(o)),"type_error:SafeHtml")},goog.html.SafeHtml.htmlEscape=function(o){if(o instanceof goog.html.SafeHtml)return o;var e=typeof o=="object",r=null;return e&&o.implementsGoogI18nBidiDirectionalString&&(r=o.getDirection()),o=e&&o.implementsGoogStringTypedString?o.getTypedStringValue():String(o),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(o),r)},goog.html.SafeHtml.htmlEscapePreservingNewlines=function(o){return o instanceof goog.html.SafeHtml?o:(o=goog.html.SafeHtml.htmlEscape(o),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(goog.html.SafeHtml.unwrap(o)),o.getDirection()))},goog.html.SafeHtml.htmlEscapePreservingNewlinesAndSpaces=function(o){return o instanceof goog.html.SafeHtml?o:(o=goog.html.SafeHtml.htmlEscape(o),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(goog.html.SafeHtml.unwrap(o)),o.getDirection()))},goog.html.SafeHtml.from=goog.html.SafeHtml.htmlEscape,goog.html.SafeHtml.comment=function(o){return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!--"+goog.string.internal.htmlEscape(o)+"-->",null)},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(o,e,r){return goog.html.SafeHtml.verifyTagName(String(o)),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(o),e,r)},goog.html.SafeHtml.verifyTagName=function(o){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(o))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Invalid tag name <"+o+">.":"");if(o.toUpperCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Tag name <"+o+"> is not allowed for SafeHtml.":"")},goog.html.SafeHtml.createIframe=function(o,e,r,p){o&&goog.html.TrustedResourceUrl.unwrap(o);var t={};return t.src=o||null,t.srcdoc=e&&goog.html.SafeHtml.unwrap(e),o=goog.html.SafeHtml.combineAttributes(t,{sandbox:""},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",o,p)},goog.html.SafeHtml.createSandboxIframe=function(o,e,r,p){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"The browser does not support sandboxed iframes.":"");var t={};return t.src=o?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(o)):null,t.srcdoc=e||null,t.sandbox="",o=goog.html.SafeHtml.combineAttributes(t,{},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",o,p)},goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype},goog.html.SafeHtml.createScriptSrc=function(o,e){return goog.html.TrustedResourceUrl.unwrap(o),o=goog.html.SafeHtml.combineAttributes({src:o},{},e),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",o)},goog.html.SafeHtml.createScript=function(o,e){for(var r in e){var p=r.toLowerCase();if(p=="language"||p=="src"||p=="text"||p=="type")throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot set "'+p+'" attribute':"")}for(r="",o=goog.array.concat(o),p=0;p<o.length;p++)r+=goog.html.SafeScript.unwrap(o[p]);return o=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",e,o)},goog.html.SafeHtml.createStyle=function(o,e){e=goog.html.SafeHtml.combineAttributes({type:"text/css"},{},e);var r="";o=goog.array.concat(o);for(var p=0;p<o.length;p++)r+=goog.html.SafeStyleSheet.unwrap(o[p]);return o=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style",e,o)},goog.html.SafeHtml.createMetaRefresh=function(o,e){return o=goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(o)),(goog.labs.userAgent.browser.isIE()||goog.labs.userAgent.browser.isEdge())&&goog.string.internal.contains(o,";")&&(o="'"+o.replace(/'/g,"%27")+"'"),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta",{"http-equiv":"refresh",content:(e||0)+"; url="+o})},goog.html.SafeHtml.getAttrNameAndValue_=function(o,e,r){if(r instanceof goog.string.Const)r=goog.string.Const.unwrap(r);else if(e.toLowerCase()=="style")if(goog.html.SafeHtml.SUPPORT_STYLE_ATTRIBUTE)r=goog.html.SafeHtml.getStyleValue_(r);else throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "style" not supported.':"");else{if(/^on/i.test(e))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+e+'" requires goog.string.Const value, "'+r+'" given.':"");if(e.toLowerCase()in goog.html.SafeHtml.URL_ATTRIBUTES_)if(r instanceof goog.html.TrustedResourceUrl)r=goog.html.TrustedResourceUrl.unwrap(r);else if(r instanceof goog.html.SafeUrl)r=goog.html.SafeUrl.unwrap(r);else if(typeof r=="string")r=goog.html.SafeUrl.sanitize(r).getTypedStringValue();else throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+e+'" on tag "'+o+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+r+'" given.':"")}return r.implementsGoogStringTypedString&&(r=r.getTypedStringValue()),goog.asserts.assert(typeof r=="string"||typeof r=="number","String or number value expected, got "+typeof r+" with value: "+r),e+'="'+goog.string.internal.htmlEscape(String(r))+'"'},goog.html.SafeHtml.getStyleValue_=function(o){if(!goog.isObject(o))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof o+" given: "+o:"");return o instanceof goog.html.SafeStyle||(o=goog.html.SafeStyle.create(o)),goog.html.SafeStyle.unwrap(o)},goog.html.SafeHtml.createWithDir=function(o,e,r,p){return e=goog.html.SafeHtml.create(e,r,p),e.dir_=o,e},goog.html.SafeHtml.join=function(o,e){o=goog.html.SafeHtml.htmlEscape(o);var r=o.getDirection(),p=[],t=function(n){Array.isArray(n)?goog.array.forEach(n,t):(n=goog.html.SafeHtml.htmlEscape(n),p.push(goog.html.SafeHtml.unwrap(n)),n=n.getDirection(),r==goog.i18n.bidi.Dir.NEUTRAL?r=n:n!=goog.i18n.bidi.Dir.NEUTRAL&&r!=n&&(r=null))};return goog.array.forEach(e,t),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(p.join(goog.html.SafeHtml.unwrap(o)),r)},goog.html.SafeHtml.concat=function(o){return goog.html.SafeHtml.join(goog.html.SafeHtml.EMPTY,Array.prototype.slice.call(arguments))},goog.html.SafeHtml.concatWithDir=function(o,e){var r=goog.html.SafeHtml.concat(goog.array.slice(arguments,1));return r.dir_=o,r},goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse=function(o,e){return new goog.html.SafeHtml().initSecurityPrivateDoNotAccessOrElse_(o,e)},goog.html.SafeHtml.prototype.initSecurityPrivateDoNotAccessOrElse_=function(o,e){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createHTML(o):o,this.dir_=e,this},goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse=function(o,e,r){var p=null,t="<"+o+goog.html.SafeHtml.stringifyAttributes(o,e);return r==null?r=[]:Array.isArray(r)||(r=[r]),goog.dom.tags.isVoidTag(o.toLowerCase())?(goog.asserts.assert(!r.length,"Void tag <"+o+"> does not allow content."),t+=">"):(p=goog.html.SafeHtml.concat(r),t+=">"+goog.html.SafeHtml.unwrap(p)+"</"+o+">",p=p.getDirection()),(o=e&&e.dir)&&(p=/^(ltr|rtl|auto)$/i.test(o)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(t,p)},goog.html.SafeHtml.stringifyAttributes=function(o,e){var r="";if(e)for(var p in e){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(p))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Invalid attribute name "'+p+'".':"");var t=e[p];t!=null&&(r+=" "+goog.html.SafeHtml.getAttrNameAndValue_(o,p,t))}return r},goog.html.SafeHtml.combineAttributes=function(o,e,r){var p={},t;for(t in o)goog.asserts.assert(t.toLowerCase()==t,"Must be lower case"),p[t]=o[t];for(t in e)goog.asserts.assert(t.toLowerCase()==t,"Must be lower case"),p[t]=e[t];if(r)for(t in r){var n=t.toLowerCase();if(n in o)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot override "'+n+'" attribute, got "'+t+'" with value "'+r[t]+'"':"");n in e&&delete p[n],p[t]=r[t]}return p},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(o,e,r){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(e,r||null)},goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(o,e){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(e)},goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(o,e){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(e)},goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(o,e){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e)},goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(o,e){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(o,e){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(e)},goog.dom.safe={},goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"},goog.dom.safe.insertAdjacentHtml=function(o,e,r){o.insertAdjacentHTML(e,goog.html.SafeHtml.unwrapTrustedHTML(r))},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&&typeof document>"u")return!1;var o=document.createElement("div"),e=document.createElement("div");return e.appendChild(document.createElement("div")),o.appendChild(e),goog.DEBUG&&!o.firstChild?!1:(e=o.firstChild.firstChild,o.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(goog.html.SafeHtml.EMPTY),!e.parentElement)}),goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(o,e){if(goog.dom.safe.isInnerHtmlCleanupRecursive_())for(;o.lastChild;)o.removeChild(o.lastChild);o.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(e)},goog.dom.safe.setInnerHtml=function(o,e){if(goog.asserts.ENABLE_ASSERTS){var r=o.tagName.toUpperCase();if(goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[r])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+o.tagName+".")}goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(o,e)},goog.dom.safe.setOuterHtml=function(o,e){o.outerHTML=goog.html.SafeHtml.unwrapTrustedHTML(e)},goog.dom.safe.setFormElementAction=function(o,e){e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),goog.dom.asserts.assertIsHTMLFormElement(o).action=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setButtonFormAction=function(o,e){e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),goog.dom.asserts.assertIsHTMLButtonElement(o).formAction=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setInputFormAction=function(o,e){e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),goog.dom.asserts.assertIsHTMLInputElement(o).formAction=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setStyle=function(o,e){o.style.cssText=goog.html.SafeStyle.unwrap(e)},goog.dom.safe.documentWrite=function(o,e){o.write(goog.html.SafeHtml.unwrapTrustedHTML(e))},goog.dom.safe.setAnchorHref=function(o,e){goog.dom.asserts.assertIsHTMLAnchorElement(o),e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),o.href=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setImageSrc=function(o,e){if(goog.dom.asserts.assertIsHTMLImageElement(o),!(e instanceof goog.html.SafeUrl)){var r=/^data:image\//i.test(e);e=goog.html.SafeUrl.sanitizeAssertUnchanged(e,r)}o.src=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setAudioSrc=function(o,e){if(goog.dom.asserts.assertIsHTMLAudioElement(o),!(e instanceof goog.html.SafeUrl)){var r=/^data:audio\//i.test(e);e=goog.html.SafeUrl.sanitizeAssertUnchanged(e,r)}o.src=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setVideoSrc=function(o,e){if(goog.dom.asserts.assertIsHTMLVideoElement(o),!(e instanceof goog.html.SafeUrl)){var r=/^data:video\//i.test(e);e=goog.html.SafeUrl.sanitizeAssertUnchanged(e,r)}o.src=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setEmbedSrc=function(o,e){goog.dom.asserts.assertIsHTMLEmbedElement(o),o.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(e)},goog.dom.safe.setFrameSrc=function(o,e){goog.dom.asserts.assertIsHTMLFrameElement(o),o.src=goog.html.TrustedResourceUrl.unwrap(e)},goog.dom.safe.setIframeSrc=function(o,e){goog.dom.asserts.assertIsHTMLIFrameElement(o),o.src=goog.html.TrustedResourceUrl.unwrap(e)},goog.dom.safe.setIframeSrcdoc=function(o,e){goog.dom.asserts.assertIsHTMLIFrameElement(o),o.srcdoc=goog.html.SafeHtml.unwrapTrustedHTML(e)},goog.dom.safe.setLinkHrefAndRel=function(o,e,r){goog.dom.asserts.assertIsHTMLLinkElement(o),o.rel=r,goog.string.internal.caseInsensitiveContains(r,"stylesheet")?(goog.asserts.assert(e instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),o.href=goog.html.TrustedResourceUrl.unwrap(e)):o.href=e instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrap(e):e instanceof goog.html.SafeUrl?goog.html.SafeUrl.unwrap(e):goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitizeAssertUnchanged(e))},goog.dom.safe.setObjectData=function(o,e){goog.dom.asserts.assertIsHTMLObjectElement(o),o.data=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(e)},goog.dom.safe.setScriptSrc=function(o,e){goog.dom.asserts.assertIsHTMLScriptElement(o),o.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(e),(e=goog.getScriptNonce())&&o.setAttribute("nonce",e)},goog.dom.safe.setScriptContent=function(o,e){goog.dom.asserts.assertIsHTMLScriptElement(o),o.text=goog.html.SafeScript.unwrapTrustedScript(e),(e=goog.getScriptNonce())&&o.setAttribute("nonce",e)},goog.dom.safe.setLocationHref=function(o,e){goog.dom.asserts.assertIsLocation(o),e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),o.href=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.assignLocation=function(o,e){goog.dom.asserts.assertIsLocation(o),e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),o.assign(goog.html.SafeUrl.unwrap(e))},goog.dom.safe.replaceLocation=function(o,e){e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),o.replace(goog.html.SafeUrl.unwrap(e))},goog.dom.safe.openInWindow=function(o,e,r,p,t){return o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),e=e||goog.global,r=r instanceof goog.string.Const?goog.string.Const.unwrap(r):r||"",e.open(goog.html.SafeUrl.unwrap(o),r,p,t)},goog.dom.safe.parseFromStringHtml=function(o,e){return goog.dom.safe.parseFromString(o,e,"text/html")},goog.dom.safe.parseFromString=function(o,e,r){return o.parseFromString(goog.html.SafeHtml.unwrapTrustedHTML(e),r)},goog.dom.safe.createImageFromBlob=function(o){if(!/^image\/.*/g.test(o.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var e=goog.global.URL.createObjectURL(o);return o=new goog.global.Image,o.onload=function(){goog.global.URL.revokeObjectURL(e)},goog.dom.safe.setImageSrc(o,goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Image blob URL."),e)),o},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(o,e){for(var r=o.split("%s"),p="",t=Array.prototype.slice.call(arguments,1);t.length&&1<r.length;)p+=r.shift()+t.shift();return p+r.join("%s")},goog.string.collapseWhitespace=function(o){return o.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},goog.string.isEmptyOrWhitespace=goog.string.internal.isEmptyOrWhitespace,goog.string.isEmptyString=function(o){return o.length==0},goog.string.isEmpty=goog.string.isEmptyOrWhitespace,goog.string.isEmptyOrWhitespaceSafe=function(o){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(o))},goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe,goog.string.isBreakingWhitespace=function(o){return!/[^\t\n\r ]/.test(o)},goog.string.isAlpha=function(o){return!/[^a-zA-Z]/.test(o)},goog.string.isNumeric=function(o){return!/[^0-9]/.test(o)},goog.string.isAlphaNumeric=function(o){return!/[^a-zA-Z0-9]/.test(o)},goog.string.isSpace=function(o){return o==" "},goog.string.isUnicodeChar=function(o){return o.length==1&&" "<=o&&"~">=o||"€"<=o&&"�">=o},goog.string.stripNewlines=function(o){return o.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(o){return o.replace(/(\r\n|\r|\n)/g,`
268
- `)},goog.string.normalizeWhitespace=function(o){return o.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(o){return o.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(o){return o.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(o){return o.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(o){return o.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(o,e,r){if(o==e)return 0;if(!o)return-1;if(!e)return 1;for(var p=o.toLowerCase().match(r),t=e.toLowerCase().match(r),n=Math.min(p.length,t.length),i=0;i<n;i++){r=p[i];var s=t[i];if(r!=s)return o=parseInt(r,10),!isNaN(o)&&(e=parseInt(s,10),!isNaN(e)&&o-e)?o-e:r<s?-1:1}return p.length!=t.length?p.length-t.length:o<e?-1:1},goog.string.intAwareCompare=function(o,e){return goog.string.numberAwareCompare_(o,e,/\d+|\D+/g)},goog.string.floatAwareCompare=function(o,e){return goog.string.numberAwareCompare_(o,e,/\d+|\.\d+|\D+/g)},goog.string.numerateCompare=goog.string.floatAwareCompare,goog.string.urlEncode=function(o){return encodeURIComponent(String(o))},goog.string.urlDecode=function(o){return decodeURIComponent(o.replace(/\+/g," "))},goog.string.newLineToBr=goog.string.internal.newLineToBr,goog.string.htmlEscape=function(o,e){return o=goog.string.internal.htmlEscape(o,e),goog.string.DETECT_DOUBLE_ESCAPING&&(o=o.replace(goog.string.E_RE_,"&#101;")),o},goog.string.E_RE_=/e/g,goog.string.unescapeEntities=function(o){return goog.string.contains(o,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(o):goog.string.unescapePureXmlEntities_(o):o},goog.string.unescapeEntitiesWithDocument=function(o,e){return goog.string.contains(o,"&")?goog.string.unescapeEntitiesUsingDom_(o,e):o},goog.string.unescapeEntitiesUsingDom_=function(o,e){var r={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},p=e?e.createElement("div"):goog.global.document.createElement("div");return o.replace(goog.string.HTML_ENTITY_PATTERN_,function(t,n){var i=r[t];return i||(n.charAt(0)=="#"&&(n=Number("0"+n.substr(1)),isNaN(n)||(i=String.fromCharCode(n))),i||(goog.dom.safe.setInnerHtml(p,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),t+" ")),i=p.firstChild.nodeValue.slice(0,-1)),r[t]=i)})},goog.string.unescapePureXmlEntities_=function(o){return o.replace(/&([^;]+);/g,function(e,r){switch(r){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return r.charAt(0)!="#"||(r=Number("0"+r.substr(1)),isNaN(r))?e:String.fromCharCode(r)}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(o,e){return goog.string.newLineToBr(o.replace(/ /g," &#160;"),e)},goog.string.preserveSpaces=function(o){return o.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(o,e){for(var r=e.length,p=0;p<r;p++){var t=r==1?e:e.charAt(p);if(o.charAt(0)==t&&o.charAt(o.length-1)==t)return o.substring(1,o.length-1)}return o},goog.string.truncate=function(o,e,r){return r&&(o=goog.string.unescapeEntities(o)),o.length>e&&(o=o.substring(0,e-3)+"..."),r&&(o=goog.string.htmlEscape(o)),o},goog.string.truncateMiddle=function(o,e,r,p){if(r&&(o=goog.string.unescapeEntities(o)),p&&o.length>e){p>e&&(p=e);var t=o.length-p;o=o.substring(0,e-p)+"..."+o.substring(t)}else o.length>e&&(p=Math.floor(e/2),t=o.length-p,o=o.substring(0,p+e%2)+"..."+o.substring(t));return r&&(o=goog.string.htmlEscape(o)),o},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(o){o=String(o);for(var e=['"'],r=0;r<o.length;r++){var p=o.charAt(r),t=p.charCodeAt(0);e[r+1]=goog.string.specialEscapeChars_[p]||(31<t&&127>t?p:goog.string.escapeChar(p))}return e.push('"'),e.join("")},goog.string.escapeString=function(o){for(var e=[],r=0;r<o.length;r++)e[r]=goog.string.escapeChar(o.charAt(r));return e.join("")},goog.string.escapeChar=function(o){if(o in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[o];if(o in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[o]=goog.string.specialEscapeChars_[o];var e=o.charCodeAt(0);if(31<e&&127>e)var r=o;else 256>e?(r="\\x",(16>e||256<e)&&(r+="0")):(r="\\u",4096>e&&(r+="0")),r+=e.toString(16).toUpperCase();return goog.string.jsEscapeCache_[o]=r},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(o,e){return o&&e?o.split(e).length-1:0},goog.string.removeAt=function(o,e,r){var p=o;return 0<=e&&e<o.length&&0<r&&(p=o.substr(0,e)+o.substr(e+r,o.length-e-r)),p},goog.string.remove=function(o,e){return o.replace(e,"")},goog.string.removeAll=function(o,e){return e=new RegExp(goog.string.regExpEscape(e),"g"),o.replace(e,"")},goog.string.replaceAll=function(o,e,r){return e=new RegExp(goog.string.regExpEscape(e),"g"),o.replace(e,r.replace(/\$/g,"$$$$"))},goog.string.regExpEscape=function(o){return String(o).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},goog.string.repeat=String.prototype.repeat?function(o,e){return o.repeat(e)}:function(o,e){return Array(e+1).join(o)},goog.string.padNumber=function(o,e,r){return o=r!==void 0?o.toFixed(r):String(o),r=o.indexOf("."),r==-1&&(r=o.length),goog.string.repeat("0",Math.max(0,e-r))+o},goog.string.makeSafe=function(o){return o==null?"":String(o)},goog.string.buildString=function(o){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(o){for(var e=0,r=0;r<o.length;++r)e=31*e+o.charCodeAt(r)>>>0;return e},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(o){var e=Number(o);return e==0&&goog.string.isEmptyOrWhitespace(o)?NaN:e},goog.string.isLowerCamelCase=function(o){return/^[a-z]+([A-Z][a-z]*)*$/.test(o)},goog.string.isUpperCamelCase=function(o){return/^([A-Z][a-z]*)+$/.test(o)},goog.string.toCamelCase=function(o){return String(o).replace(/\-([a-z])/g,function(e,r){return r.toUpperCase()})},goog.string.toSelectorCase=function(o){return String(o).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(o,e){return e=typeof e=="string"?goog.string.regExpEscape(e):"\\s",o.replace(new RegExp("(^"+(e?"|["+e+"]+":"")+")([a-z])","g"),function(r,p,t){return p+t.toUpperCase()})},goog.string.capitalize=function(o){return String(o.charAt(0)).toUpperCase()+String(o.substr(1)).toLowerCase()},goog.string.parseInt=function(o){return isFinite(o)&&(o=String(o)),typeof o=="string"?/^\s*-?0x/i.test(o)?parseInt(o,16):parseInt(o,10):NaN},goog.string.splitLimit=function(o,e,r){o=o.split(e);for(var p=[];0<r&&o.length;)p.push(o.shift()),r--;return o.length&&p.push(o.join(e)),p},goog.string.lastComponent=function(o,e){if(e)typeof e=="string"&&(e=[e]);else return o;for(var r=-1,p=0;p<e.length;p++)if(e[p]!=""){var t=o.lastIndexOf(e[p]);t>r&&(r=t)}return r==-1?o:o.slice(r+1)},goog.string.editDistance=function(o,e){var r=[],p=[];if(o==e)return 0;if(!o.length||!e.length)return Math.max(o.length,e.length);for(var t=0;t<e.length+1;t++)r[t]=t;for(t=0;t<o.length;t++){p[0]=t+1;for(var n=0;n<e.length;n++)p[n+1]=Math.min(p[n]+1,r[n+1]+1,r[n]+Number(o[t]!=e[n]));for(n=0;n<r.length;n++)r[n]=p[n]}return p[e.length]},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 o=goog.labs.userAgent.util.getUserAgent();if(o){o=goog.labs.userAgent.util.extractVersionTuples(o);var e=goog.labs.userAgent.engine.getEngineTuple_(o);if(e)return e[0]=="Gecko"?goog.labs.userAgent.engine.getVersionForKey_(o,"Firefox"):e[1];o=o[0];var r;if(o&&(r=o[2])&&(r=/Trident\/([^\s;]+)/.exec(r)))return r[1]}return""},goog.labs.userAgent.engine.getEngineTuple_=function(o){if(!goog.labs.userAgent.engine.isEdge())return o[1];for(var e=0;e<o.length;e++){var r=o[e];if(r[0]=="Edge")return r}},goog.labs.userAgent.engine.isVersionOrHigher=function(o){return 0<=goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(),o)},goog.labs.userAgent.engine.getVersionForKey_=function(o,e){return(o=goog.array.find(o,function(r){return e==r[0]}))&&o[1]||""},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.getVersion=function(){var o=goog.labs.userAgent.util.getUserAgent(),e="";return goog.labs.userAgent.platform.isWindows()?(e=/Windows (?:NT|Phone) ([0-9.]+)/,e=(o=e.exec(o))?o[1]:"0.0"):goog.labs.userAgent.platform.isIos()?(e=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,e=(o=e.exec(o))&&o[1].replace(/_/g,".")):goog.labs.userAgent.platform.isMacintosh()?(e=/Mac OS X ([0-9_.]+)/,e=(o=e.exec(o))?o[1].replace(/_/g,"."):"10"):goog.labs.userAgent.platform.isKaiOS()?(e=/(?:KaiOS)\/(\S+)/i,e=(o=e.exec(o))&&o[1]):goog.labs.userAgent.platform.isAndroid()?(e=/Android\s+([^\);]+)(\)|;)/,e=(o=e.exec(o))&&o[1]):goog.labs.userAgent.platform.isChromeOS()&&(e=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,e=(o=e.exec(o))&&o[1]),e||""},goog.labs.userAgent.platform.isVersionOrHigher=function(o){return 0<=goog.string.compareVersions(goog.labs.userAgent.platform.getVersion(),o)},goog.reflect={},goog.reflect.object=function(o,e){return e},goog.reflect.objectProperty=function(o,e){return o},goog.reflect.sinkValue=function(o){return goog.reflect.sinkValue[" "](o),o},goog.reflect.sinkValue[" "]=goog.nullFunction,goog.reflect.canAccessProperty=function(o,e){try{return goog.reflect.sinkValue(o[e]),!0}catch{}return!1},goog.reflect.cache=function(o,e,r,p){return p=p?p(e):e,Object.prototype.hasOwnProperty.call(o,p)?o[p]:o[p]=r(e)},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 o=goog.userAgent.getNavigatorTyped();return o&&o.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.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 o=goog.userAgent.getNavigatorTyped();return!!o&&goog.string.contains(o.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.determineVersion_=function(){var o="",e=goog.userAgent.getVersionRegexResult_();return e&&(o=e?e[1]:""),goog.userAgent.IE&&(e=goog.userAgent.getDocumentMode_(),e!=null&&e>parseFloat(o))?String(e):o},goog.userAgent.getVersionRegexResult_=function(){var o=goog.userAgent.getUserAgentString();if(goog.userAgent.GECKO)return/rv:([^\);]+)(\)|;)/.exec(o);if(goog.userAgent.EDGE)return/Edge\/([\d\.]+)/.exec(o);if(goog.userAgent.IE)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(o);if(goog.userAgent.WEBKIT)return/WebKit\/(\S+)/.exec(o);if(goog.userAgent.OPERA)return/(?:Version)[ \/]?(\S+)/.exec(o)},goog.userAgent.getDocumentMode_=function(){var o=goog.global.document;return o?o.documentMode:void 0},goog.userAgent.VERSION=goog.userAgent.determineVersion_(),goog.userAgent.compare=function(o,e){return goog.string.compareVersions(o,e)},goog.userAgent.isVersionOrHigherCache_={},goog.userAgent.isVersionOrHigher=function(o){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,o,function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,o)})},goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher,goog.userAgent.isDocumentModeOrHigher=function(o){return Number(goog.userAgent.DOCUMENT_MODE)>=o},goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher,goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE){var o=goog.userAgent.getDocumentMode_();return o||parseInt(goog.userAgent.VERSION,10)||void 0}}(),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(o){return goog.string.contains(goog.crypt.base64.paddingChars_,o)},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_||typeof goog.global.btoa=="function",goog.crypt.base64.HAS_NATIVE_DECODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&!goog.userAgent.IE&&typeof goog.global.atob=="function",goog.crypt.base64.encodeByteArray=function(o,e){goog.asserts.assert(goog.isArrayLike(o),"encodeByteArray takes an array as a parameter"),e===void 0&&(e=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),e=goog.crypt.base64.byteToCharMaps_[e];for(var r=[],p=0;p<o.length;p+=3){var t=o[p],n=p+1<o.length,i=n?o[p+1]:0,s=p+2<o.length,g=s?o[p+2]:0,l=t>>2;t=(t&3)<<4|i>>4,i=(i&15)<<2|g>>6,g&=63,s||(g=64,n||(i=64)),r.push(e[l],e[t],e[i]||"",e[g]||"")}return r.join("")},goog.crypt.base64.encodeString=function(o,e){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!e?goog.global.btoa(o):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(o),e)},goog.crypt.base64.decodeString=function(o,e){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!e)return goog.global.atob(o);var r="";return goog.crypt.base64.decodeStringInternal_(o,function(p){r+=String.fromCharCode(p)}),r},goog.crypt.base64.decodeStringToByteArray=function(o,e){var r=[];return goog.crypt.base64.decodeStringInternal_(o,function(p){r.push(p)}),r},goog.crypt.base64.decodeStringToUint8Array=function(o){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var e=o.length,r=3*e/4;r%3?r=Math.floor(r):goog.crypt.base64.isPadding_(o[e-1])&&(r=goog.crypt.base64.isPadding_(o[e-2])?r-2:r-1);var p=new Uint8Array(r),t=0;return goog.crypt.base64.decodeStringInternal_(o,function(n){p[t++]=n}),p.subarray(0,t)},goog.crypt.base64.decodeStringInternal_=function(o,e){function r(g){for(;p<o.length;){var l=o.charAt(p++),u=goog.crypt.base64.charToByteMap_[l];if(u!=null)return u;if(!goog.string.isEmptyOrWhitespace(l))throw Error("Unknown base64 encoding at char: "+l)}return g}goog.crypt.base64.init_();for(var p=0;;){var t=r(-1),n=r(0),i=r(64),s=r(64);if(s===64&&t===-1)break;e(t<<2|n>>4),i!=64&&(e(n<<4&240|i>>2),s!=64&&e(i<<6&192|s))}},goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var o=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),e=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var p=o.concat(e[r].split(""));goog.crypt.base64.byteToCharMaps_[r]=p;for(var t=0;t<p.length;t++){var n=p[t],i=goog.crypt.base64.charToByteMap_[n];i===void 0?goog.crypt.base64.charToByteMap_[n]=t:goog.asserts.assert(i===t)}}}},jspb.utils={},jspb.utils.split64Low=0,jspb.utils.split64High=0,jspb.utils.splitUint64=function(o){var e=o>>>0;o=Math.floor((o-e)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=e,jspb.utils.split64High=o},jspb.utils.splitInt64=function(o){var e=0>o;o=Math.abs(o);var r=o>>>0;o=Math.floor((o-r)/jspb.BinaryConstants.TWO_TO_32),o>>>=0,e&&(o=~o>>>0,r=(~r>>>0)+1,4294967295<r&&(r=0,o++,4294967295<o&&(o=0))),jspb.utils.split64Low=r,jspb.utils.split64High=o},jspb.utils.splitZigzag64=function(o){var e=0>o;o=2*Math.abs(o),jspb.utils.splitUint64(o),o=jspb.utils.split64Low;var r=jspb.utils.split64High;e&&(o==0?r==0?r=o=4294967295:(r--,o=4294967295):o--),jspb.utils.split64Low=o,jspb.utils.split64High=r},jspb.utils.splitFloat32=function(o){var e=0>o?1:0;if(o=e?-o:o,o===0)0<1/o?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(o))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(o>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(e<<31|2139095040)>>>0;else if(o<jspb.BinaryConstants.FLOAT32_MIN)o=Math.round(o/Math.pow(2,-149)),jspb.utils.split64High=0,jspb.utils.split64Low=(e<<31|o)>>>0;else{var r=Math.floor(Math.log(o)/Math.LN2);o*=Math.pow(2,-r),o=Math.round(o*jspb.BinaryConstants.TWO_TO_23),16777216<=o&&++r,jspb.utils.split64High=0,jspb.utils.split64Low=(e<<31|r+127<<23|o&8388607)>>>0}},jspb.utils.splitFloat64=function(o){var e=0>o?1:0;if(o=e?-o:o,o===0)jspb.utils.split64High=0<1/o?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(o))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(o>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(e<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(o<jspb.BinaryConstants.FLOAT64_MIN){var r=o/Math.pow(2,-1074);o=r/jspb.BinaryConstants.TWO_TO_32,jspb.utils.split64High=(e<<31|o)>>>0,jspb.utils.split64Low=r>>>0}else{r=o;var p=0;if(2<=r)for(;2<=r&&1023>p;)p++,r/=2;else for(;1>r&&-1022<p;)r*=2,p--;r=o*Math.pow(2,-p),o=r*jspb.BinaryConstants.TWO_TO_20&1048575,r=r*jspb.BinaryConstants.TWO_TO_52>>>0,jspb.utils.split64High=(e<<31|p+1023<<20|o)>>>0,jspb.utils.split64Low=r}},jspb.utils.splitHash64=function(o){var e=o.charCodeAt(0),r=o.charCodeAt(1),p=o.charCodeAt(2),t=o.charCodeAt(3),n=o.charCodeAt(4),i=o.charCodeAt(5),s=o.charCodeAt(6);o=o.charCodeAt(7),jspb.utils.split64Low=e+(r<<8)+(p<<16)+(t<<24)>>>0,jspb.utils.split64High=n+(i<<8)+(s<<16)+(o<<24)>>>0},jspb.utils.joinUint64=function(o,e){return e*jspb.BinaryConstants.TWO_TO_32+(o>>>0)},jspb.utils.joinInt64=function(o,e){var r=e&2147483648;return r&&(o=~o+1>>>0,e=~e>>>0,o==0&&(e=e+1>>>0)),o=jspb.utils.joinUint64(o,e),r?-o:o},jspb.utils.toZigzag64=function(o,e,r){var p=e>>31;return r(o<<1^p,(e<<1|o>>>31)^p)},jspb.utils.joinZigzag64=function(o,e){return jspb.utils.fromZigzag64(o,e,jspb.utils.joinInt64)},jspb.utils.fromZigzag64=function(o,e,r){var p=-(o&1);return r((o>>>1|e<<31)^p,e>>>1^p)},jspb.utils.joinFloat32=function(o,e){e=2*(o>>31)+1;var r=o>>>23&255;return o&=8388607,r==255?o?NaN:1/0*e:r==0?e*Math.pow(2,-149)*o:e*Math.pow(2,r-150)*(o+Math.pow(2,23))},jspb.utils.joinFloat64=function(o,e){var r=2*(e>>31)+1,p=e>>>20&2047;return o=jspb.BinaryConstants.TWO_TO_32*(e&1048575)+o,p==2047?o?NaN:1/0*r:p==0?r*Math.pow(2,-1074)*o:r*Math.pow(2,p-1075)*(o+jspb.BinaryConstants.TWO_TO_52)},jspb.utils.joinHash64=function(o,e){return String.fromCharCode(o>>>0&255,o>>>8&255,o>>>16&255,o>>>24&255,e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255)},jspb.utils.DIGITS="0123456789abcdef".split(""),jspb.utils.ZERO_CHAR_CODE_=48,jspb.utils.A_CHAR_CODE_=97,jspb.utils.joinUnsignedDecimalString=function(o,e){function r(t,n){return t=t?String(t):"",n?"0000000".slice(t.length)+t:t}if(2097151>=e)return""+jspb.utils.joinUint64(o,e);var p=(o>>>24|e<<8)>>>0&16777215;return e=e>>16&65535,o=(o&16777215)+6777216*p+6710656*e,p+=8147497*e,e*=2,1e7<=o&&(p+=Math.floor(o/1e7),o%=1e7),1e7<=p&&(e+=Math.floor(p/1e7),p%=1e7),r(e,0)+r(p,e)+r(o,1)},jspb.utils.joinSignedDecimalString=function(o,e){var r=e&2147483648;return r&&(o=~o+1>>>0,e=~e+(o==0?1:0)>>>0),o=jspb.utils.joinUnsignedDecimalString(o,e),r?"-"+o:o},jspb.utils.hash64ToDecimalString=function(o,e){jspb.utils.splitHash64(o),o=jspb.utils.split64Low;var r=jspb.utils.split64High;return e?jspb.utils.joinSignedDecimalString(o,r):jspb.utils.joinUnsignedDecimalString(o,r)},jspb.utils.hash64ArrayToDecimalStrings=function(o,e){for(var r=Array(o.length),p=0;p<o.length;p++)r[p]=jspb.utils.hash64ToDecimalString(o[p],e);return r},jspb.utils.decimalStringToHash64=function(o){function e(i,s){for(var g=0;8>g&&(i!==1||0<s);g++)s=i*t[g]+s,t[g]=s&255,s>>>=8}function r(){for(var i=0;8>i;i++)t[i]=~t[i]&255}jspb.asserts.assert(0<o.length);var p=!1;o[0]==="-"&&(p=!0,o=o.slice(1));for(var t=[0,0,0,0,0,0,0,0],n=0;n<o.length;n++)e(10,o.charCodeAt(n)-jspb.utils.ZERO_CHAR_CODE_);return p&&(r(),e(1,1)),goog.crypt.byteArrayToString(t)},jspb.utils.splitDecimalString=function(o){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(o))},jspb.utils.toHexDigit_=function(o){return String.fromCharCode(10>o?jspb.utils.ZERO_CHAR_CODE_+o:jspb.utils.A_CHAR_CODE_-10+o)},jspb.utils.fromHexCharCode_=function(o){return o>=jspb.utils.A_CHAR_CODE_?o-jspb.utils.A_CHAR_CODE_+10:o-jspb.utils.ZERO_CHAR_CODE_},jspb.utils.hash64ToHexString=function(o){var e=Array(18);e[0]="0",e[1]="x";for(var r=0;8>r;r++){var p=o.charCodeAt(7-r);e[2*r+2]=jspb.utils.toHexDigit_(p>>4),e[2*r+3]=jspb.utils.toHexDigit_(p&15)}return e.join("")},jspb.utils.hexStringToHash64=function(o){o=o.toLowerCase(),jspb.asserts.assert(o.length==18),jspb.asserts.assert(o[0]=="0"),jspb.asserts.assert(o[1]=="x");for(var e="",r=0;8>r;r++){var p=jspb.utils.fromHexCharCode_(o.charCodeAt(2*r+2)),t=jspb.utils.fromHexCharCode_(o.charCodeAt(2*r+3));e=String.fromCharCode(16*p+t)+e}return e},jspb.utils.hash64ToNumber=function(o,e){jspb.utils.splitHash64(o),o=jspb.utils.split64Low;var r=jspb.utils.split64High;return e?jspb.utils.joinInt64(o,r):jspb.utils.joinUint64(o,r)},jspb.utils.numberToHash64=function(o){return jspb.utils.splitInt64(o),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.utils.countVarints=function(o,e,r){for(var p=0,t=e;t<r;t++)p+=o[t]>>7;return r-e-p},jspb.utils.countVarintFields=function(o,e,r,p){var t=0;if(p=8*p+jspb.BinaryConstants.WireType.VARINT,128>p)for(;e<r&&o[e++]==p;)for(t++;;){var n=o[e++];if(!(n&128))break}else for(;e<r;){for(n=p;128<n;){if(o[e]!=(n&127|128))return t;e++,n>>=7}if(o[e++]!=n)break;for(t++;n=o[e++],(n&128)!=0;);}return t},jspb.utils.countFixedFields_=function(o,e,r,p,t){var n=0;if(128>p)for(;e<r&&o[e++]==p;)n++,e+=t;else for(;e<r;){for(var i=p;128<i;){if(o[e++]!=(i&127|128))return n;i>>=7}if(o[e++]!=i)break;n++,e+=t}return n},jspb.utils.countFixed32Fields=function(o,e,r,p){return jspb.utils.countFixedFields_(o,e,r,8*p+jspb.BinaryConstants.WireType.FIXED32,4)},jspb.utils.countFixed64Fields=function(o,e,r,p){return jspb.utils.countFixedFields_(o,e,r,8*p+jspb.BinaryConstants.WireType.FIXED64,8)},jspb.utils.countDelimitedFields=function(o,e,r,p){var t=0;for(p=8*p+jspb.BinaryConstants.WireType.DELIMITED;e<r;){for(var n=p;128<n;){if(o[e++]!=(n&127|128))return t;n>>=7}if(o[e++]!=n)break;t++;for(var i=0,s=1;n=o[e++],i+=(n&127)*s,s*=128,(n&128)!=0;);e+=i}return t},jspb.utils.debugBytesToTextFormat=function(o){var e='"';if(o){o=jspb.utils.byteSourceToUint8Array(o);for(var r=0;r<o.length;r++)e+="\\x",16>o[r]&&(e+="0"),e+=o[r].toString(16)}return e+'"'},jspb.utils.debugScalarToTextFormat=function(o){return typeof o=="string"?goog.string.quote(o):o.toString()},jspb.utils.stringToByteArray=function(o){for(var e=new Uint8Array(o.length),r=0;r<o.length;r++){var p=o.charCodeAt(r);if(255<p)throw Error("Conversion error: string contains codepoint outside of byte range");e[r]=p}return e},jspb.utils.byteSourceToUint8Array=function(o){return o.constructor===Uint8Array?o:o.constructor===ArrayBuffer||o.constructor===Array?new Uint8Array(o):o.constructor===String?goog.crypt.base64.decodeStringToUint8Array(o):o instanceof Uint8Array?new Uint8Array(o.buffer,o.byteOffset,o.byteLength):(jspb.asserts.fail("Type not convertible to Uint8Array."),new Uint8Array(0))},jspb.BinaryDecoder=function(o,e,r){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1,o&&this.setBlock(o,e,r)},jspb.BinaryDecoder.instanceCache_=[],jspb.BinaryDecoder.alloc=function(o,e,r){if(jspb.BinaryDecoder.instanceCache_.length){var p=jspb.BinaryDecoder.instanceCache_.pop();return o&&p.setBlock(o,e,r),p}return new jspb.BinaryDecoder(o,e,r)},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(o,e,r){this.bytes_=jspb.utils.byteSourceToUint8Array(o),this.start_=e!==void 0?e:0,this.end_=r!==void 0?this.start_+r:this.bytes_.length,this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getEnd=function(){return this.end_},jspb.BinaryDecoder.prototype.setEnd=function(o){this.end_=o},jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_},jspb.BinaryDecoder.prototype.setCursor=function(o){this.cursor_=o},jspb.BinaryDecoder.prototype.advance=function(o){this.cursor_+=o,jspb.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(o){for(var e=128,r=0,p=0,t=0;4>t&&128<=e;t++)e=this.bytes_[this.cursor_++],r|=(e&127)<<7*t;if(128<=e&&(e=this.bytes_[this.cursor_++],r|=(e&127)<<28,p|=(e&127)>>4),128<=e)for(t=0;5>t&&128<=e;t++)e=this.bytes_[this.cursor_++],p|=(e&127)<<7*t+3;if(128>e)return o(r>>>0,p>>>0);jspb.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0},jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(o){return this.readSplitVarint64(function(e,r){return jspb.utils.fromZigzag64(e,r,o)})},jspb.BinaryDecoder.prototype.readSplitFixed64=function(o){var e=this.bytes_,r=this.cursor_;this.cursor_+=8;for(var p=0,t=0,n=r+7;n>=r;n--)p=p<<8|e[n],t=t<<8|e[n+4];return o(p,t)},jspb.BinaryDecoder.prototype.skipVarint=function(){for(;this.bytes_[this.cursor_]&128;)this.cursor_++;this.cursor_++},jspb.BinaryDecoder.prototype.unskipVarint=function(o){for(;128<o;)this.cursor_--,o>>>=7;this.cursor_--},jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var o=this.bytes_,e=o[this.cursor_+0],r=e&127;return 128>e?(this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),r):(e=o[this.cursor_+1],r|=(e&127)<<7,128>e?(this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),r):(e=o[this.cursor_+2],r|=(e&127)<<14,128>e?(this.cursor_+=3,jspb.asserts.assert(this.cursor_<=this.end_),r):(e=o[this.cursor_+3],r|=(e&127)<<21,128>e?(this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),r):(e=o[this.cursor_+4],r|=(e&15)<<28,128>e?(this.cursor_+=5,jspb.asserts.assert(this.cursor_<=this.end_),r>>>0):(this.cursor_+=5,128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&jspb.asserts.assert(!1),jspb.asserts.assert(this.cursor_<=this.end_),r)))))},jspb.BinaryDecoder.prototype.readSignedVarint32=function(){return~~this.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 o=this.readUnsignedVarint32();return o>>>1^-(o&1)},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 o=this.bytes_[this.cursor_+0];return this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),o},jspb.BinaryDecoder.prototype.readUint16=function(){var o=this.bytes_[this.cursor_+0],e=this.bytes_[this.cursor_+1];return this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),o<<0|e<<8},jspb.BinaryDecoder.prototype.readUint32=function(){var o=this.bytes_[this.cursor_+0],e=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],p=this.bytes_[this.cursor_+3];return this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),(o<<0|e<<8|r<<16|p<<24)>>>0},jspb.BinaryDecoder.prototype.readUint64=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinUint64(o,e)},jspb.BinaryDecoder.prototype.readUint64String=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinUnsignedDecimalString(o,e)},jspb.BinaryDecoder.prototype.readInt8=function(){var o=this.bytes_[this.cursor_+0];return this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),o<<24>>24},jspb.BinaryDecoder.prototype.readInt16=function(){var o=this.bytes_[this.cursor_+0],e=this.bytes_[this.cursor_+1];return this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),(o<<0|e<<8)<<16>>16},jspb.BinaryDecoder.prototype.readInt32=function(){var o=this.bytes_[this.cursor_+0],e=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],p=this.bytes_[this.cursor_+3];return this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),o<<0|e<<8|r<<16|p<<24},jspb.BinaryDecoder.prototype.readInt64=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinInt64(o,e)},jspb.BinaryDecoder.prototype.readInt64String=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinSignedDecimalString(o,e)},jspb.BinaryDecoder.prototype.readFloat=function(){var o=this.readUint32();return jspb.utils.joinFloat32(o,0)},jspb.BinaryDecoder.prototype.readDouble=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinFloat64(o,e)},jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]},jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()},jspb.BinaryDecoder.prototype.readString=function(o){var e=this.bytes_,r=this.cursor_;o=r+o;for(var p=[],t="";r<o;){var n=e[r++];if(128>n)p.push(n);else{if(192>n)continue;if(224>n){var i=e[r++];p.push((n&31)<<6|i&63)}else if(240>n){i=e[r++];var s=e[r++];p.push((n&15)<<12|(i&63)<<6|s&63)}else if(248>n){i=e[r++],s=e[r++];var g=e[r++];n=(n&7)<<18|(i&63)<<12|(s&63)<<6|g&63,n-=65536,p.push((n>>10&1023)+55296,(n&1023)+56320)}}8192<=p.length&&(t+=String.fromCharCode.apply(null,p),p.length=0)}return t+=goog.crypt.byteArrayToString(p),this.cursor_=r,t},jspb.BinaryDecoder.prototype.readStringWithLength=function(){var o=this.readUnsignedVarint32();return this.readString(o)},jspb.BinaryDecoder.prototype.readBytes=function(o){if(0>o||this.cursor_+o>this.bytes_.length)return this.error_=!0,jspb.asserts.fail("Invalid byte length!"),new Uint8Array(0);var e=this.bytes_.subarray(this.cursor_,this.cursor_+o);return this.cursor_+=o,jspb.asserts.assert(this.cursor_<=this.end_),e},jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readFixedHash64=function(){var o=this.bytes_,e=this.cursor_,r=o[e+0],p=o[e+1],t=o[e+2],n=o[e+3],i=o[e+4],s=o[e+5],g=o[e+6];return o=o[e+7],this.cursor_+=8,String.fromCharCode(r,p,t,n,i,s,g,o)},jspb.BinaryReader=function(o,e,r){this.decoder_=jspb.BinaryDecoder.alloc(o,e,r),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(o,e,r){if(jspb.BinaryReader.instanceCache_.length){var p=jspb.BinaryReader.instanceCache_.pop();return o&&p.decoder_.setBlock(o,e,r),p}return new jspb.BinaryReader(o,e,r)},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_},goog.exportProperty(jspb.BinaryReader.prototype,"getFieldNumber",jspb.BinaryReader.prototype.getFieldNumber),jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_},jspb.BinaryReader.prototype.isDelimited=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED},goog.exportProperty(jspb.BinaryReader.prototype,"isDelimited",jspb.BinaryReader.prototype.isDelimited),jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP},goog.exportProperty(jspb.BinaryReader.prototype,"isEndGroup",jspb.BinaryReader.prototype.isEndGroup),jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()},jspb.BinaryReader.prototype.setBlock=function(o,e,r){this.decoder_.setBlock(o,e,r),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(o){this.decoder_.advance(o)},jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return jspb.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var o=this.decoder_.readUnsignedVarint32(),e=o>>>3;return o&=7,o!=jspb.BinaryConstants.WireType.VARINT&&o!=jspb.BinaryConstants.WireType.FIXED32&&o!=jspb.BinaryConstants.WireType.FIXED64&&o!=jspb.BinaryConstants.WireType.DELIMITED&&o!=jspb.BinaryConstants.WireType.START_GROUP&&o!=jspb.BinaryConstants.WireType.END_GROUP?(jspb.asserts.fail("Invalid wire type: %s (at position %s)",o,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=e,this.nextWireType_=o,!0)},goog.exportProperty(jspb.BinaryReader.prototype,"nextField",jspb.BinaryReader.prototype.nextField),jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)},jspb.BinaryReader.prototype.skipMatchingFields=function(){var o=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==o;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()},jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(jspb.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()},jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)jspb.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var o=this.decoder_.readUnsignedVarint32();this.decoder_.advance(o)}},jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(jspb.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)},jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(jspb.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)},jspb.BinaryReader.prototype.skipGroup=function(){var o=this.nextField_;do{if(!this.nextField()){jspb.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=o&&(jspb.asserts.fail("Unmatched end-group tag"),this.error_=!0);break}this.skipField()}while(1)},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:jspb.asserts.fail("Invalid wire encoding for field.")}},jspb.BinaryReader.prototype.registerReadCallback=function(o,e){this.readCallbacks_===null&&(this.readCallbacks_={}),jspb.asserts.assert(!this.readCallbacks_[o]),this.readCallbacks_[o]=e},jspb.BinaryReader.prototype.runReadCallback=function(o){return jspb.asserts.assert(this.readCallbacks_!==null),o=this.readCallbacks_[o],jspb.asserts.assert(o),o(this)},jspb.BinaryReader.prototype.readAny=function(o){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(o);var e=jspb.BinaryConstants.FieldType;switch(o){case e.DOUBLE:return this.readDouble();case e.FLOAT:return this.readFloat();case e.INT64:return this.readInt64();case e.UINT64:return this.readUint64();case e.INT32:return this.readInt32();case e.FIXED64:return this.readFixed64();case e.FIXED32:return this.readFixed32();case e.BOOL:return this.readBool();case e.STRING:return this.readString();case e.GROUP:jspb.asserts.fail("Group field type not supported in readAny()");case e.MESSAGE:jspb.asserts.fail("Message field type not supported in readAny()");case e.BYTES:return this.readBytes();case e.UINT32:return this.readUint32();case e.ENUM:return this.readEnum();case e.SFIXED32:return this.readSfixed32();case e.SFIXED64:return this.readSfixed64();case e.SINT32:return this.readSint32();case e.SINT64:return this.readSint64();case e.FHASH64:return this.readFixedHash64();case e.VHASH64:return this.readVarintHash64();default:jspb.asserts.fail("Invalid field type in readAny()")}return 0},jspb.BinaryReader.prototype.readMessage=function(o,e){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var r=this.decoder_.getEnd(),p=this.decoder_.readUnsignedVarint32();p=this.decoder_.getCursor()+p,this.decoder_.setEnd(p),e(o,this),this.decoder_.setCursor(p),this.decoder_.setEnd(r)},goog.exportProperty(jspb.BinaryReader.prototype,"readMessage",jspb.BinaryReader.prototype.readMessage),jspb.BinaryReader.prototype.readGroup=function(o,e,r){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),jspb.asserts.assert(this.nextField_==o),r(e,this),this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(jspb.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)},goog.exportProperty(jspb.BinaryReader.prototype,"readGroup",jspb.BinaryReader.prototype.readGroup),jspb.BinaryReader.prototype.getFieldDecoder=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32(),e=this.decoder_.getCursor(),r=e+o;return o=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),e,o),this.decoder_.setCursor(r),o},jspb.BinaryReader.prototype.readInt32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readInt32",jspb.BinaryReader.prototype.readInt32),jspb.BinaryReader.prototype.readInt32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()},jspb.BinaryReader.prototype.readInt64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readInt64",jspb.BinaryReader.prototype.readInt64),jspb.BinaryReader.prototype.readInt64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()},jspb.BinaryReader.prototype.readUint32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readUint32",jspb.BinaryReader.prototype.readUint32),jspb.BinaryReader.prototype.readUint32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()},jspb.BinaryReader.prototype.readUint64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readUint64",jspb.BinaryReader.prototype.readUint64),jspb.BinaryReader.prototype.readUint64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()},jspb.BinaryReader.prototype.readSint32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readSint32",jspb.BinaryReader.prototype.readSint32),jspb.BinaryReader.prototype.readSint64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readSint64",jspb.BinaryReader.prototype.readSint64),jspb.BinaryReader.prototype.readSint64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()},jspb.BinaryReader.prototype.readFixed32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readFixed32",jspb.BinaryReader.prototype.readFixed32),jspb.BinaryReader.prototype.readFixed64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readFixed64",jspb.BinaryReader.prototype.readFixed64),jspb.BinaryReader.prototype.readFixed64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()},jspb.BinaryReader.prototype.readSfixed32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()},goog.exportProperty(jspb.BinaryReader.prototype,"readSfixed32",jspb.BinaryReader.prototype.readSfixed32),jspb.BinaryReader.prototype.readSfixed32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()},jspb.BinaryReader.prototype.readSfixed64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()},goog.exportProperty(jspb.BinaryReader.prototype,"readSfixed64",jspb.BinaryReader.prototype.readSfixed64),jspb.BinaryReader.prototype.readSfixed64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()},jspb.BinaryReader.prototype.readFloat=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()},goog.exportProperty(jspb.BinaryReader.prototype,"readFloat",jspb.BinaryReader.prototype.readFloat),jspb.BinaryReader.prototype.readDouble=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()},goog.exportProperty(jspb.BinaryReader.prototype,"readDouble",jspb.BinaryReader.prototype.readDouble),jspb.BinaryReader.prototype.readBool=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readBool",jspb.BinaryReader.prototype.readBool),jspb.BinaryReader.prototype.readEnum=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readEnum",jspb.BinaryReader.prototype.readEnum),jspb.BinaryReader.prototype.readString=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(o)},goog.exportProperty(jspb.BinaryReader.prototype,"readString",jspb.BinaryReader.prototype.readString),jspb.BinaryReader.prototype.readBytes=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(o)},goog.exportProperty(jspb.BinaryReader.prototype,"readBytes",jspb.BinaryReader.prototype.readBytes),jspb.BinaryReader.prototype.readVarintHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()},jspb.BinaryReader.prototype.readSintHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()},jspb.BinaryReader.prototype.readSplitVarint64=function(o){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(o)},jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(o){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(function(e,r){return jspb.utils.fromZigzag64(e,r,o)})},jspb.BinaryReader.prototype.readFixedHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()},jspb.BinaryReader.prototype.readSplitFixed64=function(o){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(o)},jspb.BinaryReader.prototype.readPackedField_=function(o){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();e=this.decoder_.getCursor()+e;for(var r=[];this.decoder_.getCursor()<e;)r.push(o.call(this.decoder_));return r},jspb.BinaryReader.prototype.readPackedInt32=function(){return this.readPackedField_(this.decoder_.readSignedVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedInt32",jspb.BinaryReader.prototype.readPackedInt32),jspb.BinaryReader.prototype.readPackedInt32String=function(){return this.readPackedField_(this.decoder_.readSignedVarint32String)},jspb.BinaryReader.prototype.readPackedInt64=function(){return this.readPackedField_(this.decoder_.readSignedVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedInt64",jspb.BinaryReader.prototype.readPackedInt64),jspb.BinaryReader.prototype.readPackedInt64String=function(){return this.readPackedField_(this.decoder_.readSignedVarint64String)},jspb.BinaryReader.prototype.readPackedUint32=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedUint32",jspb.BinaryReader.prototype.readPackedUint32),jspb.BinaryReader.prototype.readPackedUint32String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32String)},jspb.BinaryReader.prototype.readPackedUint64=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedUint64",jspb.BinaryReader.prototype.readPackedUint64),jspb.BinaryReader.prototype.readPackedUint64String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64String)},jspb.BinaryReader.prototype.readPackedSint32=function(){return this.readPackedField_(this.decoder_.readZigzagVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSint32",jspb.BinaryReader.prototype.readPackedSint32),jspb.BinaryReader.prototype.readPackedSint64=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSint64",jspb.BinaryReader.prototype.readPackedSint64),jspb.BinaryReader.prototype.readPackedSint64String=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64String)},jspb.BinaryReader.prototype.readPackedFixed32=function(){return this.readPackedField_(this.decoder_.readUint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFixed32",jspb.BinaryReader.prototype.readPackedFixed32),jspb.BinaryReader.prototype.readPackedFixed64=function(){return this.readPackedField_(this.decoder_.readUint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFixed64",jspb.BinaryReader.prototype.readPackedFixed64),jspb.BinaryReader.prototype.readPackedFixed64String=function(){return this.readPackedField_(this.decoder_.readUint64String)},jspb.BinaryReader.prototype.readPackedSfixed32=function(){return this.readPackedField_(this.decoder_.readInt32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSfixed32",jspb.BinaryReader.prototype.readPackedSfixed32),jspb.BinaryReader.prototype.readPackedSfixed64=function(){return this.readPackedField_(this.decoder_.readInt64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSfixed64",jspb.BinaryReader.prototype.readPackedSfixed64),jspb.BinaryReader.prototype.readPackedSfixed64String=function(){return this.readPackedField_(this.decoder_.readInt64String)},jspb.BinaryReader.prototype.readPackedFloat=function(){return this.readPackedField_(this.decoder_.readFloat)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFloat",jspb.BinaryReader.prototype.readPackedFloat),jspb.BinaryReader.prototype.readPackedDouble=function(){return this.readPackedField_(this.decoder_.readDouble)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedDouble",jspb.BinaryReader.prototype.readPackedDouble),jspb.BinaryReader.prototype.readPackedBool=function(){return this.readPackedField_(this.decoder_.readBool)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedBool",jspb.BinaryReader.prototype.readPackedBool),jspb.BinaryReader.prototype.readPackedEnum=function(){return this.readPackedField_(this.decoder_.readEnum)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedEnum",jspb.BinaryReader.prototype.readPackedEnum),jspb.BinaryReader.prototype.readPackedVarintHash64=function(){return this.readPackedField_(this.decoder_.readVarintHash64)},jspb.BinaryReader.prototype.readPackedFixedHash64=function(){return this.readPackedField_(this.decoder_.readFixedHash64)},jspb.BinaryEncoder=function(){this.buffer_=[]},jspb.BinaryEncoder.prototype.length=function(){return this.buffer_.length},jspb.BinaryEncoder.prototype.end=function(){var o=this.buffer_;return this.buffer_=[],o},jspb.BinaryEncoder.prototype.writeSplitVarint64=function(o,e){for(jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32);0<e||127<o;)this.buffer_.push(o&127|128),o=(o>>>7|e<<25)>>>0,e>>>=7;this.buffer_.push(o)},jspb.BinaryEncoder.prototype.writeSplitFixed64=function(o,e){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.writeUint32(o),this.writeUint32(e)},jspb.BinaryEncoder.prototype.writeUnsignedVarint32=function(o){for(jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32);127<o;)this.buffer_.push(o&127|128),o>>>=7;this.buffer_.push(o)},jspb.BinaryEncoder.prototype.writeSignedVarint32=function(o){if(jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),0<=o)this.writeUnsignedVarint32(o);else{for(var e=0;9>e;e++)this.buffer_.push(o&127|128),o>>=7;this.buffer_.push(1)}},jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitInt64(o),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeSignedVarint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(o),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint32=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeUnsignedVarint32((o<<1^o>>31)>>>0)},jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitZigzag64(o),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint64String=function(o){this.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(o))},jspb.BinaryEncoder.prototype.writeZigzagVarintHash64=function(o){var e=this;jspb.utils.splitHash64(o),jspb.utils.toZigzag64(jspb.utils.split64Low,jspb.utils.split64High,function(r,p){e.writeSplitVarint64(r>>>0,p>>>0)})},jspb.BinaryEncoder.prototype.writeUint8=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&256>o),this.buffer_.push(o>>>0&255)},jspb.BinaryEncoder.prototype.writeUint16=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&65536>o),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255)},jspb.BinaryEncoder.prototype.writeUint32=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255),this.buffer_.push(o>>>16&255),this.buffer_.push(o>>>24&255)},jspb.BinaryEncoder.prototype.writeUint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitUint64(o),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt8=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(-128<=o&&128>o),this.buffer_.push(o>>>0&255)},jspb.BinaryEncoder.prototype.writeInt16=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(-32768<=o&&32768>o),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255)},jspb.BinaryEncoder.prototype.writeInt32=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255),this.buffer_.push(o>>>16&255),this.buffer_.push(o>>>24&255)},jspb.BinaryEncoder.prototype.writeInt64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(o),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt64String=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(+o>=-jspb.BinaryConstants.TWO_TO_63&&+o<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(o)),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFloat=function(o){jspb.asserts.assert(o===1/0||o===-1/0||isNaN(o)||o>=-jspb.BinaryConstants.FLOAT32_MAX&&o<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(o),this.writeUint32(jspb.utils.split64Low)},jspb.BinaryEncoder.prototype.writeDouble=function(o){jspb.asserts.assert(o===1/0||o===-1/0||isNaN(o)||o>=-jspb.BinaryConstants.FLOAT64_MAX&&o<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(o),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeBool=function(o){jspb.asserts.assert(typeof o=="boolean"||typeof o=="number"),this.buffer_.push(o?1:0)},jspb.BinaryEncoder.prototype.writeEnum=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32(o)},jspb.BinaryEncoder.prototype.writeBytes=function(o){this.buffer_.push.apply(this.buffer_,o)},jspb.BinaryEncoder.prototype.writeVarintHash64=function(o){jspb.utils.splitHash64(o),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFixedHash64=function(o){jspb.utils.splitHash64(o),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeString=function(o){var e=this.buffer_.length;jspb.asserts.assertString(o);for(var r=0;r<o.length;r++){var p=o.charCodeAt(r);if(128>p)this.buffer_.push(p);else if(2048>p)this.buffer_.push(p>>6|192),this.buffer_.push(p&63|128);else if(65536>p)if(55296<=p&&56319>=p&&r+1<o.length){var t=o.charCodeAt(r+1);56320<=t&&57343>=t&&(p=1024*(p-55296)+t-56320+65536,this.buffer_.push(p>>18|240),this.buffer_.push(p>>12&63|128),this.buffer_.push(p>>6&63|128),this.buffer_.push(p&63|128),r++)}else this.buffer_.push(p>>12|224),this.buffer_.push(p>>6&63|128),this.buffer_.push(p&63|128)}return this.buffer_.length-e},jspb.arith={},jspb.arith.UInt64=function(o,e){this.lo=o,this.hi=e},jspb.arith.UInt64.prototype.cmp=function(o){return this.hi<o.hi||this.hi==o.hi&&this.lo<o.lo?-1:this.hi==o.hi&&this.lo==o.lo?0:1},jspb.arith.UInt64.prototype.rightShift=function(){return new jspb.arith.UInt64((this.lo>>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},jspb.arith.UInt64.prototype.leftShift=function(){return new jspb.arith.UInt64(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},jspb.arith.UInt64.prototype.msb=function(){return!!(this.hi&2147483648)},jspb.arith.UInt64.prototype.lsb=function(){return!!(this.lo&1)},jspb.arith.UInt64.prototype.zero=function(){return this.lo==0&&this.hi==0},jspb.arith.UInt64.prototype.add=function(o){return new jspb.arith.UInt64((this.lo+o.lo&4294967295)>>>0>>>0,((this.hi+o.hi&4294967295)>>>0)+(4294967296<=this.lo+o.lo?1:0)>>>0)},jspb.arith.UInt64.prototype.sub=function(o){return new jspb.arith.UInt64((this.lo-o.lo&4294967295)>>>0>>>0,((this.hi-o.hi&4294967295)>>>0)-(0>this.lo-o.lo?1:0)>>>0)},jspb.arith.UInt64.mul32x32=function(o,e){var r=o&65535;o>>>=16;var p=e&65535,t=e>>>16;for(e=r*p+65536*(r*t&65535)+65536*(o*p&65535),r=o*t+(r*t>>>16)+(o*p>>>16);4294967296<=e;)e-=4294967296,r+=1;return new jspb.arith.UInt64(e>>>0,r>>>0)},jspb.arith.UInt64.prototype.mul=function(o){var e=jspb.arith.UInt64.mul32x32(this.lo,o);return o=jspb.arith.UInt64.mul32x32(this.hi,o),o.hi=o.lo,o.lo=0,e.add(o)},jspb.arith.UInt64.prototype.div=function(o){if(o==0)return[];var e=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(this.lo,this.hi);o=new jspb.arith.UInt64(o,0);for(var p=new jspb.arith.UInt64(1,0);!o.msb();)o=o.leftShift(),p=p.leftShift();for(;!p.zero();)0>=o.cmp(r)&&(e=e.add(p),r=r.sub(o)),o=o.rightShift(),p=p.rightShift();return[e,r]},jspb.arith.UInt64.prototype.toString=function(){for(var o="",e=this;!e.zero();){e=e.div(10);var r=e[0];o=e[1].lo+o,e=r}return o==""&&(o="0"),o},jspb.arith.UInt64.fromString=function(o){for(var e=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(0,0),p=0;p<o.length;p++){if("0">o[p]||"9"<o[p])return null;var t=parseInt(o[p],10);r.lo=t,e=e.mul(10).add(r)}return e},jspb.arith.UInt64.prototype.clone=function(){return new jspb.arith.UInt64(this.lo,this.hi)},jspb.arith.Int64=function(o,e){this.lo=o,this.hi=e},jspb.arith.Int64.prototype.add=function(o){return new jspb.arith.Int64((this.lo+o.lo&4294967295)>>>0>>>0,((this.hi+o.hi&4294967295)>>>0)+(4294967296<=this.lo+o.lo?1:0)>>>0)},jspb.arith.Int64.prototype.sub=function(o){return new jspb.arith.Int64((this.lo-o.lo&4294967295)>>>0>>>0,((this.hi-o.hi&4294967295)>>>0)-(0>this.lo-o.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 o=(this.hi&2147483648)!=0,e=new jspb.arith.UInt64(this.lo,this.hi);return o&&(e=new jspb.arith.UInt64(0,0).sub(e)),(o?"-":"")+e.toString()},jspb.arith.Int64.fromString=function(o){var e=0<o.length&&o[0]=="-";return e&&(o=o.substring(1)),o=jspb.arith.UInt64.fromString(o),o===null?null:(e&&(o=new jspb.arith.UInt64(0,0).sub(o)),new jspb.arith.Int64(o.lo,o.hi))},jspb.BinaryWriter=function(){this.blocks_=[],this.totalLength_=0,this.encoder_=new jspb.BinaryEncoder,this.bookmarks_=[]},jspb.BinaryWriter.prototype.appendUint8Array_=function(o){var e=this.encoder_.end();this.blocks_.push(e),this.blocks_.push(o),this.totalLength_+=e.length+o.length},jspb.BinaryWriter.prototype.beginDelimited_=function(o){return this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),o=this.encoder_.end(),this.blocks_.push(o),this.totalLength_+=o.length,o.push(this.totalLength_),o},jspb.BinaryWriter.prototype.endDelimited_=function(o){var e=o.pop();for(e=this.totalLength_+this.encoder_.length()-e,jspb.asserts.assert(0<=e);127<e;)o.push(e&127|128),e>>>=7,this.totalLength_++;o.push(e),this.totalLength_++},jspb.BinaryWriter.prototype.writeSerializedMessage=function(o,e,r){this.appendUint8Array_(o.subarray(e,r))},jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(o,e,r){o!=null&&e!=null&&r!=null&&this.writeSerializedMessage(o,e,r)},jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]},jspb.BinaryWriter.prototype.getResultBuffer=function(){jspb.asserts.assert(this.bookmarks_.length==0);for(var o=new Uint8Array(this.totalLength_+this.encoder_.length()),e=this.blocks_,r=e.length,p=0,t=0;t<r;t++){var n=e[t];o.set(n,p),p+=n.length}return e=this.encoder_.end(),o.set(e,p),p+=e.length,jspb.asserts.assert(p==o.length),this.blocks_=[o],o},goog.exportProperty(jspb.BinaryWriter.prototype,"getResultBuffer",jspb.BinaryWriter.prototype.getResultBuffer),jspb.BinaryWriter.prototype.getResultBase64String=function(o){return goog.crypt.base64.encodeByteArray(this.getResultBuffer(),o)},jspb.BinaryWriter.prototype.beginSubMessage=function(o){this.bookmarks_.push(this.beginDelimited_(o))},jspb.BinaryWriter.prototype.endSubMessage=function(){jspb.asserts.assert(0<=this.bookmarks_.length),this.endDelimited_(this.bookmarks_.pop())},jspb.BinaryWriter.prototype.writeFieldHeader_=function(o,e){jspb.asserts.assert(1<=o&&o==Math.floor(o)),this.encoder_.writeUnsignedVarint32(8*o+e)},jspb.BinaryWriter.prototype.writeAny=function(o,e,r){var p=jspb.BinaryConstants.FieldType;switch(o){case p.DOUBLE:this.writeDouble(e,r);break;case p.FLOAT:this.writeFloat(e,r);break;case p.INT64:this.writeInt64(e,r);break;case p.UINT64:this.writeUint64(e,r);break;case p.INT32:this.writeInt32(e,r);break;case p.FIXED64:this.writeFixed64(e,r);break;case p.FIXED32:this.writeFixed32(e,r);break;case p.BOOL:this.writeBool(e,r);break;case p.STRING:this.writeString(e,r);break;case p.GROUP:jspb.asserts.fail("Group field type not supported in writeAny()");break;case p.MESSAGE:jspb.asserts.fail("Message field type not supported in writeAny()");break;case p.BYTES:this.writeBytes(e,r);break;case p.UINT32:this.writeUint32(e,r);break;case p.ENUM:this.writeEnum(e,r);break;case p.SFIXED32:this.writeSfixed32(e,r);break;case p.SFIXED64:this.writeSfixed64(e,r);break;case p.SINT32:this.writeSint32(e,r);break;case p.SINT64:this.writeSint64(e,r);break;case p.FHASH64:this.writeFixedHash64(e,r);break;case p.VHASH64:this.writeVarintHash64(e,r);break;default:jspb.asserts.fail("Invalid field type in writeAny()")}},jspb.BinaryWriter.prototype.writeUnsignedVarint32_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(e))},jspb.BinaryWriter.prototype.writeSignedVarint32_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(e))},jspb.BinaryWriter.prototype.writeUnsignedVarint64_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint64(e))},jspb.BinaryWriter.prototype.writeSignedVarint64_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint64(e))},jspb.BinaryWriter.prototype.writeZigzagVarint32_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(e))},jspb.BinaryWriter.prototype.writeZigzagVarint64_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64(e))},jspb.BinaryWriter.prototype.writeZigzagVarint64String_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64String(e))},jspb.BinaryWriter.prototype.writeZigzagVarintHash64_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarintHash64(e))},jspb.BinaryWriter.prototype.writeInt32=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeInt32",jspb.BinaryWriter.prototype.writeInt32),jspb.BinaryWriter.prototype.writeInt32String=function(o,e){e!=null&&(e=parseInt(e,10),jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(o,e))},jspb.BinaryWriter.prototype.writeInt64=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),this.writeSignedVarint64_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeInt64",jspb.BinaryWriter.prototype.writeInt64),jspb.BinaryWriter.prototype.writeInt64String=function(o,e){e!=null&&(e=jspb.arith.Int64.fromString(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(e.lo,e.hi))},jspb.BinaryWriter.prototype.writeUint32=function(o,e){e!=null&&(jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeUint32",jspb.BinaryWriter.prototype.writeUint32),jspb.BinaryWriter.prototype.writeUint32String=function(o,e){e!=null&&(e=parseInt(e,10),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(o,e))},jspb.BinaryWriter.prototype.writeUint64=function(o,e){e!=null&&(jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),this.writeUnsignedVarint64_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeUint64",jspb.BinaryWriter.prototype.writeUint64),jspb.BinaryWriter.prototype.writeUint64String=function(o,e){e!=null&&(e=jspb.arith.UInt64.fromString(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(e.lo,e.hi))},jspb.BinaryWriter.prototype.writeSint32=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeZigzagVarint32_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSint32",jspb.BinaryWriter.prototype.writeSint32),jspb.BinaryWriter.prototype.writeSint64=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),this.writeZigzagVarint64_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSint64",jspb.BinaryWriter.prototype.writeSint64),jspb.BinaryWriter.prototype.writeSintHash64=function(o,e){e!=null&&this.writeZigzagVarintHash64_(o,e)},jspb.BinaryWriter.prototype.writeSint64String=function(o,e){e!=null&&this.writeZigzagVarint64String_(o,e)},jspb.BinaryWriter.prototype.writeFixed32=function(o,e){e!=null&&(jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeUint32(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFixed32",jspb.BinaryWriter.prototype.writeFixed32),jspb.BinaryWriter.prototype.writeFixed64=function(o,e){e!=null&&(jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeUint64(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFixed64",jspb.BinaryWriter.prototype.writeFixed64),jspb.BinaryWriter.prototype.writeFixed64String=function(o,e){e!=null&&(e=jspb.arith.UInt64.fromString(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(e.lo,e.hi))},jspb.BinaryWriter.prototype.writeSfixed32=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeInt32(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSfixed32",jspb.BinaryWriter.prototype.writeSfixed32),jspb.BinaryWriter.prototype.writeSfixed64=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeInt64(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSfixed64",jspb.BinaryWriter.prototype.writeSfixed64),jspb.BinaryWriter.prototype.writeSfixed64String=function(o,e){e!=null&&(e=jspb.arith.Int64.fromString(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(e.lo,e.hi))},jspb.BinaryWriter.prototype.writeFloat=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeFloat(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFloat",jspb.BinaryWriter.prototype.writeFloat),jspb.BinaryWriter.prototype.writeDouble=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeDouble(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeDouble",jspb.BinaryWriter.prototype.writeDouble),jspb.BinaryWriter.prototype.writeBool=function(o,e){e!=null&&(jspb.asserts.assert(typeof e=="boolean"||typeof e=="number"),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeBool(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeBool",jspb.BinaryWriter.prototype.writeBool),jspb.BinaryWriter.prototype.writeEnum=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeEnum",jspb.BinaryWriter.prototype.writeEnum),jspb.BinaryWriter.prototype.writeString=function(o,e){e!=null&&(o=this.beginDelimited_(o),this.encoder_.writeString(e),this.endDelimited_(o))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeString",jspb.BinaryWriter.prototype.writeString),jspb.BinaryWriter.prototype.writeBytes=function(o,e){e!=null&&(e=jspb.utils.byteSourceToUint8Array(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(e.length),this.appendUint8Array_(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeBytes",jspb.BinaryWriter.prototype.writeBytes),jspb.BinaryWriter.prototype.writeMessage=function(o,e,r){e!=null&&(o=this.beginDelimited_(o),r(e,this),this.endDelimited_(o))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeMessage",jspb.BinaryWriter.prototype.writeMessage),jspb.BinaryWriter.prototype.writeMessageSet=function(o,e,r){e!=null&&(this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.START_GROUP),this.writeFieldHeader_(2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(o),o=this.beginDelimited_(3),r(e,this),this.endDelimited_(o),this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.END_GROUP))},jspb.BinaryWriter.prototype.writeGroup=function(o,e,r){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.START_GROUP),r(e,this),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.END_GROUP))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeGroup",jspb.BinaryWriter.prototype.writeGroup),jspb.BinaryWriter.prototype.writeFixedHash64=function(o,e){e!=null&&(jspb.asserts.assert(e.length==8),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeFixedHash64(e))},jspb.BinaryWriter.prototype.writeVarintHash64=function(o,e){e!=null&&(jspb.asserts.assert(e.length==8),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeVarintHash64(e))},jspb.BinaryWriter.prototype.writeSplitFixed64=function(o,e,r){this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(e,r)},jspb.BinaryWriter.prototype.writeSplitVarint64=function(o,e,r){this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(e,r)},jspb.BinaryWriter.prototype.writeSplitZigzagVarint64=function(o,e,r){this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT);var p=this.encoder_;jspb.utils.toZigzag64(e,r,function(t,n){p.writeSplitVarint64(t>>>0,n>>>0)})},jspb.BinaryWriter.prototype.writeRepeatedInt32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSignedVarint32_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedInt32",jspb.BinaryWriter.prototype.writeRepeatedInt32),jspb.BinaryWriter.prototype.writeRepeatedInt32String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeInt32String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedInt64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSignedVarint64_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedInt64",jspb.BinaryWriter.prototype.writeRepeatedInt64),jspb.BinaryWriter.prototype.writeRepeatedSplitFixed64=function(o,e,r,p){if(e!=null)for(var t=0;t<e.length;t++)this.writeSplitFixed64(o,r(e[t]),p(e[t]))},jspb.BinaryWriter.prototype.writeRepeatedSplitVarint64=function(o,e,r,p){if(e!=null)for(var t=0;t<e.length;t++)this.writeSplitVarint64(o,r(e[t]),p(e[t]))},jspb.BinaryWriter.prototype.writeRepeatedSplitZigzagVarint64=function(o,e,r,p){if(e!=null)for(var t=0;t<e.length;t++)this.writeSplitZigzagVarint64(o,r(e[t]),p(e[t]))},jspb.BinaryWriter.prototype.writeRepeatedInt64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeInt64String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedUint32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeUnsignedVarint32_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedUint32",jspb.BinaryWriter.prototype.writeRepeatedUint32),jspb.BinaryWriter.prototype.writeRepeatedUint32String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeUint32String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedUint64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeUnsignedVarint64_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedUint64",jspb.BinaryWriter.prototype.writeRepeatedUint64),jspb.BinaryWriter.prototype.writeRepeatedUint64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeUint64String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedSint32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeZigzagVarint32_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSint32",jspb.BinaryWriter.prototype.writeRepeatedSint32),jspb.BinaryWriter.prototype.writeRepeatedSint64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeZigzagVarint64_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSint64",jspb.BinaryWriter.prototype.writeRepeatedSint64),jspb.BinaryWriter.prototype.writeRepeatedSint64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeZigzagVarint64String_(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedSintHash64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeZigzagVarintHash64_(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedFixed32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFixed32(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed32",jspb.BinaryWriter.prototype.writeRepeatedFixed32),jspb.BinaryWriter.prototype.writeRepeatedFixed64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFixed64(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed64",jspb.BinaryWriter.prototype.writeRepeatedFixed64),jspb.BinaryWriter.prototype.writeRepeatedFixed64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFixed64String(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed64String",jspb.BinaryWriter.prototype.writeRepeatedFixed64String),jspb.BinaryWriter.prototype.writeRepeatedSfixed32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSfixed32(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSfixed32",jspb.BinaryWriter.prototype.writeRepeatedSfixed32),jspb.BinaryWriter.prototype.writeRepeatedSfixed64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSfixed64(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSfixed64",jspb.BinaryWriter.prototype.writeRepeatedSfixed64),jspb.BinaryWriter.prototype.writeRepeatedSfixed64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSfixed64String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedFloat=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFloat(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFloat",jspb.BinaryWriter.prototype.writeRepeatedFloat),jspb.BinaryWriter.prototype.writeRepeatedDouble=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeDouble(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedDouble",jspb.BinaryWriter.prototype.writeRepeatedDouble),jspb.BinaryWriter.prototype.writeRepeatedBool=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeBool(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedBool",jspb.BinaryWriter.prototype.writeRepeatedBool),jspb.BinaryWriter.prototype.writeRepeatedEnum=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeEnum(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedEnum",jspb.BinaryWriter.prototype.writeRepeatedEnum),jspb.BinaryWriter.prototype.writeRepeatedString=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeString(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedString",jspb.BinaryWriter.prototype.writeRepeatedString),jspb.BinaryWriter.prototype.writeRepeatedBytes=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeBytes(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedBytes",jspb.BinaryWriter.prototype.writeRepeatedBytes),jspb.BinaryWriter.prototype.writeRepeatedMessage=function(o,e,r){if(e!=null)for(var p=0;p<e.length;p++){var t=this.beginDelimited_(o);r(e[p],this),this.endDelimited_(t)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedMessage",jspb.BinaryWriter.prototype.writeRepeatedMessage),jspb.BinaryWriter.prototype.writeRepeatedGroup=function(o,e,r){if(e!=null)for(var p=0;p<e.length;p++)this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.START_GROUP),r(e[p],this),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.END_GROUP)},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedGroup",jspb.BinaryWriter.prototype.writeRepeatedGroup),jspb.BinaryWriter.prototype.writeRepeatedFixedHash64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFixedHash64(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedVarintHash64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeVarintHash64(o,e[r])},jspb.BinaryWriter.prototype.writePackedInt32=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeSignedVarint32(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedInt32",jspb.BinaryWriter.prototype.writePackedInt32),jspb.BinaryWriter.prototype.writePackedInt32String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeSignedVarint32(parseInt(e[r],10));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedInt64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeSignedVarint64(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedInt64",jspb.BinaryWriter.prototype.writePackedInt64),jspb.BinaryWriter.prototype.writePackedSplitFixed64=function(o,e,r,p){if(e!=null){o=this.beginDelimited_(o);for(var t=0;t<e.length;t++)this.encoder_.writeSplitFixed64(r(e[t]),p(e[t]));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedSplitVarint64=function(o,e,r,p){if(e!=null){o=this.beginDelimited_(o);for(var t=0;t<e.length;t++)this.encoder_.writeSplitVarint64(r(e[t]),p(e[t]));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedSplitZigzagVarint64=function(o,e,r,p){if(e!=null){o=this.beginDelimited_(o);for(var t=this.encoder_,n=0;n<e.length;n++)jspb.utils.toZigzag64(r(e[n]),p(e[n]),function(i,s){t.writeSplitVarint64(i>>>0,s>>>0)});this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedInt64String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++){var p=jspb.arith.Int64.fromString(e[r]);this.encoder_.writeSplitVarint64(p.lo,p.hi)}this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedUint32=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeUnsignedVarint32(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedUint32",jspb.BinaryWriter.prototype.writePackedUint32),jspb.BinaryWriter.prototype.writePackedUint32String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeUnsignedVarint32(parseInt(e[r],10));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedUint64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeUnsignedVarint64(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedUint64",jspb.BinaryWriter.prototype.writePackedUint64),jspb.BinaryWriter.prototype.writePackedUint64String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++){var p=jspb.arith.UInt64.fromString(e[r]);this.encoder_.writeSplitVarint64(p.lo,p.hi)}this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedSint32=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeZigzagVarint32(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSint32",jspb.BinaryWriter.prototype.writePackedSint32),jspb.BinaryWriter.prototype.writePackedSint64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeZigzagVarint64(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSint64",jspb.BinaryWriter.prototype.writePackedSint64),jspb.BinaryWriter.prototype.writePackedSint64String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(e[r]));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedSintHash64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeZigzagVarintHash64(e[r]);this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedFixed32=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*e.length),o=0;o<e.length;o++)this.encoder_.writeUint32(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFixed32",jspb.BinaryWriter.prototype.writePackedFixed32),jspb.BinaryWriter.prototype.writePackedFixed64=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeUint64(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFixed64",jspb.BinaryWriter.prototype.writePackedFixed64),jspb.BinaryWriter.prototype.writePackedFixed64String=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++){var r=jspb.arith.UInt64.fromString(e[o]);this.encoder_.writeSplitFixed64(r.lo,r.hi)}},jspb.BinaryWriter.prototype.writePackedSfixed32=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*e.length),o=0;o<e.length;o++)this.encoder_.writeInt32(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSfixed32",jspb.BinaryWriter.prototype.writePackedSfixed32),jspb.BinaryWriter.prototype.writePackedSfixed64=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeInt64(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSfixed64",jspb.BinaryWriter.prototype.writePackedSfixed64),jspb.BinaryWriter.prototype.writePackedSfixed64String=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeInt64String(e[o])},jspb.BinaryWriter.prototype.writePackedFloat=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*e.length),o=0;o<e.length;o++)this.encoder_.writeFloat(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFloat",jspb.BinaryWriter.prototype.writePackedFloat),jspb.BinaryWriter.prototype.writePackedDouble=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeDouble(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedDouble",jspb.BinaryWriter.prototype.writePackedDouble),jspb.BinaryWriter.prototype.writePackedBool=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(e.length),o=0;o<e.length;o++)this.encoder_.writeBool(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedBool",jspb.BinaryWriter.prototype.writePackedBool),jspb.BinaryWriter.prototype.writePackedEnum=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeEnum(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedEnum",jspb.BinaryWriter.prototype.writePackedEnum),jspb.BinaryWriter.prototype.writePackedFixedHash64=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeFixedHash64(e[o])},jspb.BinaryWriter.prototype.writePackedVarintHash64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeVarintHash64(e[r]);this.endDelimited_(o)}},jspb.Map=function(o,e){this.arr_=o,this.valueCtor_=e,this.map_={},this.arrClean=!0,0<this.arr_.length&&this.loadFromArray_()},goog.exportSymbol("jspb.Map",jspb.Map),jspb.Map.prototype.loadFromArray_=function(){for(var o=0;o<this.arr_.length;o++){var e=this.arr_[o],r=e[0];this.map_[r.toString()]=new jspb.Map.Entry_(r,e[1])}this.arrClean=!0},jspb.Map.prototype.toArray=function(){if(this.arrClean){if(this.valueCtor_){var o=this.map_,e;for(e in o)if(Object.prototype.hasOwnProperty.call(o,e)){var r=o[e].valueWrapper;r&&r.toArray()}}}else{for(this.arr_.length=0,o=this.stringKeys_(),o.sort(),e=0;e<o.length;e++){var p=this.map_[o[e]];(r=p.valueWrapper)&&r.toArray(),this.arr_.push([p.key,p.value])}this.arrClean=!0}return this.arr_},goog.exportProperty(jspb.Map.prototype,"toArray",jspb.Map.prototype.toArray),jspb.Map.prototype.toObject=function(o,e){for(var r=this.toArray(),p=[],t=0;t<r.length;t++){var n=this.map_[r[t][0].toString()];this.wrapEntry_(n);var i=n.valueWrapper;i?(jspb.asserts.assert(e),p.push([n.key,e(o,i)])):p.push([n.key,n.value])}return p},goog.exportProperty(jspb.Map.prototype,"toObject",jspb.Map.prototype.toObject),jspb.Map.fromObject=function(o,e,r){e=new jspb.Map([],e);for(var p=0;p<o.length;p++){var t=o[p][0],n=r(o[p][1]);e.set(t,n)}return e},goog.exportProperty(jspb.Map,"fromObject",jspb.Map.fromObject),jspb.Map.ArrayIteratorIterable_=function(o){this.idx_=0,this.arr_=o},jspb.Map.ArrayIteratorIterable_.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}},typeof Symbol<"u"&&(jspb.Map.ArrayIteratorIterable_.prototype[Symbol.iterator]=function(){return this}),jspb.Map.prototype.getLength=function(){return this.stringKeys_().length},goog.exportProperty(jspb.Map.prototype,"getLength",jspb.Map.prototype.getLength),jspb.Map.prototype.clear=function(){this.map_={},this.arrClean=!1},goog.exportProperty(jspb.Map.prototype,"clear",jspb.Map.prototype.clear),jspb.Map.prototype.del=function(o){o=o.toString();var e=this.map_.hasOwnProperty(o);return delete this.map_[o],this.arrClean=!1,e},goog.exportProperty(jspb.Map.prototype,"del",jspb.Map.prototype.del),jspb.Map.prototype.getEntryList=function(){var o=[],e=this.stringKeys_();e.sort();for(var r=0;r<e.length;r++){var p=this.map_[e[r]];o.push([p.key,p.value])}return o},goog.exportProperty(jspb.Map.prototype,"getEntryList",jspb.Map.prototype.getEntryList),jspb.Map.prototype.entries=function(){var o=[],e=this.stringKeys_();e.sort();for(var r=0;r<e.length;r++){var p=this.map_[e[r]];o.push([p.key,this.wrapEntry_(p)])}return new jspb.Map.ArrayIteratorIterable_(o)},goog.exportProperty(jspb.Map.prototype,"entries",jspb.Map.prototype.entries),jspb.Map.prototype.keys=function(){var o=[],e=this.stringKeys_();e.sort();for(var r=0;r<e.length;r++)o.push(this.map_[e[r]].key);return new jspb.Map.ArrayIteratorIterable_(o)},goog.exportProperty(jspb.Map.prototype,"keys",jspb.Map.prototype.keys),jspb.Map.prototype.values=function(){var o=[],e=this.stringKeys_();e.sort();for(var r=0;r<e.length;r++)o.push(this.wrapEntry_(this.map_[e[r]]));return new jspb.Map.ArrayIteratorIterable_(o)},goog.exportProperty(jspb.Map.prototype,"values",jspb.Map.prototype.values),jspb.Map.prototype.forEach=function(o,e){var r=this.stringKeys_();r.sort();for(var p=0;p<r.length;p++){var t=this.map_[r[p]];o.call(e,this.wrapEntry_(t),t.key,this)}},goog.exportProperty(jspb.Map.prototype,"forEach",jspb.Map.prototype.forEach),jspb.Map.prototype.set=function(o,e){var r=new jspb.Map.Entry_(o);return this.valueCtor_?(r.valueWrapper=e,r.value=e.toArray()):r.value=e,this.map_[o.toString()]=r,this.arrClean=!1,this},goog.exportProperty(jspb.Map.prototype,"set",jspb.Map.prototype.set),jspb.Map.prototype.wrapEntry_=function(o){return this.valueCtor_?(o.valueWrapper||(o.valueWrapper=new this.valueCtor_(o.value)),o.valueWrapper):o.value},jspb.Map.prototype.get=function(o){if(o=this.map_[o.toString()])return this.wrapEntry_(o)},goog.exportProperty(jspb.Map.prototype,"get",jspb.Map.prototype.get),jspb.Map.prototype.has=function(o){return o.toString()in this.map_},goog.exportProperty(jspb.Map.prototype,"has",jspb.Map.prototype.has),jspb.Map.prototype.serializeBinary=function(o,e,r,p,t){var n=this.stringKeys_();n.sort();for(var i=0;i<n.length;i++){var s=this.map_[n[i]];e.beginSubMessage(o),r.call(e,1,s.key),this.valueCtor_?p.call(e,2,this.wrapEntry_(s),t):p.call(e,2,s.value),e.endSubMessage()}},goog.exportProperty(jspb.Map.prototype,"serializeBinary",jspb.Map.prototype.serializeBinary),jspb.Map.deserializeBinary=function(o,e,r,p,t,n,i){for(;e.nextField()&&!e.isEndGroup();){var s=e.getFieldNumber();s==1?n=r.call(e):s==2&&(o.valueCtor_?(jspb.asserts.assert(t),i||(i=new o.valueCtor_),p.call(e,i,t)):i=p.call(e))}jspb.asserts.assert(n!=null),jspb.asserts.assert(i!=null),o.set(n,i)},goog.exportProperty(jspb.Map,"deserializeBinary",jspb.Map.deserializeBinary),jspb.Map.prototype.stringKeys_=function(){var o=this.map_,e=[],r;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.push(r);return e},jspb.Map.Entry_=function(o,e){this.key=o,this.value=e,this.valueWrapper=void 0},jspb.ExtensionFieldInfo=function(o,e,r,p,t){this.fieldIndex=o,this.fieldName=e,this.ctor=r,this.toObjectFn=p,this.isRepeated=t},goog.exportSymbol("jspb.ExtensionFieldInfo",jspb.ExtensionFieldInfo),jspb.ExtensionFieldBinaryInfo=function(o,e,r,p,t,n){this.fieldInfo=o,this.binaryReaderFn=e,this.binaryWriterFn=r,this.binaryMessageSerializeFn=p,this.binaryMessageDeserializeFn=t,this.isPacked=n},goog.exportSymbol("jspb.ExtensionFieldBinaryInfo",jspb.ExtensionFieldBinaryInfo),jspb.ExtensionFieldInfo.prototype.isMessageType=function(){return!!this.ctor},goog.exportProperty(jspb.ExtensionFieldInfo.prototype,"isMessageType",jspb.ExtensionFieldInfo.prototype.isMessageType),jspb.Message=function(){},goog.exportSymbol("jspb.Message",jspb.Message),jspb.Message.GENERATE_TO_OBJECT=!0,goog.exportProperty(jspb.Message,"GENERATE_TO_OBJECT",jspb.Message.GENERATE_TO_OBJECT),jspb.Message.GENERATE_FROM_OBJECT=!goog.DISALLOW_TEST_ONLY_CODE,goog.exportProperty(jspb.Message,"GENERATE_FROM_OBJECT",jspb.Message.GENERATE_FROM_OBJECT),jspb.Message.GENERATE_TO_STRING=!0,jspb.Message.ASSUME_LOCAL_ARRAYS=!1,jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS=!0,jspb.Message.SUPPORTS_UINT8ARRAY_=typeof Uint8Array=="function",jspb.Message.prototype.getJsPbMessageId=function(){return this.messageId_},goog.exportProperty(jspb.Message.prototype,"getJsPbMessageId",jspb.Message.prototype.getJsPbMessageId),jspb.Message.getIndex_=function(o,e){return e+o.arrayIndexOffset_},jspb.Message.hiddenES6Property_=function(){},jspb.Message.getFieldNumber_=function(o,e){return e-o.arrayIndexOffset_},jspb.Message.initialize=function(o,e,r,p,t,n){if(o.wrappers_=null,e||(e=r?[r]:[]),o.messageId_=r?String(r):void 0,o.arrayIndexOffset_=r===0?-1:0,o.array=e,jspb.Message.initPivotAndExtensionObject_(o,p),o.convertedPrimitiveFields_={},jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS||(o.repeatedFields=t),t)for(e=0;e<t.length;e++)r=t[e],r<o.pivot_?(r=jspb.Message.getIndex_(o,r),o.array[r]=o.array[r]||jspb.Message.EMPTY_LIST_SENTINEL_):(jspb.Message.maybeInitEmptyExtensionObject_(o),o.extensionObject_[r]=o.extensionObject_[r]||jspb.Message.EMPTY_LIST_SENTINEL_);if(n&&n.length)for(e=0;e<n.length;e++)jspb.Message.computeOneofCase(o,n[e])},goog.exportProperty(jspb.Message,"initialize",jspb.Message.initialize),jspb.Message.EMPTY_LIST_SENTINEL_=goog.DEBUG&&Object.freeze?Object.freeze([]):[],jspb.Message.isArray_=function(o){return jspb.Message.ASSUME_LOCAL_ARRAYS?o instanceof Array:Array.isArray(o)},jspb.Message.isExtensionObject_=function(o){return o!==null&&typeof o=="object"&&!jspb.Message.isArray_(o)&&!(jspb.Message.SUPPORTS_UINT8ARRAY_&&o instanceof Uint8Array)},jspb.Message.initPivotAndExtensionObject_=function(o,e){var r=o.array.length,p=-1;if(r&&(p=r-1,r=o.array[p],jspb.Message.isExtensionObject_(r))){o.pivot_=jspb.Message.getFieldNumber_(o,p),o.extensionObject_=r;return}-1<e?(o.pivot_=Math.max(e,jspb.Message.getFieldNumber_(o,p+1)),o.extensionObject_=null):o.pivot_=Number.MAX_VALUE},jspb.Message.maybeInitEmptyExtensionObject_=function(o){var e=jspb.Message.getIndex_(o,o.pivot_);o.array[e]||(o.extensionObject_=o.array[e]={})},jspb.Message.toObjectList=function(o,e,r){for(var p=[],t=0;t<o.length;t++)p[t]=e.call(o[t],r,o[t]);return p},goog.exportProperty(jspb.Message,"toObjectList",jspb.Message.toObjectList),jspb.Message.toObjectExtension=function(o,e,r,p,t){for(var n in r){var i=r[n],s=p.call(o,i);if(s!=null){for(var g in i.fieldName)if(i.fieldName.hasOwnProperty(g))break;e[g]=i.toObjectFn?i.isRepeated?jspb.Message.toObjectList(s,i.toObjectFn,t):i.toObjectFn(t,s):s}}},goog.exportProperty(jspb.Message,"toObjectExtension",jspb.Message.toObjectExtension),jspb.Message.serializeBinaryExtensions=function(o,e,r,p){for(var t in r){var n=r[t],i=n.fieldInfo;if(!n.binaryWriterFn)throw Error("Message extension present that was generated without binary serialization support");var s=p.call(o,i);if(s!=null)if(i.isMessageType())if(n.binaryMessageSerializeFn)n.binaryWriterFn.call(e,i.fieldIndex,s,n.binaryMessageSerializeFn);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else n.binaryWriterFn.call(e,i.fieldIndex,s)}},goog.exportProperty(jspb.Message,"serializeBinaryExtensions",jspb.Message.serializeBinaryExtensions),jspb.Message.readBinaryExtension=function(o,e,r,p,t){var n=r[e.getFieldNumber()];if(n){if(r=n.fieldInfo,!n.binaryReaderFn)throw Error("Deserializing extension whose generated code does not support binary format");if(r.isMessageType()){var i=new r.ctor;n.binaryReaderFn.call(e,i,n.binaryMessageDeserializeFn)}else i=n.binaryReaderFn.call(e);r.isRepeated&&!n.isPacked?(e=p.call(o,r))?e.push(i):t.call(o,r,[i]):t.call(o,r,i)}else e.skipField()},goog.exportProperty(jspb.Message,"readBinaryExtension",jspb.Message.readBinaryExtension),jspb.Message.getField=function(o,e){if(e<o.pivot_){e=jspb.Message.getIndex_(o,e);var r=o.array[e];return r===jspb.Message.EMPTY_LIST_SENTINEL_?o.array[e]=[]:r}if(o.extensionObject_)return r=o.extensionObject_[e],r===jspb.Message.EMPTY_LIST_SENTINEL_?o.extensionObject_[e]=[]:r},goog.exportProperty(jspb.Message,"getField",jspb.Message.getField),jspb.Message.getRepeatedField=function(o,e){return jspb.Message.getField(o,e)},goog.exportProperty(jspb.Message,"getRepeatedField",jspb.Message.getRepeatedField),jspb.Message.getOptionalFloatingPointField=function(o,e){return o=jspb.Message.getField(o,e),o==null?o:+o},goog.exportProperty(jspb.Message,"getOptionalFloatingPointField",jspb.Message.getOptionalFloatingPointField),jspb.Message.getBooleanField=function(o,e){return o=jspb.Message.getField(o,e),o==null?o:!!o},goog.exportProperty(jspb.Message,"getBooleanField",jspb.Message.getBooleanField),jspb.Message.getRepeatedFloatingPointField=function(o,e){var r=jspb.Message.getRepeatedField(o,e);if(o.convertedPrimitiveFields_||(o.convertedPrimitiveFields_={}),!o.convertedPrimitiveFields_[e]){for(var p=0;p<r.length;p++)r[p]=+r[p];o.convertedPrimitiveFields_[e]=!0}return r},goog.exportProperty(jspb.Message,"getRepeatedFloatingPointField",jspb.Message.getRepeatedFloatingPointField),jspb.Message.getRepeatedBooleanField=function(o,e){var r=jspb.Message.getRepeatedField(o,e);if(o.convertedPrimitiveFields_||(o.convertedPrimitiveFields_={}),!o.convertedPrimitiveFields_[e]){for(var p=0;p<r.length;p++)r[p]=!!r[p];o.convertedPrimitiveFields_[e]=!0}return r},goog.exportProperty(jspb.Message,"getRepeatedBooleanField",jspb.Message.getRepeatedBooleanField),jspb.Message.bytesAsB64=function(o){return o==null||typeof o=="string"?o:jspb.Message.SUPPORTS_UINT8ARRAY_&&o instanceof Uint8Array?goog.crypt.base64.encodeByteArray(o):(jspb.asserts.fail("Cannot coerce to b64 string: "+goog.typeOf(o)),null)},goog.exportProperty(jspb.Message,"bytesAsB64",jspb.Message.bytesAsB64),jspb.Message.bytesAsU8=function(o){return o==null||o instanceof Uint8Array?o:typeof o=="string"?goog.crypt.base64.decodeStringToUint8Array(o):(jspb.asserts.fail("Cannot coerce to Uint8Array: "+goog.typeOf(o)),null)},goog.exportProperty(jspb.Message,"bytesAsU8",jspb.Message.bytesAsU8),jspb.Message.bytesListAsB64=function(o){return jspb.Message.assertConsistentTypes_(o),o.length&&typeof o[0]!="string"?goog.array.map(o,jspb.Message.bytesAsB64):o},goog.exportProperty(jspb.Message,"bytesListAsB64",jspb.Message.bytesListAsB64),jspb.Message.bytesListAsU8=function(o){return jspb.Message.assertConsistentTypes_(o),!o.length||o[0]instanceof Uint8Array?o:goog.array.map(o,jspb.Message.bytesAsU8)},goog.exportProperty(jspb.Message,"bytesListAsU8",jspb.Message.bytesListAsU8),jspb.Message.assertConsistentTypes_=function(o){if(goog.DEBUG&&o&&1<o.length){var e=goog.typeOf(o[0]);goog.array.forEach(o,function(r){goog.typeOf(r)!=e&&jspb.asserts.fail("Inconsistent type in JSPB repeated field array. Got "+goog.typeOf(r)+" expected "+e)})}},jspb.Message.getFieldWithDefault=function(o,e,r){return o=jspb.Message.getField(o,e),o??r},goog.exportProperty(jspb.Message,"getFieldWithDefault",jspb.Message.getFieldWithDefault),jspb.Message.getBooleanFieldWithDefault=function(o,e,r){return o=jspb.Message.getBooleanField(o,e),o??r},goog.exportProperty(jspb.Message,"getBooleanFieldWithDefault",jspb.Message.getBooleanFieldWithDefault),jspb.Message.getFloatingPointFieldWithDefault=function(o,e,r){return o=jspb.Message.getOptionalFloatingPointField(o,e),o??r},goog.exportProperty(jspb.Message,"getFloatingPointFieldWithDefault",jspb.Message.getFloatingPointFieldWithDefault),jspb.Message.getFieldProto3=jspb.Message.getFieldWithDefault,goog.exportProperty(jspb.Message,"getFieldProto3",jspb.Message.getFieldProto3),jspb.Message.getMapField=function(o,e,r,p){if(o.wrappers_||(o.wrappers_={}),e in o.wrappers_)return o.wrappers_[e];var t=jspb.Message.getField(o,e);if(!t){if(r)return;t=[],jspb.Message.setField(o,e,t)}return o.wrappers_[e]=new jspb.Map(t,p)},goog.exportProperty(jspb.Message,"getMapField",jspb.Message.getMapField),jspb.Message.setField=function(o,e,r){return jspb.asserts.assertInstanceof(o,jspb.Message),e<o.pivot_?o.array[jspb.Message.getIndex_(o,e)]=r:(jspb.Message.maybeInitEmptyExtensionObject_(o),o.extensionObject_[e]=r),o},goog.exportProperty(jspb.Message,"setField",jspb.Message.setField),jspb.Message.setProto3IntField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,0)},goog.exportProperty(jspb.Message,"setProto3IntField",jspb.Message.setProto3IntField),jspb.Message.setProto3FloatField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,0)},goog.exportProperty(jspb.Message,"setProto3FloatField",jspb.Message.setProto3FloatField),jspb.Message.setProto3BooleanField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,!1)},goog.exportProperty(jspb.Message,"setProto3BooleanField",jspb.Message.setProto3BooleanField),jspb.Message.setProto3StringField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,"")},goog.exportProperty(jspb.Message,"setProto3StringField",jspb.Message.setProto3StringField),jspb.Message.setProto3BytesField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,"")},goog.exportProperty(jspb.Message,"setProto3BytesField",jspb.Message.setProto3BytesField),jspb.Message.setProto3EnumField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,0)},goog.exportProperty(jspb.Message,"setProto3EnumField",jspb.Message.setProto3EnumField),jspb.Message.setProto3StringIntField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,"0")},goog.exportProperty(jspb.Message,"setProto3StringIntField",jspb.Message.setProto3StringIntField),jspb.Message.setFieldIgnoringDefault_=function(o,e,r,p){return jspb.asserts.assertInstanceof(o,jspb.Message),r!==p?jspb.Message.setField(o,e,r):e<o.pivot_?o.array[jspb.Message.getIndex_(o,e)]=null:(jspb.Message.maybeInitEmptyExtensionObject_(o),delete o.extensionObject_[e]),o},jspb.Message.addToRepeatedField=function(o,e,r,p){return jspb.asserts.assertInstanceof(o,jspb.Message),e=jspb.Message.getRepeatedField(o,e),p!=null?e.splice(p,0,r):e.push(r),o},goog.exportProperty(jspb.Message,"addToRepeatedField",jspb.Message.addToRepeatedField),jspb.Message.setOneofField=function(o,e,r,p){return jspb.asserts.assertInstanceof(o,jspb.Message),(r=jspb.Message.computeOneofCase(o,r))&&r!==e&&p!==void 0&&(o.wrappers_&&r in o.wrappers_&&(o.wrappers_[r]=void 0),jspb.Message.setField(o,r,void 0)),jspb.Message.setField(o,e,p)},goog.exportProperty(jspb.Message,"setOneofField",jspb.Message.setOneofField),jspb.Message.computeOneofCase=function(o,e){for(var r,p,t=0;t<e.length;t++){var n=e[t],i=jspb.Message.getField(o,n);i!=null&&(r=n,p=i,jspb.Message.setField(o,n,void 0))}return r?(jspb.Message.setField(o,r,p),r):0},goog.exportProperty(jspb.Message,"computeOneofCase",jspb.Message.computeOneofCase),jspb.Message.getWrapperField=function(o,e,r,p){if(o.wrappers_||(o.wrappers_={}),!o.wrappers_[r]){var t=jspb.Message.getField(o,r);(p||t)&&(o.wrappers_[r]=new e(t))}return o.wrappers_[r]},goog.exportProperty(jspb.Message,"getWrapperField",jspb.Message.getWrapperField),jspb.Message.getRepeatedWrapperField=function(o,e,r){return jspb.Message.wrapRepeatedField_(o,e,r),e=o.wrappers_[r],e==jspb.Message.EMPTY_LIST_SENTINEL_&&(e=o.wrappers_[r]=[]),e},goog.exportProperty(jspb.Message,"getRepeatedWrapperField",jspb.Message.getRepeatedWrapperField),jspb.Message.wrapRepeatedField_=function(o,e,r){if(o.wrappers_||(o.wrappers_={}),!o.wrappers_[r]){for(var p=jspb.Message.getRepeatedField(o,r),t=[],n=0;n<p.length;n++)t[n]=new e(p[n]);o.wrappers_[r]=t}},jspb.Message.setWrapperField=function(o,e,r){jspb.asserts.assertInstanceof(o,jspb.Message),o.wrappers_||(o.wrappers_={});var p=r&&r.toArray();return o.wrappers_[e]=r,jspb.Message.setField(o,e,p)},goog.exportProperty(jspb.Message,"setWrapperField",jspb.Message.setWrapperField),jspb.Message.setOneofWrapperField=function(o,e,r,p){jspb.asserts.assertInstanceof(o,jspb.Message),o.wrappers_||(o.wrappers_={});var t=p&&p.toArray();return o.wrappers_[e]=p,jspb.Message.setOneofField(o,e,r,t)},goog.exportProperty(jspb.Message,"setOneofWrapperField",jspb.Message.setOneofWrapperField),jspb.Message.setRepeatedWrapperField=function(o,e,r){jspb.asserts.assertInstanceof(o,jspb.Message),o.wrappers_||(o.wrappers_={}),r=r||[];for(var p=[],t=0;t<r.length;t++)p[t]=r[t].toArray();return o.wrappers_[e]=r,jspb.Message.setField(o,e,p)},goog.exportProperty(jspb.Message,"setRepeatedWrapperField",jspb.Message.setRepeatedWrapperField),jspb.Message.addToRepeatedWrapperField=function(o,e,r,p,t){jspb.Message.wrapRepeatedField_(o,p,e);var n=o.wrappers_[e];return n||(n=o.wrappers_[e]=[]),r=r||new p,o=jspb.Message.getRepeatedField(o,e),t!=null?(n.splice(t,0,r),o.splice(t,0,r.toArray())):(n.push(r),o.push(r.toArray())),r},goog.exportProperty(jspb.Message,"addToRepeatedWrapperField",jspb.Message.addToRepeatedWrapperField),jspb.Message.toMap=function(o,e,r,p){for(var t={},n=0;n<o.length;n++)t[e.call(o[n])]=r?r.call(o[n],p,o[n]):o[n];return t},goog.exportProperty(jspb.Message,"toMap",jspb.Message.toMap),jspb.Message.prototype.syncMapFields_=function(){if(this.wrappers_)for(var o in this.wrappers_){var e=this.wrappers_[o];if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&e[r].toArray();else e&&e.toArray()}},jspb.Message.prototype.toArray=function(){return this.syncMapFields_(),this.array},goog.exportProperty(jspb.Message.prototype,"toArray",jspb.Message.prototype.toArray),jspb.Message.GENERATE_TO_STRING&&(jspb.Message.prototype.toString=function(){return this.syncMapFields_(),this.array.toString()}),jspb.Message.prototype.getExtension=function(o){if(this.extensionObject_){this.wrappers_||(this.wrappers_={});var e=o.fieldIndex;if(o.isRepeated){if(o.isMessageType())return this.wrappers_[e]||(this.wrappers_[e]=goog.array.map(this.extensionObject_[e]||[],function(r){return new o.ctor(r)})),this.wrappers_[e]}else if(o.isMessageType())return!this.wrappers_[e]&&this.extensionObject_[e]&&(this.wrappers_[e]=new o.ctor(this.extensionObject_[e])),this.wrappers_[e];return this.extensionObject_[e]}},goog.exportProperty(jspb.Message.prototype,"getExtension",jspb.Message.prototype.getExtension),jspb.Message.prototype.setExtension=function(o,e){this.wrappers_||(this.wrappers_={}),jspb.Message.maybeInitEmptyExtensionObject_(this);var r=o.fieldIndex;return o.isRepeated?(e=e||[],o.isMessageType()?(this.wrappers_[r]=e,this.extensionObject_[r]=goog.array.map(e,function(p){return p.toArray()})):this.extensionObject_[r]=e):o.isMessageType()?(this.wrappers_[r]=e,this.extensionObject_[r]=e&&e.toArray()):this.extensionObject_[r]=e,this},goog.exportProperty(jspb.Message.prototype,"setExtension",jspb.Message.prototype.setExtension),jspb.Message.difference=function(o,e){if(!(o instanceof e.constructor))throw Error("Messages have different types.");var r=o.toArray();e=e.toArray();var p=[],t=0,n=r.length>e.length?r.length:e.length;for(o.getJsPbMessageId()&&(p[0]=o.getJsPbMessageId(),t=1);t<n;t++)jspb.Message.compareFields(r[t],e[t])||(p[t]=e[t]);return new o.constructor(p)},goog.exportProperty(jspb.Message,"difference",jspb.Message.difference),jspb.Message.equals=function(o,e){return o==e||!(!o||!e)&&o instanceof e.constructor&&jspb.Message.compareFields(o.toArray(),e.toArray())},goog.exportProperty(jspb.Message,"equals",jspb.Message.equals),jspb.Message.compareExtensions=function(o,e){o=o||{},e=e||{};var r={},p;for(p in o)r[p]=0;for(p in e)r[p]=0;for(p in r)if(!jspb.Message.compareFields(o[p],e[p]))return!1;return!0},goog.exportProperty(jspb.Message,"compareExtensions",jspb.Message.compareExtensions),jspb.Message.compareFields=function(o,e){if(o==e)return!0;if(!goog.isObject(o)||!goog.isObject(e))return typeof o=="number"&&isNaN(o)||typeof e=="number"&&isNaN(e)?String(o)==String(e):!1;if(o.constructor!=e.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&o.constructor===Uint8Array){if(o.length!=e.length)return!1;for(var r=0;r<o.length;r++)if(o[r]!=e[r])return!1;return!0}if(o.constructor===Array){var p=void 0,t=void 0,n=Math.max(o.length,e.length);for(r=0;r<n;r++){var i=o[r],s=e[r];if(i&&i.constructor==Object&&(jspb.asserts.assert(p===void 0),jspb.asserts.assert(r===o.length-1),p=i,i=void 0),s&&s.constructor==Object&&(jspb.asserts.assert(t===void 0),jspb.asserts.assert(r===e.length-1),t=s,s=void 0),!jspb.Message.compareFields(i,s))return!1}return p||t?(p=p||{},t=t||{},jspb.Message.compareExtensions(p,t)):!0}if(o.constructor===Object)return jspb.Message.compareExtensions(o,e);throw Error("Invalid type in JSPB array")},goog.exportProperty(jspb.Message,"compareFields",jspb.Message.compareFields),jspb.Message.prototype.cloneMessage=function(){return jspb.Message.cloneMessage(this)},goog.exportProperty(jspb.Message.prototype,"cloneMessage",jspb.Message.prototype.cloneMessage),jspb.Message.prototype.clone=function(){return jspb.Message.cloneMessage(this)},goog.exportProperty(jspb.Message.prototype,"clone",jspb.Message.prototype.clone),jspb.Message.clone=function(o){return jspb.Message.cloneMessage(o)},goog.exportProperty(jspb.Message,"clone",jspb.Message.clone),jspb.Message.cloneMessage=function(o){return new o.constructor(jspb.Message.clone_(o.toArray()))},jspb.Message.copyInto=function(o,e){jspb.asserts.assertInstanceof(o,jspb.Message),jspb.asserts.assertInstanceof(e,jspb.Message),jspb.asserts.assert(o.constructor==e.constructor,"Copy source and target message should have the same type."),o=jspb.Message.clone(o);for(var r=e.toArray(),p=o.toArray(),t=r.length=0;t<p.length;t++)r[t]=p[t];e.wrappers_=o.wrappers_,e.extensionObject_=o.extensionObject_},goog.exportProperty(jspb.Message,"copyInto",jspb.Message.copyInto),jspb.Message.clone_=function(o){if(Array.isArray(o)){for(var e=Array(o.length),r=0;r<o.length;r++){var p=o[r];p!=null&&(e[r]=typeof p=="object"?jspb.Message.clone_(jspb.asserts.assert(p)):p)}return e}if(jspb.Message.SUPPORTS_UINT8ARRAY_&&o instanceof Uint8Array)return new Uint8Array(o);e={};for(r in o)p=o[r],p!=null&&(e[r]=typeof p=="object"?jspb.Message.clone_(jspb.asserts.assert(p)):p);return e},jspb.Message.registerMessageType=function(o,e){e.messageId=o},goog.exportProperty(jspb.Message,"registerMessageType",jspb.Message.registerMessageType),jspb.Message.messageSetExtensions={},jspb.Message.messageSetExtensionsBinary={},jspb.Export={},exports.Map=jspb.Map,exports.Message=jspb.Message,exports.BinaryReader=jspb.BinaryReader,exports.BinaryWriter=jspb.BinaryWriter,exports.ExtensionFieldInfo=jspb.ExtensionFieldInfo,exports.ExtensionFieldBinaryInfo=jspb.ExtensionFieldBinaryInfo,exports.exportSymbol=goog.exportSymbol,exports.inherits=goog.inherits,exports.object={extend:goog.object.extend},exports.typeOf=goog.typeOf})(googleProtobuf$3),function(o){var e=googleProtobuf$3,r=e,p=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof p<"u"&&p||typeof self<"u"&&self||function(){return this}.call(null)||Function("return this")();r.exportSymbol("proto.google.protobuf.ListValue",null,p),r.exportSymbol("proto.google.protobuf.NullValue",null,p),r.exportSymbol("proto.google.protobuf.Struct",null,p),r.exportSymbol("proto.google.protobuf.Value",null,p),r.exportSymbol("proto.google.protobuf.Value.KindCase",null,p),proto.google.protobuf.Struct=function(t){e.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.google.protobuf.Struct,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.Struct.displayName="proto.google.protobuf.Struct"),proto.google.protobuf.Value=function(t){e.Message.initialize(this,t,0,-1,null,proto.google.protobuf.Value.oneofGroups_)},r.inherits(proto.google.protobuf.Value,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.Value.displayName="proto.google.protobuf.Value"),proto.google.protobuf.ListValue=function(t){e.Message.initialize(this,t,0,-1,proto.google.protobuf.ListValue.repeatedFields_,null)},r.inherits(proto.google.protobuf.ListValue,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.ListValue.displayName="proto.google.protobuf.ListValue"),e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Struct.prototype.toObject=function(t){return proto.google.protobuf.Struct.toObject(t,this)},proto.google.protobuf.Struct.toObject=function(t,n){var i,s={fieldsMap:(i=n.getFieldsMap())?i.toObject(t,proto.google.protobuf.Value.toObject):[]};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.Struct.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.Struct;return proto.google.protobuf.Struct.deserializeBinaryFromReader(i,n)},proto.google.protobuf.Struct.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=t.getFieldsMap();n.readMessage(s,function(g,l){e.Map.deserializeBinary(g,l,e.BinaryReader.prototype.readString,e.BinaryReader.prototype.readMessage,proto.google.protobuf.Value.deserializeBinaryFromReader,"",new proto.google.protobuf.Value)});break;default:n.skipField();break}}return t},proto.google.protobuf.Struct.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.Struct.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.Struct.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getFieldsMap(!0),i&&i.getLength()>0&&i.serializeBinary(1,n,e.BinaryWriter.prototype.writeString,e.BinaryWriter.prototype.writeMessage,proto.google.protobuf.Value.serializeBinaryToWriter)},proto.google.protobuf.Struct.prototype.getFieldsMap=function(t){return e.Message.getMapField(this,1,t,proto.google.protobuf.Value)},proto.google.protobuf.Struct.prototype.clearFieldsMap=function(){return this.getFieldsMap().clear(),this},proto.google.protobuf.Value.oneofGroups_=[[1,2,3,4,5,6]],proto.google.protobuf.Value.KindCase={KIND_NOT_SET:0,NULL_VALUE:1,NUMBER_VALUE:2,STRING_VALUE:3,BOOL_VALUE:4,STRUCT_VALUE:5,LIST_VALUE:6},proto.google.protobuf.Value.prototype.getKindCase=function(){return e.Message.computeOneofCase(this,proto.google.protobuf.Value.oneofGroups_[0])},e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Value.prototype.toObject=function(t){return proto.google.protobuf.Value.toObject(t,this)},proto.google.protobuf.Value.toObject=function(t,n){var i,s={nullValue:e.Message.getFieldWithDefault(n,1,0),numberValue:e.Message.getFloatingPointFieldWithDefault(n,2,0),stringValue:e.Message.getFieldWithDefault(n,3,""),boolValue:e.Message.getBooleanFieldWithDefault(n,4,!1),structValue:(i=n.getStructValue())&&proto.google.protobuf.Struct.toObject(t,i),listValue:(i=n.getListValue())&&proto.google.protobuf.ListValue.toObject(t,i)};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.Value.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.Value;return proto.google.protobuf.Value.deserializeBinaryFromReader(i,n)},proto.google.protobuf.Value.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readEnum();t.setNullValue(s);break;case 2:var s=n.readDouble();t.setNumberValue(s);break;case 3:var s=n.readString();t.setStringValue(s);break;case 4:var s=n.readBool();t.setBoolValue(s);break;case 5:var s=new proto.google.protobuf.Struct;n.readMessage(s,proto.google.protobuf.Struct.deserializeBinaryFromReader),t.setStructValue(s);break;case 6:var s=new proto.google.protobuf.ListValue;n.readMessage(s,proto.google.protobuf.ListValue.deserializeBinaryFromReader),t.setListValue(s);break;default:n.skipField();break}}return t},proto.google.protobuf.Value.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.Value.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.Value.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeEnum(1,i),i=e.Message.getField(t,2),i!=null&&n.writeDouble(2,i),i=e.Message.getField(t,3),i!=null&&n.writeString(3,i),i=e.Message.getField(t,4),i!=null&&n.writeBool(4,i),i=t.getStructValue(),i!=null&&n.writeMessage(5,i,proto.google.protobuf.Struct.serializeBinaryToWriter),i=t.getListValue(),i!=null&&n.writeMessage(6,i,proto.google.protobuf.ListValue.serializeBinaryToWriter)},proto.google.protobuf.Value.prototype.getNullValue=function(){return e.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.Value.prototype.setNullValue=function(t){return e.Message.setOneofField(this,1,proto.google.protobuf.Value.oneofGroups_[0],t)},proto.google.protobuf.Value.prototype.clearNullValue=function(){return e.Message.setOneofField(this,1,proto.google.protobuf.Value.oneofGroups_[0],void 0)},proto.google.protobuf.Value.prototype.hasNullValue=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.Value.prototype.getNumberValue=function(){return e.Message.getFloatingPointFieldWithDefault(this,2,0)},proto.google.protobuf.Value.prototype.setNumberValue=function(t){return e.Message.setOneofField(this,2,proto.google.protobuf.Value.oneofGroups_[0],t)},proto.google.protobuf.Value.prototype.clearNumberValue=function(){return e.Message.setOneofField(this,2,proto.google.protobuf.Value.oneofGroups_[0],void 0)},proto.google.protobuf.Value.prototype.hasNumberValue=function(){return e.Message.getField(this,2)!=null},proto.google.protobuf.Value.prototype.getStringValue=function(){return e.Message.getFieldWithDefault(this,3,"")},proto.google.protobuf.Value.prototype.setStringValue=function(t){return e.Message.setOneofField(this,3,proto.google.protobuf.Value.oneofGroups_[0],t)},proto.google.protobuf.Value.prototype.clearStringValue=function(){return e.Message.setOneofField(this,3,proto.google.protobuf.Value.oneofGroups_[0],void 0)},proto.google.protobuf.Value.prototype.hasStringValue=function(){return e.Message.getField(this,3)!=null},proto.google.protobuf.Value.prototype.getBoolValue=function(){return e.Message.getBooleanFieldWithDefault(this,4,!1)},proto.google.protobuf.Value.prototype.setBoolValue=function(t){return e.Message.setOneofField(this,4,proto.google.protobuf.Value.oneofGroups_[0],t)},proto.google.protobuf.Value.prototype.clearBoolValue=function(){return e.Message.setOneofField(this,4,proto.google.protobuf.Value.oneofGroups_[0],void 0)},proto.google.protobuf.Value.prototype.hasBoolValue=function(){return e.Message.getField(this,4)!=null},proto.google.protobuf.Value.prototype.getStructValue=function(){return e.Message.getWrapperField(this,proto.google.protobuf.Struct,5)},proto.google.protobuf.Value.prototype.setStructValue=function(t){return e.Message.setOneofWrapperField(this,5,proto.google.protobuf.Value.oneofGroups_[0],t)},proto.google.protobuf.Value.prototype.clearStructValue=function(){return this.setStructValue(void 0)},proto.google.protobuf.Value.prototype.hasStructValue=function(){return e.Message.getField(this,5)!=null},proto.google.protobuf.Value.prototype.getListValue=function(){return e.Message.getWrapperField(this,proto.google.protobuf.ListValue,6)},proto.google.protobuf.Value.prototype.setListValue=function(t){return e.Message.setOneofWrapperField(this,6,proto.google.protobuf.Value.oneofGroups_[0],t)},proto.google.protobuf.Value.prototype.clearListValue=function(){return this.setListValue(void 0)},proto.google.protobuf.Value.prototype.hasListValue=function(){return e.Message.getField(this,6)!=null},proto.google.protobuf.ListValue.repeatedFields_=[1],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ListValue.prototype.toObject=function(t){return proto.google.protobuf.ListValue.toObject(t,this)},proto.google.protobuf.ListValue.toObject=function(t,n){var i={valuesList:e.Message.toObjectList(n.getValuesList(),proto.google.protobuf.Value.toObject,t)};return t&&(i.$jspbMessageInstance=n),i}),proto.google.protobuf.ListValue.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.ListValue;return proto.google.protobuf.ListValue.deserializeBinaryFromReader(i,n)},proto.google.protobuf.ListValue.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=new proto.google.protobuf.Value;n.readMessage(s,proto.google.protobuf.Value.deserializeBinaryFromReader),t.addValues(s);break;default:n.skipField();break}}return t},proto.google.protobuf.ListValue.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.ListValue.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.ListValue.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getValuesList(),i.length>0&&n.writeRepeatedMessage(1,i,proto.google.protobuf.Value.serializeBinaryToWriter)},proto.google.protobuf.ListValue.prototype.getValuesList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.Value,1)},proto.google.protobuf.ListValue.prototype.setValuesList=function(t){return e.Message.setRepeatedWrapperField(this,1,t)},proto.google.protobuf.ListValue.prototype.addValues=function(t,n){return e.Message.addToRepeatedWrapperField(this,1,t,proto.google.protobuf.Value,n)},proto.google.protobuf.ListValue.prototype.clearValuesList=function(){return this.setValuesList([])},proto.google.protobuf.NullValue={NULL_VALUE:0},r.object.extend(o,proto.google.protobuf),proto.google.protobuf.JavaScriptValue,proto.google.protobuf.Value.prototype.toJavaScript=function(){var t=proto.google.protobuf.Value.KindCase;switch(this.getKindCase()){case t.NULL_VALUE:return null;case t.NUMBER_VALUE:return this.getNumberValue();case t.STRING_VALUE:return this.getStringValue();case t.BOOL_VALUE:return this.getBoolValue();case t.STRUCT_VALUE:return this.getStructValue().toJavaScript();case t.LIST_VALUE:return this.getListValue().toJavaScript();default:throw new Error("Unexpected struct type")}},proto.google.protobuf.Value.fromJavaScript=function(t){var n=new proto.google.protobuf.Value;switch(r.typeOf(t)){case"string":n.setStringValue(t);break;case"number":n.setNumberValue(t);break;case"boolean":n.setBoolValue(t);break;case"null":n.setNullValue(proto.google.protobuf.NullValue.NULL_VALUE);break;case"array":n.setListValue(proto.google.protobuf.ListValue.fromJavaScript(t));break;case"object":n.setStructValue(proto.google.protobuf.Struct.fromJavaScript(t));break;default:throw new Error("Unexpected struct type.")}return n},proto.google.protobuf.ListValue.prototype.toJavaScript=function(){for(var t=[],n=this.getValuesList(),i=0;i<n.length;i++)t[i]=n[i].toJavaScript();return t},proto.google.protobuf.ListValue.fromJavaScript=function(t){for(var n=new proto.google.protobuf.ListValue,i=0;i<t.length;i++)n.addValues(proto.google.protobuf.Value.fromJavaScript(t[i]));return n},proto.google.protobuf.Struct.prototype.toJavaScript=function(){var t={};return this.getFieldsMap().forEach(function(n,i){t[i]=n.toJavaScript()}),t},proto.google.protobuf.Struct.fromJavaScript=function(t){var n=new proto.google.protobuf.Struct,i=n.getFieldsMap();for(var s in t){var g=t[s];i.set(s,proto.google.protobuf.Value.fromJavaScript(g))}return n}}(struct_pb$2);class ArmClient{client;name;options;constructor(e,r,p={}){this.client=e.createServiceClient(ArmServiceClient_1),this.name=r,this.options=p}get ArmService(){return this.client}async GetEndPosition(e={}){const r=this.ArmService,p=new arm_pb.GetEndPositionRequest;p.setName(this.name),p.setExtra(struct_pb$2.Struct.fromJavaScript(e)),this.options.requestLogger?.(p);const n=(await promisify(r.getEndPosition.bind(r),p)).getPose();if(!n)throw new Error("no pose");return n}async MoveToPosition(e,r,p={}){const t=this.ArmService,n=new arm_pb.MoveToPositionRequest;n.setTo(e),n.setWorldState(r),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),await promisify(t.moveToPosition.bind(t),n)}async MoveToJointPositions(e,r={}){const p=this.ArmService,t=new arm_pb.MoveToJointPositionsRequest;t.setName(this.name),t.setPositions(e),t.setExtra(struct_pb$2.Struct.fromJavaScript(r)),this.options.requestLogger?.(t),await promisify(p.moveToJointPositions.bind(p),t)}async GetJointPositions(e={}){const r=this.ArmService,p=new arm_pb.GetJointPositionsRequest;p.setName(this.name),p.setExtra(struct_pb$2.Struct.fromJavaScript(e)),this.options.requestLogger?.(p);const n=(await promisify(r.getJointPositions.bind(r),p)).getPositions();if(!n)throw new Error("no pose");return n}async Stop(e={}){const r=this.ArmService,p=new arm_pb.StopRequest;p.setName(this.name),p.setExtra(struct_pb$2.Struct.fromJavaScript(e)),this.options.requestLogger?.(p),await promisify(r.getJointPositions.bind(r),p)}async IsMoving(){const e=this.ArmService,r=new arm_pb.IsMovingRequest;return this.options.requestLogger?.(r),(await promisify(e.isMoving.bind(e),r)).getIsMoving()}}class BaseClient{client;name;options;constructor(e,r,p={}){this.client=e.createServiceClient(BaseServiceClient_1),this.name=r,this.options=p}get baseService(){return this.client}async moveStraight(e,r,p={}){const t=this.baseService,n=new base_pb.MoveStraightRequest;n.setName(this.name),n.setMmPerSec(r),n.setDistanceMm(e),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),await promisify(t.moveStraight.bind(t),n)}async spin(e,r,p={}){const t=this.baseService,n=new base_pb.SpinRequest;n.setName(this.name),n.setAngleDeg(e),n.setDegsPerSec(r),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),await promisify(t.spin.bind(t),n)}async setPower(e,r,p={}){const t=this.baseService,n=new base_pb.SetPowerRequest;n.setName(this.name),n.setLinear(e),n.setAngular(r),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),await promisify(t.setPower.bind(t),n)}async setVelocity(e,r,p={}){const t=this.baseService,n=new base_pb.SetVelocityRequest;n.setName(this.name),n.setLinear(e),n.setAngular(r),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),await promisify(t.setVelocity.bind(t),n)}async stop(e={}){const r=this.baseService,p=new base_pb.StopRequest;p.setName(this.name),p.setExtra(struct_pb$2.Struct.fromJavaScript(e)),this.options.requestLogger?.(p),await promisify(r.stop.bind(r),p)}}class BoardClient{client;name;options;constructor(e,r,p={}){this.client=e.createServiceClient(BoardServiceClient_1),this.name=r,this.options=p}get boardService(){return this.client}async status(e={}){const r=this.boardService,p=new board_pb.StatusRequest;return p.setName(this.name),p.setExtra(struct_pb$2.Struct.fromJavaScript(e)),this.options.requestLogger?.(p),await promisify(r.status.bind(r),p)}async setGPIO(e,r,p={}){const t=this.boardService,n=new board_pb.SetGPIORequest;n.setName(this.name),n.setPin(e),n.setHigh(r),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),await promisify(t.setGPIO.bind(t),n)}async getGPIO(e,r={}){const p=this.boardService,t=new board_pb.GetGPIORequest;return t.setName(this.name),t.setPin(e),t.setExtra(struct_pb$2.Struct.fromJavaScript(r)),this.options.requestLogger?.(t),(await promisify(p.getGPIO.bind(p),t)).getHigh()}async getPWM(e,r={}){const p=this.boardService,t=new board_pb.PWMRequest;return t.setName(this.name),t.setPin(e),t.setExtra(struct_pb$2.Struct.fromJavaScript(r)),this.options.requestLogger?.(t),(await promisify(p.pWM.bind(p),t)).getDutyCyclePct()}async setPWM(e,r,p={}){const t=this.boardService,n=new board_pb.SetPWMRequest;n.setName(this.name),n.setPin(e),n.setDutyCyclePct(r),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),await promisify(t.setPWM.bind(t),n)}async getPWMFrequency(e,r={}){const p=this.boardService,t=new board_pb.PWMFrequencyRequest;return t.setName(this.name),t.setPin(e),t.setExtra(struct_pb$2.Struct.fromJavaScript(r)),this.options.requestLogger?.(t),(await promisify(p.pWMFrequency.bind(p),t)).getFrequencyHz()}async setPWMFrequency(e,r,p={}){const t=this.boardService,n=new board_pb.SetPWMFrequencyRequest;n.setName(this.name),n.setPin(e),n.setFrequencyHz(r),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),await promisify(t.setPWMFrequency.bind(t),n)}async readAnalogReader(e,r,p={}){const t=this.boardService,n=new board_pb.ReadAnalogReaderRequest;return n.setBoardName(e),n.setAnalogReaderName(r),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),(await promisify(t.readAnalogReader.bind(t),n)).getValue()}async getDigitalInterruptValue(e,r,p={}){const t=this.boardService,n=new board_pb.GetDigitalInterruptValueRequest;return n.setBoardName(e),n.setDigitalInterruptName(r),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),(await promisify(t.getDigitalInterruptValue.bind(t),n)).getValue()}}var commonjsGlobal$2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},camera_pb={},googleProtobuf$2={};(function(exports){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(o,e,r){o instanceof String&&(o=String(o));for(var p=o.length,t=0;t<p;t++){var n=o[t];if(e.call(r,n,t,o))return{i:t,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||typeof Object.defineProperties=="function"?Object.defineProperty:function(o,e,r){o!=Array.prototype&&o!=Object.prototype&&(o[e]=r.value)},$jscomp.getGlobal=function(o){return typeof window<"u"&&window===o?o:typeof commonjsGlobal$2<"u"&&commonjsGlobal$2!=null?commonjsGlobal$2:o},$jscomp.global=$jscomp.getGlobal(commonjsGlobal$2),$jscomp.polyfill=function(o,e,r,p){if(e){for(r=$jscomp.global,o=o.split("."),p=0;p<o.length-1;p++){var t=o[p];t in r||(r[t]={}),r=r[t]}o=o[o.length-1],p=r[o],e=e(p),e!=p&&e!=null&&$jscomp.defineProperty(r,o,{configurable:!0,writable:!0,value:e})}},$jscomp.polyfill("Array.prototype.findIndex",function(o){return o||function(e,r){return $jscomp.findInternal(this,e,r).i}},"es6","es3"),$jscomp.checkStringArgs=function(o,e,r){if(o==null)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(e instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return o+""},$jscomp.polyfill("String.prototype.endsWith",function(o){return o||function(e,r){var p=$jscomp.checkStringArgs(this,e,"endsWith");e+="",r===void 0&&(r=p.length),r=Math.max(0,Math.min(r|0,p.length));for(var t=e.length;0<t&&0<r;)if(p[--r]!=e[--t])return!1;return 0>=t}},"es6","es3"),$jscomp.polyfill("Array.prototype.find",function(o){return o||function(e,r){return $jscomp.findInternal(this,e,r).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(o){return o||function(e,r){var p=$jscomp.checkStringArgs(this,e,"startsWith");e+="";var t=p.length,n=e.length;r=Math.max(0,Math.min(r|0,p.length));for(var i=0;i<n&&r<t;)if(p[r++]!=e[i++])return!1;return i>=n}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(o){return o||function(e){var r=$jscomp.checkStringArgs(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var p="";e;)e&1&&(p+=r),(e>>>=1)&&(r+=r);return p}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=commonjsGlobal$2||self,goog.exportPath_=function(o,e,r){o=o.split("."),r=r||goog.global,o[0]in r||typeof r.execScript>"u"||r.execScript("var "+o[0]);for(var p;o.length&&(p=o.shift());)o.length||e===void 0?r=r[p]&&r[p]!==Object.prototype[p]?r[p]:r[p]={}:r[p]=e},goog.define=function(o,e){return e},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(o){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");goog.constructNamespace_(o)},goog.constructNamespace_=function(o,e){goog.exportPath_(o,e)},goog.getScriptNonce=function(o){return o&&o!=goog.global?goog.getScriptNonce_(o.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(o){return(o=o.querySelector&&o.querySelector("script[nonce]"))&&(o=o.nonce||o.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(o)?o:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(o){if(typeof o!="string"||!o||o.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+o+" 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=o},goog.module.get=function(o){return goog.module.getInternal_(o)},goog.module.getInternal_=function(o){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 o=goog.global.$jscomp;return o?typeof o.getCurrentModulePath!="function"?!1:!!o.getCurrentModulePath():!1},goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(o){if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=o;else{var e=goog.global.$jscomp;if(!e||typeof e.getCurrentModulePath!="function")throw Error('Module with namespace "'+o+'" has been loaded incorrectly.');e=e.require(e.getCurrentModulePath()),goog.loadedModules_[o]={exports:e,type:goog.ModuleType.ES6,moduleId:o}}},goog.setTestOnly=function(o){if(goog.DISALLOW_TEST_ONLY_CODE)throw o=o||"",Error("Importing test-only code into non-debug environment"+(o?": "+o:"."))},goog.forwardDeclare=function(o){},goog.getObjectByName=function(o,e){o=o.split("."),e=e||goog.global;for(var r=0;r<o.length;r++)if(e=e[o[r]],e==null)return null;return e},goog.globalize=function(o,e){e=e||goog.global;for(var r in o)e[r]=o[r]},goog.addDependency=function(o,e,r,p){},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(o){goog.global.console&&goog.global.console.error(o)},goog.require=function(o){},goog.requireType=function(o){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(o){o.instance_=void 0,o.getInstance=function(){return o.instance_?o.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=o),o.instance_=new o)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE="",goog.TRANSPILER="transpile.js",goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(goog.hasBadLetScoping==null){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(o){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(o){return"(function(){"+o+`
268
+ `)},goog.string.normalizeWhitespace=function(o){return o.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(o){return o.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(o){return o.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(o){return o.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(o){return o.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(o,e,r){if(o==e)return 0;if(!o)return-1;if(!e)return 1;for(var p=o.toLowerCase().match(r),t=e.toLowerCase().match(r),n=Math.min(p.length,t.length),i=0;i<n;i++){r=p[i];var s=t[i];if(r!=s)return o=parseInt(r,10),!isNaN(o)&&(e=parseInt(s,10),!isNaN(e)&&o-e)?o-e:r<s?-1:1}return p.length!=t.length?p.length-t.length:o<e?-1:1},goog.string.intAwareCompare=function(o,e){return goog.string.numberAwareCompare_(o,e,/\d+|\D+/g)},goog.string.floatAwareCompare=function(o,e){return goog.string.numberAwareCompare_(o,e,/\d+|\.\d+|\D+/g)},goog.string.numerateCompare=goog.string.floatAwareCompare,goog.string.urlEncode=function(o){return encodeURIComponent(String(o))},goog.string.urlDecode=function(o){return decodeURIComponent(o.replace(/\+/g," "))},goog.string.newLineToBr=goog.string.internal.newLineToBr,goog.string.htmlEscape=function(o,e){return o=goog.string.internal.htmlEscape(o,e),goog.string.DETECT_DOUBLE_ESCAPING&&(o=o.replace(goog.string.E_RE_,"&#101;")),o},goog.string.E_RE_=/e/g,goog.string.unescapeEntities=function(o){return goog.string.contains(o,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(o):goog.string.unescapePureXmlEntities_(o):o},goog.string.unescapeEntitiesWithDocument=function(o,e){return goog.string.contains(o,"&")?goog.string.unescapeEntitiesUsingDom_(o,e):o},goog.string.unescapeEntitiesUsingDom_=function(o,e){var r={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},p=e?e.createElement("div"):goog.global.document.createElement("div");return o.replace(goog.string.HTML_ENTITY_PATTERN_,function(t,n){var i=r[t];return i||(n.charAt(0)=="#"&&(n=Number("0"+n.substr(1)),isNaN(n)||(i=String.fromCharCode(n))),i||(goog.dom.safe.setInnerHtml(p,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),t+" ")),i=p.firstChild.nodeValue.slice(0,-1)),r[t]=i)})},goog.string.unescapePureXmlEntities_=function(o){return o.replace(/&([^;]+);/g,function(e,r){switch(r){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return r.charAt(0)!="#"||(r=Number("0"+r.substr(1)),isNaN(r))?e:String.fromCharCode(r)}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(o,e){return goog.string.newLineToBr(o.replace(/ /g," &#160;"),e)},goog.string.preserveSpaces=function(o){return o.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(o,e){for(var r=e.length,p=0;p<r;p++){var t=r==1?e:e.charAt(p);if(o.charAt(0)==t&&o.charAt(o.length-1)==t)return o.substring(1,o.length-1)}return o},goog.string.truncate=function(o,e,r){return r&&(o=goog.string.unescapeEntities(o)),o.length>e&&(o=o.substring(0,e-3)+"..."),r&&(o=goog.string.htmlEscape(o)),o},goog.string.truncateMiddle=function(o,e,r,p){if(r&&(o=goog.string.unescapeEntities(o)),p&&o.length>e){p>e&&(p=e);var t=o.length-p;o=o.substring(0,e-p)+"..."+o.substring(t)}else o.length>e&&(p=Math.floor(e/2),t=o.length-p,o=o.substring(0,p+e%2)+"..."+o.substring(t));return r&&(o=goog.string.htmlEscape(o)),o},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(o){o=String(o);for(var e=['"'],r=0;r<o.length;r++){var p=o.charAt(r),t=p.charCodeAt(0);e[r+1]=goog.string.specialEscapeChars_[p]||(31<t&&127>t?p:goog.string.escapeChar(p))}return e.push('"'),e.join("")},goog.string.escapeString=function(o){for(var e=[],r=0;r<o.length;r++)e[r]=goog.string.escapeChar(o.charAt(r));return e.join("")},goog.string.escapeChar=function(o){if(o in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[o];if(o in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[o]=goog.string.specialEscapeChars_[o];var e=o.charCodeAt(0);if(31<e&&127>e)var r=o;else 256>e?(r="\\x",(16>e||256<e)&&(r+="0")):(r="\\u",4096>e&&(r+="0")),r+=e.toString(16).toUpperCase();return goog.string.jsEscapeCache_[o]=r},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(o,e){return o&&e?o.split(e).length-1:0},goog.string.removeAt=function(o,e,r){var p=o;return 0<=e&&e<o.length&&0<r&&(p=o.substr(0,e)+o.substr(e+r,o.length-e-r)),p},goog.string.remove=function(o,e){return o.replace(e,"")},goog.string.removeAll=function(o,e){return e=new RegExp(goog.string.regExpEscape(e),"g"),o.replace(e,"")},goog.string.replaceAll=function(o,e,r){return e=new RegExp(goog.string.regExpEscape(e),"g"),o.replace(e,r.replace(/\$/g,"$$$$"))},goog.string.regExpEscape=function(o){return String(o).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},goog.string.repeat=String.prototype.repeat?function(o,e){return o.repeat(e)}:function(o,e){return Array(e+1).join(o)},goog.string.padNumber=function(o,e,r){return o=r!==void 0?o.toFixed(r):String(o),r=o.indexOf("."),r==-1&&(r=o.length),goog.string.repeat("0",Math.max(0,e-r))+o},goog.string.makeSafe=function(o){return o==null?"":String(o)},goog.string.buildString=function(o){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(o){for(var e=0,r=0;r<o.length;++r)e=31*e+o.charCodeAt(r)>>>0;return e},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(o){var e=Number(o);return e==0&&goog.string.isEmptyOrWhitespace(o)?NaN:e},goog.string.isLowerCamelCase=function(o){return/^[a-z]+([A-Z][a-z]*)*$/.test(o)},goog.string.isUpperCamelCase=function(o){return/^([A-Z][a-z]*)+$/.test(o)},goog.string.toCamelCase=function(o){return String(o).replace(/\-([a-z])/g,function(e,r){return r.toUpperCase()})},goog.string.toSelectorCase=function(o){return String(o).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(o,e){return e=typeof e=="string"?goog.string.regExpEscape(e):"\\s",o.replace(new RegExp("(^"+(e?"|["+e+"]+":"")+")([a-z])","g"),function(r,p,t){return p+t.toUpperCase()})},goog.string.capitalize=function(o){return String(o.charAt(0)).toUpperCase()+String(o.substr(1)).toLowerCase()},goog.string.parseInt=function(o){return isFinite(o)&&(o=String(o)),typeof o=="string"?/^\s*-?0x/i.test(o)?parseInt(o,16):parseInt(o,10):NaN},goog.string.splitLimit=function(o,e,r){o=o.split(e);for(var p=[];0<r&&o.length;)p.push(o.shift()),r--;return o.length&&p.push(o.join(e)),p},goog.string.lastComponent=function(o,e){if(e)typeof e=="string"&&(e=[e]);else return o;for(var r=-1,p=0;p<e.length;p++)if(e[p]!=""){var t=o.lastIndexOf(e[p]);t>r&&(r=t)}return r==-1?o:o.slice(r+1)},goog.string.editDistance=function(o,e){var r=[],p=[];if(o==e)return 0;if(!o.length||!e.length)return Math.max(o.length,e.length);for(var t=0;t<e.length+1;t++)r[t]=t;for(t=0;t<o.length;t++){p[0]=t+1;for(var n=0;n<e.length;n++)p[n+1]=Math.min(p[n]+1,r[n+1]+1,r[n]+Number(o[t]!=e[n]));for(n=0;n<r.length;n++)r[n]=p[n]}return p[e.length]},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 o=goog.labs.userAgent.util.getUserAgent();if(o){o=goog.labs.userAgent.util.extractVersionTuples(o);var e=goog.labs.userAgent.engine.getEngineTuple_(o);if(e)return e[0]=="Gecko"?goog.labs.userAgent.engine.getVersionForKey_(o,"Firefox"):e[1];o=o[0];var r;if(o&&(r=o[2])&&(r=/Trident\/([^\s;]+)/.exec(r)))return r[1]}return""},goog.labs.userAgent.engine.getEngineTuple_=function(o){if(!goog.labs.userAgent.engine.isEdge())return o[1];for(var e=0;e<o.length;e++){var r=o[e];if(r[0]=="Edge")return r}},goog.labs.userAgent.engine.isVersionOrHigher=function(o){return 0<=goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(),o)},goog.labs.userAgent.engine.getVersionForKey_=function(o,e){return(o=goog.array.find(o,function(r){return e==r[0]}))&&o[1]||""},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.getVersion=function(){var o=goog.labs.userAgent.util.getUserAgent(),e="";return goog.labs.userAgent.platform.isWindows()?(e=/Windows (?:NT|Phone) ([0-9.]+)/,e=(o=e.exec(o))?o[1]:"0.0"):goog.labs.userAgent.platform.isIos()?(e=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,e=(o=e.exec(o))&&o[1].replace(/_/g,".")):goog.labs.userAgent.platform.isMacintosh()?(e=/Mac OS X ([0-9_.]+)/,e=(o=e.exec(o))?o[1].replace(/_/g,"."):"10"):goog.labs.userAgent.platform.isKaiOS()?(e=/(?:KaiOS)\/(\S+)/i,e=(o=e.exec(o))&&o[1]):goog.labs.userAgent.platform.isAndroid()?(e=/Android\s+([^\);]+)(\)|;)/,e=(o=e.exec(o))&&o[1]):goog.labs.userAgent.platform.isChromeOS()&&(e=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,e=(o=e.exec(o))&&o[1]),e||""},goog.labs.userAgent.platform.isVersionOrHigher=function(o){return 0<=goog.string.compareVersions(goog.labs.userAgent.platform.getVersion(),o)},goog.reflect={},goog.reflect.object=function(o,e){return e},goog.reflect.objectProperty=function(o,e){return o},goog.reflect.sinkValue=function(o){return goog.reflect.sinkValue[" "](o),o},goog.reflect.sinkValue[" "]=goog.nullFunction,goog.reflect.canAccessProperty=function(o,e){try{return goog.reflect.sinkValue(o[e]),!0}catch{}return!1},goog.reflect.cache=function(o,e,r,p){return p=p?p(e):e,Object.prototype.hasOwnProperty.call(o,p)?o[p]:o[p]=r(e)},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 o=goog.userAgent.getNavigatorTyped();return o&&o.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.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 o=goog.userAgent.getNavigatorTyped();return!!o&&goog.string.contains(o.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.determineVersion_=function(){var o="",e=goog.userAgent.getVersionRegexResult_();return e&&(o=e?e[1]:""),goog.userAgent.IE&&(e=goog.userAgent.getDocumentMode_(),e!=null&&e>parseFloat(o))?String(e):o},goog.userAgent.getVersionRegexResult_=function(){var o=goog.userAgent.getUserAgentString();if(goog.userAgent.GECKO)return/rv:([^\);]+)(\)|;)/.exec(o);if(goog.userAgent.EDGE)return/Edge\/([\d\.]+)/.exec(o);if(goog.userAgent.IE)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(o);if(goog.userAgent.WEBKIT)return/WebKit\/(\S+)/.exec(o);if(goog.userAgent.OPERA)return/(?:Version)[ \/]?(\S+)/.exec(o)},goog.userAgent.getDocumentMode_=function(){var o=goog.global.document;return o?o.documentMode:void 0},goog.userAgent.VERSION=goog.userAgent.determineVersion_(),goog.userAgent.compare=function(o,e){return goog.string.compareVersions(o,e)},goog.userAgent.isVersionOrHigherCache_={},goog.userAgent.isVersionOrHigher=function(o){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,o,function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,o)})},goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher,goog.userAgent.isDocumentModeOrHigher=function(o){return Number(goog.userAgent.DOCUMENT_MODE)>=o},goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher,goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE){var o=goog.userAgent.getDocumentMode_();return o||parseInt(goog.userAgent.VERSION,10)||void 0}}(),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(o){return goog.string.contains(goog.crypt.base64.paddingChars_,o)},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_||typeof goog.global.btoa=="function",goog.crypt.base64.HAS_NATIVE_DECODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&!goog.userAgent.IE&&typeof goog.global.atob=="function",goog.crypt.base64.encodeByteArray=function(o,e){goog.asserts.assert(goog.isArrayLike(o),"encodeByteArray takes an array as a parameter"),e===void 0&&(e=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),e=goog.crypt.base64.byteToCharMaps_[e];for(var r=[],p=0;p<o.length;p+=3){var t=o[p],n=p+1<o.length,i=n?o[p+1]:0,s=p+2<o.length,g=s?o[p+2]:0,l=t>>2;t=(t&3)<<4|i>>4,i=(i&15)<<2|g>>6,g&=63,s||(g=64,n||(i=64)),r.push(e[l],e[t],e[i]||"",e[g]||"")}return r.join("")},goog.crypt.base64.encodeString=function(o,e){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!e?goog.global.btoa(o):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(o),e)},goog.crypt.base64.decodeString=function(o,e){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!e)return goog.global.atob(o);var r="";return goog.crypt.base64.decodeStringInternal_(o,function(p){r+=String.fromCharCode(p)}),r},goog.crypt.base64.decodeStringToByteArray=function(o,e){var r=[];return goog.crypt.base64.decodeStringInternal_(o,function(p){r.push(p)}),r},goog.crypt.base64.decodeStringToUint8Array=function(o){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var e=o.length,r=3*e/4;r%3?r=Math.floor(r):goog.crypt.base64.isPadding_(o[e-1])&&(r=goog.crypt.base64.isPadding_(o[e-2])?r-2:r-1);var p=new Uint8Array(r),t=0;return goog.crypt.base64.decodeStringInternal_(o,function(n){p[t++]=n}),p.subarray(0,t)},goog.crypt.base64.decodeStringInternal_=function(o,e){function r(g){for(;p<o.length;){var l=o.charAt(p++),u=goog.crypt.base64.charToByteMap_[l];if(u!=null)return u;if(!goog.string.isEmptyOrWhitespace(l))throw Error("Unknown base64 encoding at char: "+l)}return g}goog.crypt.base64.init_();for(var p=0;;){var t=r(-1),n=r(0),i=r(64),s=r(64);if(s===64&&t===-1)break;e(t<<2|n>>4),i!=64&&(e(n<<4&240|i>>2),s!=64&&e(i<<6&192|s))}},goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var o=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),e=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var p=o.concat(e[r].split(""));goog.crypt.base64.byteToCharMaps_[r]=p;for(var t=0;t<p.length;t++){var n=p[t],i=goog.crypt.base64.charToByteMap_[n];i===void 0?goog.crypt.base64.charToByteMap_[n]=t:goog.asserts.assert(i===t)}}}},jspb.utils={},jspb.utils.split64Low=0,jspb.utils.split64High=0,jspb.utils.splitUint64=function(o){var e=o>>>0;o=Math.floor((o-e)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=e,jspb.utils.split64High=o},jspb.utils.splitInt64=function(o){var e=0>o;o=Math.abs(o);var r=o>>>0;o=Math.floor((o-r)/jspb.BinaryConstants.TWO_TO_32),o>>>=0,e&&(o=~o>>>0,r=(~r>>>0)+1,4294967295<r&&(r=0,o++,4294967295<o&&(o=0))),jspb.utils.split64Low=r,jspb.utils.split64High=o},jspb.utils.splitZigzag64=function(o){var e=0>o;o=2*Math.abs(o),jspb.utils.splitUint64(o),o=jspb.utils.split64Low;var r=jspb.utils.split64High;e&&(o==0?r==0?r=o=4294967295:(r--,o=4294967295):o--),jspb.utils.split64Low=o,jspb.utils.split64High=r},jspb.utils.splitFloat32=function(o){var e=0>o?1:0;if(o=e?-o:o,o===0)0<1/o?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(o))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(o>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(e<<31|2139095040)>>>0;else if(o<jspb.BinaryConstants.FLOAT32_MIN)o=Math.round(o/Math.pow(2,-149)),jspb.utils.split64High=0,jspb.utils.split64Low=(e<<31|o)>>>0;else{var r=Math.floor(Math.log(o)/Math.LN2);o*=Math.pow(2,-r),o=Math.round(o*jspb.BinaryConstants.TWO_TO_23),16777216<=o&&++r,jspb.utils.split64High=0,jspb.utils.split64Low=(e<<31|r+127<<23|o&8388607)>>>0}},jspb.utils.splitFloat64=function(o){var e=0>o?1:0;if(o=e?-o:o,o===0)jspb.utils.split64High=0<1/o?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(o))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(o>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(e<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(o<jspb.BinaryConstants.FLOAT64_MIN){var r=o/Math.pow(2,-1074);o=r/jspb.BinaryConstants.TWO_TO_32,jspb.utils.split64High=(e<<31|o)>>>0,jspb.utils.split64Low=r>>>0}else{r=o;var p=0;if(2<=r)for(;2<=r&&1023>p;)p++,r/=2;else for(;1>r&&-1022<p;)r*=2,p--;r=o*Math.pow(2,-p),o=r*jspb.BinaryConstants.TWO_TO_20&1048575,r=r*jspb.BinaryConstants.TWO_TO_52>>>0,jspb.utils.split64High=(e<<31|p+1023<<20|o)>>>0,jspb.utils.split64Low=r}},jspb.utils.splitHash64=function(o){var e=o.charCodeAt(0),r=o.charCodeAt(1),p=o.charCodeAt(2),t=o.charCodeAt(3),n=o.charCodeAt(4),i=o.charCodeAt(5),s=o.charCodeAt(6);o=o.charCodeAt(7),jspb.utils.split64Low=e+(r<<8)+(p<<16)+(t<<24)>>>0,jspb.utils.split64High=n+(i<<8)+(s<<16)+(o<<24)>>>0},jspb.utils.joinUint64=function(o,e){return e*jspb.BinaryConstants.TWO_TO_32+(o>>>0)},jspb.utils.joinInt64=function(o,e){var r=e&2147483648;return r&&(o=~o+1>>>0,e=~e>>>0,o==0&&(e=e+1>>>0)),o=jspb.utils.joinUint64(o,e),r?-o:o},jspb.utils.toZigzag64=function(o,e,r){var p=e>>31;return r(o<<1^p,(e<<1|o>>>31)^p)},jspb.utils.joinZigzag64=function(o,e){return jspb.utils.fromZigzag64(o,e,jspb.utils.joinInt64)},jspb.utils.fromZigzag64=function(o,e,r){var p=-(o&1);return r((o>>>1|e<<31)^p,e>>>1^p)},jspb.utils.joinFloat32=function(o,e){e=2*(o>>31)+1;var r=o>>>23&255;return o&=8388607,r==255?o?NaN:1/0*e:r==0?e*Math.pow(2,-149)*o:e*Math.pow(2,r-150)*(o+Math.pow(2,23))},jspb.utils.joinFloat64=function(o,e){var r=2*(e>>31)+1,p=e>>>20&2047;return o=jspb.BinaryConstants.TWO_TO_32*(e&1048575)+o,p==2047?o?NaN:1/0*r:p==0?r*Math.pow(2,-1074)*o:r*Math.pow(2,p-1075)*(o+jspb.BinaryConstants.TWO_TO_52)},jspb.utils.joinHash64=function(o,e){return String.fromCharCode(o>>>0&255,o>>>8&255,o>>>16&255,o>>>24&255,e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255)},jspb.utils.DIGITS="0123456789abcdef".split(""),jspb.utils.ZERO_CHAR_CODE_=48,jspb.utils.A_CHAR_CODE_=97,jspb.utils.joinUnsignedDecimalString=function(o,e){function r(t,n){return t=t?String(t):"",n?"0000000".slice(t.length)+t:t}if(2097151>=e)return""+jspb.utils.joinUint64(o,e);var p=(o>>>24|e<<8)>>>0&16777215;return e=e>>16&65535,o=(o&16777215)+6777216*p+6710656*e,p+=8147497*e,e*=2,1e7<=o&&(p+=Math.floor(o/1e7),o%=1e7),1e7<=p&&(e+=Math.floor(p/1e7),p%=1e7),r(e,0)+r(p,e)+r(o,1)},jspb.utils.joinSignedDecimalString=function(o,e){var r=e&2147483648;return r&&(o=~o+1>>>0,e=~e+(o==0?1:0)>>>0),o=jspb.utils.joinUnsignedDecimalString(o,e),r?"-"+o:o},jspb.utils.hash64ToDecimalString=function(o,e){jspb.utils.splitHash64(o),o=jspb.utils.split64Low;var r=jspb.utils.split64High;return e?jspb.utils.joinSignedDecimalString(o,r):jspb.utils.joinUnsignedDecimalString(o,r)},jspb.utils.hash64ArrayToDecimalStrings=function(o,e){for(var r=Array(o.length),p=0;p<o.length;p++)r[p]=jspb.utils.hash64ToDecimalString(o[p],e);return r},jspb.utils.decimalStringToHash64=function(o){function e(i,s){for(var g=0;8>g&&(i!==1||0<s);g++)s=i*t[g]+s,t[g]=s&255,s>>>=8}function r(){for(var i=0;8>i;i++)t[i]=~t[i]&255}jspb.asserts.assert(0<o.length);var p=!1;o[0]==="-"&&(p=!0,o=o.slice(1));for(var t=[0,0,0,0,0,0,0,0],n=0;n<o.length;n++)e(10,o.charCodeAt(n)-jspb.utils.ZERO_CHAR_CODE_);return p&&(r(),e(1,1)),goog.crypt.byteArrayToString(t)},jspb.utils.splitDecimalString=function(o){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(o))},jspb.utils.toHexDigit_=function(o){return String.fromCharCode(10>o?jspb.utils.ZERO_CHAR_CODE_+o:jspb.utils.A_CHAR_CODE_-10+o)},jspb.utils.fromHexCharCode_=function(o){return o>=jspb.utils.A_CHAR_CODE_?o-jspb.utils.A_CHAR_CODE_+10:o-jspb.utils.ZERO_CHAR_CODE_},jspb.utils.hash64ToHexString=function(o){var e=Array(18);e[0]="0",e[1]="x";for(var r=0;8>r;r++){var p=o.charCodeAt(7-r);e[2*r+2]=jspb.utils.toHexDigit_(p>>4),e[2*r+3]=jspb.utils.toHexDigit_(p&15)}return e.join("")},jspb.utils.hexStringToHash64=function(o){o=o.toLowerCase(),jspb.asserts.assert(o.length==18),jspb.asserts.assert(o[0]=="0"),jspb.asserts.assert(o[1]=="x");for(var e="",r=0;8>r;r++){var p=jspb.utils.fromHexCharCode_(o.charCodeAt(2*r+2)),t=jspb.utils.fromHexCharCode_(o.charCodeAt(2*r+3));e=String.fromCharCode(16*p+t)+e}return e},jspb.utils.hash64ToNumber=function(o,e){jspb.utils.splitHash64(o),o=jspb.utils.split64Low;var r=jspb.utils.split64High;return e?jspb.utils.joinInt64(o,r):jspb.utils.joinUint64(o,r)},jspb.utils.numberToHash64=function(o){return jspb.utils.splitInt64(o),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.utils.countVarints=function(o,e,r){for(var p=0,t=e;t<r;t++)p+=o[t]>>7;return r-e-p},jspb.utils.countVarintFields=function(o,e,r,p){var t=0;if(p=8*p+jspb.BinaryConstants.WireType.VARINT,128>p)for(;e<r&&o[e++]==p;)for(t++;;){var n=o[e++];if(!(n&128))break}else for(;e<r;){for(n=p;128<n;){if(o[e]!=(n&127|128))return t;e++,n>>=7}if(o[e++]!=n)break;for(t++;n=o[e++],(n&128)!=0;);}return t},jspb.utils.countFixedFields_=function(o,e,r,p,t){var n=0;if(128>p)for(;e<r&&o[e++]==p;)n++,e+=t;else for(;e<r;){for(var i=p;128<i;){if(o[e++]!=(i&127|128))return n;i>>=7}if(o[e++]!=i)break;n++,e+=t}return n},jspb.utils.countFixed32Fields=function(o,e,r,p){return jspb.utils.countFixedFields_(o,e,r,8*p+jspb.BinaryConstants.WireType.FIXED32,4)},jspb.utils.countFixed64Fields=function(o,e,r,p){return jspb.utils.countFixedFields_(o,e,r,8*p+jspb.BinaryConstants.WireType.FIXED64,8)},jspb.utils.countDelimitedFields=function(o,e,r,p){var t=0;for(p=8*p+jspb.BinaryConstants.WireType.DELIMITED;e<r;){for(var n=p;128<n;){if(o[e++]!=(n&127|128))return t;n>>=7}if(o[e++]!=n)break;t++;for(var i=0,s=1;n=o[e++],i+=(n&127)*s,s*=128,(n&128)!=0;);e+=i}return t},jspb.utils.debugBytesToTextFormat=function(o){var e='"';if(o){o=jspb.utils.byteSourceToUint8Array(o);for(var r=0;r<o.length;r++)e+="\\x",16>o[r]&&(e+="0"),e+=o[r].toString(16)}return e+'"'},jspb.utils.debugScalarToTextFormat=function(o){return typeof o=="string"?goog.string.quote(o):o.toString()},jspb.utils.stringToByteArray=function(o){for(var e=new Uint8Array(o.length),r=0;r<o.length;r++){var p=o.charCodeAt(r);if(255<p)throw Error("Conversion error: string contains codepoint outside of byte range");e[r]=p}return e},jspb.utils.byteSourceToUint8Array=function(o){return o.constructor===Uint8Array?o:o.constructor===ArrayBuffer||o.constructor===Array?new Uint8Array(o):o.constructor===String?goog.crypt.base64.decodeStringToUint8Array(o):o instanceof Uint8Array?new Uint8Array(o.buffer,o.byteOffset,o.byteLength):(jspb.asserts.fail("Type not convertible to Uint8Array."),new Uint8Array(0))},jspb.BinaryDecoder=function(o,e,r){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1,o&&this.setBlock(o,e,r)},jspb.BinaryDecoder.instanceCache_=[],jspb.BinaryDecoder.alloc=function(o,e,r){if(jspb.BinaryDecoder.instanceCache_.length){var p=jspb.BinaryDecoder.instanceCache_.pop();return o&&p.setBlock(o,e,r),p}return new jspb.BinaryDecoder(o,e,r)},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(o,e,r){this.bytes_=jspb.utils.byteSourceToUint8Array(o),this.start_=e!==void 0?e:0,this.end_=r!==void 0?this.start_+r:this.bytes_.length,this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getEnd=function(){return this.end_},jspb.BinaryDecoder.prototype.setEnd=function(o){this.end_=o},jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_},jspb.BinaryDecoder.prototype.setCursor=function(o){this.cursor_=o},jspb.BinaryDecoder.prototype.advance=function(o){this.cursor_+=o,jspb.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(o){for(var e=128,r=0,p=0,t=0;4>t&&128<=e;t++)e=this.bytes_[this.cursor_++],r|=(e&127)<<7*t;if(128<=e&&(e=this.bytes_[this.cursor_++],r|=(e&127)<<28,p|=(e&127)>>4),128<=e)for(t=0;5>t&&128<=e;t++)e=this.bytes_[this.cursor_++],p|=(e&127)<<7*t+3;if(128>e)return o(r>>>0,p>>>0);jspb.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0},jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(o){return this.readSplitVarint64(function(e,r){return jspb.utils.fromZigzag64(e,r,o)})},jspb.BinaryDecoder.prototype.readSplitFixed64=function(o){var e=this.bytes_,r=this.cursor_;this.cursor_+=8;for(var p=0,t=0,n=r+7;n>=r;n--)p=p<<8|e[n],t=t<<8|e[n+4];return o(p,t)},jspb.BinaryDecoder.prototype.skipVarint=function(){for(;this.bytes_[this.cursor_]&128;)this.cursor_++;this.cursor_++},jspb.BinaryDecoder.prototype.unskipVarint=function(o){for(;128<o;)this.cursor_--,o>>>=7;this.cursor_--},jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var o=this.bytes_,e=o[this.cursor_+0],r=e&127;return 128>e?(this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),r):(e=o[this.cursor_+1],r|=(e&127)<<7,128>e?(this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),r):(e=o[this.cursor_+2],r|=(e&127)<<14,128>e?(this.cursor_+=3,jspb.asserts.assert(this.cursor_<=this.end_),r):(e=o[this.cursor_+3],r|=(e&127)<<21,128>e?(this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),r):(e=o[this.cursor_+4],r|=(e&15)<<28,128>e?(this.cursor_+=5,jspb.asserts.assert(this.cursor_<=this.end_),r>>>0):(this.cursor_+=5,128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&jspb.asserts.assert(!1),jspb.asserts.assert(this.cursor_<=this.end_),r)))))},jspb.BinaryDecoder.prototype.readSignedVarint32=function(){return~~this.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 o=this.readUnsignedVarint32();return o>>>1^-(o&1)},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 o=this.bytes_[this.cursor_+0];return this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),o},jspb.BinaryDecoder.prototype.readUint16=function(){var o=this.bytes_[this.cursor_+0],e=this.bytes_[this.cursor_+1];return this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),o<<0|e<<8},jspb.BinaryDecoder.prototype.readUint32=function(){var o=this.bytes_[this.cursor_+0],e=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],p=this.bytes_[this.cursor_+3];return this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),(o<<0|e<<8|r<<16|p<<24)>>>0},jspb.BinaryDecoder.prototype.readUint64=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinUint64(o,e)},jspb.BinaryDecoder.prototype.readUint64String=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinUnsignedDecimalString(o,e)},jspb.BinaryDecoder.prototype.readInt8=function(){var o=this.bytes_[this.cursor_+0];return this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),o<<24>>24},jspb.BinaryDecoder.prototype.readInt16=function(){var o=this.bytes_[this.cursor_+0],e=this.bytes_[this.cursor_+1];return this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),(o<<0|e<<8)<<16>>16},jspb.BinaryDecoder.prototype.readInt32=function(){var o=this.bytes_[this.cursor_+0],e=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],p=this.bytes_[this.cursor_+3];return this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),o<<0|e<<8|r<<16|p<<24},jspb.BinaryDecoder.prototype.readInt64=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinInt64(o,e)},jspb.BinaryDecoder.prototype.readInt64String=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinSignedDecimalString(o,e)},jspb.BinaryDecoder.prototype.readFloat=function(){var o=this.readUint32();return jspb.utils.joinFloat32(o,0)},jspb.BinaryDecoder.prototype.readDouble=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinFloat64(o,e)},jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]},jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()},jspb.BinaryDecoder.prototype.readString=function(o){var e=this.bytes_,r=this.cursor_;o=r+o;for(var p=[],t="";r<o;){var n=e[r++];if(128>n)p.push(n);else{if(192>n)continue;if(224>n){var i=e[r++];p.push((n&31)<<6|i&63)}else if(240>n){i=e[r++];var s=e[r++];p.push((n&15)<<12|(i&63)<<6|s&63)}else if(248>n){i=e[r++],s=e[r++];var g=e[r++];n=(n&7)<<18|(i&63)<<12|(s&63)<<6|g&63,n-=65536,p.push((n>>10&1023)+55296,(n&1023)+56320)}}8192<=p.length&&(t+=String.fromCharCode.apply(null,p),p.length=0)}return t+=goog.crypt.byteArrayToString(p),this.cursor_=r,t},jspb.BinaryDecoder.prototype.readStringWithLength=function(){var o=this.readUnsignedVarint32();return this.readString(o)},jspb.BinaryDecoder.prototype.readBytes=function(o){if(0>o||this.cursor_+o>this.bytes_.length)return this.error_=!0,jspb.asserts.fail("Invalid byte length!"),new Uint8Array(0);var e=this.bytes_.subarray(this.cursor_,this.cursor_+o);return this.cursor_+=o,jspb.asserts.assert(this.cursor_<=this.end_),e},jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readFixedHash64=function(){var o=this.bytes_,e=this.cursor_,r=o[e+0],p=o[e+1],t=o[e+2],n=o[e+3],i=o[e+4],s=o[e+5],g=o[e+6];return o=o[e+7],this.cursor_+=8,String.fromCharCode(r,p,t,n,i,s,g,o)},jspb.BinaryReader=function(o,e,r){this.decoder_=jspb.BinaryDecoder.alloc(o,e,r),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(o,e,r){if(jspb.BinaryReader.instanceCache_.length){var p=jspb.BinaryReader.instanceCache_.pop();return o&&p.decoder_.setBlock(o,e,r),p}return new jspb.BinaryReader(o,e,r)},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_},goog.exportProperty(jspb.BinaryReader.prototype,"getFieldNumber",jspb.BinaryReader.prototype.getFieldNumber),jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_},jspb.BinaryReader.prototype.isDelimited=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED},goog.exportProperty(jspb.BinaryReader.prototype,"isDelimited",jspb.BinaryReader.prototype.isDelimited),jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP},goog.exportProperty(jspb.BinaryReader.prototype,"isEndGroup",jspb.BinaryReader.prototype.isEndGroup),jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()},jspb.BinaryReader.prototype.setBlock=function(o,e,r){this.decoder_.setBlock(o,e,r),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(o){this.decoder_.advance(o)},jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return jspb.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var o=this.decoder_.readUnsignedVarint32(),e=o>>>3;return o&=7,o!=jspb.BinaryConstants.WireType.VARINT&&o!=jspb.BinaryConstants.WireType.FIXED32&&o!=jspb.BinaryConstants.WireType.FIXED64&&o!=jspb.BinaryConstants.WireType.DELIMITED&&o!=jspb.BinaryConstants.WireType.START_GROUP&&o!=jspb.BinaryConstants.WireType.END_GROUP?(jspb.asserts.fail("Invalid wire type: %s (at position %s)",o,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=e,this.nextWireType_=o,!0)},goog.exportProperty(jspb.BinaryReader.prototype,"nextField",jspb.BinaryReader.prototype.nextField),jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)},jspb.BinaryReader.prototype.skipMatchingFields=function(){var o=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==o;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()},jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(jspb.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()},jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)jspb.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var o=this.decoder_.readUnsignedVarint32();this.decoder_.advance(o)}},jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(jspb.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)},jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(jspb.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)},jspb.BinaryReader.prototype.skipGroup=function(){var o=this.nextField_;do{if(!this.nextField()){jspb.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=o&&(jspb.asserts.fail("Unmatched end-group tag"),this.error_=!0);break}this.skipField()}while(1)},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:jspb.asserts.fail("Invalid wire encoding for field.")}},jspb.BinaryReader.prototype.registerReadCallback=function(o,e){this.readCallbacks_===null&&(this.readCallbacks_={}),jspb.asserts.assert(!this.readCallbacks_[o]),this.readCallbacks_[o]=e},jspb.BinaryReader.prototype.runReadCallback=function(o){return jspb.asserts.assert(this.readCallbacks_!==null),o=this.readCallbacks_[o],jspb.asserts.assert(o),o(this)},jspb.BinaryReader.prototype.readAny=function(o){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(o);var e=jspb.BinaryConstants.FieldType;switch(o){case e.DOUBLE:return this.readDouble();case e.FLOAT:return this.readFloat();case e.INT64:return this.readInt64();case e.UINT64:return this.readUint64();case e.INT32:return this.readInt32();case e.FIXED64:return this.readFixed64();case e.FIXED32:return this.readFixed32();case e.BOOL:return this.readBool();case e.STRING:return this.readString();case e.GROUP:jspb.asserts.fail("Group field type not supported in readAny()");case e.MESSAGE:jspb.asserts.fail("Message field type not supported in readAny()");case e.BYTES:return this.readBytes();case e.UINT32:return this.readUint32();case e.ENUM:return this.readEnum();case e.SFIXED32:return this.readSfixed32();case e.SFIXED64:return this.readSfixed64();case e.SINT32:return this.readSint32();case e.SINT64:return this.readSint64();case e.FHASH64:return this.readFixedHash64();case e.VHASH64:return this.readVarintHash64();default:jspb.asserts.fail("Invalid field type in readAny()")}return 0},jspb.BinaryReader.prototype.readMessage=function(o,e){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var r=this.decoder_.getEnd(),p=this.decoder_.readUnsignedVarint32();p=this.decoder_.getCursor()+p,this.decoder_.setEnd(p),e(o,this),this.decoder_.setCursor(p),this.decoder_.setEnd(r)},goog.exportProperty(jspb.BinaryReader.prototype,"readMessage",jspb.BinaryReader.prototype.readMessage),jspb.BinaryReader.prototype.readGroup=function(o,e,r){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),jspb.asserts.assert(this.nextField_==o),r(e,this),this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(jspb.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)},goog.exportProperty(jspb.BinaryReader.prototype,"readGroup",jspb.BinaryReader.prototype.readGroup),jspb.BinaryReader.prototype.getFieldDecoder=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32(),e=this.decoder_.getCursor(),r=e+o;return o=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),e,o),this.decoder_.setCursor(r),o},jspb.BinaryReader.prototype.readInt32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readInt32",jspb.BinaryReader.prototype.readInt32),jspb.BinaryReader.prototype.readInt32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()},jspb.BinaryReader.prototype.readInt64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readInt64",jspb.BinaryReader.prototype.readInt64),jspb.BinaryReader.prototype.readInt64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()},jspb.BinaryReader.prototype.readUint32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readUint32",jspb.BinaryReader.prototype.readUint32),jspb.BinaryReader.prototype.readUint32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()},jspb.BinaryReader.prototype.readUint64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readUint64",jspb.BinaryReader.prototype.readUint64),jspb.BinaryReader.prototype.readUint64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()},jspb.BinaryReader.prototype.readSint32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readSint32",jspb.BinaryReader.prototype.readSint32),jspb.BinaryReader.prototype.readSint64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readSint64",jspb.BinaryReader.prototype.readSint64),jspb.BinaryReader.prototype.readSint64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()},jspb.BinaryReader.prototype.readFixed32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readFixed32",jspb.BinaryReader.prototype.readFixed32),jspb.BinaryReader.prototype.readFixed64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readFixed64",jspb.BinaryReader.prototype.readFixed64),jspb.BinaryReader.prototype.readFixed64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()},jspb.BinaryReader.prototype.readSfixed32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()},goog.exportProperty(jspb.BinaryReader.prototype,"readSfixed32",jspb.BinaryReader.prototype.readSfixed32),jspb.BinaryReader.prototype.readSfixed32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()},jspb.BinaryReader.prototype.readSfixed64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()},goog.exportProperty(jspb.BinaryReader.prototype,"readSfixed64",jspb.BinaryReader.prototype.readSfixed64),jspb.BinaryReader.prototype.readSfixed64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()},jspb.BinaryReader.prototype.readFloat=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()},goog.exportProperty(jspb.BinaryReader.prototype,"readFloat",jspb.BinaryReader.prototype.readFloat),jspb.BinaryReader.prototype.readDouble=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()},goog.exportProperty(jspb.BinaryReader.prototype,"readDouble",jspb.BinaryReader.prototype.readDouble),jspb.BinaryReader.prototype.readBool=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readBool",jspb.BinaryReader.prototype.readBool),jspb.BinaryReader.prototype.readEnum=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readEnum",jspb.BinaryReader.prototype.readEnum),jspb.BinaryReader.prototype.readString=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(o)},goog.exportProperty(jspb.BinaryReader.prototype,"readString",jspb.BinaryReader.prototype.readString),jspb.BinaryReader.prototype.readBytes=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(o)},goog.exportProperty(jspb.BinaryReader.prototype,"readBytes",jspb.BinaryReader.prototype.readBytes),jspb.BinaryReader.prototype.readVarintHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()},jspb.BinaryReader.prototype.readSintHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()},jspb.BinaryReader.prototype.readSplitVarint64=function(o){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(o)},jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(o){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(function(e,r){return jspb.utils.fromZigzag64(e,r,o)})},jspb.BinaryReader.prototype.readFixedHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()},jspb.BinaryReader.prototype.readSplitFixed64=function(o){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(o)},jspb.BinaryReader.prototype.readPackedField_=function(o){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();e=this.decoder_.getCursor()+e;for(var r=[];this.decoder_.getCursor()<e;)r.push(o.call(this.decoder_));return r},jspb.BinaryReader.prototype.readPackedInt32=function(){return this.readPackedField_(this.decoder_.readSignedVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedInt32",jspb.BinaryReader.prototype.readPackedInt32),jspb.BinaryReader.prototype.readPackedInt32String=function(){return this.readPackedField_(this.decoder_.readSignedVarint32String)},jspb.BinaryReader.prototype.readPackedInt64=function(){return this.readPackedField_(this.decoder_.readSignedVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedInt64",jspb.BinaryReader.prototype.readPackedInt64),jspb.BinaryReader.prototype.readPackedInt64String=function(){return this.readPackedField_(this.decoder_.readSignedVarint64String)},jspb.BinaryReader.prototype.readPackedUint32=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedUint32",jspb.BinaryReader.prototype.readPackedUint32),jspb.BinaryReader.prototype.readPackedUint32String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32String)},jspb.BinaryReader.prototype.readPackedUint64=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedUint64",jspb.BinaryReader.prototype.readPackedUint64),jspb.BinaryReader.prototype.readPackedUint64String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64String)},jspb.BinaryReader.prototype.readPackedSint32=function(){return this.readPackedField_(this.decoder_.readZigzagVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSint32",jspb.BinaryReader.prototype.readPackedSint32),jspb.BinaryReader.prototype.readPackedSint64=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSint64",jspb.BinaryReader.prototype.readPackedSint64),jspb.BinaryReader.prototype.readPackedSint64String=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64String)},jspb.BinaryReader.prototype.readPackedFixed32=function(){return this.readPackedField_(this.decoder_.readUint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFixed32",jspb.BinaryReader.prototype.readPackedFixed32),jspb.BinaryReader.prototype.readPackedFixed64=function(){return this.readPackedField_(this.decoder_.readUint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFixed64",jspb.BinaryReader.prototype.readPackedFixed64),jspb.BinaryReader.prototype.readPackedFixed64String=function(){return this.readPackedField_(this.decoder_.readUint64String)},jspb.BinaryReader.prototype.readPackedSfixed32=function(){return this.readPackedField_(this.decoder_.readInt32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSfixed32",jspb.BinaryReader.prototype.readPackedSfixed32),jspb.BinaryReader.prototype.readPackedSfixed64=function(){return this.readPackedField_(this.decoder_.readInt64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSfixed64",jspb.BinaryReader.prototype.readPackedSfixed64),jspb.BinaryReader.prototype.readPackedSfixed64String=function(){return this.readPackedField_(this.decoder_.readInt64String)},jspb.BinaryReader.prototype.readPackedFloat=function(){return this.readPackedField_(this.decoder_.readFloat)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFloat",jspb.BinaryReader.prototype.readPackedFloat),jspb.BinaryReader.prototype.readPackedDouble=function(){return this.readPackedField_(this.decoder_.readDouble)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedDouble",jspb.BinaryReader.prototype.readPackedDouble),jspb.BinaryReader.prototype.readPackedBool=function(){return this.readPackedField_(this.decoder_.readBool)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedBool",jspb.BinaryReader.prototype.readPackedBool),jspb.BinaryReader.prototype.readPackedEnum=function(){return this.readPackedField_(this.decoder_.readEnum)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedEnum",jspb.BinaryReader.prototype.readPackedEnum),jspb.BinaryReader.prototype.readPackedVarintHash64=function(){return this.readPackedField_(this.decoder_.readVarintHash64)},jspb.BinaryReader.prototype.readPackedFixedHash64=function(){return this.readPackedField_(this.decoder_.readFixedHash64)},jspb.BinaryEncoder=function(){this.buffer_=[]},jspb.BinaryEncoder.prototype.length=function(){return this.buffer_.length},jspb.BinaryEncoder.prototype.end=function(){var o=this.buffer_;return this.buffer_=[],o},jspb.BinaryEncoder.prototype.writeSplitVarint64=function(o,e){for(jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32);0<e||127<o;)this.buffer_.push(o&127|128),o=(o>>>7|e<<25)>>>0,e>>>=7;this.buffer_.push(o)},jspb.BinaryEncoder.prototype.writeSplitFixed64=function(o,e){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.writeUint32(o),this.writeUint32(e)},jspb.BinaryEncoder.prototype.writeUnsignedVarint32=function(o){for(jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32);127<o;)this.buffer_.push(o&127|128),o>>>=7;this.buffer_.push(o)},jspb.BinaryEncoder.prototype.writeSignedVarint32=function(o){if(jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),0<=o)this.writeUnsignedVarint32(o);else{for(var e=0;9>e;e++)this.buffer_.push(o&127|128),o>>=7;this.buffer_.push(1)}},jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitInt64(o),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeSignedVarint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(o),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint32=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeUnsignedVarint32((o<<1^o>>31)>>>0)},jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitZigzag64(o),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint64String=function(o){this.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(o))},jspb.BinaryEncoder.prototype.writeZigzagVarintHash64=function(o){var e=this;jspb.utils.splitHash64(o),jspb.utils.toZigzag64(jspb.utils.split64Low,jspb.utils.split64High,function(r,p){e.writeSplitVarint64(r>>>0,p>>>0)})},jspb.BinaryEncoder.prototype.writeUint8=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&256>o),this.buffer_.push(o>>>0&255)},jspb.BinaryEncoder.prototype.writeUint16=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&65536>o),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255)},jspb.BinaryEncoder.prototype.writeUint32=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255),this.buffer_.push(o>>>16&255),this.buffer_.push(o>>>24&255)},jspb.BinaryEncoder.prototype.writeUint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitUint64(o),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt8=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(-128<=o&&128>o),this.buffer_.push(o>>>0&255)},jspb.BinaryEncoder.prototype.writeInt16=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(-32768<=o&&32768>o),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255)},jspb.BinaryEncoder.prototype.writeInt32=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255),this.buffer_.push(o>>>16&255),this.buffer_.push(o>>>24&255)},jspb.BinaryEncoder.prototype.writeInt64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(o),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt64String=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(+o>=-jspb.BinaryConstants.TWO_TO_63&&+o<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(o)),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFloat=function(o){jspb.asserts.assert(o===1/0||o===-1/0||isNaN(o)||o>=-jspb.BinaryConstants.FLOAT32_MAX&&o<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(o),this.writeUint32(jspb.utils.split64Low)},jspb.BinaryEncoder.prototype.writeDouble=function(o){jspb.asserts.assert(o===1/0||o===-1/0||isNaN(o)||o>=-jspb.BinaryConstants.FLOAT64_MAX&&o<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(o),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeBool=function(o){jspb.asserts.assert(typeof o=="boolean"||typeof o=="number"),this.buffer_.push(o?1:0)},jspb.BinaryEncoder.prototype.writeEnum=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32(o)},jspb.BinaryEncoder.prototype.writeBytes=function(o){this.buffer_.push.apply(this.buffer_,o)},jspb.BinaryEncoder.prototype.writeVarintHash64=function(o){jspb.utils.splitHash64(o),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFixedHash64=function(o){jspb.utils.splitHash64(o),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeString=function(o){var e=this.buffer_.length;jspb.asserts.assertString(o);for(var r=0;r<o.length;r++){var p=o.charCodeAt(r);if(128>p)this.buffer_.push(p);else if(2048>p)this.buffer_.push(p>>6|192),this.buffer_.push(p&63|128);else if(65536>p)if(55296<=p&&56319>=p&&r+1<o.length){var t=o.charCodeAt(r+1);56320<=t&&57343>=t&&(p=1024*(p-55296)+t-56320+65536,this.buffer_.push(p>>18|240),this.buffer_.push(p>>12&63|128),this.buffer_.push(p>>6&63|128),this.buffer_.push(p&63|128),r++)}else this.buffer_.push(p>>12|224),this.buffer_.push(p>>6&63|128),this.buffer_.push(p&63|128)}return this.buffer_.length-e},jspb.arith={},jspb.arith.UInt64=function(o,e){this.lo=o,this.hi=e},jspb.arith.UInt64.prototype.cmp=function(o){return this.hi<o.hi||this.hi==o.hi&&this.lo<o.lo?-1:this.hi==o.hi&&this.lo==o.lo?0:1},jspb.arith.UInt64.prototype.rightShift=function(){return new jspb.arith.UInt64((this.lo>>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},jspb.arith.UInt64.prototype.leftShift=function(){return new jspb.arith.UInt64(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},jspb.arith.UInt64.prototype.msb=function(){return!!(this.hi&2147483648)},jspb.arith.UInt64.prototype.lsb=function(){return!!(this.lo&1)},jspb.arith.UInt64.prototype.zero=function(){return this.lo==0&&this.hi==0},jspb.arith.UInt64.prototype.add=function(o){return new jspb.arith.UInt64((this.lo+o.lo&4294967295)>>>0>>>0,((this.hi+o.hi&4294967295)>>>0)+(4294967296<=this.lo+o.lo?1:0)>>>0)},jspb.arith.UInt64.prototype.sub=function(o){return new jspb.arith.UInt64((this.lo-o.lo&4294967295)>>>0>>>0,((this.hi-o.hi&4294967295)>>>0)-(0>this.lo-o.lo?1:0)>>>0)},jspb.arith.UInt64.mul32x32=function(o,e){var r=o&65535;o>>>=16;var p=e&65535,t=e>>>16;for(e=r*p+65536*(r*t&65535)+65536*(o*p&65535),r=o*t+(r*t>>>16)+(o*p>>>16);4294967296<=e;)e-=4294967296,r+=1;return new jspb.arith.UInt64(e>>>0,r>>>0)},jspb.arith.UInt64.prototype.mul=function(o){var e=jspb.arith.UInt64.mul32x32(this.lo,o);return o=jspb.arith.UInt64.mul32x32(this.hi,o),o.hi=o.lo,o.lo=0,e.add(o)},jspb.arith.UInt64.prototype.div=function(o){if(o==0)return[];var e=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(this.lo,this.hi);o=new jspb.arith.UInt64(o,0);for(var p=new jspb.arith.UInt64(1,0);!o.msb();)o=o.leftShift(),p=p.leftShift();for(;!p.zero();)0>=o.cmp(r)&&(e=e.add(p),r=r.sub(o)),o=o.rightShift(),p=p.rightShift();return[e,r]},jspb.arith.UInt64.prototype.toString=function(){for(var o="",e=this;!e.zero();){e=e.div(10);var r=e[0];o=e[1].lo+o,e=r}return o==""&&(o="0"),o},jspb.arith.UInt64.fromString=function(o){for(var e=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(0,0),p=0;p<o.length;p++){if("0">o[p]||"9"<o[p])return null;var t=parseInt(o[p],10);r.lo=t,e=e.mul(10).add(r)}return e},jspb.arith.UInt64.prototype.clone=function(){return new jspb.arith.UInt64(this.lo,this.hi)},jspb.arith.Int64=function(o,e){this.lo=o,this.hi=e},jspb.arith.Int64.prototype.add=function(o){return new jspb.arith.Int64((this.lo+o.lo&4294967295)>>>0>>>0,((this.hi+o.hi&4294967295)>>>0)+(4294967296<=this.lo+o.lo?1:0)>>>0)},jspb.arith.Int64.prototype.sub=function(o){return new jspb.arith.Int64((this.lo-o.lo&4294967295)>>>0>>>0,((this.hi-o.hi&4294967295)>>>0)-(0>this.lo-o.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 o=(this.hi&2147483648)!=0,e=new jspb.arith.UInt64(this.lo,this.hi);return o&&(e=new jspb.arith.UInt64(0,0).sub(e)),(o?"-":"")+e.toString()},jspb.arith.Int64.fromString=function(o){var e=0<o.length&&o[0]=="-";return e&&(o=o.substring(1)),o=jspb.arith.UInt64.fromString(o),o===null?null:(e&&(o=new jspb.arith.UInt64(0,0).sub(o)),new jspb.arith.Int64(o.lo,o.hi))},jspb.BinaryWriter=function(){this.blocks_=[],this.totalLength_=0,this.encoder_=new jspb.BinaryEncoder,this.bookmarks_=[]},jspb.BinaryWriter.prototype.appendUint8Array_=function(o){var e=this.encoder_.end();this.blocks_.push(e),this.blocks_.push(o),this.totalLength_+=e.length+o.length},jspb.BinaryWriter.prototype.beginDelimited_=function(o){return this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),o=this.encoder_.end(),this.blocks_.push(o),this.totalLength_+=o.length,o.push(this.totalLength_),o},jspb.BinaryWriter.prototype.endDelimited_=function(o){var e=o.pop();for(e=this.totalLength_+this.encoder_.length()-e,jspb.asserts.assert(0<=e);127<e;)o.push(e&127|128),e>>>=7,this.totalLength_++;o.push(e),this.totalLength_++},jspb.BinaryWriter.prototype.writeSerializedMessage=function(o,e,r){this.appendUint8Array_(o.subarray(e,r))},jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(o,e,r){o!=null&&e!=null&&r!=null&&this.writeSerializedMessage(o,e,r)},jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]},jspb.BinaryWriter.prototype.getResultBuffer=function(){jspb.asserts.assert(this.bookmarks_.length==0);for(var o=new Uint8Array(this.totalLength_+this.encoder_.length()),e=this.blocks_,r=e.length,p=0,t=0;t<r;t++){var n=e[t];o.set(n,p),p+=n.length}return e=this.encoder_.end(),o.set(e,p),p+=e.length,jspb.asserts.assert(p==o.length),this.blocks_=[o],o},goog.exportProperty(jspb.BinaryWriter.prototype,"getResultBuffer",jspb.BinaryWriter.prototype.getResultBuffer),jspb.BinaryWriter.prototype.getResultBase64String=function(o){return goog.crypt.base64.encodeByteArray(this.getResultBuffer(),o)},jspb.BinaryWriter.prototype.beginSubMessage=function(o){this.bookmarks_.push(this.beginDelimited_(o))},jspb.BinaryWriter.prototype.endSubMessage=function(){jspb.asserts.assert(0<=this.bookmarks_.length),this.endDelimited_(this.bookmarks_.pop())},jspb.BinaryWriter.prototype.writeFieldHeader_=function(o,e){jspb.asserts.assert(1<=o&&o==Math.floor(o)),this.encoder_.writeUnsignedVarint32(8*o+e)},jspb.BinaryWriter.prototype.writeAny=function(o,e,r){var p=jspb.BinaryConstants.FieldType;switch(o){case p.DOUBLE:this.writeDouble(e,r);break;case p.FLOAT:this.writeFloat(e,r);break;case p.INT64:this.writeInt64(e,r);break;case p.UINT64:this.writeUint64(e,r);break;case p.INT32:this.writeInt32(e,r);break;case p.FIXED64:this.writeFixed64(e,r);break;case p.FIXED32:this.writeFixed32(e,r);break;case p.BOOL:this.writeBool(e,r);break;case p.STRING:this.writeString(e,r);break;case p.GROUP:jspb.asserts.fail("Group field type not supported in writeAny()");break;case p.MESSAGE:jspb.asserts.fail("Message field type not supported in writeAny()");break;case p.BYTES:this.writeBytes(e,r);break;case p.UINT32:this.writeUint32(e,r);break;case p.ENUM:this.writeEnum(e,r);break;case p.SFIXED32:this.writeSfixed32(e,r);break;case p.SFIXED64:this.writeSfixed64(e,r);break;case p.SINT32:this.writeSint32(e,r);break;case p.SINT64:this.writeSint64(e,r);break;case p.FHASH64:this.writeFixedHash64(e,r);break;case p.VHASH64:this.writeVarintHash64(e,r);break;default:jspb.asserts.fail("Invalid field type in writeAny()")}},jspb.BinaryWriter.prototype.writeUnsignedVarint32_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(e))},jspb.BinaryWriter.prototype.writeSignedVarint32_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(e))},jspb.BinaryWriter.prototype.writeUnsignedVarint64_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint64(e))},jspb.BinaryWriter.prototype.writeSignedVarint64_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint64(e))},jspb.BinaryWriter.prototype.writeZigzagVarint32_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(e))},jspb.BinaryWriter.prototype.writeZigzagVarint64_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64(e))},jspb.BinaryWriter.prototype.writeZigzagVarint64String_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64String(e))},jspb.BinaryWriter.prototype.writeZigzagVarintHash64_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarintHash64(e))},jspb.BinaryWriter.prototype.writeInt32=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeInt32",jspb.BinaryWriter.prototype.writeInt32),jspb.BinaryWriter.prototype.writeInt32String=function(o,e){e!=null&&(e=parseInt(e,10),jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(o,e))},jspb.BinaryWriter.prototype.writeInt64=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),this.writeSignedVarint64_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeInt64",jspb.BinaryWriter.prototype.writeInt64),jspb.BinaryWriter.prototype.writeInt64String=function(o,e){e!=null&&(e=jspb.arith.Int64.fromString(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(e.lo,e.hi))},jspb.BinaryWriter.prototype.writeUint32=function(o,e){e!=null&&(jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeUint32",jspb.BinaryWriter.prototype.writeUint32),jspb.BinaryWriter.prototype.writeUint32String=function(o,e){e!=null&&(e=parseInt(e,10),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(o,e))},jspb.BinaryWriter.prototype.writeUint64=function(o,e){e!=null&&(jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),this.writeUnsignedVarint64_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeUint64",jspb.BinaryWriter.prototype.writeUint64),jspb.BinaryWriter.prototype.writeUint64String=function(o,e){e!=null&&(e=jspb.arith.UInt64.fromString(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(e.lo,e.hi))},jspb.BinaryWriter.prototype.writeSint32=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeZigzagVarint32_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSint32",jspb.BinaryWriter.prototype.writeSint32),jspb.BinaryWriter.prototype.writeSint64=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),this.writeZigzagVarint64_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSint64",jspb.BinaryWriter.prototype.writeSint64),jspb.BinaryWriter.prototype.writeSintHash64=function(o,e){e!=null&&this.writeZigzagVarintHash64_(o,e)},jspb.BinaryWriter.prototype.writeSint64String=function(o,e){e!=null&&this.writeZigzagVarint64String_(o,e)},jspb.BinaryWriter.prototype.writeFixed32=function(o,e){e!=null&&(jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeUint32(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFixed32",jspb.BinaryWriter.prototype.writeFixed32),jspb.BinaryWriter.prototype.writeFixed64=function(o,e){e!=null&&(jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeUint64(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFixed64",jspb.BinaryWriter.prototype.writeFixed64),jspb.BinaryWriter.prototype.writeFixed64String=function(o,e){e!=null&&(e=jspb.arith.UInt64.fromString(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(e.lo,e.hi))},jspb.BinaryWriter.prototype.writeSfixed32=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeInt32(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSfixed32",jspb.BinaryWriter.prototype.writeSfixed32),jspb.BinaryWriter.prototype.writeSfixed64=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeInt64(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSfixed64",jspb.BinaryWriter.prototype.writeSfixed64),jspb.BinaryWriter.prototype.writeSfixed64String=function(o,e){e!=null&&(e=jspb.arith.Int64.fromString(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(e.lo,e.hi))},jspb.BinaryWriter.prototype.writeFloat=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeFloat(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFloat",jspb.BinaryWriter.prototype.writeFloat),jspb.BinaryWriter.prototype.writeDouble=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeDouble(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeDouble",jspb.BinaryWriter.prototype.writeDouble),jspb.BinaryWriter.prototype.writeBool=function(o,e){e!=null&&(jspb.asserts.assert(typeof e=="boolean"||typeof e=="number"),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeBool(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeBool",jspb.BinaryWriter.prototype.writeBool),jspb.BinaryWriter.prototype.writeEnum=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeEnum",jspb.BinaryWriter.prototype.writeEnum),jspb.BinaryWriter.prototype.writeString=function(o,e){e!=null&&(o=this.beginDelimited_(o),this.encoder_.writeString(e),this.endDelimited_(o))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeString",jspb.BinaryWriter.prototype.writeString),jspb.BinaryWriter.prototype.writeBytes=function(o,e){e!=null&&(e=jspb.utils.byteSourceToUint8Array(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(e.length),this.appendUint8Array_(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeBytes",jspb.BinaryWriter.prototype.writeBytes),jspb.BinaryWriter.prototype.writeMessage=function(o,e,r){e!=null&&(o=this.beginDelimited_(o),r(e,this),this.endDelimited_(o))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeMessage",jspb.BinaryWriter.prototype.writeMessage),jspb.BinaryWriter.prototype.writeMessageSet=function(o,e,r){e!=null&&(this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.START_GROUP),this.writeFieldHeader_(2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(o),o=this.beginDelimited_(3),r(e,this),this.endDelimited_(o),this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.END_GROUP))},jspb.BinaryWriter.prototype.writeGroup=function(o,e,r){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.START_GROUP),r(e,this),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.END_GROUP))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeGroup",jspb.BinaryWriter.prototype.writeGroup),jspb.BinaryWriter.prototype.writeFixedHash64=function(o,e){e!=null&&(jspb.asserts.assert(e.length==8),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeFixedHash64(e))},jspb.BinaryWriter.prototype.writeVarintHash64=function(o,e){e!=null&&(jspb.asserts.assert(e.length==8),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeVarintHash64(e))},jspb.BinaryWriter.prototype.writeSplitFixed64=function(o,e,r){this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(e,r)},jspb.BinaryWriter.prototype.writeSplitVarint64=function(o,e,r){this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(e,r)},jspb.BinaryWriter.prototype.writeSplitZigzagVarint64=function(o,e,r){this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT);var p=this.encoder_;jspb.utils.toZigzag64(e,r,function(t,n){p.writeSplitVarint64(t>>>0,n>>>0)})},jspb.BinaryWriter.prototype.writeRepeatedInt32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSignedVarint32_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedInt32",jspb.BinaryWriter.prototype.writeRepeatedInt32),jspb.BinaryWriter.prototype.writeRepeatedInt32String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeInt32String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedInt64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSignedVarint64_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedInt64",jspb.BinaryWriter.prototype.writeRepeatedInt64),jspb.BinaryWriter.prototype.writeRepeatedSplitFixed64=function(o,e,r,p){if(e!=null)for(var t=0;t<e.length;t++)this.writeSplitFixed64(o,r(e[t]),p(e[t]))},jspb.BinaryWriter.prototype.writeRepeatedSplitVarint64=function(o,e,r,p){if(e!=null)for(var t=0;t<e.length;t++)this.writeSplitVarint64(o,r(e[t]),p(e[t]))},jspb.BinaryWriter.prototype.writeRepeatedSplitZigzagVarint64=function(o,e,r,p){if(e!=null)for(var t=0;t<e.length;t++)this.writeSplitZigzagVarint64(o,r(e[t]),p(e[t]))},jspb.BinaryWriter.prototype.writeRepeatedInt64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeInt64String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedUint32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeUnsignedVarint32_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedUint32",jspb.BinaryWriter.prototype.writeRepeatedUint32),jspb.BinaryWriter.prototype.writeRepeatedUint32String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeUint32String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedUint64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeUnsignedVarint64_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedUint64",jspb.BinaryWriter.prototype.writeRepeatedUint64),jspb.BinaryWriter.prototype.writeRepeatedUint64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeUint64String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedSint32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeZigzagVarint32_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSint32",jspb.BinaryWriter.prototype.writeRepeatedSint32),jspb.BinaryWriter.prototype.writeRepeatedSint64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeZigzagVarint64_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSint64",jspb.BinaryWriter.prototype.writeRepeatedSint64),jspb.BinaryWriter.prototype.writeRepeatedSint64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeZigzagVarint64String_(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedSintHash64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeZigzagVarintHash64_(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedFixed32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFixed32(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed32",jspb.BinaryWriter.prototype.writeRepeatedFixed32),jspb.BinaryWriter.prototype.writeRepeatedFixed64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFixed64(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed64",jspb.BinaryWriter.prototype.writeRepeatedFixed64),jspb.BinaryWriter.prototype.writeRepeatedFixed64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFixed64String(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed64String",jspb.BinaryWriter.prototype.writeRepeatedFixed64String),jspb.BinaryWriter.prototype.writeRepeatedSfixed32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSfixed32(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSfixed32",jspb.BinaryWriter.prototype.writeRepeatedSfixed32),jspb.BinaryWriter.prototype.writeRepeatedSfixed64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSfixed64(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSfixed64",jspb.BinaryWriter.prototype.writeRepeatedSfixed64),jspb.BinaryWriter.prototype.writeRepeatedSfixed64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSfixed64String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedFloat=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFloat(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFloat",jspb.BinaryWriter.prototype.writeRepeatedFloat),jspb.BinaryWriter.prototype.writeRepeatedDouble=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeDouble(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedDouble",jspb.BinaryWriter.prototype.writeRepeatedDouble),jspb.BinaryWriter.prototype.writeRepeatedBool=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeBool(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedBool",jspb.BinaryWriter.prototype.writeRepeatedBool),jspb.BinaryWriter.prototype.writeRepeatedEnum=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeEnum(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedEnum",jspb.BinaryWriter.prototype.writeRepeatedEnum),jspb.BinaryWriter.prototype.writeRepeatedString=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeString(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedString",jspb.BinaryWriter.prototype.writeRepeatedString),jspb.BinaryWriter.prototype.writeRepeatedBytes=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeBytes(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedBytes",jspb.BinaryWriter.prototype.writeRepeatedBytes),jspb.BinaryWriter.prototype.writeRepeatedMessage=function(o,e,r){if(e!=null)for(var p=0;p<e.length;p++){var t=this.beginDelimited_(o);r(e[p],this),this.endDelimited_(t)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedMessage",jspb.BinaryWriter.prototype.writeRepeatedMessage),jspb.BinaryWriter.prototype.writeRepeatedGroup=function(o,e,r){if(e!=null)for(var p=0;p<e.length;p++)this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.START_GROUP),r(e[p],this),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.END_GROUP)},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedGroup",jspb.BinaryWriter.prototype.writeRepeatedGroup),jspb.BinaryWriter.prototype.writeRepeatedFixedHash64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFixedHash64(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedVarintHash64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeVarintHash64(o,e[r])},jspb.BinaryWriter.prototype.writePackedInt32=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeSignedVarint32(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedInt32",jspb.BinaryWriter.prototype.writePackedInt32),jspb.BinaryWriter.prototype.writePackedInt32String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeSignedVarint32(parseInt(e[r],10));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedInt64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeSignedVarint64(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedInt64",jspb.BinaryWriter.prototype.writePackedInt64),jspb.BinaryWriter.prototype.writePackedSplitFixed64=function(o,e,r,p){if(e!=null){o=this.beginDelimited_(o);for(var t=0;t<e.length;t++)this.encoder_.writeSplitFixed64(r(e[t]),p(e[t]));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedSplitVarint64=function(o,e,r,p){if(e!=null){o=this.beginDelimited_(o);for(var t=0;t<e.length;t++)this.encoder_.writeSplitVarint64(r(e[t]),p(e[t]));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedSplitZigzagVarint64=function(o,e,r,p){if(e!=null){o=this.beginDelimited_(o);for(var t=this.encoder_,n=0;n<e.length;n++)jspb.utils.toZigzag64(r(e[n]),p(e[n]),function(i,s){t.writeSplitVarint64(i>>>0,s>>>0)});this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedInt64String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++){var p=jspb.arith.Int64.fromString(e[r]);this.encoder_.writeSplitVarint64(p.lo,p.hi)}this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedUint32=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeUnsignedVarint32(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedUint32",jspb.BinaryWriter.prototype.writePackedUint32),jspb.BinaryWriter.prototype.writePackedUint32String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeUnsignedVarint32(parseInt(e[r],10));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedUint64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeUnsignedVarint64(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedUint64",jspb.BinaryWriter.prototype.writePackedUint64),jspb.BinaryWriter.prototype.writePackedUint64String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++){var p=jspb.arith.UInt64.fromString(e[r]);this.encoder_.writeSplitVarint64(p.lo,p.hi)}this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedSint32=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeZigzagVarint32(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSint32",jspb.BinaryWriter.prototype.writePackedSint32),jspb.BinaryWriter.prototype.writePackedSint64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeZigzagVarint64(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSint64",jspb.BinaryWriter.prototype.writePackedSint64),jspb.BinaryWriter.prototype.writePackedSint64String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(e[r]));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedSintHash64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeZigzagVarintHash64(e[r]);this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedFixed32=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*e.length),o=0;o<e.length;o++)this.encoder_.writeUint32(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFixed32",jspb.BinaryWriter.prototype.writePackedFixed32),jspb.BinaryWriter.prototype.writePackedFixed64=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeUint64(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFixed64",jspb.BinaryWriter.prototype.writePackedFixed64),jspb.BinaryWriter.prototype.writePackedFixed64String=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++){var r=jspb.arith.UInt64.fromString(e[o]);this.encoder_.writeSplitFixed64(r.lo,r.hi)}},jspb.BinaryWriter.prototype.writePackedSfixed32=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*e.length),o=0;o<e.length;o++)this.encoder_.writeInt32(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSfixed32",jspb.BinaryWriter.prototype.writePackedSfixed32),jspb.BinaryWriter.prototype.writePackedSfixed64=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeInt64(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSfixed64",jspb.BinaryWriter.prototype.writePackedSfixed64),jspb.BinaryWriter.prototype.writePackedSfixed64String=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeInt64String(e[o])},jspb.BinaryWriter.prototype.writePackedFloat=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*e.length),o=0;o<e.length;o++)this.encoder_.writeFloat(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFloat",jspb.BinaryWriter.prototype.writePackedFloat),jspb.BinaryWriter.prototype.writePackedDouble=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeDouble(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedDouble",jspb.BinaryWriter.prototype.writePackedDouble),jspb.BinaryWriter.prototype.writePackedBool=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(e.length),o=0;o<e.length;o++)this.encoder_.writeBool(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedBool",jspb.BinaryWriter.prototype.writePackedBool),jspb.BinaryWriter.prototype.writePackedEnum=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeEnum(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedEnum",jspb.BinaryWriter.prototype.writePackedEnum),jspb.BinaryWriter.prototype.writePackedFixedHash64=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeFixedHash64(e[o])},jspb.BinaryWriter.prototype.writePackedVarintHash64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeVarintHash64(e[r]);this.endDelimited_(o)}},jspb.Map=function(o,e){this.arr_=o,this.valueCtor_=e,this.map_={},this.arrClean=!0,0<this.arr_.length&&this.loadFromArray_()},goog.exportSymbol("jspb.Map",jspb.Map),jspb.Map.prototype.loadFromArray_=function(){for(var o=0;o<this.arr_.length;o++){var e=this.arr_[o],r=e[0];this.map_[r.toString()]=new jspb.Map.Entry_(r,e[1])}this.arrClean=!0},jspb.Map.prototype.toArray=function(){if(this.arrClean){if(this.valueCtor_){var o=this.map_,e;for(e in o)if(Object.prototype.hasOwnProperty.call(o,e)){var r=o[e].valueWrapper;r&&r.toArray()}}}else{for(this.arr_.length=0,o=this.stringKeys_(),o.sort(),e=0;e<o.length;e++){var p=this.map_[o[e]];(r=p.valueWrapper)&&r.toArray(),this.arr_.push([p.key,p.value])}this.arrClean=!0}return this.arr_},goog.exportProperty(jspb.Map.prototype,"toArray",jspb.Map.prototype.toArray),jspb.Map.prototype.toObject=function(o,e){for(var r=this.toArray(),p=[],t=0;t<r.length;t++){var n=this.map_[r[t][0].toString()];this.wrapEntry_(n);var i=n.valueWrapper;i?(jspb.asserts.assert(e),p.push([n.key,e(o,i)])):p.push([n.key,n.value])}return p},goog.exportProperty(jspb.Map.prototype,"toObject",jspb.Map.prototype.toObject),jspb.Map.fromObject=function(o,e,r){e=new jspb.Map([],e);for(var p=0;p<o.length;p++){var t=o[p][0],n=r(o[p][1]);e.set(t,n)}return e},goog.exportProperty(jspb.Map,"fromObject",jspb.Map.fromObject),jspb.Map.ArrayIteratorIterable_=function(o){this.idx_=0,this.arr_=o},jspb.Map.ArrayIteratorIterable_.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}},typeof Symbol<"u"&&(jspb.Map.ArrayIteratorIterable_.prototype[Symbol.iterator]=function(){return this}),jspb.Map.prototype.getLength=function(){return this.stringKeys_().length},goog.exportProperty(jspb.Map.prototype,"getLength",jspb.Map.prototype.getLength),jspb.Map.prototype.clear=function(){this.map_={},this.arrClean=!1},goog.exportProperty(jspb.Map.prototype,"clear",jspb.Map.prototype.clear),jspb.Map.prototype.del=function(o){o=o.toString();var e=this.map_.hasOwnProperty(o);return delete this.map_[o],this.arrClean=!1,e},goog.exportProperty(jspb.Map.prototype,"del",jspb.Map.prototype.del),jspb.Map.prototype.getEntryList=function(){var o=[],e=this.stringKeys_();e.sort();for(var r=0;r<e.length;r++){var p=this.map_[e[r]];o.push([p.key,p.value])}return o},goog.exportProperty(jspb.Map.prototype,"getEntryList",jspb.Map.prototype.getEntryList),jspb.Map.prototype.entries=function(){var o=[],e=this.stringKeys_();e.sort();for(var r=0;r<e.length;r++){var p=this.map_[e[r]];o.push([p.key,this.wrapEntry_(p)])}return new jspb.Map.ArrayIteratorIterable_(o)},goog.exportProperty(jspb.Map.prototype,"entries",jspb.Map.prototype.entries),jspb.Map.prototype.keys=function(){var o=[],e=this.stringKeys_();e.sort();for(var r=0;r<e.length;r++)o.push(this.map_[e[r]].key);return new jspb.Map.ArrayIteratorIterable_(o)},goog.exportProperty(jspb.Map.prototype,"keys",jspb.Map.prototype.keys),jspb.Map.prototype.values=function(){var o=[],e=this.stringKeys_();e.sort();for(var r=0;r<e.length;r++)o.push(this.wrapEntry_(this.map_[e[r]]));return new jspb.Map.ArrayIteratorIterable_(o)},goog.exportProperty(jspb.Map.prototype,"values",jspb.Map.prototype.values),jspb.Map.prototype.forEach=function(o,e){var r=this.stringKeys_();r.sort();for(var p=0;p<r.length;p++){var t=this.map_[r[p]];o.call(e,this.wrapEntry_(t),t.key,this)}},goog.exportProperty(jspb.Map.prototype,"forEach",jspb.Map.prototype.forEach),jspb.Map.prototype.set=function(o,e){var r=new jspb.Map.Entry_(o);return this.valueCtor_?(r.valueWrapper=e,r.value=e.toArray()):r.value=e,this.map_[o.toString()]=r,this.arrClean=!1,this},goog.exportProperty(jspb.Map.prototype,"set",jspb.Map.prototype.set),jspb.Map.prototype.wrapEntry_=function(o){return this.valueCtor_?(o.valueWrapper||(o.valueWrapper=new this.valueCtor_(o.value)),o.valueWrapper):o.value},jspb.Map.prototype.get=function(o){if(o=this.map_[o.toString()])return this.wrapEntry_(o)},goog.exportProperty(jspb.Map.prototype,"get",jspb.Map.prototype.get),jspb.Map.prototype.has=function(o){return o.toString()in this.map_},goog.exportProperty(jspb.Map.prototype,"has",jspb.Map.prototype.has),jspb.Map.prototype.serializeBinary=function(o,e,r,p,t){var n=this.stringKeys_();n.sort();for(var i=0;i<n.length;i++){var s=this.map_[n[i]];e.beginSubMessage(o),r.call(e,1,s.key),this.valueCtor_?p.call(e,2,this.wrapEntry_(s),t):p.call(e,2,s.value),e.endSubMessage()}},goog.exportProperty(jspb.Map.prototype,"serializeBinary",jspb.Map.prototype.serializeBinary),jspb.Map.deserializeBinary=function(o,e,r,p,t,n,i){for(;e.nextField()&&!e.isEndGroup();){var s=e.getFieldNumber();s==1?n=r.call(e):s==2&&(o.valueCtor_?(jspb.asserts.assert(t),i||(i=new o.valueCtor_),p.call(e,i,t)):i=p.call(e))}jspb.asserts.assert(n!=null),jspb.asserts.assert(i!=null),o.set(n,i)},goog.exportProperty(jspb.Map,"deserializeBinary",jspb.Map.deserializeBinary),jspb.Map.prototype.stringKeys_=function(){var o=this.map_,e=[],r;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.push(r);return e},jspb.Map.Entry_=function(o,e){this.key=o,this.value=e,this.valueWrapper=void 0},jspb.ExtensionFieldInfo=function(o,e,r,p,t){this.fieldIndex=o,this.fieldName=e,this.ctor=r,this.toObjectFn=p,this.isRepeated=t},goog.exportSymbol("jspb.ExtensionFieldInfo",jspb.ExtensionFieldInfo),jspb.ExtensionFieldBinaryInfo=function(o,e,r,p,t,n){this.fieldInfo=o,this.binaryReaderFn=e,this.binaryWriterFn=r,this.binaryMessageSerializeFn=p,this.binaryMessageDeserializeFn=t,this.isPacked=n},goog.exportSymbol("jspb.ExtensionFieldBinaryInfo",jspb.ExtensionFieldBinaryInfo),jspb.ExtensionFieldInfo.prototype.isMessageType=function(){return!!this.ctor},goog.exportProperty(jspb.ExtensionFieldInfo.prototype,"isMessageType",jspb.ExtensionFieldInfo.prototype.isMessageType),jspb.Message=function(){},goog.exportSymbol("jspb.Message",jspb.Message),jspb.Message.GENERATE_TO_OBJECT=!0,goog.exportProperty(jspb.Message,"GENERATE_TO_OBJECT",jspb.Message.GENERATE_TO_OBJECT),jspb.Message.GENERATE_FROM_OBJECT=!goog.DISALLOW_TEST_ONLY_CODE,goog.exportProperty(jspb.Message,"GENERATE_FROM_OBJECT",jspb.Message.GENERATE_FROM_OBJECT),jspb.Message.GENERATE_TO_STRING=!0,jspb.Message.ASSUME_LOCAL_ARRAYS=!1,jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS=!0,jspb.Message.SUPPORTS_UINT8ARRAY_=typeof Uint8Array=="function",jspb.Message.prototype.getJsPbMessageId=function(){return this.messageId_},goog.exportProperty(jspb.Message.prototype,"getJsPbMessageId",jspb.Message.prototype.getJsPbMessageId),jspb.Message.getIndex_=function(o,e){return e+o.arrayIndexOffset_},jspb.Message.hiddenES6Property_=function(){},jspb.Message.getFieldNumber_=function(o,e){return e-o.arrayIndexOffset_},jspb.Message.initialize=function(o,e,r,p,t,n){if(o.wrappers_=null,e||(e=r?[r]:[]),o.messageId_=r?String(r):void 0,o.arrayIndexOffset_=r===0?-1:0,o.array=e,jspb.Message.initPivotAndExtensionObject_(o,p),o.convertedPrimitiveFields_={},jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS||(o.repeatedFields=t),t)for(e=0;e<t.length;e++)r=t[e],r<o.pivot_?(r=jspb.Message.getIndex_(o,r),o.array[r]=o.array[r]||jspb.Message.EMPTY_LIST_SENTINEL_):(jspb.Message.maybeInitEmptyExtensionObject_(o),o.extensionObject_[r]=o.extensionObject_[r]||jspb.Message.EMPTY_LIST_SENTINEL_);if(n&&n.length)for(e=0;e<n.length;e++)jspb.Message.computeOneofCase(o,n[e])},goog.exportProperty(jspb.Message,"initialize",jspb.Message.initialize),jspb.Message.EMPTY_LIST_SENTINEL_=goog.DEBUG&&Object.freeze?Object.freeze([]):[],jspb.Message.isArray_=function(o){return jspb.Message.ASSUME_LOCAL_ARRAYS?o instanceof Array:Array.isArray(o)},jspb.Message.isExtensionObject_=function(o){return o!==null&&typeof o=="object"&&!jspb.Message.isArray_(o)&&!(jspb.Message.SUPPORTS_UINT8ARRAY_&&o instanceof Uint8Array)},jspb.Message.initPivotAndExtensionObject_=function(o,e){var r=o.array.length,p=-1;if(r&&(p=r-1,r=o.array[p],jspb.Message.isExtensionObject_(r))){o.pivot_=jspb.Message.getFieldNumber_(o,p),o.extensionObject_=r;return}-1<e?(o.pivot_=Math.max(e,jspb.Message.getFieldNumber_(o,p+1)),o.extensionObject_=null):o.pivot_=Number.MAX_VALUE},jspb.Message.maybeInitEmptyExtensionObject_=function(o){var e=jspb.Message.getIndex_(o,o.pivot_);o.array[e]||(o.extensionObject_=o.array[e]={})},jspb.Message.toObjectList=function(o,e,r){for(var p=[],t=0;t<o.length;t++)p[t]=e.call(o[t],r,o[t]);return p},goog.exportProperty(jspb.Message,"toObjectList",jspb.Message.toObjectList),jspb.Message.toObjectExtension=function(o,e,r,p,t){for(var n in r){var i=r[n],s=p.call(o,i);if(s!=null){for(var g in i.fieldName)if(i.fieldName.hasOwnProperty(g))break;e[g]=i.toObjectFn?i.isRepeated?jspb.Message.toObjectList(s,i.toObjectFn,t):i.toObjectFn(t,s):s}}},goog.exportProperty(jspb.Message,"toObjectExtension",jspb.Message.toObjectExtension),jspb.Message.serializeBinaryExtensions=function(o,e,r,p){for(var t in r){var n=r[t],i=n.fieldInfo;if(!n.binaryWriterFn)throw Error("Message extension present that was generated without binary serialization support");var s=p.call(o,i);if(s!=null)if(i.isMessageType())if(n.binaryMessageSerializeFn)n.binaryWriterFn.call(e,i.fieldIndex,s,n.binaryMessageSerializeFn);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else n.binaryWriterFn.call(e,i.fieldIndex,s)}},goog.exportProperty(jspb.Message,"serializeBinaryExtensions",jspb.Message.serializeBinaryExtensions),jspb.Message.readBinaryExtension=function(o,e,r,p,t){var n=r[e.getFieldNumber()];if(n){if(r=n.fieldInfo,!n.binaryReaderFn)throw Error("Deserializing extension whose generated code does not support binary format");if(r.isMessageType()){var i=new r.ctor;n.binaryReaderFn.call(e,i,n.binaryMessageDeserializeFn)}else i=n.binaryReaderFn.call(e);r.isRepeated&&!n.isPacked?(e=p.call(o,r))?e.push(i):t.call(o,r,[i]):t.call(o,r,i)}else e.skipField()},goog.exportProperty(jspb.Message,"readBinaryExtension",jspb.Message.readBinaryExtension),jspb.Message.getField=function(o,e){if(e<o.pivot_){e=jspb.Message.getIndex_(o,e);var r=o.array[e];return r===jspb.Message.EMPTY_LIST_SENTINEL_?o.array[e]=[]:r}if(o.extensionObject_)return r=o.extensionObject_[e],r===jspb.Message.EMPTY_LIST_SENTINEL_?o.extensionObject_[e]=[]:r},goog.exportProperty(jspb.Message,"getField",jspb.Message.getField),jspb.Message.getRepeatedField=function(o,e){return jspb.Message.getField(o,e)},goog.exportProperty(jspb.Message,"getRepeatedField",jspb.Message.getRepeatedField),jspb.Message.getOptionalFloatingPointField=function(o,e){return o=jspb.Message.getField(o,e),o==null?o:+o},goog.exportProperty(jspb.Message,"getOptionalFloatingPointField",jspb.Message.getOptionalFloatingPointField),jspb.Message.getBooleanField=function(o,e){return o=jspb.Message.getField(o,e),o==null?o:!!o},goog.exportProperty(jspb.Message,"getBooleanField",jspb.Message.getBooleanField),jspb.Message.getRepeatedFloatingPointField=function(o,e){var r=jspb.Message.getRepeatedField(o,e);if(o.convertedPrimitiveFields_||(o.convertedPrimitiveFields_={}),!o.convertedPrimitiveFields_[e]){for(var p=0;p<r.length;p++)r[p]=+r[p];o.convertedPrimitiveFields_[e]=!0}return r},goog.exportProperty(jspb.Message,"getRepeatedFloatingPointField",jspb.Message.getRepeatedFloatingPointField),jspb.Message.getRepeatedBooleanField=function(o,e){var r=jspb.Message.getRepeatedField(o,e);if(o.convertedPrimitiveFields_||(o.convertedPrimitiveFields_={}),!o.convertedPrimitiveFields_[e]){for(var p=0;p<r.length;p++)r[p]=!!r[p];o.convertedPrimitiveFields_[e]=!0}return r},goog.exportProperty(jspb.Message,"getRepeatedBooleanField",jspb.Message.getRepeatedBooleanField),jspb.Message.bytesAsB64=function(o){return o==null||typeof o=="string"?o:jspb.Message.SUPPORTS_UINT8ARRAY_&&o instanceof Uint8Array?goog.crypt.base64.encodeByteArray(o):(jspb.asserts.fail("Cannot coerce to b64 string: "+goog.typeOf(o)),null)},goog.exportProperty(jspb.Message,"bytesAsB64",jspb.Message.bytesAsB64),jspb.Message.bytesAsU8=function(o){return o==null||o instanceof Uint8Array?o:typeof o=="string"?goog.crypt.base64.decodeStringToUint8Array(o):(jspb.asserts.fail("Cannot coerce to Uint8Array: "+goog.typeOf(o)),null)},goog.exportProperty(jspb.Message,"bytesAsU8",jspb.Message.bytesAsU8),jspb.Message.bytesListAsB64=function(o){return jspb.Message.assertConsistentTypes_(o),o.length&&typeof o[0]!="string"?goog.array.map(o,jspb.Message.bytesAsB64):o},goog.exportProperty(jspb.Message,"bytesListAsB64",jspb.Message.bytesListAsB64),jspb.Message.bytesListAsU8=function(o){return jspb.Message.assertConsistentTypes_(o),!o.length||o[0]instanceof Uint8Array?o:goog.array.map(o,jspb.Message.bytesAsU8)},goog.exportProperty(jspb.Message,"bytesListAsU8",jspb.Message.bytesListAsU8),jspb.Message.assertConsistentTypes_=function(o){if(goog.DEBUG&&o&&1<o.length){var e=goog.typeOf(o[0]);goog.array.forEach(o,function(r){goog.typeOf(r)!=e&&jspb.asserts.fail("Inconsistent type in JSPB repeated field array. Got "+goog.typeOf(r)+" expected "+e)})}},jspb.Message.getFieldWithDefault=function(o,e,r){return o=jspb.Message.getField(o,e),o??r},goog.exportProperty(jspb.Message,"getFieldWithDefault",jspb.Message.getFieldWithDefault),jspb.Message.getBooleanFieldWithDefault=function(o,e,r){return o=jspb.Message.getBooleanField(o,e),o??r},goog.exportProperty(jspb.Message,"getBooleanFieldWithDefault",jspb.Message.getBooleanFieldWithDefault),jspb.Message.getFloatingPointFieldWithDefault=function(o,e,r){return o=jspb.Message.getOptionalFloatingPointField(o,e),o??r},goog.exportProperty(jspb.Message,"getFloatingPointFieldWithDefault",jspb.Message.getFloatingPointFieldWithDefault),jspb.Message.getFieldProto3=jspb.Message.getFieldWithDefault,goog.exportProperty(jspb.Message,"getFieldProto3",jspb.Message.getFieldProto3),jspb.Message.getMapField=function(o,e,r,p){if(o.wrappers_||(o.wrappers_={}),e in o.wrappers_)return o.wrappers_[e];var t=jspb.Message.getField(o,e);if(!t){if(r)return;t=[],jspb.Message.setField(o,e,t)}return o.wrappers_[e]=new jspb.Map(t,p)},goog.exportProperty(jspb.Message,"getMapField",jspb.Message.getMapField),jspb.Message.setField=function(o,e,r){return jspb.asserts.assertInstanceof(o,jspb.Message),e<o.pivot_?o.array[jspb.Message.getIndex_(o,e)]=r:(jspb.Message.maybeInitEmptyExtensionObject_(o),o.extensionObject_[e]=r),o},goog.exportProperty(jspb.Message,"setField",jspb.Message.setField),jspb.Message.setProto3IntField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,0)},goog.exportProperty(jspb.Message,"setProto3IntField",jspb.Message.setProto3IntField),jspb.Message.setProto3FloatField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,0)},goog.exportProperty(jspb.Message,"setProto3FloatField",jspb.Message.setProto3FloatField),jspb.Message.setProto3BooleanField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,!1)},goog.exportProperty(jspb.Message,"setProto3BooleanField",jspb.Message.setProto3BooleanField),jspb.Message.setProto3StringField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,"")},goog.exportProperty(jspb.Message,"setProto3StringField",jspb.Message.setProto3StringField),jspb.Message.setProto3BytesField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,"")},goog.exportProperty(jspb.Message,"setProto3BytesField",jspb.Message.setProto3BytesField),jspb.Message.setProto3EnumField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,0)},goog.exportProperty(jspb.Message,"setProto3EnumField",jspb.Message.setProto3EnumField),jspb.Message.setProto3StringIntField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,"0")},goog.exportProperty(jspb.Message,"setProto3StringIntField",jspb.Message.setProto3StringIntField),jspb.Message.setFieldIgnoringDefault_=function(o,e,r,p){return jspb.asserts.assertInstanceof(o,jspb.Message),r!==p?jspb.Message.setField(o,e,r):e<o.pivot_?o.array[jspb.Message.getIndex_(o,e)]=null:(jspb.Message.maybeInitEmptyExtensionObject_(o),delete o.extensionObject_[e]),o},jspb.Message.addToRepeatedField=function(o,e,r,p){return jspb.asserts.assertInstanceof(o,jspb.Message),e=jspb.Message.getRepeatedField(o,e),p!=null?e.splice(p,0,r):e.push(r),o},goog.exportProperty(jspb.Message,"addToRepeatedField",jspb.Message.addToRepeatedField),jspb.Message.setOneofField=function(o,e,r,p){return jspb.asserts.assertInstanceof(o,jspb.Message),(r=jspb.Message.computeOneofCase(o,r))&&r!==e&&p!==void 0&&(o.wrappers_&&r in o.wrappers_&&(o.wrappers_[r]=void 0),jspb.Message.setField(o,r,void 0)),jspb.Message.setField(o,e,p)},goog.exportProperty(jspb.Message,"setOneofField",jspb.Message.setOneofField),jspb.Message.computeOneofCase=function(o,e){for(var r,p,t=0;t<e.length;t++){var n=e[t],i=jspb.Message.getField(o,n);i!=null&&(r=n,p=i,jspb.Message.setField(o,n,void 0))}return r?(jspb.Message.setField(o,r,p),r):0},goog.exportProperty(jspb.Message,"computeOneofCase",jspb.Message.computeOneofCase),jspb.Message.getWrapperField=function(o,e,r,p){if(o.wrappers_||(o.wrappers_={}),!o.wrappers_[r]){var t=jspb.Message.getField(o,r);(p||t)&&(o.wrappers_[r]=new e(t))}return o.wrappers_[r]},goog.exportProperty(jspb.Message,"getWrapperField",jspb.Message.getWrapperField),jspb.Message.getRepeatedWrapperField=function(o,e,r){return jspb.Message.wrapRepeatedField_(o,e,r),e=o.wrappers_[r],e==jspb.Message.EMPTY_LIST_SENTINEL_&&(e=o.wrappers_[r]=[]),e},goog.exportProperty(jspb.Message,"getRepeatedWrapperField",jspb.Message.getRepeatedWrapperField),jspb.Message.wrapRepeatedField_=function(o,e,r){if(o.wrappers_||(o.wrappers_={}),!o.wrappers_[r]){for(var p=jspb.Message.getRepeatedField(o,r),t=[],n=0;n<p.length;n++)t[n]=new e(p[n]);o.wrappers_[r]=t}},jspb.Message.setWrapperField=function(o,e,r){jspb.asserts.assertInstanceof(o,jspb.Message),o.wrappers_||(o.wrappers_={});var p=r&&r.toArray();return o.wrappers_[e]=r,jspb.Message.setField(o,e,p)},goog.exportProperty(jspb.Message,"setWrapperField",jspb.Message.setWrapperField),jspb.Message.setOneofWrapperField=function(o,e,r,p){jspb.asserts.assertInstanceof(o,jspb.Message),o.wrappers_||(o.wrappers_={});var t=p&&p.toArray();return o.wrappers_[e]=p,jspb.Message.setOneofField(o,e,r,t)},goog.exportProperty(jspb.Message,"setOneofWrapperField",jspb.Message.setOneofWrapperField),jspb.Message.setRepeatedWrapperField=function(o,e,r){jspb.asserts.assertInstanceof(o,jspb.Message),o.wrappers_||(o.wrappers_={}),r=r||[];for(var p=[],t=0;t<r.length;t++)p[t]=r[t].toArray();return o.wrappers_[e]=r,jspb.Message.setField(o,e,p)},goog.exportProperty(jspb.Message,"setRepeatedWrapperField",jspb.Message.setRepeatedWrapperField),jspb.Message.addToRepeatedWrapperField=function(o,e,r,p,t){jspb.Message.wrapRepeatedField_(o,p,e);var n=o.wrappers_[e];return n||(n=o.wrappers_[e]=[]),r=r||new p,o=jspb.Message.getRepeatedField(o,e),t!=null?(n.splice(t,0,r),o.splice(t,0,r.toArray())):(n.push(r),o.push(r.toArray())),r},goog.exportProperty(jspb.Message,"addToRepeatedWrapperField",jspb.Message.addToRepeatedWrapperField),jspb.Message.toMap=function(o,e,r,p){for(var t={},n=0;n<o.length;n++)t[e.call(o[n])]=r?r.call(o[n],p,o[n]):o[n];return t},goog.exportProperty(jspb.Message,"toMap",jspb.Message.toMap),jspb.Message.prototype.syncMapFields_=function(){if(this.wrappers_)for(var o in this.wrappers_){var e=this.wrappers_[o];if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&e[r].toArray();else e&&e.toArray()}},jspb.Message.prototype.toArray=function(){return this.syncMapFields_(),this.array},goog.exportProperty(jspb.Message.prototype,"toArray",jspb.Message.prototype.toArray),jspb.Message.GENERATE_TO_STRING&&(jspb.Message.prototype.toString=function(){return this.syncMapFields_(),this.array.toString()}),jspb.Message.prototype.getExtension=function(o){if(this.extensionObject_){this.wrappers_||(this.wrappers_={});var e=o.fieldIndex;if(o.isRepeated){if(o.isMessageType())return this.wrappers_[e]||(this.wrappers_[e]=goog.array.map(this.extensionObject_[e]||[],function(r){return new o.ctor(r)})),this.wrappers_[e]}else if(o.isMessageType())return!this.wrappers_[e]&&this.extensionObject_[e]&&(this.wrappers_[e]=new o.ctor(this.extensionObject_[e])),this.wrappers_[e];return this.extensionObject_[e]}},goog.exportProperty(jspb.Message.prototype,"getExtension",jspb.Message.prototype.getExtension),jspb.Message.prototype.setExtension=function(o,e){this.wrappers_||(this.wrappers_={}),jspb.Message.maybeInitEmptyExtensionObject_(this);var r=o.fieldIndex;return o.isRepeated?(e=e||[],o.isMessageType()?(this.wrappers_[r]=e,this.extensionObject_[r]=goog.array.map(e,function(p){return p.toArray()})):this.extensionObject_[r]=e):o.isMessageType()?(this.wrappers_[r]=e,this.extensionObject_[r]=e&&e.toArray()):this.extensionObject_[r]=e,this},goog.exportProperty(jspb.Message.prototype,"setExtension",jspb.Message.prototype.setExtension),jspb.Message.difference=function(o,e){if(!(o instanceof e.constructor))throw Error("Messages have different types.");var r=o.toArray();e=e.toArray();var p=[],t=0,n=r.length>e.length?r.length:e.length;for(o.getJsPbMessageId()&&(p[0]=o.getJsPbMessageId(),t=1);t<n;t++)jspb.Message.compareFields(r[t],e[t])||(p[t]=e[t]);return new o.constructor(p)},goog.exportProperty(jspb.Message,"difference",jspb.Message.difference),jspb.Message.equals=function(o,e){return o==e||!(!o||!e)&&o instanceof e.constructor&&jspb.Message.compareFields(o.toArray(),e.toArray())},goog.exportProperty(jspb.Message,"equals",jspb.Message.equals),jspb.Message.compareExtensions=function(o,e){o=o||{},e=e||{};var r={},p;for(p in o)r[p]=0;for(p in e)r[p]=0;for(p in r)if(!jspb.Message.compareFields(o[p],e[p]))return!1;return!0},goog.exportProperty(jspb.Message,"compareExtensions",jspb.Message.compareExtensions),jspb.Message.compareFields=function(o,e){if(o==e)return!0;if(!goog.isObject(o)||!goog.isObject(e))return typeof o=="number"&&isNaN(o)||typeof e=="number"&&isNaN(e)?String(o)==String(e):!1;if(o.constructor!=e.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&o.constructor===Uint8Array){if(o.length!=e.length)return!1;for(var r=0;r<o.length;r++)if(o[r]!=e[r])return!1;return!0}if(o.constructor===Array){var p=void 0,t=void 0,n=Math.max(o.length,e.length);for(r=0;r<n;r++){var i=o[r],s=e[r];if(i&&i.constructor==Object&&(jspb.asserts.assert(p===void 0),jspb.asserts.assert(r===o.length-1),p=i,i=void 0),s&&s.constructor==Object&&(jspb.asserts.assert(t===void 0),jspb.asserts.assert(r===e.length-1),t=s,s=void 0),!jspb.Message.compareFields(i,s))return!1}return p||t?(p=p||{},t=t||{},jspb.Message.compareExtensions(p,t)):!0}if(o.constructor===Object)return jspb.Message.compareExtensions(o,e);throw Error("Invalid type in JSPB array")},goog.exportProperty(jspb.Message,"compareFields",jspb.Message.compareFields),jspb.Message.prototype.cloneMessage=function(){return jspb.Message.cloneMessage(this)},goog.exportProperty(jspb.Message.prototype,"cloneMessage",jspb.Message.prototype.cloneMessage),jspb.Message.prototype.clone=function(){return jspb.Message.cloneMessage(this)},goog.exportProperty(jspb.Message.prototype,"clone",jspb.Message.prototype.clone),jspb.Message.clone=function(o){return jspb.Message.cloneMessage(o)},goog.exportProperty(jspb.Message,"clone",jspb.Message.clone),jspb.Message.cloneMessage=function(o){return new o.constructor(jspb.Message.clone_(o.toArray()))},jspb.Message.copyInto=function(o,e){jspb.asserts.assertInstanceof(o,jspb.Message),jspb.asserts.assertInstanceof(e,jspb.Message),jspb.asserts.assert(o.constructor==e.constructor,"Copy source and target message should have the same type."),o=jspb.Message.clone(o);for(var r=e.toArray(),p=o.toArray(),t=r.length=0;t<p.length;t++)r[t]=p[t];e.wrappers_=o.wrappers_,e.extensionObject_=o.extensionObject_},goog.exportProperty(jspb.Message,"copyInto",jspb.Message.copyInto),jspb.Message.clone_=function(o){if(Array.isArray(o)){for(var e=Array(o.length),r=0;r<o.length;r++){var p=o[r];p!=null&&(e[r]=typeof p=="object"?jspb.Message.clone_(jspb.asserts.assert(p)):p)}return e}if(jspb.Message.SUPPORTS_UINT8ARRAY_&&o instanceof Uint8Array)return new Uint8Array(o);e={};for(r in o)p=o[r],p!=null&&(e[r]=typeof p=="object"?jspb.Message.clone_(jspb.asserts.assert(p)):p);return e},jspb.Message.registerMessageType=function(o,e){e.messageId=o},goog.exportProperty(jspb.Message,"registerMessageType",jspb.Message.registerMessageType),jspb.Message.messageSetExtensions={},jspb.Message.messageSetExtensionsBinary={},jspb.Export={},exports.Map=jspb.Map,exports.Message=jspb.Message,exports.BinaryReader=jspb.BinaryReader,exports.BinaryWriter=jspb.BinaryWriter,exports.ExtensionFieldInfo=jspb.ExtensionFieldInfo,exports.ExtensionFieldBinaryInfo=jspb.ExtensionFieldBinaryInfo,exports.exportSymbol=goog.exportSymbol,exports.inherits=goog.inherits,exports.object={extend:goog.object.extend},exports.typeOf=goog.typeOf})(googleProtobuf$3),function(o){var e=googleProtobuf$3,r=e,p=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof p<"u"&&p||typeof self<"u"&&self||function(){return this}.call(null)||Function("return this")();r.exportSymbol("proto.google.protobuf.ListValue",null,p),r.exportSymbol("proto.google.protobuf.NullValue",null,p),r.exportSymbol("proto.google.protobuf.Struct",null,p),r.exportSymbol("proto.google.protobuf.Value",null,p),r.exportSymbol("proto.google.protobuf.Value.KindCase",null,p),proto.google.protobuf.Struct=function(t){e.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.google.protobuf.Struct,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.Struct.displayName="proto.google.protobuf.Struct"),proto.google.protobuf.Value=function(t){e.Message.initialize(this,t,0,-1,null,proto.google.protobuf.Value.oneofGroups_)},r.inherits(proto.google.protobuf.Value,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.Value.displayName="proto.google.protobuf.Value"),proto.google.protobuf.ListValue=function(t){e.Message.initialize(this,t,0,-1,proto.google.protobuf.ListValue.repeatedFields_,null)},r.inherits(proto.google.protobuf.ListValue,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.ListValue.displayName="proto.google.protobuf.ListValue"),e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Struct.prototype.toObject=function(t){return proto.google.protobuf.Struct.toObject(t,this)},proto.google.protobuf.Struct.toObject=function(t,n){var i,s={fieldsMap:(i=n.getFieldsMap())?i.toObject(t,proto.google.protobuf.Value.toObject):[]};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.Struct.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.Struct;return proto.google.protobuf.Struct.deserializeBinaryFromReader(i,n)},proto.google.protobuf.Struct.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=t.getFieldsMap();n.readMessage(s,function(g,l){e.Map.deserializeBinary(g,l,e.BinaryReader.prototype.readString,e.BinaryReader.prototype.readMessage,proto.google.protobuf.Value.deserializeBinaryFromReader,"",new proto.google.protobuf.Value)});break;default:n.skipField();break}}return t},proto.google.protobuf.Struct.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.Struct.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.Struct.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getFieldsMap(!0),i&&i.getLength()>0&&i.serializeBinary(1,n,e.BinaryWriter.prototype.writeString,e.BinaryWriter.prototype.writeMessage,proto.google.protobuf.Value.serializeBinaryToWriter)},proto.google.protobuf.Struct.prototype.getFieldsMap=function(t){return e.Message.getMapField(this,1,t,proto.google.protobuf.Value)},proto.google.protobuf.Struct.prototype.clearFieldsMap=function(){return this.getFieldsMap().clear(),this},proto.google.protobuf.Value.oneofGroups_=[[1,2,3,4,5,6]],proto.google.protobuf.Value.KindCase={KIND_NOT_SET:0,NULL_VALUE:1,NUMBER_VALUE:2,STRING_VALUE:3,BOOL_VALUE:4,STRUCT_VALUE:5,LIST_VALUE:6},proto.google.protobuf.Value.prototype.getKindCase=function(){return e.Message.computeOneofCase(this,proto.google.protobuf.Value.oneofGroups_[0])},e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Value.prototype.toObject=function(t){return proto.google.protobuf.Value.toObject(t,this)},proto.google.protobuf.Value.toObject=function(t,n){var i,s={nullValue:e.Message.getFieldWithDefault(n,1,0),numberValue:e.Message.getFloatingPointFieldWithDefault(n,2,0),stringValue:e.Message.getFieldWithDefault(n,3,""),boolValue:e.Message.getBooleanFieldWithDefault(n,4,!1),structValue:(i=n.getStructValue())&&proto.google.protobuf.Struct.toObject(t,i),listValue:(i=n.getListValue())&&proto.google.protobuf.ListValue.toObject(t,i)};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.Value.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.Value;return proto.google.protobuf.Value.deserializeBinaryFromReader(i,n)},proto.google.protobuf.Value.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readEnum();t.setNullValue(s);break;case 2:var s=n.readDouble();t.setNumberValue(s);break;case 3:var s=n.readString();t.setStringValue(s);break;case 4:var s=n.readBool();t.setBoolValue(s);break;case 5:var s=new proto.google.protobuf.Struct;n.readMessage(s,proto.google.protobuf.Struct.deserializeBinaryFromReader),t.setStructValue(s);break;case 6:var s=new proto.google.protobuf.ListValue;n.readMessage(s,proto.google.protobuf.ListValue.deserializeBinaryFromReader),t.setListValue(s);break;default:n.skipField();break}}return t},proto.google.protobuf.Value.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.Value.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.Value.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeEnum(1,i),i=e.Message.getField(t,2),i!=null&&n.writeDouble(2,i),i=e.Message.getField(t,3),i!=null&&n.writeString(3,i),i=e.Message.getField(t,4),i!=null&&n.writeBool(4,i),i=t.getStructValue(),i!=null&&n.writeMessage(5,i,proto.google.protobuf.Struct.serializeBinaryToWriter),i=t.getListValue(),i!=null&&n.writeMessage(6,i,proto.google.protobuf.ListValue.serializeBinaryToWriter)},proto.google.protobuf.Value.prototype.getNullValue=function(){return e.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.Value.prototype.setNullValue=function(t){return e.Message.setOneofField(this,1,proto.google.protobuf.Value.oneofGroups_[0],t)},proto.google.protobuf.Value.prototype.clearNullValue=function(){return e.Message.setOneofField(this,1,proto.google.protobuf.Value.oneofGroups_[0],void 0)},proto.google.protobuf.Value.prototype.hasNullValue=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.Value.prototype.getNumberValue=function(){return e.Message.getFloatingPointFieldWithDefault(this,2,0)},proto.google.protobuf.Value.prototype.setNumberValue=function(t){return e.Message.setOneofField(this,2,proto.google.protobuf.Value.oneofGroups_[0],t)},proto.google.protobuf.Value.prototype.clearNumberValue=function(){return e.Message.setOneofField(this,2,proto.google.protobuf.Value.oneofGroups_[0],void 0)},proto.google.protobuf.Value.prototype.hasNumberValue=function(){return e.Message.getField(this,2)!=null},proto.google.protobuf.Value.prototype.getStringValue=function(){return e.Message.getFieldWithDefault(this,3,"")},proto.google.protobuf.Value.prototype.setStringValue=function(t){return e.Message.setOneofField(this,3,proto.google.protobuf.Value.oneofGroups_[0],t)},proto.google.protobuf.Value.prototype.clearStringValue=function(){return e.Message.setOneofField(this,3,proto.google.protobuf.Value.oneofGroups_[0],void 0)},proto.google.protobuf.Value.prototype.hasStringValue=function(){return e.Message.getField(this,3)!=null},proto.google.protobuf.Value.prototype.getBoolValue=function(){return e.Message.getBooleanFieldWithDefault(this,4,!1)},proto.google.protobuf.Value.prototype.setBoolValue=function(t){return e.Message.setOneofField(this,4,proto.google.protobuf.Value.oneofGroups_[0],t)},proto.google.protobuf.Value.prototype.clearBoolValue=function(){return e.Message.setOneofField(this,4,proto.google.protobuf.Value.oneofGroups_[0],void 0)},proto.google.protobuf.Value.prototype.hasBoolValue=function(){return e.Message.getField(this,4)!=null},proto.google.protobuf.Value.prototype.getStructValue=function(){return e.Message.getWrapperField(this,proto.google.protobuf.Struct,5)},proto.google.protobuf.Value.prototype.setStructValue=function(t){return e.Message.setOneofWrapperField(this,5,proto.google.protobuf.Value.oneofGroups_[0],t)},proto.google.protobuf.Value.prototype.clearStructValue=function(){return this.setStructValue(void 0)},proto.google.protobuf.Value.prototype.hasStructValue=function(){return e.Message.getField(this,5)!=null},proto.google.protobuf.Value.prototype.getListValue=function(){return e.Message.getWrapperField(this,proto.google.protobuf.ListValue,6)},proto.google.protobuf.Value.prototype.setListValue=function(t){return e.Message.setOneofWrapperField(this,6,proto.google.protobuf.Value.oneofGroups_[0],t)},proto.google.protobuf.Value.prototype.clearListValue=function(){return this.setListValue(void 0)},proto.google.protobuf.Value.prototype.hasListValue=function(){return e.Message.getField(this,6)!=null},proto.google.protobuf.ListValue.repeatedFields_=[1],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ListValue.prototype.toObject=function(t){return proto.google.protobuf.ListValue.toObject(t,this)},proto.google.protobuf.ListValue.toObject=function(t,n){var i={valuesList:e.Message.toObjectList(n.getValuesList(),proto.google.protobuf.Value.toObject,t)};return t&&(i.$jspbMessageInstance=n),i}),proto.google.protobuf.ListValue.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.ListValue;return proto.google.protobuf.ListValue.deserializeBinaryFromReader(i,n)},proto.google.protobuf.ListValue.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=new proto.google.protobuf.Value;n.readMessage(s,proto.google.protobuf.Value.deserializeBinaryFromReader),t.addValues(s);break;default:n.skipField();break}}return t},proto.google.protobuf.ListValue.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.ListValue.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.ListValue.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getValuesList(),i.length>0&&n.writeRepeatedMessage(1,i,proto.google.protobuf.Value.serializeBinaryToWriter)},proto.google.protobuf.ListValue.prototype.getValuesList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.Value,1)},proto.google.protobuf.ListValue.prototype.setValuesList=function(t){return e.Message.setRepeatedWrapperField(this,1,t)},proto.google.protobuf.ListValue.prototype.addValues=function(t,n){return e.Message.addToRepeatedWrapperField(this,1,t,proto.google.protobuf.Value,n)},proto.google.protobuf.ListValue.prototype.clearValuesList=function(){return this.setValuesList([])},proto.google.protobuf.NullValue={NULL_VALUE:0},r.object.extend(o,proto.google.protobuf),proto.google.protobuf.JavaScriptValue,proto.google.protobuf.Value.prototype.toJavaScript=function(){var t=proto.google.protobuf.Value.KindCase;switch(this.getKindCase()){case t.NULL_VALUE:return null;case t.NUMBER_VALUE:return this.getNumberValue();case t.STRING_VALUE:return this.getStringValue();case t.BOOL_VALUE:return this.getBoolValue();case t.STRUCT_VALUE:return this.getStructValue().toJavaScript();case t.LIST_VALUE:return this.getListValue().toJavaScript();default:throw new Error("Unexpected struct type")}},proto.google.protobuf.Value.fromJavaScript=function(t){var n=new proto.google.protobuf.Value;switch(r.typeOf(t)){case"string":n.setStringValue(t);break;case"number":n.setNumberValue(t);break;case"boolean":n.setBoolValue(t);break;case"null":n.setNullValue(proto.google.protobuf.NullValue.NULL_VALUE);break;case"array":n.setListValue(proto.google.protobuf.ListValue.fromJavaScript(t));break;case"object":n.setStructValue(proto.google.protobuf.Struct.fromJavaScript(t));break;default:throw new Error("Unexpected struct type.")}return n},proto.google.protobuf.ListValue.prototype.toJavaScript=function(){for(var t=[],n=this.getValuesList(),i=0;i<n.length;i++)t[i]=n[i].toJavaScript();return t},proto.google.protobuf.ListValue.fromJavaScript=function(t){for(var n=new proto.google.protobuf.ListValue,i=0;i<t.length;i++)n.addValues(proto.google.protobuf.Value.fromJavaScript(t[i]));return n},proto.google.protobuf.Struct.prototype.toJavaScript=function(){var t={};return this.getFieldsMap().forEach(function(n,i){t[i]=n.toJavaScript()}),t},proto.google.protobuf.Struct.fromJavaScript=function(t){var n=new proto.google.protobuf.Struct,i=n.getFieldsMap();for(var s in t){var g=t[s];i.set(s,proto.google.protobuf.Value.fromJavaScript(g))}return n}}(struct_pb$2);class ArmClient{client;name;options;constructor(e,r,p={}){this.client=e.createServiceClient(ArmServiceClient_1),this.name=r,this.options=p}get ArmService(){return this.client}async getEndPosition(e={}){const r=this.ArmService,p=new arm_pb.GetEndPositionRequest;p.setName(this.name),p.setExtra(struct_pb$2.Struct.fromJavaScript(e)),this.options.requestLogger?.(p);const n=(await promisify(r.getEndPosition.bind(r),p)).getPose();if(!n)throw new Error("no pose");return{x:n.getX(),y:n.getY(),z:n.getZ(),ox:n.getOX(),oy:n.getOY(),oz:n.getOZ(),theta:n.getTheta()}}async moveToPosition(e,r,p={}){const t=this.ArmService,n=new common_pb$e.Pose;n.setX(e.x),n.setY(e.y),n.setZ(e.z),n.setOX(e.ox),n.setOY(e.oy),n.setOZ(e.oz),n.setTheta(e.theta);const i=new arm_pb.MoveToPositionRequest;i.setName(this.name),i.setTo(n),i.setWorldState(r),i.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(i),await promisify(t.moveToPosition.bind(t),i)}async moveToJointPositions(e,r={}){const p=this.ArmService,t=new arm_pb.JointPositions;t.setValuesList(e);const n=new arm_pb.MoveToJointPositionsRequest;n.setName(this.name),n.setPositions(t),n.setExtra(struct_pb$2.Struct.fromJavaScript(r)),this.options.requestLogger?.(n),await promisify(p.moveToJointPositions.bind(p),n)}async getJointPositions(e={}){const r=this.ArmService,p=new arm_pb.GetJointPositionsRequest;p.setName(this.name),p.setExtra(struct_pb$2.Struct.fromJavaScript(e)),this.options.requestLogger?.(p);const n=(await promisify(r.getJointPositions.bind(r),p)).getPositions();if(!n)throw new Error("no pose");return n}async stop(e={}){const r=this.ArmService,p=new arm_pb.StopRequest;p.setName(this.name),p.setExtra(struct_pb$2.Struct.fromJavaScript(e)),this.options.requestLogger?.(p),await promisify(r.getJointPositions.bind(r),p)}async isMoving(){const e=this.ArmService,r=new arm_pb.IsMovingRequest;return this.options.requestLogger?.(r),(await promisify(e.isMoving.bind(e),r)).getIsMoving()}}class BaseClient{client;name;options;constructor(e,r,p={}){this.client=e.createServiceClient(BaseServiceClient_1),this.name=r,this.options=p}get baseService(){return this.client}async moveStraight(e,r,p={}){const t=this.baseService,n=new base_pb.MoveStraightRequest;n.setName(this.name),n.setMmPerSec(r),n.setDistanceMm(e),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),await promisify(t.moveStraight.bind(t),n)}async spin(e,r,p={}){const t=this.baseService,n=new base_pb.SpinRequest;n.setName(this.name),n.setAngleDeg(e),n.setDegsPerSec(r),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),await promisify(t.spin.bind(t),n)}async setPower(e,r,p={}){const t=this.baseService,n=new base_pb.SetPowerRequest;n.setName(this.name),n.setLinear(e),n.setAngular(r),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),await promisify(t.setPower.bind(t),n)}async setVelocity(e,r,p={}){const t=this.baseService,n=new base_pb.SetVelocityRequest;n.setName(this.name),n.setLinear(e),n.setAngular(r),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),await promisify(t.setVelocity.bind(t),n)}async stop(e={}){const r=this.baseService,p=new base_pb.StopRequest;p.setName(this.name),p.setExtra(struct_pb$2.Struct.fromJavaScript(e)),this.options.requestLogger?.(p),await promisify(r.stop.bind(r),p)}}class BoardClient{client;name;options;constructor(e,r,p={}){this.client=e.createServiceClient(BoardServiceClient_1),this.name=r,this.options=p}get boardService(){return this.client}async status(e={}){const r=this.boardService,p=new board_pb.StatusRequest;return p.setName(this.name),p.setExtra(struct_pb$2.Struct.fromJavaScript(e)),this.options.requestLogger?.(p),await promisify(r.status.bind(r),p)}async setGPIO(e,r,p={}){const t=this.boardService,n=new board_pb.SetGPIORequest;n.setName(this.name),n.setPin(e),n.setHigh(r),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),await promisify(t.setGPIO.bind(t),n)}async getGPIO(e,r={}){const p=this.boardService,t=new board_pb.GetGPIORequest;return t.setName(this.name),t.setPin(e),t.setExtra(struct_pb$2.Struct.fromJavaScript(r)),this.options.requestLogger?.(t),(await promisify(p.getGPIO.bind(p),t)).getHigh()}async getPWM(e,r={}){const p=this.boardService,t=new board_pb.PWMRequest;return t.setName(this.name),t.setPin(e),t.setExtra(struct_pb$2.Struct.fromJavaScript(r)),this.options.requestLogger?.(t),(await promisify(p.pWM.bind(p),t)).getDutyCyclePct()}async setPWM(e,r,p={}){const t=this.boardService,n=new board_pb.SetPWMRequest;n.setName(this.name),n.setPin(e),n.setDutyCyclePct(r),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),await promisify(t.setPWM.bind(t),n)}async getPWMFrequency(e,r={}){const p=this.boardService,t=new board_pb.PWMFrequencyRequest;return t.setName(this.name),t.setPin(e),t.setExtra(struct_pb$2.Struct.fromJavaScript(r)),this.options.requestLogger?.(t),(await promisify(p.pWMFrequency.bind(p),t)).getFrequencyHz()}async setPWMFrequency(e,r,p={}){const t=this.boardService,n=new board_pb.SetPWMFrequencyRequest;n.setName(this.name),n.setPin(e),n.setFrequencyHz(r),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),await promisify(t.setPWMFrequency.bind(t),n)}async readAnalogReader(e,r,p={}){const t=this.boardService,n=new board_pb.ReadAnalogReaderRequest;return n.setBoardName(e),n.setAnalogReaderName(r),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),(await promisify(t.readAnalogReader.bind(t),n)).getValue()}async getDigitalInterruptValue(e,r,p={}){const t=this.boardService,n=new board_pb.GetDigitalInterruptValueRequest;return n.setBoardName(e),n.setDigitalInterruptName(r),n.setExtra(struct_pb$2.Struct.fromJavaScript(p)),this.options.requestLogger?.(n),(await promisify(t.getDigitalInterruptValue.bind(t),n)).getValue()}}var commonjsGlobal$2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},camera_pb={},googleProtobuf$2={};(function(exports){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(o,e,r){o instanceof String&&(o=String(o));for(var p=o.length,t=0;t<p;t++){var n=o[t];if(e.call(r,n,t,o))return{i:t,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||typeof Object.defineProperties=="function"?Object.defineProperty:function(o,e,r){o!=Array.prototype&&o!=Object.prototype&&(o[e]=r.value)},$jscomp.getGlobal=function(o){return typeof window<"u"&&window===o?o:typeof commonjsGlobal$2<"u"&&commonjsGlobal$2!=null?commonjsGlobal$2:o},$jscomp.global=$jscomp.getGlobal(commonjsGlobal$2),$jscomp.polyfill=function(o,e,r,p){if(e){for(r=$jscomp.global,o=o.split("."),p=0;p<o.length-1;p++){var t=o[p];t in r||(r[t]={}),r=r[t]}o=o[o.length-1],p=r[o],e=e(p),e!=p&&e!=null&&$jscomp.defineProperty(r,o,{configurable:!0,writable:!0,value:e})}},$jscomp.polyfill("Array.prototype.findIndex",function(o){return o||function(e,r){return $jscomp.findInternal(this,e,r).i}},"es6","es3"),$jscomp.checkStringArgs=function(o,e,r){if(o==null)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(e instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return o+""},$jscomp.polyfill("String.prototype.endsWith",function(o){return o||function(e,r){var p=$jscomp.checkStringArgs(this,e,"endsWith");e+="",r===void 0&&(r=p.length),r=Math.max(0,Math.min(r|0,p.length));for(var t=e.length;0<t&&0<r;)if(p[--r]!=e[--t])return!1;return 0>=t}},"es6","es3"),$jscomp.polyfill("Array.prototype.find",function(o){return o||function(e,r){return $jscomp.findInternal(this,e,r).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(o){return o||function(e,r){var p=$jscomp.checkStringArgs(this,e,"startsWith");e+="";var t=p.length,n=e.length;r=Math.max(0,Math.min(r|0,p.length));for(var i=0;i<n&&r<t;)if(p[r++]!=e[i++])return!1;return i>=n}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(o){return o||function(e){var r=$jscomp.checkStringArgs(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var p="";e;)e&1&&(p+=r),(e>>>=1)&&(r+=r);return p}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=commonjsGlobal$2||self,goog.exportPath_=function(o,e,r){o=o.split("."),r=r||goog.global,o[0]in r||typeof r.execScript>"u"||r.execScript("var "+o[0]);for(var p;o.length&&(p=o.shift());)o.length||e===void 0?r=r[p]&&r[p]!==Object.prototype[p]?r[p]:r[p]={}:r[p]=e},goog.define=function(o,e){return e},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(o){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");goog.constructNamespace_(o)},goog.constructNamespace_=function(o,e){goog.exportPath_(o,e)},goog.getScriptNonce=function(o){return o&&o!=goog.global?goog.getScriptNonce_(o.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(o){return(o=o.querySelector&&o.querySelector("script[nonce]"))&&(o=o.nonce||o.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(o)?o:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(o){if(typeof o!="string"||!o||o.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+o+" 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=o},goog.module.get=function(o){return goog.module.getInternal_(o)},goog.module.getInternal_=function(o){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 o=goog.global.$jscomp;return o?typeof o.getCurrentModulePath!="function"?!1:!!o.getCurrentModulePath():!1},goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(o){if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=o;else{var e=goog.global.$jscomp;if(!e||typeof e.getCurrentModulePath!="function")throw Error('Module with namespace "'+o+'" has been loaded incorrectly.');e=e.require(e.getCurrentModulePath()),goog.loadedModules_[o]={exports:e,type:goog.ModuleType.ES6,moduleId:o}}},goog.setTestOnly=function(o){if(goog.DISALLOW_TEST_ONLY_CODE)throw o=o||"",Error("Importing test-only code into non-debug environment"+(o?": "+o:"."))},goog.forwardDeclare=function(o){},goog.getObjectByName=function(o,e){o=o.split("."),e=e||goog.global;for(var r=0;r<o.length;r++)if(e=e[o[r]],e==null)return null;return e},goog.globalize=function(o,e){e=e||goog.global;for(var r in o)e[r]=o[r]},goog.addDependency=function(o,e,r,p){},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(o){goog.global.console&&goog.global.console.error(o)},goog.require=function(o){},goog.requireType=function(o){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(o){o.instance_=void 0,o.getInstance=function(){return o.instance_?o.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=o),o.instance_=new o)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE="",goog.TRANSPILER="transpile.js",goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(goog.hasBadLetScoping==null){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(o){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(o){return"(function(){"+o+`
269
269
  ;})();
270
270
  `},goog.loadModule=function(o){var e=goog.moduleLoaderState_;try{if(goog.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:goog.ModuleType.GOOG},goog.isFunction(o))var r=o.call(void 0,{});else if(typeof o=="string")goog.useSafari10Workaround()&&(o=goog.workaroundSafari10EvalBug(o)),r=goog.loadModuleFromSource_.call(void 0,o);else throw Error("Invalid module definition");var p=goog.moduleLoaderState_.moduleName;if(typeof p=="string"&&p)goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(p,r):goog.SEAL_MODULE_EXPORTS&&Object.seal&&typeof r=="object"&&r!=null&&Object.seal(r),goog.loadedModules_[p]={exports:r,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName};else throw Error('Invalid module name "'+p+'"')}finally{goog.moduleLoaderState_=e}},goog.loadModuleFromSource_=function(a){return eval(a),{}},goog.normalizePath_=function(o){o=o.split("/");for(var e=0;e<o.length;)o[e]=="."?o.splice(e,1):e&&o[e]==".."&&o[e-1]&&o[e-1]!=".."?o.splice(--e,2):e++;return o.join("/")},goog.loadFileSync_=function(o){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(o);try{var e=new goog.global.XMLHttpRequest;return e.open("get",o,!1),e.send(),e.status==0||e.status==200?e.responseText:null}catch{return null}},goog.transpile_=function(o,e,r){var p=goog.global.$jscomp;p||(goog.global.$jscomp=p={});var t=p.transpile;if(!t){var n=goog.basePath+goog.TRANSPILER,i=goog.loadFileSync_(n);if(i){if(function(){(0,eval)(i+`
271
271
  //# 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,p=goog.global.$jscomp,t=p.transpile}}return t||(t=p.transpile=function(s,g){return goog.logToConsole_(g+" requires transpilation but no transpiler was found."),s}),t(o,e,r)},goog.typeOf=function(o){var e=typeof o;if(e=="object")if(o){if(o instanceof Array)return"array";if(o instanceof Object)return e;var r=Object.prototype.toString.call(o);if(r=="[object Window]")return"object";if(r=="[object Array]"||typeof o.length=="number"&&typeof o.splice<"u"&&typeof o.propertyIsEnumerable<"u"&&!o.propertyIsEnumerable("splice"))return"array";if(r=="[object Function]"||typeof o.call<"u"&&typeof o.propertyIsEnumerable<"u"&&!o.propertyIsEnumerable("call"))return"function"}else return"null";else if(e=="function"&&typeof o.call>"u")return"object";return e},goog.isArray=function(o){return goog.typeOf(o)=="array"},goog.isArrayLike=function(o){var e=goog.typeOf(o);return e=="array"||e=="object"&&typeof o.length=="number"},goog.isDateLike=function(o){return goog.isObject(o)&&typeof o.getFullYear=="function"},goog.isFunction=function(o){return goog.typeOf(o)=="function"},goog.isObject=function(o){var e=typeof o;return e=="object"&&o!=null||e=="function"},goog.getUid=function(o){return Object.prototype.hasOwnProperty.call(o,goog.UID_PROPERTY_)&&o[goog.UID_PROPERTY_]||(o[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(o){return!!o[goog.UID_PROPERTY_]},goog.removeUid=function(o){o!==null&&"removeAttribute"in o&&o.removeAttribute(goog.UID_PROPERTY_);try{delete o[goog.UID_PROPERTY_]}catch{}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(o){var e=goog.typeOf(o);if(e=="object"||e=="array"){if(typeof o.clone=="function")return o.clone();e=e=="array"?[]:{};for(var r in o)e[r]=goog.cloneObject(o[r]);return e}return o},goog.bindNative_=function(o,e,r){return o.call.apply(o.bind,arguments)},goog.bindJs_=function(o,e,r){if(!o)throw Error();if(2<arguments.length){var p=Array.prototype.slice.call(arguments,2);return function(){var t=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(t,p),o.apply(e,t)}}return function(){return o.apply(e,arguments)}},goog.bind=function(o,e,r){return Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(o,e){var r=Array.prototype.slice.call(arguments,1);return function(){var p=r.slice();return p.push.apply(p,arguments),o.apply(this,p)}},goog.mixin=function(o,e){for(var r in e)o[r]=e[r]},goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date},goog.globalEval=function(o){if(goog.global.execScript)goog.global.execScript(o,"JavaScript");else if(goog.global.eval){if(goog.evalWorksForGlobals_==null){try{goog.global.eval("var _evalTest_ = 1;")}catch{}if(typeof goog.global._evalTest_<"u"){try{delete goog.global._evalTest_}catch{}goog.evalWorksForGlobals_=!0}else goog.evalWorksForGlobals_=!1}if(goog.evalWorksForGlobals_)goog.global.eval(o);else{var e=goog.global.document,r=e.createElement("script");r.type="text/javascript",r.defer=!1,r.appendChild(e.createTextNode(o)),e.head.appendChild(r),e.head.removeChild(r)}}else throw Error("goog.globalEval not available")},goog.evalWorksForGlobals_=null,goog.getCssName=function(o,e){if(String(o).charAt(0)==".")throw Error('className passed in goog.getCssName must not start with ".". You passed: '+o);var r=function(t){return goog.cssNameMapping_[t]||t},p=function(t){t=t.split("-");for(var n=[],i=0;i<t.length;i++)n.push(r(t[i]));return n.join("-")};return p=goog.cssNameMapping_?goog.cssNameMappingStyle_=="BY_WHOLE"?r:p:function(t){return t},o=e?o+"-"+p(e):p(o),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(o):o},goog.setCssNameMapping=function(o,e){goog.cssNameMapping_=o,goog.cssNameMappingStyle_=e},goog.getMsg=function(o,e,r){return r&&r.html&&(o=o.replace(/</g,"&lt;")),e&&(o=o.replace(/\{\$([^}]+)}/g,function(p,t){return e!=null&&t in e?e[t]:p})),o},goog.getMsgWithFallback=function(o,e){return o},goog.exportSymbol=function(o,e,r){goog.exportPath_(o,e,r)},goog.exportProperty=function(o,e,r){o[e]=r},goog.inherits=function(o,e){function r(){}r.prototype=e.prototype,o.superClass_=e.prototype,o.prototype=new r,o.prototype.constructor=o,o.base=function(p,t,n){for(var i=Array(arguments.length-2),s=2;s<arguments.length;s++)i[s-2]=arguments[s];return e.prototype[t].apply(p,i)}},goog.scope=function(o){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");o.call(goog.global)},goog.defineClass=function(o,e){var r=e.constructor,p=e.statics;return r&&r!=Object.prototype.constructor||(r=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),r=goog.defineClass.createSealingConstructor_(r,o),o&&goog.inherits(r,o),delete e.constructor,delete e.statics,goog.defineClass.applyProperties_(r.prototype,e),p!=null&&(p instanceof Function?p(r):goog.defineClass.applyProperties_(r,p)),r},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(o,e){if(!goog.defineClass.SEAL_CLASS_INSTANCES)return o;var r=!goog.defineClass.isUnsealable_(e),p=function(){var t=o.apply(this,arguments)||this;return t[goog.UID_PROPERTY_]=t[goog.UID_PROPERTY_],this.constructor===p&&r&&Object.seal instanceof Function&&Object.seal(t),t};return p},goog.defineClass.isUnsealable_=function(o){return o&&o.prototype&&o.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(o,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);for(var p=0;p<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;p++)r=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[p],Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r])},goog.tagUnsealableClass=function(o){},goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable",goog.TRUSTED_TYPES_POLICY_NAME="",goog.identity_=function(o){return o},goog.createTrustedTypesPolicy=function(o){var e=null,r=goog.global.trustedTypes||goog.global.TrustedTypes;if(!r||!r.createPolicy)return e;try{e=r.createPolicy(o,{createHTML:goog.identity_,createScript:goog.identity_,createScriptURL:goog.identity_,createURL:goog.identity_})}catch(p){goog.logToConsole_(p.message)}return e},goog.TRUSTED_TYPES_POLICY_=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#base"):null,goog.object={},goog.object.is=function(o,e){return o===e?o!==0||1/o===1/e:o!==o&&e!==e},goog.object.forEach=function(o,e,r){for(var p in o)e.call(r,o[p],p,o)},goog.object.filter=function(o,e,r){var p={},t;for(t in o)e.call(r,o[t],t,o)&&(p[t]=o[t]);return p},goog.object.map=function(o,e,r){var p={},t;for(t in o)p[t]=e.call(r,o[t],t,o);return p},goog.object.some=function(o,e,r){for(var p in o)if(e.call(r,o[p],p,o))return!0;return!1},goog.object.every=function(o,e,r){for(var p in o)if(!e.call(r,o[p],p,o))return!1;return!0},goog.object.getCount=function(o){var e=0,r;for(r in o)e++;return e},goog.object.getAnyKey=function(o){for(var e in o)return e},goog.object.getAnyValue=function(o){for(var e in o)return o[e]},goog.object.contains=function(o,e){return goog.object.containsValue(o,e)},goog.object.getValues=function(o){var e=[],r=0,p;for(p in o)e[r++]=o[p];return e},goog.object.getKeys=function(o){var e=[],r=0,p;for(p in o)e[r++]=p;return e},goog.object.getValueByKeys=function(o,e){var r=goog.isArrayLike(e),p=r?e:arguments;for(r=r?0:1;r<p.length;r++){if(o==null)return;o=o[p[r]]}return o},goog.object.containsKey=function(o,e){return o!==null&&e in o},goog.object.containsValue=function(o,e){for(var r in o)if(o[r]==e)return!0;return!1},goog.object.findKey=function(o,e,r){for(var p in o)if(e.call(r,o[p],p,o))return p},goog.object.findValue=function(o,e,r){return(e=goog.object.findKey(o,e,r))&&o[e]},goog.object.isEmpty=function(o){for(var e in o)return!1;return!0},goog.object.clear=function(o){for(var e in o)delete o[e]},goog.object.remove=function(o,e){var r;return(r=e in o)&&delete o[e],r},goog.object.add=function(o,e,r){if(o!==null&&e in o)throw Error('The object already contains the key "'+e+'"');goog.object.set(o,e,r)},goog.object.get=function(o,e,r){return o!==null&&e in o?o[e]:r},goog.object.set=function(o,e,r){o[e]=r},goog.object.setIfUndefined=function(o,e,r){return e in o?o[e]:o[e]=r},goog.object.setWithReturnValueIfNotSet=function(o,e,r){return e in o?o[e]:(r=r(),o[e]=r)},goog.object.equals=function(o,e){for(var r in o)if(!(r in e)||o[r]!==e[r])return!1;for(var p in e)if(!(p in o))return!1;return!0},goog.object.clone=function(o){var e={},r;for(r in o)e[r]=o[r];return e},goog.object.unsafeClone=function(o){var e=goog.typeOf(o);if(e=="object"||e=="array"){if(goog.isFunction(o.clone))return o.clone();e=e=="array"?[]:{};for(var r in o)e[r]=goog.object.unsafeClone(o[r]);return e}return o},goog.object.transpose=function(o){var e={},r;for(r in o)e[o[r]]=r;return e},goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.object.extend=function(o,e){for(var r,p,t=1;t<arguments.length;t++){p=arguments[t];for(r in p)o[r]=p[r];for(var n=0;n<goog.object.PROTOTYPE_FIELDS_.length;n++)r=goog.object.PROTOTYPE_FIELDS_[n],Object.prototype.hasOwnProperty.call(p,r)&&(o[r]=p[r])}},goog.object.create=function(o){var e=arguments.length;if(e==1&&Array.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(e%2)throw Error("Uneven number of arguments");for(var r={},p=0;p<e;p+=2)r[arguments[p]]=arguments[p+1];return r},goog.object.createSet=function(o){var e=arguments.length;if(e==1&&Array.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var r={},p=0;p<e;p++)r[arguments[p]]=!0;return r},goog.object.createImmutableView=function(o){var e=o;return Object.isFrozen&&!Object.isFrozen(o)&&(e=Object.create(o),Object.freeze(e)),e},goog.object.isImmutableView=function(o){return!!Object.isFrozen&&Object.isFrozen(o)},goog.object.getAllPropertyNames=function(o,e,r){if(!o)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return goog.object.getKeys(o);for(var p={};o&&(o!==Object.prototype||e)&&(o!==Function.prototype||r);){for(var t=Object.getOwnPropertyNames(o),n=0;n<t.length;n++)p[t[n]]=!0;o=Object.getPrototypeOf(o)}return goog.object.getKeys(p)},goog.object.getSuperClass=function(o){return(o=Object.getPrototypeOf(o.prototype))&&o.constructor};var jspb={asserts:{}};jspb.asserts.doAssertFailure=function(o,e,r,p){var t="Assertion failed";if(r){t+=": "+r;var n=p}else o&&(t+=": "+o,n=e);throw Error(""+t,n||[])},jspb.asserts.assert=function(o,e,r){for(var p=[],t=2;t<arguments.length;++t)p[t-2]=arguments[t];return o||jspb.asserts.doAssertFailure("",null,e,p),o},jspb.asserts.assertString=function(o,e,r){for(var p=[],t=2;t<arguments.length;++t)p[t-2]=arguments[t];return typeof o!="string"&&jspb.asserts.doAssertFailure("Expected string but got %s: %s.",[goog.typeOf(o),o],e,p),o},jspb.asserts.assertArray=function(o,e,r){for(var p=[],t=2;t<arguments.length;++t)p[t-2]=arguments[t];return Array.isArray(o)||jspb.asserts.doAssertFailure("Expected array but got %s: %s.",[goog.typeOf(o),o],e,p),o},jspb.asserts.fail=function(o,e){for(var r=[],p=1;p<arguments.length;++p)r[p-1]=arguments[p];throw Error("Failure"+(o?": "+o:""),r)},jspb.asserts.assertInstanceof=function(o,e,r,p){for(var t=[],n=3;n<arguments.length;++n)t[n-3]=arguments[n];return o instanceof e||jspb.asserts.doAssertFailure("Expected instanceof %s but got %s.",[jspb.asserts.getType(e),jspb.asserts.getType(o)],r,t),o},jspb.asserts.getType=function(o){return o instanceof Function?o.displayName||o.name||"unknown type name":o instanceof Object?o.constructor.displayName||o.constructor.name||Object.prototype.toString.call(o):o===null?"null":typeof o},jspb.BinaryConstants={},jspb.ConstBinaryMessage=function(){},jspb.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(o){var e=jspb.BinaryConstants.FieldType,r=jspb.BinaryConstants.WireType;switch(o){case e.INT32:case e.INT64:case e.UINT32:case e.UINT64:case e.SINT32:case e.SINT64:case e.BOOL:case e.ENUM:case e.VHASH64:return r.VARINT;case e.DOUBLE:case e.FIXED64:case e.SFIXED64:case e.FHASH64:return r.FIXED64;case e.STRING:case e.MESSAGE:case e.BYTES:return r.DELIMITED;case e.FLOAT:case e.FIXED32:case e.SFIXED32:return r.FIXED32;default:return r.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=9223372036854776e3,jspb.BinaryConstants.TWO_TO_64=18446744073709552e3,jspb.BinaryConstants.ZERO_HASH="\0\0\0\0\0\0\0\0",goog.debug={},goog.debug.Error=function(o){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var e=Error().stack;e&&(this.stack=e)}o&&(this.message=String(o)),this.reportErrorToServer=!0},goog.inherits(goog.debug.Error,Error),goog.debug.Error.prototype.name="CustomError",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.asserts={},goog.asserts.ENABLE_ASSERTS=goog.DEBUG,goog.asserts.AssertionError=function(o,e){goog.debug.Error.call(this,goog.asserts.subs_(o,e)),this.messagePattern=o},goog.inherits(goog.asserts.AssertionError,goog.debug.Error),goog.asserts.AssertionError.prototype.name="AssertionError",goog.asserts.DEFAULT_ERROR_HANDLER=function(o){throw o},goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER,goog.asserts.subs_=function(o,e){o=o.split("%s");for(var r="",p=o.length-1,t=0;t<p;t++)r+=o[t]+(t<e.length?e[t]:"%s");return r+o[p]},goog.asserts.doAssertFailure_=function(o,e,r,p){var t="Assertion failed";if(r){t+=": "+r;var n=p}else o&&(t+=": "+o,n=e);o=new goog.asserts.AssertionError(""+t,n||[]),goog.asserts.errorHandler_(o)},goog.asserts.setErrorHandler=function(o){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=o)},goog.asserts.assert=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&!o&&goog.asserts.doAssertFailure_("",null,e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertExists=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&o==null&&goog.asserts.doAssertFailure_("Expected to exist: %s.",[o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.fail=function(o,e){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(o?": "+o:""),Array.prototype.slice.call(arguments,1)))},goog.asserts.assertNumber=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&typeof o!="number"&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertString=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&typeof o!="string"&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertFunction=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(o)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertObject=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(o)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertArray=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&!Array.isArray(o)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertBoolean=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&typeof o!="boolean"&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertElement=function(o,e,r){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(o)&&o.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertInstanceof=function(o,e,r,p){return!goog.asserts.ENABLE_ASSERTS||o instanceof e||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(e),goog.asserts.getType_(o)],r,Array.prototype.slice.call(arguments,3)),o},goog.asserts.assertFinite=function(o,e,r){return!goog.asserts.ENABLE_ASSERTS||typeof o=="number"&&isFinite(o)||goog.asserts.doAssertFailure_("Expected %s to be a finite number but it is not.",[o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertObjectPrototypeIsIntact=function(){for(var o in Object.prototype)goog.asserts.fail(o+" should not be enumerable in Object.prototype.")},goog.asserts.getType_=function(o){return o instanceof Function?o.displayName||o.name||"unknown type name":o instanceof Object?o.constructor.displayName||o.constructor.name||Object.prototype.toString.call(o):o===null?"null":typeof o},goog.array={},goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE,goog.array.ASSUME_NATIVE_FUNCTIONS=2012<goog.FEATURESET_YEAR,goog.array.peek=function(o){return o[o.length-1]},goog.array.last=goog.array.peek,goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(o,e,r){return goog.asserts.assert(o.length!=null),Array.prototype.indexOf.call(o,e,r)}:function(o,e,r){if(r=r==null?0:0>r?Math.max(0,o.length+r):r,typeof o=="string")return typeof e!="string"||e.length!=1?-1:o.indexOf(e,r);for(;r<o.length;r++)if(r in o&&o[r]===e)return r;return-1},goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(o,e,r){return goog.asserts.assert(o.length!=null),Array.prototype.lastIndexOf.call(o,e,r??o.length-1)}:function(o,e,r){if(r=r??o.length-1,0>r&&(r=Math.max(0,o.length+r)),typeof o=="string")return typeof e!="string"||e.length!=1?-1:o.lastIndexOf(e,r);for(;0<=r;r--)if(r in o&&o[r]===e)return r;return-1},goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(o,e,r){goog.asserts.assert(o.length!=null),Array.prototype.forEach.call(o,e,r)}:function(o,e,r){for(var p=o.length,t=typeof o=="string"?o.split(""):o,n=0;n<p;n++)n in t&&e.call(r,t[n],n,o)},goog.array.forEachRight=function(o,e,r){var p=o.length,t=typeof o=="string"?o.split(""):o;for(--p;0<=p;--p)p in t&&e.call(r,t[p],p,o)},goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(o,e,r){return goog.asserts.assert(o.length!=null),Array.prototype.filter.call(o,e,r)}:function(o,e,r){for(var p=o.length,t=[],n=0,i=typeof o=="string"?o.split(""):o,s=0;s<p;s++)if(s in i){var g=i[s];e.call(r,g,s,o)&&(t[n++]=g)}return t},goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(o,e,r){return goog.asserts.assert(o.length!=null),Array.prototype.map.call(o,e,r)}:function(o,e,r){for(var p=o.length,t=Array(p),n=typeof o=="string"?o.split(""):o,i=0;i<p;i++)i in n&&(t[i]=e.call(r,n[i],i,o));return t},goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(o,e,r,p){return goog.asserts.assert(o.length!=null),p&&(e=goog.bind(e,p)),Array.prototype.reduce.call(o,e,r)}:function(o,e,r,p){var t=r;return goog.array.forEach(o,function(n,i){t=e.call(p,t,n,i,o)}),t},goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(o,e,r,p){return goog.asserts.assert(o.length!=null),goog.asserts.assert(e!=null),p&&(e=goog.bind(e,p)),Array.prototype.reduceRight.call(o,e,r)}:function(o,e,r,p){var t=r;return goog.array.forEachRight(o,function(n,i){t=e.call(p,t,n,i,o)}),t},goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(o,e,r){return goog.asserts.assert(o.length!=null),Array.prototype.some.call(o,e,r)}:function(o,e,r){for(var p=o.length,t=typeof o=="string"?o.split(""):o,n=0;n<p;n++)if(n in t&&e.call(r,t[n],n,o))return!0;return!1},goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(o,e,r){return goog.asserts.assert(o.length!=null),Array.prototype.every.call(o,e,r)}:function(o,e,r){for(var p=o.length,t=typeof o=="string"?o.split(""):o,n=0;n<p;n++)if(n in t&&!e.call(r,t[n],n,o))return!1;return!0},goog.array.count=function(o,e,r){var p=0;return goog.array.forEach(o,function(t,n,i){e.call(r,t,n,i)&&++p},r),p},goog.array.find=function(o,e,r){return e=goog.array.findIndex(o,e,r),0>e?null:typeof o=="string"?o.charAt(e):o[e]},goog.array.findIndex=function(o,e,r){for(var p=o.length,t=typeof o=="string"?o.split(""):o,n=0;n<p;n++)if(n in t&&e.call(r,t[n],n,o))return n;return-1},goog.array.findRight=function(o,e,r){return e=goog.array.findIndexRight(o,e,r),0>e?null:typeof o=="string"?o.charAt(e):o[e]},goog.array.findIndexRight=function(o,e,r){var p=o.length,t=typeof o=="string"?o.split(""):o;for(--p;0<=p;p--)if(p in t&&e.call(r,t[p],p,o))return p;return-1},goog.array.contains=function(o,e){return 0<=goog.array.indexOf(o,e)},goog.array.isEmpty=function(o){return o.length==0},goog.array.clear=function(o){if(!Array.isArray(o))for(var e=o.length-1;0<=e;e--)delete o[e];o.length=0},goog.array.insert=function(o,e){goog.array.contains(o,e)||o.push(e)},goog.array.insertAt=function(o,e,r){goog.array.splice(o,r,0,e)},goog.array.insertArrayAt=function(o,e,r){goog.partial(goog.array.splice,o,r,0).apply(null,e)},goog.array.insertBefore=function(o,e,r){var p;arguments.length==2||0>(p=goog.array.indexOf(o,r))?o.push(e):goog.array.insertAt(o,e,p)},goog.array.remove=function(o,e){e=goog.array.indexOf(o,e);var r;return(r=0<=e)&&goog.array.removeAt(o,e),r},goog.array.removeLast=function(o,e){return e=goog.array.lastIndexOf(o,e),0<=e?(goog.array.removeAt(o,e),!0):!1},goog.array.removeAt=function(o,e){return goog.asserts.assert(o.length!=null),Array.prototype.splice.call(o,e,1).length==1},goog.array.removeIf=function(o,e,r){return e=goog.array.findIndex(o,e,r),0<=e?(goog.array.removeAt(o,e),!0):!1},goog.array.removeAllIf=function(o,e,r){var p=0;return goog.array.forEachRight(o,function(t,n){e.call(r,t,n,o)&&goog.array.removeAt(o,n)&&p++}),p},goog.array.concat=function(o){return Array.prototype.concat.apply([],arguments)},goog.array.join=function(o){return Array.prototype.concat.apply([],arguments)},goog.array.toArray=function(o){var e=o.length;if(0<e){for(var r=Array(e),p=0;p<e;p++)r[p]=o[p];return r}return[]},goog.array.clone=goog.array.toArray,goog.array.extend=function(o,e){for(var r=1;r<arguments.length;r++){var p=arguments[r];if(goog.isArrayLike(p)){var t=o.length||0,n=p.length||0;o.length=t+n;for(var i=0;i<n;i++)o[t+i]=p[i]}else o.push(p)}},goog.array.splice=function(o,e,r,p){return goog.asserts.assert(o.length!=null),Array.prototype.splice.apply(o,goog.array.slice(arguments,1))},goog.array.slice=function(o,e,r){return goog.asserts.assert(o.length!=null),2>=arguments.length?Array.prototype.slice.call(o,e):Array.prototype.slice.call(o,e,r)},goog.array.removeDuplicates=function(o,e,r){e=e||o;var p=function(g){return goog.isObject(g)?"o"+goog.getUid(g):(typeof g).charAt(0)+g};r=r||p,p={};for(var t=0,n=0;n<o.length;){var i=o[n++],s=r(i);Object.prototype.hasOwnProperty.call(p,s)||(p[s]=!0,e[t++]=i)}e.length=t},goog.array.binarySearch=function(o,e,r){return goog.array.binarySearch_(o,r||goog.array.defaultCompare,!1,e)},goog.array.binarySelect=function(o,e,r){return goog.array.binarySearch_(o,e,!0,void 0,r)},goog.array.binarySearch_=function(o,e,r,p,t){for(var n=0,i=o.length,s;n<i;){var g=n+(i-n>>>1),l=r?e.call(t,o[g],g,o):e(p,o[g]);0<l?n=g+1:(i=g,s=!l)}return s?n:-n-1},goog.array.sort=function(o,e){o.sort(e||goog.array.defaultCompare)},goog.array.stableSort=function(o,e){for(var r=Array(o.length),p=0;p<o.length;p++)r[p]={index:p,value:o[p]};var t=e||goog.array.defaultCompare;for(goog.array.sort(r,function(n,i){return t(n.value,i.value)||n.index-i.index}),p=0;p<o.length;p++)o[p]=r[p].value},goog.array.sortByKey=function(o,e,r){var p=r||goog.array.defaultCompare;goog.array.sort(o,function(t,n){return p(e(t),e(n))})},goog.array.sortObjectsByKey=function(o,e,r){goog.array.sortByKey(o,function(p){return p[e]},r)},goog.array.isSorted=function(o,e,r){e=e||goog.array.defaultCompare;for(var p=1;p<o.length;p++){var t=e(o[p-1],o[p]);if(0<t||t==0&&r)return!1}return!0},goog.array.equals=function(o,e,r){if(!goog.isArrayLike(o)||!goog.isArrayLike(e)||o.length!=e.length)return!1;var p=o.length;r=r||goog.array.defaultCompareEquality;for(var t=0;t<p;t++)if(!r(o[t],e[t]))return!1;return!0},goog.array.compare3=function(o,e,r){r=r||goog.array.defaultCompare;for(var p=Math.min(o.length,e.length),t=0;t<p;t++){var n=r(o[t],e[t]);if(n!=0)return n}return goog.array.defaultCompare(o.length,e.length)},goog.array.defaultCompare=function(o,e){return o>e?1:o<e?-1:0},goog.array.inverseDefaultCompare=function(o,e){return-goog.array.defaultCompare(o,e)},goog.array.defaultCompareEquality=function(o,e){return o===e},goog.array.binaryInsert=function(o,e,r){return r=goog.array.binarySearch(o,e,r),0>r?(goog.array.insertAt(o,e,-(r+1)),!0):!1},goog.array.binaryRemove=function(o,e,r){return e=goog.array.binarySearch(o,e,r),0<=e?goog.array.removeAt(o,e):!1},goog.array.bucket=function(o,e,r){for(var p={},t=0;t<o.length;t++){var n=o[t],i=e.call(r,n,t,o);i!==void 0&&(p[i]||(p[i]=[])).push(n)}return p},goog.array.toObject=function(o,e,r){var p={};return goog.array.forEach(o,function(t,n){p[e.call(r,t,n,o)]=t}),p},goog.array.range=function(o,e,r){var p=[],t=0,n=o;if(r=r||1,e!==void 0&&(t=o,n=e),0>r*(n-t))return[];if(0<r)for(o=t;o<n;o+=r)p.push(o);else for(o=t;o>n;o+=r)p.push(o);return p},goog.array.repeat=function(o,e){for(var r=[],p=0;p<e;p++)r[p]=o;return r},goog.array.flatten=function(o){for(var e=[],r=0;r<arguments.length;r++){var p=arguments[r];if(Array.isArray(p))for(var t=0;t<p.length;t+=8192){var n=goog.array.slice(p,t,t+8192);n=goog.array.flatten.apply(null,n);for(var i=0;i<n.length;i++)e.push(n[i])}else e.push(p)}return e},goog.array.rotate=function(o,e){return goog.asserts.assert(o.length!=null),o.length&&(e%=o.length,0<e?Array.prototype.unshift.apply(o,o.splice(-e,e)):0>e&&Array.prototype.push.apply(o,o.splice(0,-e))),o},goog.array.moveItem=function(o,e,r){goog.asserts.assert(0<=e&&e<o.length),goog.asserts.assert(0<=r&&r<o.length),e=Array.prototype.splice.call(o,e,1),Array.prototype.splice.call(o,r,0,e[0])},goog.array.zip=function(o){if(!arguments.length)return[];for(var e=[],r=arguments[0].length,p=1;p<arguments.length;p++)arguments[p].length<r&&(r=arguments[p].length);for(p=0;p<r;p++){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n][p]);e.push(t)}return e},goog.array.shuffle=function(o,e){e=e||Math.random;for(var r=o.length-1;0<r;r--){var p=Math.floor(e()*(r+1)),t=o[r];o[r]=o[p],o[p]=t}},goog.array.copyByIndex=function(o,e){var r=[];return goog.array.forEach(e,function(p){r.push(o[p])}),r},goog.array.concatMap=function(o,e,r){return goog.array.concat.apply([],goog.array.map(o,e,r))},goog.crypt={},goog.crypt.stringToByteArray=function(o){for(var e=[],r=0,p=0;p<o.length;p++){var t=o.charCodeAt(p);255<t&&(e[r++]=t&255,t>>=8),e[r++]=t}return e},goog.crypt.byteArrayToString=function(o){if(8192>=o.length)return String.fromCharCode.apply(null,o);for(var e="",r=0;r<o.length;r+=8192){var p=goog.array.slice(o,r,r+8192);e+=String.fromCharCode.apply(null,p)}return e},goog.crypt.byteArrayToHex=function(o,e){return goog.array.map(o,function(r){return r=r.toString(16),1<r.length?r:"0"+r}).join(e||"")},goog.crypt.hexToByteArray=function(o){goog.asserts.assert(o.length%2==0,"Key string length must be multiple of 2");for(var e=[],r=0;r<o.length;r+=2)e.push(parseInt(o.substring(r,r+2),16));return e},goog.crypt.stringToUtf8ByteArray=function(o){for(var e=[],r=0,p=0;p<o.length;p++){var t=o.charCodeAt(p);128>t?e[r++]=t:(2048>t?e[r++]=t>>6|192:((t&64512)==55296&&p+1<o.length&&(o.charCodeAt(p+1)&64512)==56320?(t=65536+((t&1023)<<10)+(o.charCodeAt(++p)&1023),e[r++]=t>>18|240,e[r++]=t>>12&63|128):e[r++]=t>>12|224,e[r++]=t>>6&63|128),e[r++]=t&63|128)}return e},goog.crypt.utf8ByteArrayToString=function(o){for(var e=[],r=0,p=0;r<o.length;){var t=o[r++];if(128>t)e[p++]=String.fromCharCode(t);else if(191<t&&224>t){var n=o[r++];e[p++]=String.fromCharCode((t&31)<<6|n&63)}else if(239<t&&365>t){n=o[r++];var i=o[r++],s=o[r++];t=((t&7)<<18|(n&63)<<12|(i&63)<<6|s&63)-65536,e[p++]=String.fromCharCode(55296+(t>>10)),e[p++]=String.fromCharCode(56320+(t&1023))}else n=o[r++],i=o[r++],e[p++]=String.fromCharCode((t&15)<<12|(n&63)<<6|i&63)}return e.join("")},goog.crypt.xorByteArray=function(o,e){goog.asserts.assert(o.length==e.length,"XOR array lengths must match");for(var r=[],p=0;p<o.length;p++)r.push(o[p]^e[p]);return r},goog.dom.asserts={},goog.dom.asserts.assertIsLocation=function(o){if(goog.asserts.ENABLE_ASSERTS){var e=goog.dom.asserts.getWindow_(o);e&&(!o||!(o instanceof e.Location)&&o instanceof e.Element)&&goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s",goog.dom.asserts.debugStringForType_(o))}return o},goog.dom.asserts.assertIsElementType_=function(o,e){if(goog.asserts.ENABLE_ASSERTS){var r=goog.dom.asserts.getWindow_(o);r&&typeof r[e]<"u"&&(o&&(o instanceof r[e]||!(o instanceof r.Location||o instanceof r.Element))||goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,goog.dom.asserts.debugStringForType_(o)))}return o},goog.dom.asserts.assertIsHTMLAnchorElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLAnchorElement")},goog.dom.asserts.assertIsHTMLButtonElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLButtonElement")},goog.dom.asserts.assertIsHTMLLinkElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLLinkElement")},goog.dom.asserts.assertIsHTMLImageElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLImageElement")},goog.dom.asserts.assertIsHTMLAudioElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLAudioElement")},goog.dom.asserts.assertIsHTMLVideoElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLVideoElement")},goog.dom.asserts.assertIsHTMLInputElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLInputElement")},goog.dom.asserts.assertIsHTMLTextAreaElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLTextAreaElement")},goog.dom.asserts.assertIsHTMLCanvasElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLCanvasElement")},goog.dom.asserts.assertIsHTMLEmbedElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLEmbedElement")},goog.dom.asserts.assertIsHTMLFormElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLFormElement")},goog.dom.asserts.assertIsHTMLFrameElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLFrameElement")},goog.dom.asserts.assertIsHTMLIFrameElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLIFrameElement")},goog.dom.asserts.assertIsHTMLObjectElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLObjectElement")},goog.dom.asserts.assertIsHTMLScriptElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLScriptElement")},goog.dom.asserts.debugStringForType_=function(o){if(goog.isObject(o))try{return o.constructor.displayName||o.constructor.name||Object.prototype.toString.call(o)}catch{return"<object could not be stringified>"}else return o===void 0?"undefined":o===null?"null":typeof o},goog.dom.asserts.getWindow_=function(o){try{var e=o&&o.ownerDocument,r=e&&(e.defaultView||e.parentWindow);if(r=r||goog.global,r.Element&&r.Location)return r}catch{}return null},goog.functions={},goog.functions.constant=function(o){return function(){return o}},goog.functions.FALSE=function(){return!1},goog.functions.TRUE=function(){return!0},goog.functions.NULL=function(){return null},goog.functions.identity=function(o,e){return o},goog.functions.error=function(o){return function(){throw Error(o)}},goog.functions.fail=function(o){return function(){throw o}},goog.functions.lock=function(o,e){return e=e||0,function(){return o.apply(this,Array.prototype.slice.call(arguments,0,e))}},goog.functions.nth=function(o){return function(){return arguments[o]}},goog.functions.partialRight=function(o,e){var r=Array.prototype.slice.call(arguments,1);return function(){var p=Array.prototype.slice.call(arguments);return p.push.apply(p,r),o.apply(this,p)}},goog.functions.withReturnValue=function(o,e){return goog.functions.sequence(o,goog.functions.constant(e))},goog.functions.equalTo=function(o,e){return function(r){return e?o==r:o===r}},goog.functions.compose=function(o,e){var r=arguments,p=r.length;return function(){var t;p&&(t=r[p-1].apply(this,arguments));for(var n=p-2;0<=n;n--)t=r[n].call(this,t);return t}},goog.functions.sequence=function(o){var e=arguments,r=e.length;return function(){for(var p,t=0;t<r;t++)p=e[t].apply(this,arguments);return p}},goog.functions.and=function(o){var e=arguments,r=e.length;return function(){for(var p=0;p<r;p++)if(!e[p].apply(this,arguments))return!1;return!0}},goog.functions.or=function(o){var e=arguments,r=e.length;return function(){for(var p=0;p<r;p++)if(e[p].apply(this,arguments))return!0;return!1}},goog.functions.not=function(o){return function(){return!o.apply(this,arguments)}},goog.functions.create=function(o,e){var r=function(){};return r.prototype=o.prototype,r=new r,o.apply(r,Array.prototype.slice.call(arguments,1)),r},goog.functions.CACHE_RETURN_VALUE=!0,goog.functions.cacheReturnValue=function(o){var e=!1,r;return function(){return goog.functions.CACHE_RETURN_VALUE?(e||(r=o(),e=!0),r):o()}},goog.functions.once=function(o){var e=o;return function(){if(e){var r=e;e=null,r()}}},goog.functions.debounce=function(o,e,r){var p=0;return function(t){goog.global.clearTimeout(p);var n=arguments;p=goog.global.setTimeout(function(){o.apply(r,n)},e)}},goog.functions.throttle=function(o,e,r){var p=0,t=!1,n=[],i=function(){p=0,t&&(t=!1,s())},s=function(){p=goog.global.setTimeout(i,e),o.apply(r,n)};return function(g){n=arguments,p?t=!0:s()}},goog.functions.rateLimit=function(o,e,r){var p=0,t=function(){p=0};return function(n){p||(p=goog.global.setTimeout(t,e),o.apply(r,arguments))}},goog.dom.HtmlElement=function(){},goog.dom.TagName=function(o){this.tagName_=o},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.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(o){return goog.dom.tags.VOID_TAGS_[o]===!0},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.string={},goog.string.TypedString=function(){},goog.string.Const=function(o,e){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=o===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&e||"",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.DEBUG&&(goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"}),goog.string.Const.unwrap=function(o){return o instanceof goog.string.Const&&o.constructor===goog.string.Const&&o.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?o.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+o+"'"),"type_error:Const")},goog.string.Const.from=function(o){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,o)},goog.string.Const.TYPE_MARKER_={},goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.Const.EMPTY=goog.string.Const.from(""),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(o){return o=goog.string.Const.unwrap(o),o.length===0?goog.html.SafeScript.EMPTY:goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeScript.fromConstantAndArgs=function(o,e){for(var r=[],p=1;p<arguments.length;p++)r.push(goog.html.SafeScript.stringify_(arguments[p]));return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("("+goog.string.Const.unwrap(o)+")("+r.join(", ")+");")},goog.html.SafeScript.fromJson=function(o){return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(goog.html.SafeScript.stringify_(o))},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(o){return goog.html.SafeScript.unwrapTrustedScript(o).toString()},goog.html.SafeScript.unwrapTrustedScript=function(o){return o instanceof goog.html.SafeScript&&o.constructor===goog.html.SafeScript&&o.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseSafeScriptWrappedValue_:(goog.asserts.fail("expected object of type SafeScript, got '"+o+"' of type "+goog.typeOf(o)),"type_error:SafeScript")},goog.html.SafeScript.stringify_=function(o){return JSON.stringify(o).replace(/</g,"\\x3c")},goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse=function(o){return new goog.html.SafeScript().initSecurityPrivateDoNotAccessOrElse_(o)},goog.html.SafeScript.prototype.initSecurityPrivateDoNotAccessOrElse_=function(o){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScript(o):o,this},goog.html.SafeScript.EMPTY=goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(""),goog.fs={},goog.fs.url={},goog.fs.url.createObjectUrl=function(o){return goog.fs.url.getUrlObject_().createObjectURL(o)},goog.fs.url.revokeObjectUrl=function(o){goog.fs.url.getUrlObject_().revokeObjectURL(o)},goog.fs.url.UrlObject_=function(){},goog.fs.url.UrlObject_.prototype.createObjectURL=function(o){},goog.fs.url.UrlObject_.prototype.revokeObjectURL=function(o){},goog.fs.url.getUrlObject_=function(){var o=goog.fs.url.findUrlObject_();if(o!=null)return o;throw Error("This browser doesn't seem to support blob URLs")},goog.fs.url.findUrlObject_=function(){return goog.global.URL!==void 0&&goog.global.URL.createObjectURL!==void 0?goog.global.URL:goog.global.webkitURL!==void 0&&goog.global.webkitURL.createObjectURL!==void 0?goog.global.webkitURL:goog.global.createObjectURL!==void 0?goog.global:null},goog.fs.url.browserSupportsObjectUrls=function(){return goog.fs.url.findUrlObject_()!=null},goog.fs.blob={},goog.fs.blob.getBlob=function(o){var e=goog.global.BlobBuilder||goog.global.WebKitBlobBuilder;if(e!==void 0){e=new e;for(var r=0;r<arguments.length;r++)e.append(arguments[r]);return e.getBlob()}return goog.fs.blob.getBlobWithProperties(goog.array.toArray(arguments))},goog.fs.blob.getBlobWithProperties=function(o,e,r){var p=goog.global.BlobBuilder||goog.global.WebKitBlobBuilder;if(p!==void 0){p=new p;for(var t=0;t<o.length;t++)p.append(o[t],r);return p.getBlob(e)}if(goog.global.Blob!==void 0)return p={},e&&(p.type=e),r&&(p.endings=r),new Blob(o,p);throw Error("This browser doesn't seem to support creating Blobs")},goog.i18n={},goog.i18n.bidi={},goog.i18n.bidi.FORCE_RTL=!1,goog.i18n.bidi.IS_RTL=goog.i18n.bidi.FORCE_RTL||(goog.LOCALE.substring(0,2).toLowerCase()=="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.length==2||goog.LOCALE.substring(2,3)=="-"||goog.LOCALE.substring(2,3)=="_")||3<=goog.LOCALE.length&&goog.LOCALE.substring(0,3).toLowerCase()=="ckb"&&(goog.LOCALE.length==3||goog.LOCALE.substring(3,4)=="-"||goog.LOCALE.substring(3,4)=="_")||7<=goog.LOCALE.length&&(goog.LOCALE.substring(2,3)=="-"||goog.LOCALE.substring(2,3)=="_")&&(goog.LOCALE.substring(3,7).toLowerCase()=="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")||8<=goog.LOCALE.length&&(goog.LOCALE.substring(3,4)=="-"||goog.LOCALE.substring(3,4)=="_")&&(goog.LOCALE.substring(4,8).toLowerCase()=="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.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(o,e){return typeof o=="number"?0<o?goog.i18n.bidi.Dir.LTR:0>o?goog.i18n.bidi.Dir.RTL:e?null:goog.i18n.bidi.Dir.NEUTRAL:o==null?null:o?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(o,e){return e?o.replace(goog.i18n.bidi.htmlSkipReg_,""):o},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(o,e){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,e))},goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl,goog.i18n.bidi.hasAnyLtr=function(o,e){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,e))},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(o){return goog.i18n.bidi.rtlRe_.test(o)},goog.i18n.bidi.isLtrChar=function(o){return goog.i18n.bidi.ltrRe_.test(o)},goog.i18n.bidi.isNeutralChar=function(o){return!goog.i18n.bidi.isLtrChar(o)&&!goog.i18n.bidi.isRtlChar(o)},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(o,e){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,e))},goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl,goog.i18n.bidi.startsWithLtr=function(o,e){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,e))},goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr,goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/,goog.i18n.bidi.isNeutralText=function(o,e){return o=goog.i18n.bidi.stripHtmlIfNeeded_(o,e),goog.i18n.bidi.isRequiredLtrRe_.test(o)||!goog.i18n.bidi.hasAnyLtr(o)&&!goog.i18n.bidi.hasAnyRtl(o)},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(o,e){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,e))},goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr,goog.i18n.bidi.endsWithRtl=function(o,e){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,e))},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(o){return goog.i18n.bidi.rtlLocalesRe_.test(o)},goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,goog.i18n.bidi.guardBracketInText=function(o,e){return e=(e===void 0?goog.i18n.bidi.hasAnyRtl(o):e)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,o.replace(goog.i18n.bidi.bracketGuardTextRe_,e+"$&"+e)},goog.i18n.bidi.enforceRtlInHtml=function(o){return o.charAt(0)=="<"?o.replace(/<\w+/,"$& dir=rtl"):`