@dfinity/nns 0.2.1 → 0.2.2
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/candid/governance.certified.idl.d.ts +2 -0
- package/dist/candid/governance.certified.idl.js +704 -0
- package/dist/candid/governance.did +338 -0
- package/dist/candid/governance.idl.d.ts +5 -0
- package/dist/candid/governance.idl.js +712 -0
- package/dist/candid/governanceTypes.d.ts +413 -0
- package/dist/candid/nns_dapp.certified.idl.js +206 -0
- package/dist/candid/nns_dapp.did +240 -0
- package/dist/candid/nns_dapp.idl.js +206 -0
- package/dist/candid/payloads.did +168 -0
- package/dist/candid/payloads.idl.d.ts +20 -0
- package/dist/candid/payloads.idl.js +163 -0
- package/dist/cjs/index.cjs.js +32 -32
- package/dist/cjs/index.cjs.js.map +2 -2
- package/dist/esm/account_identifier.js +1 -1
- package/dist/esm/{chunk-NYI672WX.js → chunk-2DZXLOEC.js} +3 -3
- package/dist/esm/{chunk-NYI672WX.js.map → chunk-2DZXLOEC.js.map} +2 -2
- package/dist/esm/{chunk-SO23SIWX.js → chunk-D2W3ELRE.js} +2 -2
- package/dist/esm/{chunk-SO23SIWX.js.map → chunk-D2W3ELRE.js.map} +0 -0
- package/dist/esm/{chunk-X2SHUWG3.js → chunk-QR4654XK.js} +2 -2
- package/dist/esm/{chunk-X2SHUWG3.js.map → chunk-QR4654XK.js.map} +0 -0
- package/dist/esm/{chunk-YL3F3CIN.js → chunk-RUFBUR7C.js} +2 -2
- package/dist/esm/{chunk-YL3F3CIN.js.map → chunk-RUFBUR7C.js.map} +0 -0
- package/dist/esm/{chunk-RPOIUQZO.js → chunk-ZWZRSVU4.js} +2 -2
- package/dist/esm/{chunk-RPOIUQZO.js.map → chunk-ZWZRSVU4.js.map} +2 -2
- package/dist/esm/governance.js +1 -1
- package/dist/esm/icp.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ledger.js +1 -1
- package/dist/proto/base_types.proto +60 -0
- package/dist/proto/base_types_pb.d.ts +144 -0
- package/dist/proto/base_types_pb.js +1071 -0
- package/dist/proto/ledger.proto +277 -0
- package/dist/proto/ledger_pb.d.ts +911 -0
- package/dist/proto/ledger_pb.js +6555 -0
- package/dist/types/governance.d.ts +5 -1
- package/package.json +2 -2
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
var FA=Object.create;var Ar=Object.defineProperty;var TA=Object.getOwnPropertyDescriptor;var MA=Object.getOwnPropertyNames;var OA=Object.getPrototypeOf,NA=Object.prototype.hasOwnProperty;var os=t=>Ar(t,"__esModule",{value:!0});var H=(t,o)=>()=>(o||t((o={exports:{}}).exports,o),o.exports),GA=(t,o)=>{for(var r in o)Ar(t,r,{get:o[r],enumerable:!0})},rs=(t,o,r,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of MA(o))!NA.call(t,i)&&(r||i!=="default")&&Ar(t,i,{get:()=>o[i],enumerable:!(n=TA(o,i))||n.enumerable});return t},pt=(t,o)=>rs(os(Ar(t!=null?FA(OA(t)):{},"default",!o&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),PA=(t=>(o,r)=>t&&t.get(o)||(r=rs(os({}),o,1),t&&t.set(o,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var No=H((exports,module)=>{(function(){"use strict";var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,AMD=typeof define=="function"&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer!="undefined",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return Object.prototype.toString.call(t)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(t){return typeof t=="object"&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,o){return function(r){return new Sha256(o,!0).update(r)[t]()}},createMethod=function(t){var o=createOutputMethod("hex",t);NODE_JS&&(o=nodeWrap(o,t)),o.create=function(){return new Sha256(t)},o.update=function(i){return o.create().update(i)};for(var r=0;r<OUTPUT_TYPES.length;++r){var n=OUTPUT_TYPES[r];o[n]=createOutputMethod(n,t)}return o},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(t){if(typeof t=="string")return crypto.createHash(algorithm).update(t,"utf8").digest("hex");if(t==null)throw new Error(ERROR);return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod},createHmacOutputMethod=function(t,o){return function(r,n){return new HmacSha256(r,o,!0).update(n)[t]()}},createHmacMethod=function(t){var o=createHmacOutputMethod("hex",t);o.create=function(i){return new HmacSha256(i,t)},o.update=function(i,s){return o.create(i).update(s)};for(var r=0;r<OUTPUT_TYPES.length;++r){var n=OUTPUT_TYPES[r];o[n]=createHmacOutputMethod(n,t)}return o};function Sha256(t,o){o?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=t}Sha256.prototype.update=function(t){if(!this.finalized){var o,r=typeof t;if(r!=="string"){if(r==="object"){if(t===null)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(t)))throw new Error(ERROR)}else throw new Error(ERROR);o=!0}for(var n,i=0,s,p=t.length,u=this.blocks;i<p;){if(this.hashed&&(this.hashed=!1,u[0]=this.block,u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0),o)for(s=this.start;i<p&&s<64;++i)u[s>>2]|=t[i]<<SHIFT[s++&3];else for(s=this.start;i<p&&s<64;++i)n=t.charCodeAt(i),n<128?u[s>>2]|=n<<SHIFT[s++&3]:n<2048?(u[s>>2]|=(192|n>>6)<<SHIFT[s++&3],u[s>>2]|=(128|n&63)<<SHIFT[s++&3]):n<55296||n>=57344?(u[s>>2]|=(224|n>>12)<<SHIFT[s++&3],u[s>>2]|=(128|n>>6&63)<<SHIFT[s++&3],u[s>>2]|=(128|n&63)<<SHIFT[s++&3]):(n=65536+((n&1023)<<10|t.charCodeAt(++i)&1023),u[s>>2]|=(240|n>>18)<<SHIFT[s++&3],u[s>>2]|=(128|n>>12&63)<<SHIFT[s++&3],u[s>>2]|=(128|n>>6&63)<<SHIFT[s++&3],u[s>>2]|=(128|n&63)<<SHIFT[s++&3]);this.lastByteIndex=s,this.bytes+=s-this.start,s>=64?(this.block=u[16],this.start=s-64,this.hash(),this.hashed=!0):this.start=s}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,o=this.lastByteIndex;t[16]=this.block,t[o>>2]|=EXTRA[o&3],this.block=t[16],o>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t=this.h0,o=this.h1,r=this.h2,n=this.h3,i=this.h4,s=this.h5,p=this.h6,u=this.h7,h=this.blocks,w,G,T,V,P,L,ee,le,te,xe,Ie;for(w=16;w<64;++w)P=h[w-15],G=(P>>>7|P<<25)^(P>>>18|P<<14)^P>>>3,P=h[w-2],T=(P>>>17|P<<15)^(P>>>19|P<<13)^P>>>10,h[w]=h[w-16]+G+h[w-7]+T<<0;for(Ie=o&r,w=0;w<64;w+=4)this.first?(this.is224?(le=300032,P=h[0]-1413257819,u=P-150054599<<0,n=P+24177077<<0):(le=704751109,P=h[0]-210244248,u=P-1521486534<<0,n=P+143694565<<0),this.first=!1):(G=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),T=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),le=t&o,V=le^t&r^Ie,ee=i&s^~i&p,P=u+T+ee+K[w]+h[w],L=G+V,u=n+P<<0,n=P+L<<0),G=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),T=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),te=n&t,V=te^n&o^le,ee=u&i^~u&s,P=p+T+ee+K[w+1]+h[w+1],L=G+V,p=r+P<<0,r=P+L<<0,G=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),T=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7),xe=r&n,V=xe^r&t^te,ee=p&u^~p&i,P=s+T+ee+K[w+2]+h[w+2],L=G+V,s=o+P<<0,o=P+L<<0,G=(o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10),T=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),Ie=o&r,V=Ie^o&n^xe,ee=s&p^~s&u,P=i+T+ee+K[w+3]+h[w+3],L=G+V,i=t+P<<0,t=P+L<<0;this.h0=this.h0+t<<0,this.h1=this.h1+o<<0,this.h2=this.h2+r<<0,this.h3=this.h3+n<<0,this.h4=this.h4+i<<0,this.h5=this.h5+s<<0,this.h6=this.h6+p<<0,this.h7=this.h7+u<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,o=this.h1,r=this.h2,n=this.h3,i=this.h4,s=this.h5,p=this.h6,u=this.h7,h=HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[t&15]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[o&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[n&15]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[i&15]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[s&15]+HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[p&15];return this.is224||(h+=HEX_CHARS[u>>28&15]+HEX_CHARS[u>>24&15]+HEX_CHARS[u>>20&15]+HEX_CHARS[u>>16&15]+HEX_CHARS[u>>12&15]+HEX_CHARS[u>>8&15]+HEX_CHARS[u>>4&15]+HEX_CHARS[u&15]),h},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,o=this.h1,r=this.h2,n=this.h3,i=this.h4,s=this.h5,p=this.h6,u=this.h7,h=[t>>24&255,t>>16&255,t>>8&255,t&255,o>>24&255,o>>16&255,o>>8&255,o&255,r>>24&255,r>>16&255,r>>8&255,r&255,n>>24&255,n>>16&255,n>>8&255,n&255,i>>24&255,i>>16&255,i>>8&255,i&255,s>>24&255,s>>16&255,s>>8&255,s&255,p>>24&255,p>>16&255,p>>8&255,p&255];return this.is224||h.push(u>>24&255,u>>16&255,u>>8&255,u&255),h},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),o=new DataView(t);return o.setUint32(0,this.h0),o.setUint32(4,this.h1),o.setUint32(8,this.h2),o.setUint32(12,this.h3),o.setUint32(16,this.h4),o.setUint32(20,this.h5),o.setUint32(24,this.h6),this.is224||o.setUint32(28,this.h7),t};function HmacSha256(t,o,r){var n,i=typeof t;if(i==="string"){var s=[],p=t.length,u=0,h;for(n=0;n<p;++n)h=t.charCodeAt(n),h<128?s[u++]=h:h<2048?(s[u++]=192|h>>6,s[u++]=128|h&63):h<55296||h>=57344?(s[u++]=224|h>>12,s[u++]=128|h>>6&63,s[u++]=128|h&63):(h=65536+((h&1023)<<10|t.charCodeAt(++n)&1023),s[u++]=240|h>>18,s[u++]=128|h>>12&63,s[u++]=128|h>>6&63,s[u++]=128|h&63);t=s}else if(i==="object"){if(t===null)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(t)))throw new Error(ERROR)}else throw new Error(ERROR);t.length>64&&(t=new Sha256(o,!0).update(t).array());var w=[],G=[];for(n=0;n<64;++n){var T=t[n]||0;w[n]=92^T,G[n]=54^T}Sha256.call(this,o,r),this.update(G),this.oKeyPad=w,this.inner=!0,this.sharedMemory=r}HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&define(function(){return exports}))})()});var ur=H((exports,module)=>{var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(t,o,r){t instanceof String&&(t=String(t));for(var n=t.length,i=0;i<n;i++){var s=t[i];if(o.call(r,s,i,t))return{i,v:s}}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(t,o,r){t!=Array.prototype&&t!=Object.prototype&&(t[o]=r.value)};$jscomp.getGlobal=function(t){return typeof window!="undefined"&&window===t?t:typeof global!="undefined"&&global!=null?global:t};$jscomp.global=$jscomp.getGlobal(exports);$jscomp.polyfill=function(t,o,r,n){if(o){for(r=$jscomp.global,t=t.split("."),n=0;n<t.length-1;n++){var i=t[n];i in r||(r[i]={}),r=r[i]}t=t[t.length-1],n=r[t],o=o(n),o!=n&&o!=null&&$jscomp.defineProperty(r,t,{configurable:!0,writable:!0,value:o})}};$jscomp.polyfill("Array.prototype.findIndex",function(t){return t||function(o,r){return $jscomp.findInternal(this,o,r).i}},"es6","es3");$jscomp.checkStringArgs=function(t,o,r){if(t==null)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(o instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return t+""};$jscomp.polyfill("String.prototype.endsWith",function(t){return t||function(o,r){var n=$jscomp.checkStringArgs(this,o,"endsWith");o+="",r===void 0&&(r=n.length),r=Math.max(0,Math.min(r|0,n.length));for(var i=o.length;0<i&&0<r;)if(n[--r]!=o[--i])return!1;return 0>=i}},"es6","es3");$jscomp.polyfill("Array.prototype.find",function(t){return t||function(o,r){return $jscomp.findInternal(this,o,r).v}},"es6","es3");$jscomp.polyfill("String.prototype.startsWith",function(t){return t||function(o,r){var n=$jscomp.checkStringArgs(this,o,"startsWith");o+="";var i=n.length,s=o.length;r=Math.max(0,Math.min(r|0,n.length));for(var p=0;p<s&&r<i;)if(n[r++]!=o[p++])return!1;return p>=s}},"es6","es3");$jscomp.polyfill("String.prototype.repeat",function(t){return t||function(o){var r=$jscomp.checkStringArgs(this,null,"repeat");if(0>o||1342177279<o)throw new RangeError("Invalid count value");o|=0;for(var n="";o;)o&1&&(n+=r),(o>>>=1)&&(r+=r);return n}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=exports||self;goog.isDef=function(t){return t!==void 0};goog.isString=function(t){return typeof t=="string"};goog.isBoolean=function(t){return typeof t=="boolean"};goog.isNumber=function(t){return typeof t=="number"};goog.exportPath_=function(t,o,r){t=t.split("."),r=r||goog.global,t[0]in r||typeof r.execScript=="undefined"||r.execScript("var "+t[0]);for(var n;t.length&&(n=t.shift());)!t.length&&goog.isDef(o)?r[n]=o:r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}};goog.define=function(t,o){if(!COMPILED){var r=goog.global.CLOSURE_UNCOMPILED_DEFINES,n=goog.global.CLOSURE_DEFINES;r&&r.nodeType===void 0&&Object.prototype.hasOwnProperty.call(r,t)?o=r[t]:n&&n.nodeType===void 0&&Object.prototype.hasOwnProperty.call(n,t)&&(o=n[t])}return o};goog.FEATURESET_YEAR=2012;goog.DEBUG=!0;goog.LOCALE="en";goog.TRUSTED_SITE=!0;goog.STRICT_MODE_COMPATIBLE=!1;goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG;goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1;goog.provide=function(t){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');goog.constructNamespace_(t)};goog.constructNamespace_=function(t,o){if(!COMPILED){delete goog.implicitNamespaces_[t];for(var r=t;(r=r.substring(0,r.lastIndexOf(".")))&&!goog.getObjectByName(r);)goog.implicitNamespaces_[r]=!0}goog.exportPath_(t,o)};goog.getScriptNonce=function(t){return t&&t!=goog.global?goog.getScriptNonce_(t.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(t){return(t=t.querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(t)?t:""};goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/;goog.module=function(t){if(!goog.isString(t)||!t||t.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+t+" 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.");if(goog.moduleLoaderState_.moduleName=t,!COMPILED){if(goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');delete goog.implicitNamespaces_[t]}};goog.module.get=function(t){return goog.module.getInternal_(t)};goog.module.getInternal_=function(t){if(!COMPILED){if(t in goog.loadedModules_)return goog.loadedModules_[t].exports;if(!goog.implicitNamespaces_[t])return t=goog.getObjectByName(t),t??null}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 t=goog.global.$jscomp;return t?typeof t.getCurrentModulePath!="function"?!1:!!t.getCurrentModulePath():!1};goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0};goog.declareModuleId=function(t){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(t in goog.loadedModules_)throw Error('Module with namespace "'+t+'" already exists.')}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=t;else{var o=goog.global.$jscomp;if(!o||typeof o.getCurrentModulePath!="function")throw Error('Module with namespace "'+t+'" has been loaded incorrectly.');o=o.require(o.getCurrentModulePath()),goog.loadedModules_[t]={exports:o,type:goog.ModuleType.ES6,moduleId:t}}};goog.setTestOnly=function(t){if(goog.DISALLOW_TEST_ONLY_CODE)throw t=t||"",Error("Importing test-only code into non-debug environment"+(t?": "+t:"."))};goog.forwardDeclare=function(t){};COMPILED||(goog.isProvided_=function(t){return t in goog.loadedModules_||!goog.implicitNamespaces_[t]&&goog.isDefAndNotNull(goog.getObjectByName(t))},goog.implicitNamespaces_={"goog.module":!0});goog.getObjectByName=function(t,o){t=t.split("."),o=o||goog.global;for(var r=0;r<t.length;r++)if(o=o[t[r]],!goog.isDefAndNotNull(o))return null;return o};goog.globalize=function(t,o){o=o||goog.global;for(var r in t)o[r]=t[r]};goog.addDependency=function(t,o,r,n){!COMPILED&&goog.DEPENDENCIES_ENABLED&&goog.debugLoader_.addDependency(t,o,r,n)};goog.ENABLE_DEBUG_LOADER=!0;goog.logToConsole_=function(t){goog.global.console&&goog.global.console.error(t)};goog.require=function(t){if(!COMPILED){if(goog.ENABLE_DEBUG_LOADER&&goog.debugLoader_.requested(t),goog.isProvided_(t)){if(goog.isInModuleLoader_())return goog.module.getInternal_(t)}else if(goog.ENABLE_DEBUG_LOADER){var o=goog.moduleLoaderState_;goog.moduleLoaderState_=null;try{goog.debugLoader_.load_(t)}finally{goog.moduleLoaderState_=o}}return null}};goog.requireType=function(t){return{}};goog.basePath="";goog.nullFunction=function(){};goog.abstractMethod=function(){throw Error("unimplemented abstract method")};goog.addSingletonGetter=function(t){t.instance_=void 0,t.getInstance=function(){return t.instance_?t.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=t),t.instance_=new t)}};goog.instantiatedSingletons_=[];goog.LOAD_MODULE_USING_EVAL=!0;goog.SEAL_MODULE_EXPORTS=goog.DEBUG;goog.loadedModules_={};goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER;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(t){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping};goog.workaroundSafari10EvalBug=function(t){return"(function(){"+t+`
|
|
1
|
+
var FA=Object.create;var pr=Object.defineProperty;var TA=Object.getOwnPropertyDescriptor;var MA=Object.getOwnPropertyNames;var OA=Object.getPrototypeOf,NA=Object.prototype.hasOwnProperty;var os=t=>pr(t,"__esModule",{value:!0});var H=(t,o)=>()=>(o||t((o={exports:{}}).exports,o),o.exports),GA=(t,o)=>{for(var r in o)pr(t,r,{get:o[r],enumerable:!0})},rs=(t,o,r,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of MA(o))!NA.call(t,n)&&(r||n!=="default")&&pr(t,n,{get:()=>o[n],enumerable:!(i=TA(o,n))||i.enumerable});return t},pt=(t,o)=>rs(os(pr(t!=null?FA(OA(t)):{},"default",!o&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),PA=(t=>(o,r)=>t&&t.get(o)||(r=rs(os({}),o,1),t&&t.set(o,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var No=H((exports,module)=>{(function(){"use strict";var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,AMD=typeof define=="function"&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer!="undefined",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return Object.prototype.toString.call(t)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(t){return typeof t=="object"&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,o){return function(r){return new Sha256(o,!0).update(r)[t]()}},createMethod=function(t){var o=createOutputMethod("hex",t);NODE_JS&&(o=nodeWrap(o,t)),o.create=function(){return new Sha256(t)},o.update=function(n){return o.create().update(n)};for(var r=0;r<OUTPUT_TYPES.length;++r){var i=OUTPUT_TYPES[r];o[i]=createOutputMethod(i,t)}return o},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(t){if(typeof t=="string")return crypto.createHash(algorithm).update(t,"utf8").digest("hex");if(t==null)throw new Error(ERROR);return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod},createHmacOutputMethod=function(t,o){return function(r,i){return new HmacSha256(r,o,!0).update(i)[t]()}},createHmacMethod=function(t){var o=createHmacOutputMethod("hex",t);o.create=function(n){return new HmacSha256(n,t)},o.update=function(n,s){return o.create(n).update(s)};for(var r=0;r<OUTPUT_TYPES.length;++r){var i=OUTPUT_TYPES[r];o[i]=createHmacOutputMethod(i,t)}return o};function Sha256(t,o){o?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=t}Sha256.prototype.update=function(t){if(!this.finalized){var o,r=typeof t;if(r!=="string"){if(r==="object"){if(t===null)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(t)))throw new Error(ERROR)}else throw new Error(ERROR);o=!0}for(var i,n=0,s,p=t.length,u=this.blocks;n<p;){if(this.hashed&&(this.hashed=!1,u[0]=this.block,u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0),o)for(s=this.start;n<p&&s<64;++n)u[s>>2]|=t[n]<<SHIFT[s++&3];else for(s=this.start;n<p&&s<64;++n)i=t.charCodeAt(n),i<128?u[s>>2]|=i<<SHIFT[s++&3]:i<2048?(u[s>>2]|=(192|i>>6)<<SHIFT[s++&3],u[s>>2]|=(128|i&63)<<SHIFT[s++&3]):i<55296||i>=57344?(u[s>>2]|=(224|i>>12)<<SHIFT[s++&3],u[s>>2]|=(128|i>>6&63)<<SHIFT[s++&3],u[s>>2]|=(128|i&63)<<SHIFT[s++&3]):(i=65536+((i&1023)<<10|t.charCodeAt(++n)&1023),u[s>>2]|=(240|i>>18)<<SHIFT[s++&3],u[s>>2]|=(128|i>>12&63)<<SHIFT[s++&3],u[s>>2]|=(128|i>>6&63)<<SHIFT[s++&3],u[s>>2]|=(128|i&63)<<SHIFT[s++&3]);this.lastByteIndex=s,this.bytes+=s-this.start,s>=64?(this.block=u[16],this.start=s-64,this.hash(),this.hashed=!0):this.start=s}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,o=this.lastByteIndex;t[16]=this.block,t[o>>2]|=EXTRA[o&3],this.block=t[16],o>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t=this.h0,o=this.h1,r=this.h2,i=this.h3,n=this.h4,s=this.h5,p=this.h6,u=this.h7,h=this.blocks,w,G,T,V,P,L,ee,le,te,xe,Ie;for(w=16;w<64;++w)P=h[w-15],G=(P>>>7|P<<25)^(P>>>18|P<<14)^P>>>3,P=h[w-2],T=(P>>>17|P<<15)^(P>>>19|P<<13)^P>>>10,h[w]=h[w-16]+G+h[w-7]+T<<0;for(Ie=o&r,w=0;w<64;w+=4)this.first?(this.is224?(le=300032,P=h[0]-1413257819,u=P-150054599<<0,i=P+24177077<<0):(le=704751109,P=h[0]-210244248,u=P-1521486534<<0,i=P+143694565<<0),this.first=!1):(G=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),T=(n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7),le=t&o,V=le^t&r^Ie,ee=n&s^~n&p,P=u+T+ee+K[w]+h[w],L=G+V,u=i+P<<0,i=P+L<<0),G=(i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10),T=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),te=i&t,V=te^i&o^le,ee=u&n^~u&s,P=p+T+ee+K[w+1]+h[w+1],L=G+V,p=r+P<<0,r=P+L<<0,G=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),T=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7),xe=r&i,V=xe^r&t^te,ee=p&u^~p&n,P=s+T+ee+K[w+2]+h[w+2],L=G+V,s=o+P<<0,o=P+L<<0,G=(o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10),T=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),Ie=o&r,V=Ie^o&i^xe,ee=s&p^~s&u,P=n+T+ee+K[w+3]+h[w+3],L=G+V,n=t+P<<0,t=P+L<<0;this.h0=this.h0+t<<0,this.h1=this.h1+o<<0,this.h2=this.h2+r<<0,this.h3=this.h3+i<<0,this.h4=this.h4+n<<0,this.h5=this.h5+s<<0,this.h6=this.h6+p<<0,this.h7=this.h7+u<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,o=this.h1,r=this.h2,i=this.h3,n=this.h4,s=this.h5,p=this.h6,u=this.h7,h=HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[t&15]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[o&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[i&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[n&15]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[s&15]+HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[p&15];return this.is224||(h+=HEX_CHARS[u>>28&15]+HEX_CHARS[u>>24&15]+HEX_CHARS[u>>20&15]+HEX_CHARS[u>>16&15]+HEX_CHARS[u>>12&15]+HEX_CHARS[u>>8&15]+HEX_CHARS[u>>4&15]+HEX_CHARS[u&15]),h},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,o=this.h1,r=this.h2,i=this.h3,n=this.h4,s=this.h5,p=this.h6,u=this.h7,h=[t>>24&255,t>>16&255,t>>8&255,t&255,o>>24&255,o>>16&255,o>>8&255,o&255,r>>24&255,r>>16&255,r>>8&255,r&255,i>>24&255,i>>16&255,i>>8&255,i&255,n>>24&255,n>>16&255,n>>8&255,n&255,s>>24&255,s>>16&255,s>>8&255,s&255,p>>24&255,p>>16&255,p>>8&255,p&255];return this.is224||h.push(u>>24&255,u>>16&255,u>>8&255,u&255),h},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),o=new DataView(t);return o.setUint32(0,this.h0),o.setUint32(4,this.h1),o.setUint32(8,this.h2),o.setUint32(12,this.h3),o.setUint32(16,this.h4),o.setUint32(20,this.h5),o.setUint32(24,this.h6),this.is224||o.setUint32(28,this.h7),t};function HmacSha256(t,o,r){var i,n=typeof t;if(n==="string"){var s=[],p=t.length,u=0,h;for(i=0;i<p;++i)h=t.charCodeAt(i),h<128?s[u++]=h:h<2048?(s[u++]=192|h>>6,s[u++]=128|h&63):h<55296||h>=57344?(s[u++]=224|h>>12,s[u++]=128|h>>6&63,s[u++]=128|h&63):(h=65536+((h&1023)<<10|t.charCodeAt(++i)&1023),s[u++]=240|h>>18,s[u++]=128|h>>12&63,s[u++]=128|h>>6&63,s[u++]=128|h&63);t=s}else if(n==="object"){if(t===null)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(t)))throw new Error(ERROR)}else throw new Error(ERROR);t.length>64&&(t=new Sha256(o,!0).update(t).array());var w=[],G=[];for(i=0;i<64;++i){var T=t[i]||0;w[i]=92^T,G[i]=54^T}Sha256.call(this,o,r),this.update(G),this.oKeyPad=w,this.inner=!0,this.sharedMemory=r}HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&define(function(){return exports}))})()});var Ar=H((exports,module)=>{var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(t,o,r){t instanceof String&&(t=String(t));for(var i=t.length,n=0;n<i;n++){var s=t[n];if(o.call(r,s,n,t))return{i:n,v:s}}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(t,o,r){t!=Array.prototype&&t!=Object.prototype&&(t[o]=r.value)};$jscomp.getGlobal=function(t){return typeof window!="undefined"&&window===t?t:typeof global!="undefined"&&global!=null?global:t};$jscomp.global=$jscomp.getGlobal(exports);$jscomp.polyfill=function(t,o,r,i){if(o){for(r=$jscomp.global,t=t.split("."),i=0;i<t.length-1;i++){var n=t[i];n in r||(r[n]={}),r=r[n]}t=t[t.length-1],i=r[t],o=o(i),o!=i&&o!=null&&$jscomp.defineProperty(r,t,{configurable:!0,writable:!0,value:o})}};$jscomp.polyfill("Array.prototype.findIndex",function(t){return t||function(o,r){return $jscomp.findInternal(this,o,r).i}},"es6","es3");$jscomp.checkStringArgs=function(t,o,r){if(t==null)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(o instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return t+""};$jscomp.polyfill("String.prototype.endsWith",function(t){return t||function(o,r){var i=$jscomp.checkStringArgs(this,o,"endsWith");o+="",r===void 0&&(r=i.length),r=Math.max(0,Math.min(r|0,i.length));for(var n=o.length;0<n&&0<r;)if(i[--r]!=o[--n])return!1;return 0>=n}},"es6","es3");$jscomp.polyfill("Array.prototype.find",function(t){return t||function(o,r){return $jscomp.findInternal(this,o,r).v}},"es6","es3");$jscomp.polyfill("String.prototype.startsWith",function(t){return t||function(o,r){var i=$jscomp.checkStringArgs(this,o,"startsWith");o+="";var n=i.length,s=o.length;r=Math.max(0,Math.min(r|0,i.length));for(var p=0;p<s&&r<n;)if(i[r++]!=o[p++])return!1;return p>=s}},"es6","es3");$jscomp.polyfill("String.prototype.repeat",function(t){return t||function(o){var r=$jscomp.checkStringArgs(this,null,"repeat");if(0>o||1342177279<o)throw new RangeError("Invalid count value");o|=0;for(var i="";o;)o&1&&(i+=r),(o>>>=1)&&(r+=r);return i}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=exports||self;goog.isDef=function(t){return t!==void 0};goog.isString=function(t){return typeof t=="string"};goog.isBoolean=function(t){return typeof t=="boolean"};goog.isNumber=function(t){return typeof t=="number"};goog.exportPath_=function(t,o,r){t=t.split("."),r=r||goog.global,t[0]in r||typeof r.execScript=="undefined"||r.execScript("var "+t[0]);for(var i;t.length&&(i=t.shift());)!t.length&&goog.isDef(o)?r[i]=o:r=r[i]&&r[i]!==Object.prototype[i]?r[i]:r[i]={}};goog.define=function(t,o){if(!COMPILED){var r=goog.global.CLOSURE_UNCOMPILED_DEFINES,i=goog.global.CLOSURE_DEFINES;r&&r.nodeType===void 0&&Object.prototype.hasOwnProperty.call(r,t)?o=r[t]:i&&i.nodeType===void 0&&Object.prototype.hasOwnProperty.call(i,t)&&(o=i[t])}return o};goog.FEATURESET_YEAR=2012;goog.DEBUG=!0;goog.LOCALE="en";goog.TRUSTED_SITE=!0;goog.STRICT_MODE_COMPATIBLE=!1;goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG;goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1;goog.provide=function(t){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');goog.constructNamespace_(t)};goog.constructNamespace_=function(t,o){if(!COMPILED){delete goog.implicitNamespaces_[t];for(var r=t;(r=r.substring(0,r.lastIndexOf(".")))&&!goog.getObjectByName(r);)goog.implicitNamespaces_[r]=!0}goog.exportPath_(t,o)};goog.getScriptNonce=function(t){return t&&t!=goog.global?goog.getScriptNonce_(t.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(t){return(t=t.querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(t)?t:""};goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/;goog.module=function(t){if(!goog.isString(t)||!t||t.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+t+" 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.");if(goog.moduleLoaderState_.moduleName=t,!COMPILED){if(goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');delete goog.implicitNamespaces_[t]}};goog.module.get=function(t){return goog.module.getInternal_(t)};goog.module.getInternal_=function(t){if(!COMPILED){if(t in goog.loadedModules_)return goog.loadedModules_[t].exports;if(!goog.implicitNamespaces_[t])return t=goog.getObjectByName(t),t??null}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 t=goog.global.$jscomp;return t?typeof t.getCurrentModulePath!="function"?!1:!!t.getCurrentModulePath():!1};goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0};goog.declareModuleId=function(t){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(t in goog.loadedModules_)throw Error('Module with namespace "'+t+'" already exists.')}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=t;else{var o=goog.global.$jscomp;if(!o||typeof o.getCurrentModulePath!="function")throw Error('Module with namespace "'+t+'" has been loaded incorrectly.');o=o.require(o.getCurrentModulePath()),goog.loadedModules_[t]={exports:o,type:goog.ModuleType.ES6,moduleId:t}}};goog.setTestOnly=function(t){if(goog.DISALLOW_TEST_ONLY_CODE)throw t=t||"",Error("Importing test-only code into non-debug environment"+(t?": "+t:"."))};goog.forwardDeclare=function(t){};COMPILED||(goog.isProvided_=function(t){return t in goog.loadedModules_||!goog.implicitNamespaces_[t]&&goog.isDefAndNotNull(goog.getObjectByName(t))},goog.implicitNamespaces_={"goog.module":!0});goog.getObjectByName=function(t,o){t=t.split("."),o=o||goog.global;for(var r=0;r<t.length;r++)if(o=o[t[r]],!goog.isDefAndNotNull(o))return null;return o};goog.globalize=function(t,o){o=o||goog.global;for(var r in t)o[r]=t[r]};goog.addDependency=function(t,o,r,i){!COMPILED&&goog.DEPENDENCIES_ENABLED&&goog.debugLoader_.addDependency(t,o,r,i)};goog.ENABLE_DEBUG_LOADER=!0;goog.logToConsole_=function(t){goog.global.console&&goog.global.console.error(t)};goog.require=function(t){if(!COMPILED){if(goog.ENABLE_DEBUG_LOADER&&goog.debugLoader_.requested(t),goog.isProvided_(t)){if(goog.isInModuleLoader_())return goog.module.getInternal_(t)}else if(goog.ENABLE_DEBUG_LOADER){var o=goog.moduleLoaderState_;goog.moduleLoaderState_=null;try{goog.debugLoader_.load_(t)}finally{goog.moduleLoaderState_=o}}return null}};goog.requireType=function(t){return{}};goog.basePath="";goog.nullFunction=function(){};goog.abstractMethod=function(){throw Error("unimplemented abstract method")};goog.addSingletonGetter=function(t){t.instance_=void 0,t.getInstance=function(){return t.instance_?t.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=t),t.instance_=new t)}};goog.instantiatedSingletons_=[];goog.LOAD_MODULE_USING_EVAL=!0;goog.SEAL_MODULE_EXPORTS=goog.DEBUG;goog.loadedModules_={};goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER;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(t){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping};goog.workaroundSafari10EvalBug=function(t){return"(function(){"+t+`
|
|
2
2
|
;})();
|
|
3
|
-
`};goog.loadModule=function(t){var o=goog.moduleLoaderState_;try{if(goog.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:goog.ModuleType.GOOG},goog.isFunction(t))var r=t.call(void 0,{});else if(goog.isString(t))goog.useSafari10Workaround()&&(t=goog.workaroundSafari10EvalBug(t)),r=goog.loadModuleFromSource_.call(void 0,t);else throw Error("Invalid module definition");var
|
|
4
|
-
//# sourceURL=`+s)}.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,n=goog.global.$jscomp,i=n.transpile}}return i||(i=n.transpile=function(u,h){return goog.logToConsole_(h+" requires transpilation but no transpiler was found."),u}),i(t,o,r)};goog.typeOf=function(t){var o=typeof t;if(o=="object")if(t){if(t instanceof Array)return"array";if(t instanceof Object)return o;var r=Object.prototype.toString.call(t);if(r=="[object Window]")return"object";if(r=="[object Array]"||typeof t.length=="number"&&typeof t.splice!="undefined"&&typeof t.propertyIsEnumerable!="undefined"&&!t.propertyIsEnumerable("splice"))return"array";if(r=="[object Function]"||typeof t.call!="undefined"&&typeof t.propertyIsEnumerable!="undefined"&&!t.propertyIsEnumerable("call"))return"function"}else return"null";else if(o=="function"&&typeof t.call=="undefined")return"object";return o};goog.isNull=function(t){return t===null};goog.isDefAndNotNull=function(t){return t!=null};goog.isArray=function(t){return goog.typeOf(t)=="array"};goog.isArrayLike=function(t){var o=goog.typeOf(t);return o=="array"||o=="object"&&typeof t.length=="number"};goog.isDateLike=function(t){return goog.isObject(t)&&typeof t.getFullYear=="function"};goog.isFunction=function(t){return goog.typeOf(t)=="function"};goog.isObject=function(t){var o=typeof t;return o=="object"&&t!=null||o=="function"};goog.getUid=function(t){return t[goog.UID_PROPERTY_]||(t[goog.UID_PROPERTY_]=++goog.uidCounter_)};goog.hasUid=function(t){return!!t[goog.UID_PROPERTY_]};goog.removeUid=function(t){t!==null&&"removeAttribute"in t&&t.removeAttribute(goog.UID_PROPERTY_);try{delete t[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(t){var o=goog.typeOf(t);if(o=="object"||o=="array"){if(typeof t.clone=="function")return t.clone();o=o=="array"?[]:{};for(var r in t)o[r]=goog.cloneObject(t[r]);return o}return t};goog.bindNative_=function(t,o,r){return t.call.apply(t.bind,arguments)};goog.bindJs_=function(t,o,r){if(!t)throw Error();if(2<arguments.length){var n=Array.prototype.slice.call(arguments,2);return function(){var i=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(i,n),t.apply(o,i)}}return function(){return t.apply(o,arguments)}};goog.bind=function(t,o,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(t,o){var r=Array.prototype.slice.call(arguments,1);return function(){var n=r.slice();return n.push.apply(n,arguments),t.apply(this,n)}};goog.mixin=function(t,o){for(var r in o)t[r]=o[r]};goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date};goog.globalEval=function(t){if(goog.global.execScript)goog.global.execScript(t,"JavaScript");else if(goog.global.eval){if(goog.evalWorksForGlobals_==null){try{goog.global.eval("var _evalTest_ = 1;")}catch{}if(typeof goog.global._evalTest_!="undefined"){try{delete goog.global._evalTest_}catch{}goog.evalWorksForGlobals_=!0}else goog.evalWorksForGlobals_=!1}if(goog.evalWorksForGlobals_)goog.global.eval(t);else{var o=goog.global.document,r=o.createElement("SCRIPT");r.type="text/javascript",r.defer=!1,r.appendChild(o.createTextNode(t)),o.head.appendChild(r),o.head.removeChild(r)}}else throw Error("goog.globalEval not available")};goog.evalWorksForGlobals_=null;goog.getCssName=function(t,o){if(String(t).charAt(0)==".")throw Error('className passed in goog.getCssName must not start with ".". You passed: '+t);var r=function(i){return goog.cssNameMapping_[i]||i},n=function(i){i=i.split("-");for(var s=[],p=0;p<i.length;p++)s.push(r(i[p]));return s.join("-")};return n=goog.cssNameMapping_?goog.cssNameMappingStyle_=="BY_WHOLE"?r:n:function(i){return i},t=o?t+"-"+n(o):n(t),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(t):t};goog.setCssNameMapping=function(t,o){goog.cssNameMapping_=t,goog.cssNameMappingStyle_=o};!COMPILED&&goog.global.CLOSURE_CSS_NAME_MAPPING&&(goog.cssNameMapping_=goog.global.CLOSURE_CSS_NAME_MAPPING);goog.getMsg=function(t,o,r){return r&&r.html&&(t=t.replace(/</g,"<")),o&&(t=t.replace(/\{\$([^}]+)}/g,function(n,i){return o!=null&&i in o?o[i]:n})),t};goog.getMsgWithFallback=function(t,o){return t};goog.exportSymbol=function(t,o,r){goog.exportPath_(t,o,r)};goog.exportProperty=function(t,o,r){t[o]=r};goog.inherits=function(t,o){function r(){}r.prototype=o.prototype,t.superClass_=o.prototype,t.prototype=new r,t.prototype.constructor=t,t.base=function(n,i,s){for(var p=Array(arguments.length-2),u=2;u<arguments.length;u++)p[u-2]=arguments[u];return o.prototype[i].apply(n,p)}};goog.base=function(t,o,r){var n=arguments.callee.caller;if(goog.STRICT_MODE_COMPATIBLE||goog.DEBUG&&!n)throw Error("arguments.caller not defined. goog.base() cannot be used with strict mode code. See http://www.ecma-international.org/ecma-262/5.1/#sec-C");if(typeof n.superClass_!="undefined"){for(var i=Array(arguments.length-1),s=1;s<arguments.length;s++)i[s-1]=arguments[s];return n.superClass_.constructor.apply(t,i)}if(typeof o!="string"&&typeof o!="symbol")throw Error("method names provided to goog.base must be a string or a symbol");for(i=Array(arguments.length-2),s=2;s<arguments.length;s++)i[s-2]=arguments[s];s=!1;for(var p=t.constructor.prototype;p;p=Object.getPrototypeOf(p))if(p[o]===n)s=!0;else if(s)return p[o].apply(t,i);if(t[o]===n)return t.constructor.prototype[o].apply(t,i);throw Error("goog.base called from a method of one name to a method of a different name")};goog.scope=function(t){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");t.call(goog.global)};COMPILED||(goog.global.COMPILED=COMPILED);goog.defineClass=function(t,o){var r=o.constructor,n=o.statics;return r&&r!=Object.prototype.constructor||(r=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),r=goog.defineClass.createSealingConstructor_(r,t),t&&goog.inherits(r,t),delete o.constructor,delete o.statics,goog.defineClass.applyProperties_(r.prototype,o),n!=null&&(n instanceof Function?n(r):goog.defineClass.applyProperties_(r,n)),r};goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG;goog.defineClass.createSealingConstructor_=function(t,o){if(!goog.defineClass.SEAL_CLASS_INSTANCES)return t;var r=!goog.defineClass.isUnsealable_(o),n=function(){var i=t.apply(this,arguments)||this;return i[goog.UID_PROPERTY_]=i[goog.UID_PROPERTY_],this.constructor===n&&r&&Object.seal instanceof Function&&Object.seal(i),i};return n};goog.defineClass.isUnsealable_=function(t){return t&&t.prototype&&t.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]};goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");goog.defineClass.applyProperties_=function(t,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r]);for(var n=0;n<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;n++)r=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[n],Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])};goog.tagUnsealableClass=function(t){!COMPILED&&goog.defineClass.SEAL_CLASS_INSTANCES&&(t.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]=!0)};goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable";!COMPILED&&goog.DEPENDENCIES_ENABLED&&(goog.inHtmlDocument_=function(){var t=goog.global.document;return t!=null&&"write"in t},goog.isDocumentLoading_=function(){var t=goog.global.document;return t.attachEvent?t.readyState!="complete":t.readyState=="loading"},goog.findBasePath_=function(){if(goog.isDef(goog.global.CLOSURE_BASE_PATH)&&goog.isString(goog.global.CLOSURE_BASE_PATH))goog.basePath=goog.global.CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_()){var t=goog.global.document,o=t.currentScript;for(t=o?[o]:t.getElementsByTagName("SCRIPT"),o=t.length-1;0<=o;--o){var r=t[o].src,n=r.lastIndexOf("?");if(n=n==-1?r.length:n,r.substr(n-7,7)=="base.js"){goog.basePath=r.substr(0,n-7);break}}}},goog.findBasePath_(),goog.Transpiler=function(){this.requiresTranspilation_=null,this.transpilationTarget_=goog.TRANSPILE_TO_LANGUAGE},goog.Transpiler.prototype.createRequiresTranspilation_=function(){function a(t,o){e?d[t]=!0:o()?(c=t,d[t]=!1):e=d[t]=!0}function b(a){try{return!!eval(a)}catch(t){return!1}}var c="es3",d={es3:!1},e=!1,f=goog.global.navigator&&goog.global.navigator.userAgent?goog.global.navigator.userAgent:"";return a("es5",function(){return b("[1,].length==1")}),a("es6",function(){return f.match(/Edge\/(\d+)(\.\d)*/i)?!1:b('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')}),a("es7",function(){return b("2 ** 2 == 4")}),a("es8",function(){return b("async () => 1, true")}),a("es9",function(){return b("({...rest} = {}), true")}),a("es_next",function(){return!1}),{target:c,map:d}},goog.Transpiler.prototype.needsTranspile=function(t,o){if(goog.TRANSPILE=="always")return!0;if(goog.TRANSPILE=="never")return!1;if(!this.requiresTranspilation_){var r=this.createRequiresTranspilation_();this.requiresTranspilation_=r.map,this.transpilationTarget_=this.transpilationTarget_||r.target}if(t in this.requiresTranspilation_)return this.requiresTranspilation_[t]?!0:!(!goog.inHtmlDocument_()||o!="es6"||"noModule"in goog.global.document.createElement("script"));throw Error("Unknown language mode: "+t)},goog.Transpiler.prototype.transpile=function(t,o){return goog.transpile_(t,o,this.transpilationTarget_)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(t){return t.replace(/<\/(SCRIPT)/ig,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(t,o){function r(){n&&(goog.global.setTimeout(n,0),n=null)}var n=o;if(t.length){o=[];for(var i=0;i<t.length;i++){var s=this.getPathFromDeps_(t[i]);if(!s)throw Error("Unregonized namespace: "+t[i]);o.push(this.dependencies_[s])}s=goog.require;var p=0;for(i=0;i<t.length;i++)s(t[i]),o[i].onLoad(function(){++p==t.length&&r()})}else r()},goog.DebugLoader_.prototype.loadClosureDeps=function(){this.depsToLoad_.push(this.factory_.createDependency(goog.normalizePath_(goog.basePath+"deps.js"),"deps.js",[],[],{},!1)),this.loadDeps_()},goog.DebugLoader_.prototype.requested=function(t,o){(t=this.getPathFromDeps_(t))&&(o||this.areDepsLoaded_(this.dependencies_[t].requires))&&(o=this.deferredCallbacks_[t])&&(delete this.deferredCallbacks_[t],o())},goog.DebugLoader_.prototype.setDependencyFactory=function(t){this.factory_=t},goog.DebugLoader_.prototype.load_=function(t){if(this.getPathFromDeps_(t)){var o=this,r=[],n=function(i){var s=o.getPathFromDeps_(i);if(!s)throw Error("Bad dependency path or symbol: "+i);if(!o.written_[s]){for(o.written_[s]=!0,i=o.dependencies_[s],s=0;s<i.requires.length;s++)goog.isProvided_(i.requires[s])||n(i.requires[s]);r.push(i)}};n(t),t=!!this.depsToLoad_.length,this.depsToLoad_=this.depsToLoad_.concat(r),this.paused_||t||this.loadDeps_()}else throw t="goog.require could not find: "+t,goog.logToConsole_(t),Error(t)},goog.DebugLoader_.prototype.loadDeps_=function(){for(var t=this,o=this.paused_;this.depsToLoad_.length&&!o;)(function(){var r=!1,n=t.depsToLoad_.shift(),i=!1;t.loading_(n);var s={pause:function(){if(r)throw Error("Cannot call pause after the call to load.");o=!0},resume:function(){r?t.resume_():o=!1},loaded:function(){if(i)throw Error("Double call to loaded.");i=!0,t.loaded_(n)},pending:function(){for(var p=[],u=0;u<t.loadingDeps_.length;u++)p.push(t.loadingDeps_[u]);return p},setModuleState:function(p){goog.moduleLoaderState_={type:p,moduleName:"",declareLegacyNamespace:!1}},registerEs6ModuleExports:function(p,u,h){h&&(goog.loadedModules_[h]={exports:u,type:goog.ModuleType.ES6,moduleId:h||""})},registerGoogModuleExports:function(p,u){goog.loadedModules_[p]={exports:u,type:goog.ModuleType.GOOG,moduleId:p}},clearModuleState:function(){goog.moduleLoaderState_=null},defer:function(p){if(r)throw Error("Cannot register with defer after the call to load.");t.defer_(n,p)},areDepsLoaded:function(){return t.areDepsLoaded_(n.requires)}};try{n.load(s)}finally{r=!0}})();o&&this.pause_()},goog.DebugLoader_.prototype.pause_=function(){this.paused_=!0},goog.DebugLoader_.prototype.resume_=function(){this.paused_&&(this.paused_=!1,this.loadDeps_())},goog.DebugLoader_.prototype.loading_=function(t){this.loadingDeps_.push(t)},goog.DebugLoader_.prototype.loaded_=function(t){for(var o=0;o<this.loadingDeps_.length;o++)if(this.loadingDeps_[o]==t){this.loadingDeps_.splice(o,1);break}for(o=0;o<this.deferredQueue_.length;o++)if(this.deferredQueue_[o]==t.path){this.deferredQueue_.splice(o,1);break}if(this.loadingDeps_.length==this.deferredQueue_.length&&!this.depsToLoad_.length)for(;this.deferredQueue_.length;)this.requested(this.deferredQueue_.shift(),!0);t.loaded()},goog.DebugLoader_.prototype.areDepsLoaded_=function(t){for(var o=0;o<t.length;o++){var r=this.getPathFromDeps_(t[o]);if(!r||!(r in this.deferredCallbacks_||goog.isProvided_(t[o])))return!1}return!0},goog.DebugLoader_.prototype.getPathFromDeps_=function(t){return t in this.idToPath_?this.idToPath_[t]:t in this.dependencies_?t:null},goog.DebugLoader_.prototype.defer_=function(t,o){this.deferredCallbacks_[t.path]=o,this.deferredQueue_.push(t.path)},goog.LoadController=function(){},goog.LoadController.prototype.pause=function(){},goog.LoadController.prototype.resume=function(){},goog.LoadController.prototype.loaded=function(){},goog.LoadController.prototype.pending=function(){},goog.LoadController.prototype.registerEs6ModuleExports=function(t,o,r){},goog.LoadController.prototype.setModuleState=function(t){},goog.LoadController.prototype.clearModuleState=function(){},goog.LoadController.prototype.defer=function(t){},goog.LoadController.prototype.areDepsLoaded=function(){},goog.Dependency=function(t,o,r,n,i){this.path=t,this.relativePath=o,this.provides=r,this.requires=n,this.loadFlags=i,this.loaded_=!1,this.loadCallbacks_=[]},goog.Dependency.prototype.getPathName=function(){var t=this.path,o=t.indexOf("://");return 0<=o&&(t=t.substring(o+3),o=t.indexOf("/"),0<=o&&(t=t.substring(o+1))),t},goog.Dependency.prototype.onLoad=function(t){this.loaded_?t():this.loadCallbacks_.push(t)},goog.Dependency.prototype.loaded=function(){this.loaded_=!0;var t=this.loadCallbacks_;this.loadCallbacks_=[];for(var o=0;o<t.length;o++)t[o]()},goog.Dependency.defer_=!1,goog.Dependency.callbackMap_={},goog.Dependency.registerCallback_=function(t){var o=Math.random().toString(32);return goog.Dependency.callbackMap_[o]=t,o},goog.Dependency.unregisterCallback_=function(t){delete goog.Dependency.callbackMap_[t]},goog.Dependency.callback_=function(t,o){if(t in goog.Dependency.callbackMap_){for(var r=goog.Dependency.callbackMap_[t],n=[],i=1;i<arguments.length;i++)n.push(arguments[i]);r.apply(void 0,n)}else throw Error("Callback key "+t+" does not exist (was base.js loaded more than once?).")},goog.Dependency.prototype.load=function(t){if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?t.loaded():t.pause();else if(goog.inHtmlDocument_()){var o=goog.global.document;if(o.readyState=="complete"&&!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING){if(/\bdeps.js$/.test(this.path)){t.loaded();return}throw Error('Cannot write "'+this.path+'" after document load')}if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&goog.isDocumentLoading_()){var r=goog.Dependency.registerCallback_(function(s){goog.DebugLoader_.IS_OLD_IE_&&s.readyState!="complete"||(goog.Dependency.unregisterCallback_(r),t.loaded())}),n=!goog.DebugLoader_.IS_OLD_IE_&&goog.getScriptNonce()?' nonce="'+goog.getScriptNonce()+'"':"";n='<script src="'+this.path+'" '+(goog.DebugLoader_.IS_OLD_IE_?"onreadystatechange":"onload")+`="goog.Dependency.callback_('`+r+`', this)" type="text/javascript" `+(goog.Dependency.defer_?"defer":"")+n+"><\/script>",o.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(n):n)}else{var i=o.createElement("script");i.defer=goog.Dependency.defer_,i.async=!1,i.type="text/javascript",(n=goog.getScriptNonce())&&i.setAttribute("nonce",n),goog.DebugLoader_.IS_OLD_IE_?(t.pause(),i.onreadystatechange=function(){(i.readyState=="loaded"||i.readyState=="complete")&&(t.loaded(),t.resume())}):i.onload=function(){i.onload=null,t.loaded()},i.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path):this.path,o.head.appendChild(i)}}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),this.relativePath=="deps.js"?(goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true."),t.loaded()):t.pause()},goog.Es6ModuleDependency=function(t,o,r,n,i){goog.Dependency.call(this,t,o,r,n,i)},goog.inherits(goog.Es6ModuleDependency,goog.Dependency),goog.Es6ModuleDependency.prototype.load=function(t){function o(w,G){w=G?'<script type="module" crossorigin>'+G+"<\/script>":'<script type="module" crossorigin src="'+w+'"><\/script>',n.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(w):w)}function r(w,G){var T=n.createElement("script");T.defer=!0,T.async=!1,T.type="module",T.setAttribute("crossorigin",!0);var V=goog.getScriptNonce();V&&T.setAttribute("nonce",V),G?T.textContent=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScript(G):G:T.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(w):w,n.head.appendChild(T)}if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?t.loaded():t.pause();else if(goog.inHtmlDocument_()){var n=goog.global.document,i=this;if(goog.isDocumentLoading_()){var s=o;goog.Dependency.defer_=!0}else s=r;var p=goog.Dependency.registerCallback_(function(){goog.Dependency.unregisterCallback_(p),t.setModuleState(goog.ModuleType.ES6)});s(void 0,'goog.Dependency.callback_("'+p+'")'),s(this.path,void 0);var u=goog.Dependency.registerCallback_(function(w){goog.Dependency.unregisterCallback_(u),t.registerEs6ModuleExports(i.path,w,goog.moduleLoaderState_.moduleName)});s(void 0,'import * as m from "'+this.path+'"; goog.Dependency.callback_("'+u+'", m)');var h=goog.Dependency.registerCallback_(function(){goog.Dependency.unregisterCallback_(h),t.clearModuleState(),t.loaded()});s(void 0,'goog.Dependency.callback_("'+h+'")')}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),t.pause()},goog.TransformedDependency=function(t,o,r,n,i){goog.Dependency.call(this,t,o,r,n,i),this.contents_=null,this.lazyFetch_=!goog.inHtmlDocument_()||!("noModule"in goog.global.document.createElement("script"))},goog.inherits(goog.TransformedDependency,goog.Dependency),goog.TransformedDependency.prototype.load=function(t){function o(){i.contents_=goog.loadFileSync_(i.path),i.contents_&&(i.contents_=i.transform(i.contents_),i.contents_&&(i.contents_+=`
|
|
5
|
-
//# sourceURL=`+
|
|
3
|
+
`};goog.loadModule=function(t){var o=goog.moduleLoaderState_;try{if(goog.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:goog.ModuleType.GOOG},goog.isFunction(t))var r=t.call(void 0,{});else if(goog.isString(t))goog.useSafari10Workaround()&&(t=goog.workaroundSafari10EvalBug(t)),r=goog.loadModuleFromSource_.call(void 0,t);else throw Error("Invalid module definition");var i=goog.moduleLoaderState_.moduleName;if(goog.isString(i)&&i)goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(i,r):goog.SEAL_MODULE_EXPORTS&&Object.seal&&typeof r=="object"&&r!=null&&Object.seal(r),goog.loadedModules_[i]={exports:r,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName};else throw Error('Invalid module name "'+i+'"')}finally{goog.moduleLoaderState_=o}};goog.loadModuleFromSource_=function(a){return eval(a),{}};goog.normalizePath_=function(t){t=t.split("/");for(var o=0;o<t.length;)t[o]=="."?t.splice(o,1):o&&t[o]==".."&&t[o-1]&&t[o-1]!=".."?t.splice(--o,2):o++;return t.join("/")};goog.loadFileSync_=function(t){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(t);try{var o=new goog.global.XMLHttpRequest;return o.open("get",t,!1),o.send(),o.status==0||o.status==200?o.responseText:null}catch{return null}};goog.transpile_=function(t,o,r){var i=goog.global.$jscomp;i||(goog.global.$jscomp=i={});var n=i.transpile;if(!n){var s=goog.basePath+goog.TRANSPILER,p=goog.loadFileSync_(s);if(p){if(function(){(0,eval)(p+`
|
|
4
|
+
//# sourceURL=`+s)}.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,i=goog.global.$jscomp,n=i.transpile}}return n||(n=i.transpile=function(u,h){return goog.logToConsole_(h+" requires transpilation but no transpiler was found."),u}),n(t,o,r)};goog.typeOf=function(t){var o=typeof t;if(o=="object")if(t){if(t instanceof Array)return"array";if(t instanceof Object)return o;var r=Object.prototype.toString.call(t);if(r=="[object Window]")return"object";if(r=="[object Array]"||typeof t.length=="number"&&typeof t.splice!="undefined"&&typeof t.propertyIsEnumerable!="undefined"&&!t.propertyIsEnumerable("splice"))return"array";if(r=="[object Function]"||typeof t.call!="undefined"&&typeof t.propertyIsEnumerable!="undefined"&&!t.propertyIsEnumerable("call"))return"function"}else return"null";else if(o=="function"&&typeof t.call=="undefined")return"object";return o};goog.isNull=function(t){return t===null};goog.isDefAndNotNull=function(t){return t!=null};goog.isArray=function(t){return goog.typeOf(t)=="array"};goog.isArrayLike=function(t){var o=goog.typeOf(t);return o=="array"||o=="object"&&typeof t.length=="number"};goog.isDateLike=function(t){return goog.isObject(t)&&typeof t.getFullYear=="function"};goog.isFunction=function(t){return goog.typeOf(t)=="function"};goog.isObject=function(t){var o=typeof t;return o=="object"&&t!=null||o=="function"};goog.getUid=function(t){return t[goog.UID_PROPERTY_]||(t[goog.UID_PROPERTY_]=++goog.uidCounter_)};goog.hasUid=function(t){return!!t[goog.UID_PROPERTY_]};goog.removeUid=function(t){t!==null&&"removeAttribute"in t&&t.removeAttribute(goog.UID_PROPERTY_);try{delete t[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(t){var o=goog.typeOf(t);if(o=="object"||o=="array"){if(typeof t.clone=="function")return t.clone();o=o=="array"?[]:{};for(var r in t)o[r]=goog.cloneObject(t[r]);return o}return t};goog.bindNative_=function(t,o,r){return t.call.apply(t.bind,arguments)};goog.bindJs_=function(t,o,r){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),t.apply(o,n)}}return function(){return t.apply(o,arguments)}};goog.bind=function(t,o,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(t,o){var r=Array.prototype.slice.call(arguments,1);return function(){var i=r.slice();return i.push.apply(i,arguments),t.apply(this,i)}};goog.mixin=function(t,o){for(var r in o)t[r]=o[r]};goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date};goog.globalEval=function(t){if(goog.global.execScript)goog.global.execScript(t,"JavaScript");else if(goog.global.eval){if(goog.evalWorksForGlobals_==null){try{goog.global.eval("var _evalTest_ = 1;")}catch{}if(typeof goog.global._evalTest_!="undefined"){try{delete goog.global._evalTest_}catch{}goog.evalWorksForGlobals_=!0}else goog.evalWorksForGlobals_=!1}if(goog.evalWorksForGlobals_)goog.global.eval(t);else{var o=goog.global.document,r=o.createElement("SCRIPT");r.type="text/javascript",r.defer=!1,r.appendChild(o.createTextNode(t)),o.head.appendChild(r),o.head.removeChild(r)}}else throw Error("goog.globalEval not available")};goog.evalWorksForGlobals_=null;goog.getCssName=function(t,o){if(String(t).charAt(0)==".")throw Error('className passed in goog.getCssName must not start with ".". You passed: '+t);var r=function(n){return goog.cssNameMapping_[n]||n},i=function(n){n=n.split("-");for(var s=[],p=0;p<n.length;p++)s.push(r(n[p]));return s.join("-")};return i=goog.cssNameMapping_?goog.cssNameMappingStyle_=="BY_WHOLE"?r:i:function(n){return n},t=o?t+"-"+i(o):i(t),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(t):t};goog.setCssNameMapping=function(t,o){goog.cssNameMapping_=t,goog.cssNameMappingStyle_=o};!COMPILED&&goog.global.CLOSURE_CSS_NAME_MAPPING&&(goog.cssNameMapping_=goog.global.CLOSURE_CSS_NAME_MAPPING);goog.getMsg=function(t,o,r){return r&&r.html&&(t=t.replace(/</g,"<")),o&&(t=t.replace(/\{\$([^}]+)}/g,function(i,n){return o!=null&&n in o?o[n]:i})),t};goog.getMsgWithFallback=function(t,o){return t};goog.exportSymbol=function(t,o,r){goog.exportPath_(t,o,r)};goog.exportProperty=function(t,o,r){t[o]=r};goog.inherits=function(t,o){function r(){}r.prototype=o.prototype,t.superClass_=o.prototype,t.prototype=new r,t.prototype.constructor=t,t.base=function(i,n,s){for(var p=Array(arguments.length-2),u=2;u<arguments.length;u++)p[u-2]=arguments[u];return o.prototype[n].apply(i,p)}};goog.base=function(t,o,r){var i=arguments.callee.caller;if(goog.STRICT_MODE_COMPATIBLE||goog.DEBUG&&!i)throw Error("arguments.caller not defined. goog.base() cannot be used with strict mode code. See http://www.ecma-international.org/ecma-262/5.1/#sec-C");if(typeof i.superClass_!="undefined"){for(var n=Array(arguments.length-1),s=1;s<arguments.length;s++)n[s-1]=arguments[s];return i.superClass_.constructor.apply(t,n)}if(typeof o!="string"&&typeof o!="symbol")throw Error("method names provided to goog.base must be a string or a symbol");for(n=Array(arguments.length-2),s=2;s<arguments.length;s++)n[s-2]=arguments[s];s=!1;for(var p=t.constructor.prototype;p;p=Object.getPrototypeOf(p))if(p[o]===i)s=!0;else if(s)return p[o].apply(t,n);if(t[o]===i)return t.constructor.prototype[o].apply(t,n);throw Error("goog.base called from a method of one name to a method of a different name")};goog.scope=function(t){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");t.call(goog.global)};COMPILED||(goog.global.COMPILED=COMPILED);goog.defineClass=function(t,o){var r=o.constructor,i=o.statics;return r&&r!=Object.prototype.constructor||(r=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),r=goog.defineClass.createSealingConstructor_(r,t),t&&goog.inherits(r,t),delete o.constructor,delete o.statics,goog.defineClass.applyProperties_(r.prototype,o),i!=null&&(i instanceof Function?i(r):goog.defineClass.applyProperties_(r,i)),r};goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG;goog.defineClass.createSealingConstructor_=function(t,o){if(!goog.defineClass.SEAL_CLASS_INSTANCES)return t;var r=!goog.defineClass.isUnsealable_(o),i=function(){var n=t.apply(this,arguments)||this;return n[goog.UID_PROPERTY_]=n[goog.UID_PROPERTY_],this.constructor===i&&r&&Object.seal instanceof Function&&Object.seal(n),n};return i};goog.defineClass.isUnsealable_=function(t){return t&&t.prototype&&t.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]};goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");goog.defineClass.applyProperties_=function(t,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r]);for(var i=0;i<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;i++)r=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[i],Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])};goog.tagUnsealableClass=function(t){!COMPILED&&goog.defineClass.SEAL_CLASS_INSTANCES&&(t.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]=!0)};goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable";!COMPILED&&goog.DEPENDENCIES_ENABLED&&(goog.inHtmlDocument_=function(){var t=goog.global.document;return t!=null&&"write"in t},goog.isDocumentLoading_=function(){var t=goog.global.document;return t.attachEvent?t.readyState!="complete":t.readyState=="loading"},goog.findBasePath_=function(){if(goog.isDef(goog.global.CLOSURE_BASE_PATH)&&goog.isString(goog.global.CLOSURE_BASE_PATH))goog.basePath=goog.global.CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_()){var t=goog.global.document,o=t.currentScript;for(t=o?[o]:t.getElementsByTagName("SCRIPT"),o=t.length-1;0<=o;--o){var r=t[o].src,i=r.lastIndexOf("?");if(i=i==-1?r.length:i,r.substr(i-7,7)=="base.js"){goog.basePath=r.substr(0,i-7);break}}}},goog.findBasePath_(),goog.Transpiler=function(){this.requiresTranspilation_=null,this.transpilationTarget_=goog.TRANSPILE_TO_LANGUAGE},goog.Transpiler.prototype.createRequiresTranspilation_=function(){function a(t,o){e?d[t]=!0:o()?(c=t,d[t]=!1):e=d[t]=!0}function b(a){try{return!!eval(a)}catch(t){return!1}}var c="es3",d={es3:!1},e=!1,f=goog.global.navigator&&goog.global.navigator.userAgent?goog.global.navigator.userAgent:"";return a("es5",function(){return b("[1,].length==1")}),a("es6",function(){return f.match(/Edge\/(\d+)(\.\d)*/i)?!1:b('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')}),a("es7",function(){return b("2 ** 2 == 4")}),a("es8",function(){return b("async () => 1, true")}),a("es9",function(){return b("({...rest} = {}), true")}),a("es_next",function(){return!1}),{target:c,map:d}},goog.Transpiler.prototype.needsTranspile=function(t,o){if(goog.TRANSPILE=="always")return!0;if(goog.TRANSPILE=="never")return!1;if(!this.requiresTranspilation_){var r=this.createRequiresTranspilation_();this.requiresTranspilation_=r.map,this.transpilationTarget_=this.transpilationTarget_||r.target}if(t in this.requiresTranspilation_)return this.requiresTranspilation_[t]?!0:!(!goog.inHtmlDocument_()||o!="es6"||"noModule"in goog.global.document.createElement("script"));throw Error("Unknown language mode: "+t)},goog.Transpiler.prototype.transpile=function(t,o){return goog.transpile_(t,o,this.transpilationTarget_)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(t){return t.replace(/<\/(SCRIPT)/ig,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(t,o){function r(){i&&(goog.global.setTimeout(i,0),i=null)}var i=o;if(t.length){o=[];for(var n=0;n<t.length;n++){var s=this.getPathFromDeps_(t[n]);if(!s)throw Error("Unregonized namespace: "+t[n]);o.push(this.dependencies_[s])}s=goog.require;var p=0;for(n=0;n<t.length;n++)s(t[n]),o[n].onLoad(function(){++p==t.length&&r()})}else r()},goog.DebugLoader_.prototype.loadClosureDeps=function(){this.depsToLoad_.push(this.factory_.createDependency(goog.normalizePath_(goog.basePath+"deps.js"),"deps.js",[],[],{},!1)),this.loadDeps_()},goog.DebugLoader_.prototype.requested=function(t,o){(t=this.getPathFromDeps_(t))&&(o||this.areDepsLoaded_(this.dependencies_[t].requires))&&(o=this.deferredCallbacks_[t])&&(delete this.deferredCallbacks_[t],o())},goog.DebugLoader_.prototype.setDependencyFactory=function(t){this.factory_=t},goog.DebugLoader_.prototype.load_=function(t){if(this.getPathFromDeps_(t)){var o=this,r=[],i=function(n){var s=o.getPathFromDeps_(n);if(!s)throw Error("Bad dependency path or symbol: "+n);if(!o.written_[s]){for(o.written_[s]=!0,n=o.dependencies_[s],s=0;s<n.requires.length;s++)goog.isProvided_(n.requires[s])||i(n.requires[s]);r.push(n)}};i(t),t=!!this.depsToLoad_.length,this.depsToLoad_=this.depsToLoad_.concat(r),this.paused_||t||this.loadDeps_()}else throw t="goog.require could not find: "+t,goog.logToConsole_(t),Error(t)},goog.DebugLoader_.prototype.loadDeps_=function(){for(var t=this,o=this.paused_;this.depsToLoad_.length&&!o;)(function(){var r=!1,i=t.depsToLoad_.shift(),n=!1;t.loading_(i);var s={pause:function(){if(r)throw Error("Cannot call pause after the call to load.");o=!0},resume:function(){r?t.resume_():o=!1},loaded:function(){if(n)throw Error("Double call to loaded.");n=!0,t.loaded_(i)},pending:function(){for(var p=[],u=0;u<t.loadingDeps_.length;u++)p.push(t.loadingDeps_[u]);return p},setModuleState:function(p){goog.moduleLoaderState_={type:p,moduleName:"",declareLegacyNamespace:!1}},registerEs6ModuleExports:function(p,u,h){h&&(goog.loadedModules_[h]={exports:u,type:goog.ModuleType.ES6,moduleId:h||""})},registerGoogModuleExports:function(p,u){goog.loadedModules_[p]={exports:u,type:goog.ModuleType.GOOG,moduleId:p}},clearModuleState:function(){goog.moduleLoaderState_=null},defer:function(p){if(r)throw Error("Cannot register with defer after the call to load.");t.defer_(i,p)},areDepsLoaded:function(){return t.areDepsLoaded_(i.requires)}};try{i.load(s)}finally{r=!0}})();o&&this.pause_()},goog.DebugLoader_.prototype.pause_=function(){this.paused_=!0},goog.DebugLoader_.prototype.resume_=function(){this.paused_&&(this.paused_=!1,this.loadDeps_())},goog.DebugLoader_.prototype.loading_=function(t){this.loadingDeps_.push(t)},goog.DebugLoader_.prototype.loaded_=function(t){for(var o=0;o<this.loadingDeps_.length;o++)if(this.loadingDeps_[o]==t){this.loadingDeps_.splice(o,1);break}for(o=0;o<this.deferredQueue_.length;o++)if(this.deferredQueue_[o]==t.path){this.deferredQueue_.splice(o,1);break}if(this.loadingDeps_.length==this.deferredQueue_.length&&!this.depsToLoad_.length)for(;this.deferredQueue_.length;)this.requested(this.deferredQueue_.shift(),!0);t.loaded()},goog.DebugLoader_.prototype.areDepsLoaded_=function(t){for(var o=0;o<t.length;o++){var r=this.getPathFromDeps_(t[o]);if(!r||!(r in this.deferredCallbacks_||goog.isProvided_(t[o])))return!1}return!0},goog.DebugLoader_.prototype.getPathFromDeps_=function(t){return t in this.idToPath_?this.idToPath_[t]:t in this.dependencies_?t:null},goog.DebugLoader_.prototype.defer_=function(t,o){this.deferredCallbacks_[t.path]=o,this.deferredQueue_.push(t.path)},goog.LoadController=function(){},goog.LoadController.prototype.pause=function(){},goog.LoadController.prototype.resume=function(){},goog.LoadController.prototype.loaded=function(){},goog.LoadController.prototype.pending=function(){},goog.LoadController.prototype.registerEs6ModuleExports=function(t,o,r){},goog.LoadController.prototype.setModuleState=function(t){},goog.LoadController.prototype.clearModuleState=function(){},goog.LoadController.prototype.defer=function(t){},goog.LoadController.prototype.areDepsLoaded=function(){},goog.Dependency=function(t,o,r,i,n){this.path=t,this.relativePath=o,this.provides=r,this.requires=i,this.loadFlags=n,this.loaded_=!1,this.loadCallbacks_=[]},goog.Dependency.prototype.getPathName=function(){var t=this.path,o=t.indexOf("://");return 0<=o&&(t=t.substring(o+3),o=t.indexOf("/"),0<=o&&(t=t.substring(o+1))),t},goog.Dependency.prototype.onLoad=function(t){this.loaded_?t():this.loadCallbacks_.push(t)},goog.Dependency.prototype.loaded=function(){this.loaded_=!0;var t=this.loadCallbacks_;this.loadCallbacks_=[];for(var o=0;o<t.length;o++)t[o]()},goog.Dependency.defer_=!1,goog.Dependency.callbackMap_={},goog.Dependency.registerCallback_=function(t){var o=Math.random().toString(32);return goog.Dependency.callbackMap_[o]=t,o},goog.Dependency.unregisterCallback_=function(t){delete goog.Dependency.callbackMap_[t]},goog.Dependency.callback_=function(t,o){if(t in goog.Dependency.callbackMap_){for(var r=goog.Dependency.callbackMap_[t],i=[],n=1;n<arguments.length;n++)i.push(arguments[n]);r.apply(void 0,i)}else throw Error("Callback key "+t+" does not exist (was base.js loaded more than once?).")},goog.Dependency.prototype.load=function(t){if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?t.loaded():t.pause();else if(goog.inHtmlDocument_()){var o=goog.global.document;if(o.readyState=="complete"&&!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING){if(/\bdeps.js$/.test(this.path)){t.loaded();return}throw Error('Cannot write "'+this.path+'" after document load')}if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&goog.isDocumentLoading_()){var r=goog.Dependency.registerCallback_(function(s){goog.DebugLoader_.IS_OLD_IE_&&s.readyState!="complete"||(goog.Dependency.unregisterCallback_(r),t.loaded())}),i=!goog.DebugLoader_.IS_OLD_IE_&&goog.getScriptNonce()?' nonce="'+goog.getScriptNonce()+'"':"";i='<script src="'+this.path+'" '+(goog.DebugLoader_.IS_OLD_IE_?"onreadystatechange":"onload")+`="goog.Dependency.callback_('`+r+`', this)" type="text/javascript" `+(goog.Dependency.defer_?"defer":"")+i+"><\/script>",o.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(i):i)}else{var n=o.createElement("script");n.defer=goog.Dependency.defer_,n.async=!1,n.type="text/javascript",(i=goog.getScriptNonce())&&n.setAttribute("nonce",i),goog.DebugLoader_.IS_OLD_IE_?(t.pause(),n.onreadystatechange=function(){(n.readyState=="loaded"||n.readyState=="complete")&&(t.loaded(),t.resume())}):n.onload=function(){n.onload=null,t.loaded()},n.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path):this.path,o.head.appendChild(n)}}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),this.relativePath=="deps.js"?(goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true."),t.loaded()):t.pause()},goog.Es6ModuleDependency=function(t,o,r,i,n){goog.Dependency.call(this,t,o,r,i,n)},goog.inherits(goog.Es6ModuleDependency,goog.Dependency),goog.Es6ModuleDependency.prototype.load=function(t){function o(w,G){w=G?'<script type="module" crossorigin>'+G+"<\/script>":'<script type="module" crossorigin src="'+w+'"><\/script>',i.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(w):w)}function r(w,G){var T=i.createElement("script");T.defer=!0,T.async=!1,T.type="module",T.setAttribute("crossorigin",!0);var V=goog.getScriptNonce();V&&T.setAttribute("nonce",V),G?T.textContent=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScript(G):G:T.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(w):w,i.head.appendChild(T)}if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?t.loaded():t.pause();else if(goog.inHtmlDocument_()){var i=goog.global.document,n=this;if(goog.isDocumentLoading_()){var s=o;goog.Dependency.defer_=!0}else s=r;var p=goog.Dependency.registerCallback_(function(){goog.Dependency.unregisterCallback_(p),t.setModuleState(goog.ModuleType.ES6)});s(void 0,'goog.Dependency.callback_("'+p+'")'),s(this.path,void 0);var u=goog.Dependency.registerCallback_(function(w){goog.Dependency.unregisterCallback_(u),t.registerEs6ModuleExports(n.path,w,goog.moduleLoaderState_.moduleName)});s(void 0,'import * as m from "'+this.path+'"; goog.Dependency.callback_("'+u+'", m)');var h=goog.Dependency.registerCallback_(function(){goog.Dependency.unregisterCallback_(h),t.clearModuleState(),t.loaded()});s(void 0,'goog.Dependency.callback_("'+h+'")')}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),t.pause()},goog.TransformedDependency=function(t,o,r,i,n){goog.Dependency.call(this,t,o,r,i,n),this.contents_=null,this.lazyFetch_=!goog.inHtmlDocument_()||!("noModule"in goog.global.document.createElement("script"))},goog.inherits(goog.TransformedDependency,goog.Dependency),goog.TransformedDependency.prototype.load=function(t){function o(){n.contents_=goog.loadFileSync_(n.path),n.contents_&&(n.contents_=n.transform(n.contents_),n.contents_&&(n.contents_+=`
|
|
5
|
+
//# sourceURL=`+n.path))}function r(){if(n.lazyFetch_&&o(),n.contents_){s&&t.setModuleState(goog.ModuleType.ES6);try{var G=n.contents_;if(n.contents_=null,goog.globalEval(G),s)var T=goog.moduleLoaderState_.moduleName}finally{s&&t.clearModuleState()}s&&goog.global.$jscomp.require.ensure([n.getPathName()],function(){t.registerEs6ModuleExports(n.path,goog.global.$jscomp.require(n.getPathName()),T)}),t.loaded()}}function i(){var G=goog.global.document,T=goog.Dependency.registerCallback_(function(){goog.Dependency.unregisterCallback_(T),r()}),V='<script type="text/javascript">'+goog.protectScriptTag_('goog.Dependency.callback_("'+T+'");')+"<\/script>";G.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(V):V)}var n=this;if(goog.global.CLOSURE_IMPORT_SCRIPT)o(),this.contents_&&goog.global.CLOSURE_IMPORT_SCRIPT("",this.contents_)?(this.contents_=null,t.loaded()):t.pause();else{var s=this.loadFlags.module==goog.ModuleType.ES6;this.lazyFetch_||o();var p=1<t.pending().length,u=p&&goog.DebugLoader_.IS_OLD_IE_;if(p=goog.Dependency.defer_&&(p||goog.isDocumentLoading_()),u||p)t.defer(function(){r()});else{var h=goog.global.document;if(u=goog.inHtmlDocument_()&&"ActiveXObject"in goog.global,s&&goog.inHtmlDocument_()&&goog.isDocumentLoading_()&&!u){goog.Dependency.defer_=!0,t.pause();var w=h.onreadystatechange;h.onreadystatechange=function(){h.readyState=="interactive"&&(h.onreadystatechange=w,r(),t.resume()),goog.isFunction(w)&&w.apply(void 0,arguments)}}else!goog.DebugLoader_.IS_OLD_IE_&&goog.inHtmlDocument_()&&goog.isDocumentLoading_()?i():r()}}},goog.TransformedDependency.prototype.transform=function(t){},goog.TranspiledDependency=function(t,o,r,i,n,s){goog.TransformedDependency.call(this,t,o,r,i,n),this.transpiler=s},goog.inherits(goog.TranspiledDependency,goog.TransformedDependency),goog.TranspiledDependency.prototype.transform=function(t){return this.transpiler.transpile(t,this.getPathName())},goog.PreTranspiledEs6ModuleDependency=function(t,o,r,i,n){goog.TransformedDependency.call(this,t,o,r,i,n)},goog.inherits(goog.PreTranspiledEs6ModuleDependency,goog.TransformedDependency),goog.PreTranspiledEs6ModuleDependency.prototype.transform=function(t){return t},goog.GoogModuleDependency=function(t,o,r,i,n,s,p){goog.TransformedDependency.call(this,t,o,r,i,n),this.needsTranspile_=s,this.transpiler_=p},goog.inherits(goog.GoogModuleDependency,goog.TransformedDependency),goog.GoogModuleDependency.prototype.transform=function(t){return this.needsTranspile_&&(t=this.transpiler_.transpile(t,this.getPathName())),goog.LOAD_MODULE_USING_EVAL&&goog.isDef(goog.global.JSON)?"goog.loadModule("+goog.global.JSON.stringify(t+`
|
|
6
6
|
//# sourceURL=`+this.path+`
|
|
7
7
|
`)+");":'goog.loadModule(function(exports) {"use strict";'+t+`
|
|
8
8
|
;return exports});
|
|
9
9
|
//# sourceURL=`+this.path+`
|
|
10
|
-
`},goog.DebugLoader_.IS_OLD_IE_=!(goog.global.atob||!goog.global.document||!goog.global.document.all),goog.DebugLoader_.prototype.addDependency=function(t,o,r,n){o=o||[],t=t.replace(/\\/g,"/");var i=goog.normalizePath_(goog.basePath+t);for(n&&typeof n!="boolean"||(n=n?{module:goog.ModuleType.GOOG}:{}),r=this.factory_.createDependency(i,t,o,r,n,goog.transpiler_.needsTranspile(n.lang||"es3",n.module)),this.dependencies_[i]=r,r=0;r<o.length;r++)this.idToPath_[o[r]]=i;this.idToPath_[t]=i},goog.DependencyFactory=function(t){this.transpiler=t},goog.DependencyFactory.prototype.createDependency=function(t,o,r,n,i,s){return i.module==goog.ModuleType.GOOG?new goog.GoogModuleDependency(t,o,r,n,i,s,this.transpiler):s?new goog.TranspiledDependency(t,o,r,n,i,this.transpiler):i.module==goog.ModuleType.ES6?goog.TRANSPILE=="never"&&goog.ASSUME_ES_MODULES_TRANSPILED?new goog.PreTranspiledEs6ModuleDependency(t,o,r,n,i):new goog.Es6ModuleDependency(t,o,r,n,i):new goog.Dependency(t,o,r,n,i)},goog.debugLoader_=new goog.DebugLoader_,goog.loadClosureDeps=function(){goog.debugLoader_.loadClosureDeps()},goog.setDependencyFactory=function(t){goog.debugLoader_.setDependencyFactory(t)},goog.global.CLOSURE_NO_DEPS||goog.debugLoader_.loadClosureDeps(),goog.bootstrap=function(t,o){goog.debugLoader_.bootstrap(t,o)});goog.TRUSTED_TYPES_POLICY_NAME="";goog.identity_=function(t){return t};goog.createTrustedTypesPolicy=function(t){var o=null;if(typeof TrustedTypes=="undefined"||!TrustedTypes.createPolicy)return o;try{o=TrustedTypes.createPolicy(t,{createHTML:goog.identity_,createScript:goog.identity_,createScriptURL:goog.identity_,createURL:goog.identity_})}catch(r){goog.logToConsole_(r.message)}return o};goog.TRUSTED_TYPES_POLICY_=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#base"):null;goog.object={};goog.object.is=function(t,o){return t===o?t!==0||1/t===1/o:t!==t&&o!==o};goog.object.forEach=function(t,o,r){for(var n in t)o.call(r,t[n],n,t)};goog.object.filter=function(t,o,r){var n={},i;for(i in t)o.call(r,t[i],i,t)&&(n[i]=t[i]);return n};goog.object.map=function(t,o,r){var n={},i;for(i in t)n[i]=o.call(r,t[i],i,t);return n};goog.object.some=function(t,o,r){for(var n in t)if(o.call(r,t[n],n,t))return!0;return!1};goog.object.every=function(t,o,r){for(var n in t)if(!o.call(r,t[n],n,t))return!1;return!0};goog.object.getCount=function(t){var o=0,r;for(r in t)o++;return o};goog.object.getAnyKey=function(t){for(var o in t)return o};goog.object.getAnyValue=function(t){for(var o in t)return t[o]};goog.object.contains=function(t,o){return goog.object.containsValue(t,o)};goog.object.getValues=function(t){var o=[],r=0,n;for(n in t)o[r++]=t[n];return o};goog.object.getKeys=function(t){var o=[],r=0,n;for(n in t)o[r++]=n;return o};goog.object.getValueByKeys=function(t,o){var r=goog.isArrayLike(o),n=r?o:arguments;for(r=r?0:1;r<n.length;r++){if(t==null)return;t=t[n[r]]}return t};goog.object.containsKey=function(t,o){return t!==null&&o in t};goog.object.containsValue=function(t,o){for(var r in t)if(t[r]==o)return!0;return!1};goog.object.findKey=function(t,o,r){for(var n in t)if(o.call(r,t[n],n,t))return n};goog.object.findValue=function(t,o,r){return(o=goog.object.findKey(t,o,r))&&t[o]};goog.object.isEmpty=function(t){for(var o in t)return!1;return!0};goog.object.clear=function(t){for(var o in t)delete t[o]};goog.object.remove=function(t,o){var r;return(r=o in t)&&delete t[o],r};goog.object.add=function(t,o,r){if(t!==null&&o in t)throw Error('The object already contains the key "'+o+'"');goog.object.set(t,o,r)};goog.object.get=function(t,o,r){return t!==null&&o in t?t[o]:r};goog.object.set=function(t,o,r){t[o]=r};goog.object.setIfUndefined=function(t,o,r){return o in t?t[o]:t[o]=r};goog.object.setWithReturnValueIfNotSet=function(t,o,r){return o in t?t[o]:(r=r(),t[o]=r)};goog.object.equals=function(t,o){for(var r in t)if(!(r in o)||t[r]!==o[r])return!1;for(var n in o)if(!(n in t))return!1;return!0};goog.object.clone=function(t){var o={},r;for(r in t)o[r]=t[r];return o};goog.object.unsafeClone=function(t){var o=goog.typeOf(t);if(o=="object"||o=="array"){if(goog.isFunction(t.clone))return t.clone();o=o=="array"?[]:{};for(var r in t)o[r]=goog.object.unsafeClone(t[r]);return o}return t};goog.object.transpose=function(t){var o={},r;for(r in t)o[t[r]]=r;return o};goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");goog.object.extend=function(t,o){for(var r,n,i=1;i<arguments.length;i++){n=arguments[i];for(r in n)t[r]=n[r];for(var s=0;s<goog.object.PROTOTYPE_FIELDS_.length;s++)r=goog.object.PROTOTYPE_FIELDS_[s],Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}};goog.object.create=function(t){var o=arguments.length;if(o==1&&goog.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(o%2)throw Error("Uneven number of arguments");for(var r={},n=0;n<o;n+=2)r[arguments[n]]=arguments[n+1];return r};goog.object.createSet=function(t){var o=arguments.length;if(o==1&&goog.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var r={},n=0;n<o;n++)r[arguments[n]]=!0;return r};goog.object.createImmutableView=function(t){var o=t;return Object.isFrozen&&!Object.isFrozen(t)&&(o=Object.create(t),Object.freeze(o)),o};goog.object.isImmutableView=function(t){return!!Object.isFrozen&&Object.isFrozen(t)};goog.object.getAllPropertyNames=function(t,o,r){if(!t)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return goog.object.getKeys(t);for(var n={};t&&(t!==Object.prototype||o)&&(t!==Function.prototype||r);){for(var i=Object.getOwnPropertyNames(t),s=0;s<i.length;s++)n[i[s]]=!0;t=Object.getPrototypeOf(t)}return goog.object.getKeys(n)};goog.object.getSuperClass=function(t){return(t=Object.getPrototypeOf(t.prototype))&&t.constructor};goog.debug={};goog.debug.Error=function(t){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var o=Error().stack;o&&(this.stack=o)}t&&(this.message=String(t)),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(t,o){goog.debug.Error.call(this,goog.asserts.subs_(t,o)),this.messagePattern=t};goog.inherits(goog.asserts.AssertionError,goog.debug.Error);goog.asserts.AssertionError.prototype.name="AssertionError";goog.asserts.DEFAULT_ERROR_HANDLER=function(t){throw t};goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER;goog.asserts.subs_=function(t,o){t=t.split("%s");for(var r="",n=t.length-1,i=0;i<n;i++)r+=t[i]+(i<o.length?o[i]:"%s");return r+t[n]};goog.asserts.doAssertFailure_=function(t,o,r,n){var i="Assertion failed";if(r){i+=": "+r;var s=n}else t&&(i+=": "+t,s=o);t=new goog.asserts.AssertionError(""+i,s||[]),goog.asserts.errorHandler_(t)};goog.asserts.setErrorHandler=function(t){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=t)};goog.asserts.assert=function(t,o,r){return goog.asserts.ENABLE_ASSERTS&&!t&&goog.asserts.doAssertFailure_("",null,o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.assertExists=function(t,o,r){return goog.asserts.ENABLE_ASSERTS&&t==null&&goog.asserts.doAssertFailure_("Expected to exist: %s.",[t],o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.fail=function(t,o){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1)))};goog.asserts.assertNumber=function(t,o,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isNumber(t)&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(t),t],o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.assertString=function(t,o,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isString(t)&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(t),t],o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.assertFunction=function(t,o,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(t)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(t),t],o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.assertObject=function(t,o,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(t)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(t),t],o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.assertArray=function(t,o,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isArray(t)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(t),t],o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.assertBoolean=function(t,o,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isBoolean(t)&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(t),t],o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.assertElement=function(t,o,r){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(t)&&t.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(t),t],o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.assertInstanceof=function(t,o,r,n){return!goog.asserts.ENABLE_ASSERTS||t instanceof o||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(o),goog.asserts.getType_(t)],r,Array.prototype.slice.call(arguments,3)),t};goog.asserts.assertFinite=function(t,o,r){return!goog.asserts.ENABLE_ASSERTS||typeof t=="number"&&isFinite(t)||goog.asserts.doAssertFailure_("Expected %s to be a finite number but it is not.",[t],o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.assertObjectPrototypeIsIntact=function(){for(var t in Object.prototype)goog.asserts.fail(t+" should not be enumerable in Object.prototype.")};goog.asserts.getType_=function(t){return t instanceof Function?t.displayName||t.name||"unknown type name":t instanceof Object?t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t):t===null?"null":typeof t};var jspb={BinaryConstants:{},ConstBinaryMessage:function(){},BinaryMessage:function(){}};jspb.BinaryConstants.FieldType={INVALID:-1,DOUBLE:1,FLOAT:2,INT64:3,UINT64:4,INT32:5,FIXED64:6,FIXED32:7,BOOL:8,STRING:9,GROUP:10,MESSAGE:11,BYTES:12,UINT32:13,ENUM:14,SFIXED32:15,SFIXED64:16,SINT32:17,SINT64:18,FHASH64:30,VHASH64:31};jspb.BinaryConstants.WireType={INVALID:-1,VARINT:0,FIXED64:1,DELIMITED:2,START_GROUP:3,END_GROUP:4,FIXED32:5};jspb.BinaryConstants.FieldTypeToWireType=function(t){var o=jspb.BinaryConstants.FieldType,r=jspb.BinaryConstants.WireType;switch(t){case o.INT32:case o.INT64:case o.UINT32:case o.UINT64:case o.SINT32:case o.SINT64:case o.BOOL:case o.ENUM:case o.VHASH64:return r.VARINT;case o.DOUBLE:case o.FIXED64:case o.SFIXED64:case o.FHASH64:return r.FIXED64;case o.STRING:case o.MESSAGE:case o.BYTES:return r.DELIMITED;case o.FLOAT:case o.FIXED32:case o.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.array={};goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE;goog.array.ASSUME_NATIVE_FUNCTIONS=2012<goog.FEATURESET_YEAR;goog.array.peek=function(t){return t[t.length-1]};goog.array.last=goog.array.peek;goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(t,o,r){return goog.asserts.assert(t.length!=null),Array.prototype.indexOf.call(t,o,r)}:function(t,o,r){if(r=r==null?0:0>r?Math.max(0,t.length+r):r,goog.isString(t))return goog.isString(o)&&o.length==1?t.indexOf(o,r):-1;for(;r<t.length;r++)if(r in t&&t[r]===o)return r;return-1};goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(t,o,r){return goog.asserts.assert(t.length!=null),Array.prototype.lastIndexOf.call(t,o,r??t.length-1)}:function(t,o,r){if(r=r??t.length-1,0>r&&(r=Math.max(0,t.length+r)),goog.isString(t))return goog.isString(o)&&o.length==1?t.lastIndexOf(o,r):-1;for(;0<=r;r--)if(r in t&&t[r]===o)return r;return-1};goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(t,o,r){goog.asserts.assert(t.length!=null),Array.prototype.forEach.call(t,o,r)}:function(t,o,r){for(var n=t.length,i=goog.isString(t)?t.split(""):t,s=0;s<n;s++)s in i&&o.call(r,i[s],s,t)};goog.array.forEachRight=function(t,o,r){var n=t.length,i=goog.isString(t)?t.split(""):t;for(--n;0<=n;--n)n in i&&o.call(r,i[n],n,t)};goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(t,o,r){return goog.asserts.assert(t.length!=null),Array.prototype.filter.call(t,o,r)}:function(t,o,r){for(var n=t.length,i=[],s=0,p=goog.isString(t)?t.split(""):t,u=0;u<n;u++)if(u in p){var h=p[u];o.call(r,h,u,t)&&(i[s++]=h)}return i};goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(t,o,r){return goog.asserts.assert(t.length!=null),Array.prototype.map.call(t,o,r)}:function(t,o,r){for(var n=t.length,i=Array(n),s=goog.isString(t)?t.split(""):t,p=0;p<n;p++)p in s&&(i[p]=o.call(r,s[p],p,t));return i};goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(t,o,r,n){return goog.asserts.assert(t.length!=null),n&&(o=goog.bind(o,n)),Array.prototype.reduce.call(t,o,r)}:function(t,o,r,n){var i=r;return goog.array.forEach(t,function(s,p){i=o.call(n,i,s,p,t)}),i};goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(t,o,r,n){return goog.asserts.assert(t.length!=null),goog.asserts.assert(o!=null),n&&(o=goog.bind(o,n)),Array.prototype.reduceRight.call(t,o,r)}:function(t,o,r,n){var i=r;return goog.array.forEachRight(t,function(s,p){i=o.call(n,i,s,p,t)}),i};goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(t,o,r){return goog.asserts.assert(t.length!=null),Array.prototype.some.call(t,o,r)}:function(t,o,r){for(var n=t.length,i=goog.isString(t)?t.split(""):t,s=0;s<n;s++)if(s in i&&o.call(r,i[s],s,t))return!0;return!1};goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(t,o,r){return goog.asserts.assert(t.length!=null),Array.prototype.every.call(t,o,r)}:function(t,o,r){for(var n=t.length,i=goog.isString(t)?t.split(""):t,s=0;s<n;s++)if(s in i&&!o.call(r,i[s],s,t))return!1;return!0};goog.array.count=function(t,o,r){var n=0;return goog.array.forEach(t,function(i,s,p){o.call(r,i,s,p)&&++n},r),n};goog.array.find=function(t,o,r){return o=goog.array.findIndex(t,o,r),0>o?null:goog.isString(t)?t.charAt(o):t[o]};goog.array.findIndex=function(t,o,r){for(var n=t.length,i=goog.isString(t)?t.split(""):t,s=0;s<n;s++)if(s in i&&o.call(r,i[s],s,t))return s;return-1};goog.array.findRight=function(t,o,r){return o=goog.array.findIndexRight(t,o,r),0>o?null:goog.isString(t)?t.charAt(o):t[o]};goog.array.findIndexRight=function(t,o,r){var n=t.length,i=goog.isString(t)?t.split(""):t;for(--n;0<=n;n--)if(n in i&&o.call(r,i[n],n,t))return n;return-1};goog.array.contains=function(t,o){return 0<=goog.array.indexOf(t,o)};goog.array.isEmpty=function(t){return t.length==0};goog.array.clear=function(t){if(!goog.isArray(t))for(var o=t.length-1;0<=o;o--)delete t[o];t.length=0};goog.array.insert=function(t,o){goog.array.contains(t,o)||t.push(o)};goog.array.insertAt=function(t,o,r){goog.array.splice(t,r,0,o)};goog.array.insertArrayAt=function(t,o,r){goog.partial(goog.array.splice,t,r,0).apply(null,o)};goog.array.insertBefore=function(t,o,r){var n;arguments.length==2||0>(n=goog.array.indexOf(t,r))?t.push(o):goog.array.insertAt(t,o,n)};goog.array.remove=function(t,o){o=goog.array.indexOf(t,o);var r;return(r=0<=o)&&goog.array.removeAt(t,o),r};goog.array.removeLast=function(t,o){return o=goog.array.lastIndexOf(t,o),0<=o?(goog.array.removeAt(t,o),!0):!1};goog.array.removeAt=function(t,o){return goog.asserts.assert(t.length!=null),Array.prototype.splice.call(t,o,1).length==1};goog.array.removeIf=function(t,o,r){return o=goog.array.findIndex(t,o,r),0<=o?(goog.array.removeAt(t,o),!0):!1};goog.array.removeAllIf=function(t,o,r){var n=0;return goog.array.forEachRight(t,function(i,s){o.call(r,i,s,t)&&goog.array.removeAt(t,s)&&n++}),n};goog.array.concat=function(t){return Array.prototype.concat.apply([],arguments)};goog.array.join=function(t){return Array.prototype.concat.apply([],arguments)};goog.array.toArray=function(t){var o=t.length;if(0<o){for(var r=Array(o),n=0;n<o;n++)r[n]=t[n];return r}return[]};goog.array.clone=goog.array.toArray;goog.array.extend=function(t,o){for(var r=1;r<arguments.length;r++){var n=arguments[r];if(goog.isArrayLike(n)){var i=t.length||0,s=n.length||0;t.length=i+s;for(var p=0;p<s;p++)t[i+p]=n[p]}else t.push(n)}};goog.array.splice=function(t,o,r,n){return goog.asserts.assert(t.length!=null),Array.prototype.splice.apply(t,goog.array.slice(arguments,1))};goog.array.slice=function(t,o,r){return goog.asserts.assert(t.length!=null),2>=arguments.length?Array.prototype.slice.call(t,o):Array.prototype.slice.call(t,o,r)};goog.array.removeDuplicates=function(t,o,r){o=o||t;var n=function(h){return goog.isObject(h)?"o"+goog.getUid(h):(typeof h).charAt(0)+h};r=r||n,n={};for(var i=0,s=0;s<t.length;){var p=t[s++],u=r(p);Object.prototype.hasOwnProperty.call(n,u)||(n[u]=!0,o[i++]=p)}o.length=i};goog.array.binarySearch=function(t,o,r){return goog.array.binarySearch_(t,r||goog.array.defaultCompare,!1,o)};goog.array.binarySelect=function(t,o,r){return goog.array.binarySearch_(t,o,!0,void 0,r)};goog.array.binarySearch_=function(t,o,r,n,i){for(var s=0,p=t.length,u;s<p;){var h=s+p>>1,w=r?o.call(i,t[h],h,t):o(n,t[h]);0<w?s=h+1:(p=h,u=!w)}return u?s:~s};goog.array.sort=function(t,o){t.sort(o||goog.array.defaultCompare)};goog.array.stableSort=function(t,o){for(var r=Array(t.length),n=0;n<t.length;n++)r[n]={index:n,value:t[n]};var i=o||goog.array.defaultCompare;for(goog.array.sort(r,function(s,p){return i(s.value,p.value)||s.index-p.index}),n=0;n<t.length;n++)t[n]=r[n].value};goog.array.sortByKey=function(t,o,r){var n=r||goog.array.defaultCompare;goog.array.sort(t,function(i,s){return n(o(i),o(s))})};goog.array.sortObjectsByKey=function(t,o,r){goog.array.sortByKey(t,function(n){return n[o]},r)};goog.array.isSorted=function(t,o,r){o=o||goog.array.defaultCompare;for(var n=1;n<t.length;n++){var i=o(t[n-1],t[n]);if(0<i||i==0&&r)return!1}return!0};goog.array.equals=function(t,o,r){if(!goog.isArrayLike(t)||!goog.isArrayLike(o)||t.length!=o.length)return!1;var n=t.length;r=r||goog.array.defaultCompareEquality;for(var i=0;i<n;i++)if(!r(t[i],o[i]))return!1;return!0};goog.array.compare3=function(t,o,r){r=r||goog.array.defaultCompare;for(var n=Math.min(t.length,o.length),i=0;i<n;i++){var s=r(t[i],o[i]);if(s!=0)return s}return goog.array.defaultCompare(t.length,o.length)};goog.array.defaultCompare=function(t,o){return t>o?1:t<o?-1:0};goog.array.inverseDefaultCompare=function(t,o){return-goog.array.defaultCompare(t,o)};goog.array.defaultCompareEquality=function(t,o){return t===o};goog.array.binaryInsert=function(t,o,r){return r=goog.array.binarySearch(t,o,r),0>r?(goog.array.insertAt(t,o,-(r+1)),!0):!1};goog.array.binaryRemove=function(t,o,r){return o=goog.array.binarySearch(t,o,r),0<=o?goog.array.removeAt(t,o):!1};goog.array.bucket=function(t,o,r){for(var n={},i=0;i<t.length;i++){var s=t[i],p=o.call(r,s,i,t);goog.isDef(p)&&(n[p]||(n[p]=[])).push(s)}return n};goog.array.toObject=function(t,o,r){var n={};return goog.array.forEach(t,function(i,s){n[o.call(r,i,s,t)]=i}),n};goog.array.range=function(t,o,r){var n=[],i=0,s=t;if(r=r||1,o!==void 0&&(i=t,s=o),0>r*(s-i))return[];if(0<r)for(t=i;t<s;t+=r)n.push(t);else for(t=i;t>s;t+=r)n.push(t);return n};goog.array.repeat=function(t,o){for(var r=[],n=0;n<o;n++)r[n]=t;return r};goog.array.flatten=function(t){for(var o=[],r=0;r<arguments.length;r++){var n=arguments[r];if(goog.isArray(n))for(var i=0;i<n.length;i+=8192){var s=goog.array.slice(n,i,i+8192);s=goog.array.flatten.apply(null,s);for(var p=0;p<s.length;p++)o.push(s[p])}else o.push(n)}return o};goog.array.rotate=function(t,o){return goog.asserts.assert(t.length!=null),t.length&&(o%=t.length,0<o?Array.prototype.unshift.apply(t,t.splice(-o,o)):0>o&&Array.prototype.push.apply(t,t.splice(0,-o))),t};goog.array.moveItem=function(t,o,r){goog.asserts.assert(0<=o&&o<t.length),goog.asserts.assert(0<=r&&r<t.length),o=Array.prototype.splice.call(t,o,1),Array.prototype.splice.call(t,r,0,o[0])};goog.array.zip=function(t){if(!arguments.length)return[];for(var o=[],r=arguments[0].length,n=1;n<arguments.length;n++)arguments[n].length<r&&(r=arguments[n].length);for(n=0;n<r;n++){for(var i=[],s=0;s<arguments.length;s++)i.push(arguments[s][n]);o.push(i)}return o};goog.array.shuffle=function(t,o){o=o||Math.random;for(var r=t.length-1;0<r;r--){var n=Math.floor(o()*(r+1)),i=t[r];t[r]=t[n],t[n]=i}};goog.array.copyByIndex=function(t,o){var r=[];return goog.array.forEach(o,function(n){r.push(t[n])}),r};goog.array.concatMap=function(t,o,r){return goog.array.concat.apply([],goog.array.map(t,o,r))};goog.crypt={};goog.crypt.stringToByteArray=function(t){for(var o=[],r=0,n=0;n<t.length;n++){var i=t.charCodeAt(n);255<i&&(o[r++]=i&255,i>>=8),o[r++]=i}return o};goog.crypt.byteArrayToString=function(t){if(8192>=t.length)return String.fromCharCode.apply(null,t);for(var o="",r=0;r<t.length;r+=8192){var n=goog.array.slice(t,r,r+8192);o+=String.fromCharCode.apply(null,n)}return o};goog.crypt.byteArrayToHex=function(t,o){return goog.array.map(t,function(r){return r=r.toString(16),1<r.length?r:"0"+r}).join(o||"")};goog.crypt.hexToByteArray=function(t){goog.asserts.assert(t.length%2==0,"Key string length must be multiple of 2");for(var o=[],r=0;r<t.length;r+=2)o.push(parseInt(t.substring(r,r+2),16));return o};goog.crypt.stringToUtf8ByteArray=function(t){for(var o=[],r=0,n=0;n<t.length;n++){var i=t.charCodeAt(n);128>i?o[r++]=i:(2048>i?o[r++]=i>>6|192:((i&64512)==55296&&n+1<t.length&&(t.charCodeAt(n+1)&64512)==56320?(i=65536+((i&1023)<<10)+(t.charCodeAt(++n)&1023),o[r++]=i>>18|240,o[r++]=i>>12&63|128):o[r++]=i>>12|224,o[r++]=i>>6&63|128),o[r++]=i&63|128)}return o};goog.crypt.utf8ByteArrayToString=function(t){for(var o=[],r=0,n=0;r<t.length;){var i=t[r++];if(128>i)o[n++]=String.fromCharCode(i);else if(191<i&&224>i){var s=t[r++];o[n++]=String.fromCharCode((i&31)<<6|s&63)}else if(239<i&&365>i){s=t[r++];var p=t[r++],u=t[r++];i=((i&7)<<18|(s&63)<<12|(p&63)<<6|u&63)-65536,o[n++]=String.fromCharCode(55296+(i>>10)),o[n++]=String.fromCharCode(56320+(i&1023))}else s=t[r++],p=t[r++],o[n++]=String.fromCharCode((i&15)<<12|(s&63)<<6|p&63)}return o.join("")};goog.crypt.xorByteArray=function(t,o){goog.asserts.assert(t.length==o.length,"XOR array lengths must match");for(var r=[],n=0;n<t.length;n++)r.push(t[n]^o[n]);return r};goog.dom.asserts={};goog.dom.asserts.assertIsLocation=function(t){if(goog.asserts.ENABLE_ASSERTS){var o=goog.dom.asserts.getWindow_(t);o&&(!t||!(t instanceof o.Location)&&t instanceof o.Element)&&goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s",goog.dom.asserts.debugStringForType_(t))}return t};goog.dom.asserts.assertIsElementType_=function(t,o){if(goog.asserts.ENABLE_ASSERTS){var r=goog.dom.asserts.getWindow_(t);r&&typeof r[o]!="undefined"&&(t&&(t instanceof r[o]||!(t instanceof r.Location||t instanceof r.Element))||goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s",o,goog.dom.asserts.debugStringForType_(t)))}return t};goog.dom.asserts.assertIsHTMLAnchorElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLAnchorElement")};goog.dom.asserts.assertIsHTMLButtonElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLButtonElement")};goog.dom.asserts.assertIsHTMLLinkElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLLinkElement")};goog.dom.asserts.assertIsHTMLImageElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLImageElement")};goog.dom.asserts.assertIsHTMLAudioElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLAudioElement")};goog.dom.asserts.assertIsHTMLVideoElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLVideoElement")};goog.dom.asserts.assertIsHTMLInputElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLInputElement")};goog.dom.asserts.assertIsHTMLTextAreaElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLTextAreaElement")};goog.dom.asserts.assertIsHTMLCanvasElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLCanvasElement")};goog.dom.asserts.assertIsHTMLEmbedElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLEmbedElement")};goog.dom.asserts.assertIsHTMLFormElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLFormElement")};goog.dom.asserts.assertIsHTMLFrameElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLFrameElement")};goog.dom.asserts.assertIsHTMLIFrameElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLIFrameElement")};goog.dom.asserts.assertIsHTMLObjectElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLObjectElement")};goog.dom.asserts.assertIsHTMLScriptElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLScriptElement")};goog.dom.asserts.debugStringForType_=function(t){if(goog.isObject(t))try{return t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t)}catch{return"<object could not be stringified>"}else return t===void 0?"undefined":t===null?"null":typeof t};goog.dom.asserts.getWindow_=function(t){try{var o=t&&t.ownerDocument,r=o&&(o.defaultView||o.parentWindow);if(r=r||goog.global,r.Element&&r.Location)return r}catch{}return null};goog.functions={};goog.functions.constant=function(t){return function(){return t}};goog.functions.FALSE=function(){return!1};goog.functions.TRUE=function(){return!0};goog.functions.NULL=function(){return null};goog.functions.identity=function(t,o){return t};goog.functions.error=function(t){return function(){throw Error(t)}};goog.functions.fail=function(t){return function(){throw t}};goog.functions.lock=function(t,o){return o=o||0,function(){return t.apply(this,Array.prototype.slice.call(arguments,0,o))}};goog.functions.nth=function(t){return function(){return arguments[t]}};goog.functions.partialRight=function(t,o){var r=Array.prototype.slice.call(arguments,1);return function(){var n=Array.prototype.slice.call(arguments);return n.push.apply(n,r),t.apply(this,n)}};goog.functions.withReturnValue=function(t,o){return goog.functions.sequence(t,goog.functions.constant(o))};goog.functions.equalTo=function(t,o){return function(r){return o?t==r:t===r}};goog.functions.compose=function(t,o){var r=arguments,n=r.length;return function(){var i;n&&(i=r[n-1].apply(this,arguments));for(var s=n-2;0<=s;s--)i=r[s].call(this,i);return i}};goog.functions.sequence=function(t){var o=arguments,r=o.length;return function(){for(var n,i=0;i<r;i++)n=o[i].apply(this,arguments);return n}};goog.functions.and=function(t){var o=arguments,r=o.length;return function(){for(var n=0;n<r;n++)if(!o[n].apply(this,arguments))return!1;return!0}};goog.functions.or=function(t){var o=arguments,r=o.length;return function(){for(var n=0;n<r;n++)if(o[n].apply(this,arguments))return!0;return!1}};goog.functions.not=function(t){return function(){return!t.apply(this,arguments)}};goog.functions.create=function(t,o){var r=function(){};return r.prototype=t.prototype,r=new r,t.apply(r,Array.prototype.slice.call(arguments,1)),r};goog.functions.CACHE_RETURN_VALUE=!0;goog.functions.cacheReturnValue=function(t){var o=!1,r;return function(){return goog.functions.CACHE_RETURN_VALUE?(o||(r=t(),o=!0),r):t()}};goog.functions.once=function(t){var o=t;return function(){if(o){var r=o;o=null,r()}}};goog.functions.debounce=function(t,o,r){var n=0;return function(i){goog.global.clearTimeout(n);var s=arguments;n=goog.global.setTimeout(function(){t.apply(r,s)},o)}};goog.functions.throttle=function(t,o,r){var n=0,i=!1,s=[],p=function(){n=0,i&&(i=!1,u())},u=function(){n=goog.global.setTimeout(p,o),t.apply(r,s)};return function(h){s=arguments,n?i=!0:u()}};goog.functions.rateLimit=function(t,o,r){var n=0,i=function(){n=0};return function(s){n||(n=goog.global.setTimeout(i,o),t.apply(r,arguments))}};goog.dom.HtmlElement=function(){};goog.dom.TagName=function(t){this.tagName_=t};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(t){return goog.dom.tags.VOID_TAGS_[t]===!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(t,o){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=t===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&o||"",this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=goog.string.Const.TYPE_MARKER_};goog.string.Const.prototype.implementsGoogStringTypedString=!0;goog.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"};goog.string.Const.unwrap=function(t){return t instanceof goog.string.Const&&t.constructor===goog.string.Const&&t.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?t.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+t+"'"),"type_error:Const")};goog.string.Const.from=function(t){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,t)};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(t){return t=goog.string.Const.unwrap(t),t.length===0?goog.html.SafeScript.EMPTY:goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeScript.fromConstantAndArgs=function(t,o){for(var r=[],n=1;n<arguments.length;n++)r.push(goog.html.SafeScript.stringify_(arguments[n]));return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("("+goog.string.Const.unwrap(t)+")("+r.join(", ")+");")};goog.html.SafeScript.fromJson=function(t){return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(goog.html.SafeScript.stringify_(t))};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(t){return goog.html.SafeScript.unwrapTrustedScript(t).toString()};goog.html.SafeScript.unwrapTrustedScript=function(t){return t instanceof goog.html.SafeScript&&t.constructor===goog.html.SafeScript&&t.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?t.privateDoNotAccessOrElseSafeScriptWrappedValue_:(goog.asserts.fail("expected object of type SafeScript, got '"+t+"' of type "+goog.typeOf(t)),"type_error:SafeScript")};goog.html.SafeScript.stringify_=function(t){return JSON.stringify(t).replace(/</g,"\\x3c")};goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse=function(t){return new goog.html.SafeScript().initSecurityPrivateDoNotAccessOrElse_(t)};goog.html.SafeScript.prototype.initSecurityPrivateDoNotAccessOrElse_=function(t){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScript(t):t,this};goog.html.SafeScript.EMPTY=goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("");goog.fs={};goog.fs.url={};goog.fs.url.createObjectUrl=function(t){return goog.fs.url.getUrlObject_().createObjectURL(t)};goog.fs.url.revokeObjectUrl=function(t){goog.fs.url.getUrlObject_().revokeObjectURL(t)};goog.fs.url.getUrlObject_=function(){var t=goog.fs.url.findUrlObject_();if(t!=null)return t;throw Error("This browser doesn't seem to support blob URLs")};goog.fs.url.findUrlObject_=function(){return goog.isDef(goog.global.URL)&&goog.isDef(goog.global.URL.createObjectURL)?goog.global.URL:goog.isDef(goog.global.webkitURL)&&goog.isDef(goog.global.webkitURL.createObjectURL)?goog.global.webkitURL:goog.isDef(goog.global.createObjectURL)?goog.global:null};goog.fs.url.browserSupportsObjectUrls=function(){return goog.fs.url.findUrlObject_()!=null};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:"\u202A",RLE:"\u202B",PDF:"\u202C",LRM:"\u200E",RLM:"\u200F"};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(t,o){return typeof t=="number"?0<t?goog.i18n.bidi.Dir.LTR:0>t?goog.i18n.bidi.Dir.RTL:o?null:goog.i18n.bidi.Dir.NEUTRAL:t==null?null:t?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR};goog.i18n.bidi.ltrChars_="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0900-\u1FFF\u200E\u2C00-\uD801\uD804-\uD839\uD83C-\uDBFF\uF900-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF";goog.i18n.bidi.rtlChars_="\u0591-\u06EF\u06FA-\u08FF\u200F\uD802-\uD803\uD83A-\uD83B\uFB1D-\uFDFF\uFE70-\uFEFC";goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g;goog.i18n.bidi.stripHtmlIfNeeded_=function(t,o){return o?t.replace(goog.i18n.bidi.htmlSkipReg_,""):t};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(t,o){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(t,o))};goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl;goog.i18n.bidi.hasAnyLtr=function(t,o){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(t,o))};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(t){return goog.i18n.bidi.rtlRe_.test(t)};goog.i18n.bidi.isLtrChar=function(t){return goog.i18n.bidi.ltrRe_.test(t)};goog.i18n.bidi.isNeutralChar=function(t){return!goog.i18n.bidi.isLtrChar(t)&&!goog.i18n.bidi.isRtlChar(t)};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(t,o){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(t,o))};goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl;goog.i18n.bidi.startsWithLtr=function(t,o){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(t,o))};goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr;goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/;goog.i18n.bidi.isNeutralText=function(t,o){return t=goog.i18n.bidi.stripHtmlIfNeeded_(t,o),goog.i18n.bidi.isRequiredLtrRe_.test(t)||!goog.i18n.bidi.hasAnyLtr(t)&&!goog.i18n.bidi.hasAnyRtl(t)};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(t,o){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(t,o))};goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr;goog.i18n.bidi.endsWithRtl=function(t,o){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(t,o))};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(t){return goog.i18n.bidi.rtlLocalesRe_.test(t)};goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g;goog.i18n.bidi.guardBracketInText=function(t,o){return o=(o===void 0?goog.i18n.bidi.hasAnyRtl(t):o)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,t.replace(goog.i18n.bidi.bracketGuardTextRe_,o+"$&"+o)};goog.i18n.bidi.enforceRtlInHtml=function(t){return t.charAt(0)=="<"?t.replace(/<\w+/,"$& dir=rtl"):`
|
|
10
|
+
`},goog.DebugLoader_.IS_OLD_IE_=!(goog.global.atob||!goog.global.document||!goog.global.document.all),goog.DebugLoader_.prototype.addDependency=function(t,o,r,i){o=o||[],t=t.replace(/\\/g,"/");var n=goog.normalizePath_(goog.basePath+t);for(i&&typeof i!="boolean"||(i=i?{module:goog.ModuleType.GOOG}:{}),r=this.factory_.createDependency(n,t,o,r,i,goog.transpiler_.needsTranspile(i.lang||"es3",i.module)),this.dependencies_[n]=r,r=0;r<o.length;r++)this.idToPath_[o[r]]=n;this.idToPath_[t]=n},goog.DependencyFactory=function(t){this.transpiler=t},goog.DependencyFactory.prototype.createDependency=function(t,o,r,i,n,s){return n.module==goog.ModuleType.GOOG?new goog.GoogModuleDependency(t,o,r,i,n,s,this.transpiler):s?new goog.TranspiledDependency(t,o,r,i,n,this.transpiler):n.module==goog.ModuleType.ES6?goog.TRANSPILE=="never"&&goog.ASSUME_ES_MODULES_TRANSPILED?new goog.PreTranspiledEs6ModuleDependency(t,o,r,i,n):new goog.Es6ModuleDependency(t,o,r,i,n):new goog.Dependency(t,o,r,i,n)},goog.debugLoader_=new goog.DebugLoader_,goog.loadClosureDeps=function(){goog.debugLoader_.loadClosureDeps()},goog.setDependencyFactory=function(t){goog.debugLoader_.setDependencyFactory(t)},goog.global.CLOSURE_NO_DEPS||goog.debugLoader_.loadClosureDeps(),goog.bootstrap=function(t,o){goog.debugLoader_.bootstrap(t,o)});goog.TRUSTED_TYPES_POLICY_NAME="";goog.identity_=function(t){return t};goog.createTrustedTypesPolicy=function(t){var o=null;if(typeof TrustedTypes=="undefined"||!TrustedTypes.createPolicy)return o;try{o=TrustedTypes.createPolicy(t,{createHTML:goog.identity_,createScript:goog.identity_,createScriptURL:goog.identity_,createURL:goog.identity_})}catch(r){goog.logToConsole_(r.message)}return o};goog.TRUSTED_TYPES_POLICY_=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#base"):null;goog.object={};goog.object.is=function(t,o){return t===o?t!==0||1/t===1/o:t!==t&&o!==o};goog.object.forEach=function(t,o,r){for(var i in t)o.call(r,t[i],i,t)};goog.object.filter=function(t,o,r){var i={},n;for(n in t)o.call(r,t[n],n,t)&&(i[n]=t[n]);return i};goog.object.map=function(t,o,r){var i={},n;for(n in t)i[n]=o.call(r,t[n],n,t);return i};goog.object.some=function(t,o,r){for(var i in t)if(o.call(r,t[i],i,t))return!0;return!1};goog.object.every=function(t,o,r){for(var i in t)if(!o.call(r,t[i],i,t))return!1;return!0};goog.object.getCount=function(t){var o=0,r;for(r in t)o++;return o};goog.object.getAnyKey=function(t){for(var o in t)return o};goog.object.getAnyValue=function(t){for(var o in t)return t[o]};goog.object.contains=function(t,o){return goog.object.containsValue(t,o)};goog.object.getValues=function(t){var o=[],r=0,i;for(i in t)o[r++]=t[i];return o};goog.object.getKeys=function(t){var o=[],r=0,i;for(i in t)o[r++]=i;return o};goog.object.getValueByKeys=function(t,o){var r=goog.isArrayLike(o),i=r?o:arguments;for(r=r?0:1;r<i.length;r++){if(t==null)return;t=t[i[r]]}return t};goog.object.containsKey=function(t,o){return t!==null&&o in t};goog.object.containsValue=function(t,o){for(var r in t)if(t[r]==o)return!0;return!1};goog.object.findKey=function(t,o,r){for(var i in t)if(o.call(r,t[i],i,t))return i};goog.object.findValue=function(t,o,r){return(o=goog.object.findKey(t,o,r))&&t[o]};goog.object.isEmpty=function(t){for(var o in t)return!1;return!0};goog.object.clear=function(t){for(var o in t)delete t[o]};goog.object.remove=function(t,o){var r;return(r=o in t)&&delete t[o],r};goog.object.add=function(t,o,r){if(t!==null&&o in t)throw Error('The object already contains the key "'+o+'"');goog.object.set(t,o,r)};goog.object.get=function(t,o,r){return t!==null&&o in t?t[o]:r};goog.object.set=function(t,o,r){t[o]=r};goog.object.setIfUndefined=function(t,o,r){return o in t?t[o]:t[o]=r};goog.object.setWithReturnValueIfNotSet=function(t,o,r){return o in t?t[o]:(r=r(),t[o]=r)};goog.object.equals=function(t,o){for(var r in t)if(!(r in o)||t[r]!==o[r])return!1;for(var i in o)if(!(i in t))return!1;return!0};goog.object.clone=function(t){var o={},r;for(r in t)o[r]=t[r];return o};goog.object.unsafeClone=function(t){var o=goog.typeOf(t);if(o=="object"||o=="array"){if(goog.isFunction(t.clone))return t.clone();o=o=="array"?[]:{};for(var r in t)o[r]=goog.object.unsafeClone(t[r]);return o}return t};goog.object.transpose=function(t){var o={},r;for(r in t)o[t[r]]=r;return o};goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");goog.object.extend=function(t,o){for(var r,i,n=1;n<arguments.length;n++){i=arguments[n];for(r in i)t[r]=i[r];for(var s=0;s<goog.object.PROTOTYPE_FIELDS_.length;s++)r=goog.object.PROTOTYPE_FIELDS_[s],Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}};goog.object.create=function(t){var o=arguments.length;if(o==1&&goog.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(o%2)throw Error("Uneven number of arguments");for(var r={},i=0;i<o;i+=2)r[arguments[i]]=arguments[i+1];return r};goog.object.createSet=function(t){var o=arguments.length;if(o==1&&goog.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var r={},i=0;i<o;i++)r[arguments[i]]=!0;return r};goog.object.createImmutableView=function(t){var o=t;return Object.isFrozen&&!Object.isFrozen(t)&&(o=Object.create(t),Object.freeze(o)),o};goog.object.isImmutableView=function(t){return!!Object.isFrozen&&Object.isFrozen(t)};goog.object.getAllPropertyNames=function(t,o,r){if(!t)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return goog.object.getKeys(t);for(var i={};t&&(t!==Object.prototype||o)&&(t!==Function.prototype||r);){for(var n=Object.getOwnPropertyNames(t),s=0;s<n.length;s++)i[n[s]]=!0;t=Object.getPrototypeOf(t)}return goog.object.getKeys(i)};goog.object.getSuperClass=function(t){return(t=Object.getPrototypeOf(t.prototype))&&t.constructor};goog.debug={};goog.debug.Error=function(t){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var o=Error().stack;o&&(this.stack=o)}t&&(this.message=String(t)),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(t,o){goog.debug.Error.call(this,goog.asserts.subs_(t,o)),this.messagePattern=t};goog.inherits(goog.asserts.AssertionError,goog.debug.Error);goog.asserts.AssertionError.prototype.name="AssertionError";goog.asserts.DEFAULT_ERROR_HANDLER=function(t){throw t};goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER;goog.asserts.subs_=function(t,o){t=t.split("%s");for(var r="",i=t.length-1,n=0;n<i;n++)r+=t[n]+(n<o.length?o[n]:"%s");return r+t[i]};goog.asserts.doAssertFailure_=function(t,o,r,i){var n="Assertion failed";if(r){n+=": "+r;var s=i}else t&&(n+=": "+t,s=o);t=new goog.asserts.AssertionError(""+n,s||[]),goog.asserts.errorHandler_(t)};goog.asserts.setErrorHandler=function(t){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=t)};goog.asserts.assert=function(t,o,r){return goog.asserts.ENABLE_ASSERTS&&!t&&goog.asserts.doAssertFailure_("",null,o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.assertExists=function(t,o,r){return goog.asserts.ENABLE_ASSERTS&&t==null&&goog.asserts.doAssertFailure_("Expected to exist: %s.",[t],o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.fail=function(t,o){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1)))};goog.asserts.assertNumber=function(t,o,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isNumber(t)&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(t),t],o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.assertString=function(t,o,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isString(t)&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(t),t],o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.assertFunction=function(t,o,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(t)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(t),t],o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.assertObject=function(t,o,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(t)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(t),t],o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.assertArray=function(t,o,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isArray(t)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(t),t],o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.assertBoolean=function(t,o,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isBoolean(t)&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(t),t],o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.assertElement=function(t,o,r){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(t)&&t.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(t),t],o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.assertInstanceof=function(t,o,r,i){return!goog.asserts.ENABLE_ASSERTS||t instanceof o||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(o),goog.asserts.getType_(t)],r,Array.prototype.slice.call(arguments,3)),t};goog.asserts.assertFinite=function(t,o,r){return!goog.asserts.ENABLE_ASSERTS||typeof t=="number"&&isFinite(t)||goog.asserts.doAssertFailure_("Expected %s to be a finite number but it is not.",[t],o,Array.prototype.slice.call(arguments,2)),t};goog.asserts.assertObjectPrototypeIsIntact=function(){for(var t in Object.prototype)goog.asserts.fail(t+" should not be enumerable in Object.prototype.")};goog.asserts.getType_=function(t){return t instanceof Function?t.displayName||t.name||"unknown type name":t instanceof Object?t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t):t===null?"null":typeof t};var jspb={BinaryConstants:{},ConstBinaryMessage:function(){},BinaryMessage:function(){}};jspb.BinaryConstants.FieldType={INVALID:-1,DOUBLE:1,FLOAT:2,INT64:3,UINT64:4,INT32:5,FIXED64:6,FIXED32:7,BOOL:8,STRING:9,GROUP:10,MESSAGE:11,BYTES:12,UINT32:13,ENUM:14,SFIXED32:15,SFIXED64:16,SINT32:17,SINT64:18,FHASH64:30,VHASH64:31};jspb.BinaryConstants.WireType={INVALID:-1,VARINT:0,FIXED64:1,DELIMITED:2,START_GROUP:3,END_GROUP:4,FIXED32:5};jspb.BinaryConstants.FieldTypeToWireType=function(t){var o=jspb.BinaryConstants.FieldType,r=jspb.BinaryConstants.WireType;switch(t){case o.INT32:case o.INT64:case o.UINT32:case o.UINT64:case o.SINT32:case o.SINT64:case o.BOOL:case o.ENUM:case o.VHASH64:return r.VARINT;case o.DOUBLE:case o.FIXED64:case o.SFIXED64:case o.FHASH64:return r.FIXED64;case o.STRING:case o.MESSAGE:case o.BYTES:return r.DELIMITED;case o.FLOAT:case o.FIXED32:case o.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.array={};goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE;goog.array.ASSUME_NATIVE_FUNCTIONS=2012<goog.FEATURESET_YEAR;goog.array.peek=function(t){return t[t.length-1]};goog.array.last=goog.array.peek;goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(t,o,r){return goog.asserts.assert(t.length!=null),Array.prototype.indexOf.call(t,o,r)}:function(t,o,r){if(r=r==null?0:0>r?Math.max(0,t.length+r):r,goog.isString(t))return goog.isString(o)&&o.length==1?t.indexOf(o,r):-1;for(;r<t.length;r++)if(r in t&&t[r]===o)return r;return-1};goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(t,o,r){return goog.asserts.assert(t.length!=null),Array.prototype.lastIndexOf.call(t,o,r??t.length-1)}:function(t,o,r){if(r=r??t.length-1,0>r&&(r=Math.max(0,t.length+r)),goog.isString(t))return goog.isString(o)&&o.length==1?t.lastIndexOf(o,r):-1;for(;0<=r;r--)if(r in t&&t[r]===o)return r;return-1};goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(t,o,r){goog.asserts.assert(t.length!=null),Array.prototype.forEach.call(t,o,r)}:function(t,o,r){for(var i=t.length,n=goog.isString(t)?t.split(""):t,s=0;s<i;s++)s in n&&o.call(r,n[s],s,t)};goog.array.forEachRight=function(t,o,r){var i=t.length,n=goog.isString(t)?t.split(""):t;for(--i;0<=i;--i)i in n&&o.call(r,n[i],i,t)};goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(t,o,r){return goog.asserts.assert(t.length!=null),Array.prototype.filter.call(t,o,r)}:function(t,o,r){for(var i=t.length,n=[],s=0,p=goog.isString(t)?t.split(""):t,u=0;u<i;u++)if(u in p){var h=p[u];o.call(r,h,u,t)&&(n[s++]=h)}return n};goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(t,o,r){return goog.asserts.assert(t.length!=null),Array.prototype.map.call(t,o,r)}:function(t,o,r){for(var i=t.length,n=Array(i),s=goog.isString(t)?t.split(""):t,p=0;p<i;p++)p in s&&(n[p]=o.call(r,s[p],p,t));return n};goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(t,o,r,i){return goog.asserts.assert(t.length!=null),i&&(o=goog.bind(o,i)),Array.prototype.reduce.call(t,o,r)}:function(t,o,r,i){var n=r;return goog.array.forEach(t,function(s,p){n=o.call(i,n,s,p,t)}),n};goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(t,o,r,i){return goog.asserts.assert(t.length!=null),goog.asserts.assert(o!=null),i&&(o=goog.bind(o,i)),Array.prototype.reduceRight.call(t,o,r)}:function(t,o,r,i){var n=r;return goog.array.forEachRight(t,function(s,p){n=o.call(i,n,s,p,t)}),n};goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(t,o,r){return goog.asserts.assert(t.length!=null),Array.prototype.some.call(t,o,r)}:function(t,o,r){for(var i=t.length,n=goog.isString(t)?t.split(""):t,s=0;s<i;s++)if(s in n&&o.call(r,n[s],s,t))return!0;return!1};goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(t,o,r){return goog.asserts.assert(t.length!=null),Array.prototype.every.call(t,o,r)}:function(t,o,r){for(var i=t.length,n=goog.isString(t)?t.split(""):t,s=0;s<i;s++)if(s in n&&!o.call(r,n[s],s,t))return!1;return!0};goog.array.count=function(t,o,r){var i=0;return goog.array.forEach(t,function(n,s,p){o.call(r,n,s,p)&&++i},r),i};goog.array.find=function(t,o,r){return o=goog.array.findIndex(t,o,r),0>o?null:goog.isString(t)?t.charAt(o):t[o]};goog.array.findIndex=function(t,o,r){for(var i=t.length,n=goog.isString(t)?t.split(""):t,s=0;s<i;s++)if(s in n&&o.call(r,n[s],s,t))return s;return-1};goog.array.findRight=function(t,o,r){return o=goog.array.findIndexRight(t,o,r),0>o?null:goog.isString(t)?t.charAt(o):t[o]};goog.array.findIndexRight=function(t,o,r){var i=t.length,n=goog.isString(t)?t.split(""):t;for(--i;0<=i;i--)if(i in n&&o.call(r,n[i],i,t))return i;return-1};goog.array.contains=function(t,o){return 0<=goog.array.indexOf(t,o)};goog.array.isEmpty=function(t){return t.length==0};goog.array.clear=function(t){if(!goog.isArray(t))for(var o=t.length-1;0<=o;o--)delete t[o];t.length=0};goog.array.insert=function(t,o){goog.array.contains(t,o)||t.push(o)};goog.array.insertAt=function(t,o,r){goog.array.splice(t,r,0,o)};goog.array.insertArrayAt=function(t,o,r){goog.partial(goog.array.splice,t,r,0).apply(null,o)};goog.array.insertBefore=function(t,o,r){var i;arguments.length==2||0>(i=goog.array.indexOf(t,r))?t.push(o):goog.array.insertAt(t,o,i)};goog.array.remove=function(t,o){o=goog.array.indexOf(t,o);var r;return(r=0<=o)&&goog.array.removeAt(t,o),r};goog.array.removeLast=function(t,o){return o=goog.array.lastIndexOf(t,o),0<=o?(goog.array.removeAt(t,o),!0):!1};goog.array.removeAt=function(t,o){return goog.asserts.assert(t.length!=null),Array.prototype.splice.call(t,o,1).length==1};goog.array.removeIf=function(t,o,r){return o=goog.array.findIndex(t,o,r),0<=o?(goog.array.removeAt(t,o),!0):!1};goog.array.removeAllIf=function(t,o,r){var i=0;return goog.array.forEachRight(t,function(n,s){o.call(r,n,s,t)&&goog.array.removeAt(t,s)&&i++}),i};goog.array.concat=function(t){return Array.prototype.concat.apply([],arguments)};goog.array.join=function(t){return Array.prototype.concat.apply([],arguments)};goog.array.toArray=function(t){var o=t.length;if(0<o){for(var r=Array(o),i=0;i<o;i++)r[i]=t[i];return r}return[]};goog.array.clone=goog.array.toArray;goog.array.extend=function(t,o){for(var r=1;r<arguments.length;r++){var i=arguments[r];if(goog.isArrayLike(i)){var n=t.length||0,s=i.length||0;t.length=n+s;for(var p=0;p<s;p++)t[n+p]=i[p]}else t.push(i)}};goog.array.splice=function(t,o,r,i){return goog.asserts.assert(t.length!=null),Array.prototype.splice.apply(t,goog.array.slice(arguments,1))};goog.array.slice=function(t,o,r){return goog.asserts.assert(t.length!=null),2>=arguments.length?Array.prototype.slice.call(t,o):Array.prototype.slice.call(t,o,r)};goog.array.removeDuplicates=function(t,o,r){o=o||t;var i=function(h){return goog.isObject(h)?"o"+goog.getUid(h):(typeof h).charAt(0)+h};r=r||i,i={};for(var n=0,s=0;s<t.length;){var p=t[s++],u=r(p);Object.prototype.hasOwnProperty.call(i,u)||(i[u]=!0,o[n++]=p)}o.length=n};goog.array.binarySearch=function(t,o,r){return goog.array.binarySearch_(t,r||goog.array.defaultCompare,!1,o)};goog.array.binarySelect=function(t,o,r){return goog.array.binarySearch_(t,o,!0,void 0,r)};goog.array.binarySearch_=function(t,o,r,i,n){for(var s=0,p=t.length,u;s<p;){var h=s+p>>1,w=r?o.call(n,t[h],h,t):o(i,t[h]);0<w?s=h+1:(p=h,u=!w)}return u?s:~s};goog.array.sort=function(t,o){t.sort(o||goog.array.defaultCompare)};goog.array.stableSort=function(t,o){for(var r=Array(t.length),i=0;i<t.length;i++)r[i]={index:i,value:t[i]};var n=o||goog.array.defaultCompare;for(goog.array.sort(r,function(s,p){return n(s.value,p.value)||s.index-p.index}),i=0;i<t.length;i++)t[i]=r[i].value};goog.array.sortByKey=function(t,o,r){var i=r||goog.array.defaultCompare;goog.array.sort(t,function(n,s){return i(o(n),o(s))})};goog.array.sortObjectsByKey=function(t,o,r){goog.array.sortByKey(t,function(i){return i[o]},r)};goog.array.isSorted=function(t,o,r){o=o||goog.array.defaultCompare;for(var i=1;i<t.length;i++){var n=o(t[i-1],t[i]);if(0<n||n==0&&r)return!1}return!0};goog.array.equals=function(t,o,r){if(!goog.isArrayLike(t)||!goog.isArrayLike(o)||t.length!=o.length)return!1;var i=t.length;r=r||goog.array.defaultCompareEquality;for(var n=0;n<i;n++)if(!r(t[n],o[n]))return!1;return!0};goog.array.compare3=function(t,o,r){r=r||goog.array.defaultCompare;for(var i=Math.min(t.length,o.length),n=0;n<i;n++){var s=r(t[n],o[n]);if(s!=0)return s}return goog.array.defaultCompare(t.length,o.length)};goog.array.defaultCompare=function(t,o){return t>o?1:t<o?-1:0};goog.array.inverseDefaultCompare=function(t,o){return-goog.array.defaultCompare(t,o)};goog.array.defaultCompareEquality=function(t,o){return t===o};goog.array.binaryInsert=function(t,o,r){return r=goog.array.binarySearch(t,o,r),0>r?(goog.array.insertAt(t,o,-(r+1)),!0):!1};goog.array.binaryRemove=function(t,o,r){return o=goog.array.binarySearch(t,o,r),0<=o?goog.array.removeAt(t,o):!1};goog.array.bucket=function(t,o,r){for(var i={},n=0;n<t.length;n++){var s=t[n],p=o.call(r,s,n,t);goog.isDef(p)&&(i[p]||(i[p]=[])).push(s)}return i};goog.array.toObject=function(t,o,r){var i={};return goog.array.forEach(t,function(n,s){i[o.call(r,n,s,t)]=n}),i};goog.array.range=function(t,o,r){var i=[],n=0,s=t;if(r=r||1,o!==void 0&&(n=t,s=o),0>r*(s-n))return[];if(0<r)for(t=n;t<s;t+=r)i.push(t);else for(t=n;t>s;t+=r)i.push(t);return i};goog.array.repeat=function(t,o){for(var r=[],i=0;i<o;i++)r[i]=t;return r};goog.array.flatten=function(t){for(var o=[],r=0;r<arguments.length;r++){var i=arguments[r];if(goog.isArray(i))for(var n=0;n<i.length;n+=8192){var s=goog.array.slice(i,n,n+8192);s=goog.array.flatten.apply(null,s);for(var p=0;p<s.length;p++)o.push(s[p])}else o.push(i)}return o};goog.array.rotate=function(t,o){return goog.asserts.assert(t.length!=null),t.length&&(o%=t.length,0<o?Array.prototype.unshift.apply(t,t.splice(-o,o)):0>o&&Array.prototype.push.apply(t,t.splice(0,-o))),t};goog.array.moveItem=function(t,o,r){goog.asserts.assert(0<=o&&o<t.length),goog.asserts.assert(0<=r&&r<t.length),o=Array.prototype.splice.call(t,o,1),Array.prototype.splice.call(t,r,0,o[0])};goog.array.zip=function(t){if(!arguments.length)return[];for(var o=[],r=arguments[0].length,i=1;i<arguments.length;i++)arguments[i].length<r&&(r=arguments[i].length);for(i=0;i<r;i++){for(var n=[],s=0;s<arguments.length;s++)n.push(arguments[s][i]);o.push(n)}return o};goog.array.shuffle=function(t,o){o=o||Math.random;for(var r=t.length-1;0<r;r--){var i=Math.floor(o()*(r+1)),n=t[r];t[r]=t[i],t[i]=n}};goog.array.copyByIndex=function(t,o){var r=[];return goog.array.forEach(o,function(i){r.push(t[i])}),r};goog.array.concatMap=function(t,o,r){return goog.array.concat.apply([],goog.array.map(t,o,r))};goog.crypt={};goog.crypt.stringToByteArray=function(t){for(var o=[],r=0,i=0;i<t.length;i++){var n=t.charCodeAt(i);255<n&&(o[r++]=n&255,n>>=8),o[r++]=n}return o};goog.crypt.byteArrayToString=function(t){if(8192>=t.length)return String.fromCharCode.apply(null,t);for(var o="",r=0;r<t.length;r+=8192){var i=goog.array.slice(t,r,r+8192);o+=String.fromCharCode.apply(null,i)}return o};goog.crypt.byteArrayToHex=function(t,o){return goog.array.map(t,function(r){return r=r.toString(16),1<r.length?r:"0"+r}).join(o||"")};goog.crypt.hexToByteArray=function(t){goog.asserts.assert(t.length%2==0,"Key string length must be multiple of 2");for(var o=[],r=0;r<t.length;r+=2)o.push(parseInt(t.substring(r,r+2),16));return o};goog.crypt.stringToUtf8ByteArray=function(t){for(var o=[],r=0,i=0;i<t.length;i++){var n=t.charCodeAt(i);128>n?o[r++]=n:(2048>n?o[r++]=n>>6|192:((n&64512)==55296&&i+1<t.length&&(t.charCodeAt(i+1)&64512)==56320?(n=65536+((n&1023)<<10)+(t.charCodeAt(++i)&1023),o[r++]=n>>18|240,o[r++]=n>>12&63|128):o[r++]=n>>12|224,o[r++]=n>>6&63|128),o[r++]=n&63|128)}return o};goog.crypt.utf8ByteArrayToString=function(t){for(var o=[],r=0,i=0;r<t.length;){var n=t[r++];if(128>n)o[i++]=String.fromCharCode(n);else if(191<n&&224>n){var s=t[r++];o[i++]=String.fromCharCode((n&31)<<6|s&63)}else if(239<n&&365>n){s=t[r++];var p=t[r++],u=t[r++];n=((n&7)<<18|(s&63)<<12|(p&63)<<6|u&63)-65536,o[i++]=String.fromCharCode(55296+(n>>10)),o[i++]=String.fromCharCode(56320+(n&1023))}else s=t[r++],p=t[r++],o[i++]=String.fromCharCode((n&15)<<12|(s&63)<<6|p&63)}return o.join("")};goog.crypt.xorByteArray=function(t,o){goog.asserts.assert(t.length==o.length,"XOR array lengths must match");for(var r=[],i=0;i<t.length;i++)r.push(t[i]^o[i]);return r};goog.dom.asserts={};goog.dom.asserts.assertIsLocation=function(t){if(goog.asserts.ENABLE_ASSERTS){var o=goog.dom.asserts.getWindow_(t);o&&(!t||!(t instanceof o.Location)&&t instanceof o.Element)&&goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s",goog.dom.asserts.debugStringForType_(t))}return t};goog.dom.asserts.assertIsElementType_=function(t,o){if(goog.asserts.ENABLE_ASSERTS){var r=goog.dom.asserts.getWindow_(t);r&&typeof r[o]!="undefined"&&(t&&(t instanceof r[o]||!(t instanceof r.Location||t instanceof r.Element))||goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s",o,goog.dom.asserts.debugStringForType_(t)))}return t};goog.dom.asserts.assertIsHTMLAnchorElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLAnchorElement")};goog.dom.asserts.assertIsHTMLButtonElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLButtonElement")};goog.dom.asserts.assertIsHTMLLinkElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLLinkElement")};goog.dom.asserts.assertIsHTMLImageElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLImageElement")};goog.dom.asserts.assertIsHTMLAudioElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLAudioElement")};goog.dom.asserts.assertIsHTMLVideoElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLVideoElement")};goog.dom.asserts.assertIsHTMLInputElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLInputElement")};goog.dom.asserts.assertIsHTMLTextAreaElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLTextAreaElement")};goog.dom.asserts.assertIsHTMLCanvasElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLCanvasElement")};goog.dom.asserts.assertIsHTMLEmbedElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLEmbedElement")};goog.dom.asserts.assertIsHTMLFormElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLFormElement")};goog.dom.asserts.assertIsHTMLFrameElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLFrameElement")};goog.dom.asserts.assertIsHTMLIFrameElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLIFrameElement")};goog.dom.asserts.assertIsHTMLObjectElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLObjectElement")};goog.dom.asserts.assertIsHTMLScriptElement=function(t){return goog.dom.asserts.assertIsElementType_(t,"HTMLScriptElement")};goog.dom.asserts.debugStringForType_=function(t){if(goog.isObject(t))try{return t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t)}catch{return"<object could not be stringified>"}else return t===void 0?"undefined":t===null?"null":typeof t};goog.dom.asserts.getWindow_=function(t){try{var o=t&&t.ownerDocument,r=o&&(o.defaultView||o.parentWindow);if(r=r||goog.global,r.Element&&r.Location)return r}catch{}return null};goog.functions={};goog.functions.constant=function(t){return function(){return t}};goog.functions.FALSE=function(){return!1};goog.functions.TRUE=function(){return!0};goog.functions.NULL=function(){return null};goog.functions.identity=function(t,o){return t};goog.functions.error=function(t){return function(){throw Error(t)}};goog.functions.fail=function(t){return function(){throw t}};goog.functions.lock=function(t,o){return o=o||0,function(){return t.apply(this,Array.prototype.slice.call(arguments,0,o))}};goog.functions.nth=function(t){return function(){return arguments[t]}};goog.functions.partialRight=function(t,o){var r=Array.prototype.slice.call(arguments,1);return function(){var i=Array.prototype.slice.call(arguments);return i.push.apply(i,r),t.apply(this,i)}};goog.functions.withReturnValue=function(t,o){return goog.functions.sequence(t,goog.functions.constant(o))};goog.functions.equalTo=function(t,o){return function(r){return o?t==r:t===r}};goog.functions.compose=function(t,o){var r=arguments,i=r.length;return function(){var n;i&&(n=r[i-1].apply(this,arguments));for(var s=i-2;0<=s;s--)n=r[s].call(this,n);return n}};goog.functions.sequence=function(t){var o=arguments,r=o.length;return function(){for(var i,n=0;n<r;n++)i=o[n].apply(this,arguments);return i}};goog.functions.and=function(t){var o=arguments,r=o.length;return function(){for(var i=0;i<r;i++)if(!o[i].apply(this,arguments))return!1;return!0}};goog.functions.or=function(t){var o=arguments,r=o.length;return function(){for(var i=0;i<r;i++)if(o[i].apply(this,arguments))return!0;return!1}};goog.functions.not=function(t){return function(){return!t.apply(this,arguments)}};goog.functions.create=function(t,o){var r=function(){};return r.prototype=t.prototype,r=new r,t.apply(r,Array.prototype.slice.call(arguments,1)),r};goog.functions.CACHE_RETURN_VALUE=!0;goog.functions.cacheReturnValue=function(t){var o=!1,r;return function(){return goog.functions.CACHE_RETURN_VALUE?(o||(r=t(),o=!0),r):t()}};goog.functions.once=function(t){var o=t;return function(){if(o){var r=o;o=null,r()}}};goog.functions.debounce=function(t,o,r){var i=0;return function(n){goog.global.clearTimeout(i);var s=arguments;i=goog.global.setTimeout(function(){t.apply(r,s)},o)}};goog.functions.throttle=function(t,o,r){var i=0,n=!1,s=[],p=function(){i=0,n&&(n=!1,u())},u=function(){i=goog.global.setTimeout(p,o),t.apply(r,s)};return function(h){s=arguments,i?n=!0:u()}};goog.functions.rateLimit=function(t,o,r){var i=0,n=function(){i=0};return function(s){i||(i=goog.global.setTimeout(n,o),t.apply(r,arguments))}};goog.dom.HtmlElement=function(){};goog.dom.TagName=function(t){this.tagName_=t};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(t){return goog.dom.tags.VOID_TAGS_[t]===!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(t,o){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=t===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&o||"",this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=goog.string.Const.TYPE_MARKER_};goog.string.Const.prototype.implementsGoogStringTypedString=!0;goog.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"};goog.string.Const.unwrap=function(t){return t instanceof goog.string.Const&&t.constructor===goog.string.Const&&t.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?t.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+t+"'"),"type_error:Const")};goog.string.Const.from=function(t){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,t)};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(t){return t=goog.string.Const.unwrap(t),t.length===0?goog.html.SafeScript.EMPTY:goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeScript.fromConstantAndArgs=function(t,o){for(var r=[],i=1;i<arguments.length;i++)r.push(goog.html.SafeScript.stringify_(arguments[i]));return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("("+goog.string.Const.unwrap(t)+")("+r.join(", ")+");")};goog.html.SafeScript.fromJson=function(t){return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(goog.html.SafeScript.stringify_(t))};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(t){return goog.html.SafeScript.unwrapTrustedScript(t).toString()};goog.html.SafeScript.unwrapTrustedScript=function(t){return t instanceof goog.html.SafeScript&&t.constructor===goog.html.SafeScript&&t.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?t.privateDoNotAccessOrElseSafeScriptWrappedValue_:(goog.asserts.fail("expected object of type SafeScript, got '"+t+"' of type "+goog.typeOf(t)),"type_error:SafeScript")};goog.html.SafeScript.stringify_=function(t){return JSON.stringify(t).replace(/</g,"\\x3c")};goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse=function(t){return new goog.html.SafeScript().initSecurityPrivateDoNotAccessOrElse_(t)};goog.html.SafeScript.prototype.initSecurityPrivateDoNotAccessOrElse_=function(t){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScript(t):t,this};goog.html.SafeScript.EMPTY=goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("");goog.fs={};goog.fs.url={};goog.fs.url.createObjectUrl=function(t){return goog.fs.url.getUrlObject_().createObjectURL(t)};goog.fs.url.revokeObjectUrl=function(t){goog.fs.url.getUrlObject_().revokeObjectURL(t)};goog.fs.url.getUrlObject_=function(){var t=goog.fs.url.findUrlObject_();if(t!=null)return t;throw Error("This browser doesn't seem to support blob URLs")};goog.fs.url.findUrlObject_=function(){return goog.isDef(goog.global.URL)&&goog.isDef(goog.global.URL.createObjectURL)?goog.global.URL:goog.isDef(goog.global.webkitURL)&&goog.isDef(goog.global.webkitURL.createObjectURL)?goog.global.webkitURL:goog.isDef(goog.global.createObjectURL)?goog.global:null};goog.fs.url.browserSupportsObjectUrls=function(){return goog.fs.url.findUrlObject_()!=null};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:"\u202A",RLE:"\u202B",PDF:"\u202C",LRM:"\u200E",RLM:"\u200F"};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(t,o){return typeof t=="number"?0<t?goog.i18n.bidi.Dir.LTR:0>t?goog.i18n.bidi.Dir.RTL:o?null:goog.i18n.bidi.Dir.NEUTRAL:t==null?null:t?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR};goog.i18n.bidi.ltrChars_="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0900-\u1FFF\u200E\u2C00-\uD801\uD804-\uD839\uD83C-\uDBFF\uF900-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF";goog.i18n.bidi.rtlChars_="\u0591-\u06EF\u06FA-\u08FF\u200F\uD802-\uD803\uD83A-\uD83B\uFB1D-\uFDFF\uFE70-\uFEFC";goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g;goog.i18n.bidi.stripHtmlIfNeeded_=function(t,o){return o?t.replace(goog.i18n.bidi.htmlSkipReg_,""):t};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(t,o){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(t,o))};goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl;goog.i18n.bidi.hasAnyLtr=function(t,o){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(t,o))};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(t){return goog.i18n.bidi.rtlRe_.test(t)};goog.i18n.bidi.isLtrChar=function(t){return goog.i18n.bidi.ltrRe_.test(t)};goog.i18n.bidi.isNeutralChar=function(t){return!goog.i18n.bidi.isLtrChar(t)&&!goog.i18n.bidi.isRtlChar(t)};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(t,o){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(t,o))};goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl;goog.i18n.bidi.startsWithLtr=function(t,o){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(t,o))};goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr;goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/;goog.i18n.bidi.isNeutralText=function(t,o){return t=goog.i18n.bidi.stripHtmlIfNeeded_(t,o),goog.i18n.bidi.isRequiredLtrRe_.test(t)||!goog.i18n.bidi.hasAnyLtr(t)&&!goog.i18n.bidi.hasAnyRtl(t)};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(t,o){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(t,o))};goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr;goog.i18n.bidi.endsWithRtl=function(t,o){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(t,o))};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(t){return goog.i18n.bidi.rtlLocalesRe_.test(t)};goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g;goog.i18n.bidi.guardBracketInText=function(t,o){return o=(o===void 0?goog.i18n.bidi.hasAnyRtl(t):o)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,t.replace(goog.i18n.bidi.bracketGuardTextRe_,o+"$&"+o)};goog.i18n.bidi.enforceRtlInHtml=function(t){return t.charAt(0)=="<"?t.replace(/<\w+/,"$& dir=rtl"):`
|
|
11
11
|
<span dir=rtl>`+t+"</span>"};goog.i18n.bidi.enforceRtlInText=function(t){return goog.i18n.bidi.Format.RLE+t+goog.i18n.bidi.Format.PDF};goog.i18n.bidi.enforceLtrInHtml=function(t){return t.charAt(0)=="<"?t.replace(/<\w+/,"$& dir=ltr"):`
|
|
12
|
-
<span dir=ltr>`+t+"</span>"};goog.i18n.bidi.enforceLtrInText=function(t){return goog.i18n.bidi.Format.LRE+t+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(t){return t.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(t){return t.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1\u05F4").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1\u05F3")};goog.i18n.bidi.wordSeparatorRe_=/\s+/;goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/;goog.i18n.bidi.rtlDetectionThreshold_=.4;goog.i18n.bidi.estimateDirection=function(t,o){var r=0,n=0,i=!1;for(t=goog.i18n.bidi.stripHtmlIfNeeded_(t,o).split(goog.i18n.bidi.wordSeparatorRe_),o=0;o<t.length;o++){var s=t[o];goog.i18n.bidi.startsWithRtl(s)?(r++,n++):goog.i18n.bidi.isRequiredLtrRe_.test(s)?i=!0:goog.i18n.bidi.hasAnyLtr(s)?n++:goog.i18n.bidi.hasNumeralsRe_.test(s)&&(i=!0)}return n==0?i?goog.i18n.bidi.Dir.LTR:goog.i18n.bidi.Dir.NEUTRAL:r/n>goog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR};goog.i18n.bidi.detectRtlDirectionality=function(t,o){return goog.i18n.bidi.estimateDirection(t,o)==goog.i18n.bidi.Dir.RTL};goog.i18n.bidi.setElementDirAndAlign=function(t,o){t&&(o=goog.i18n.bidi.toDir(o))&&(t.style.textAlign=o==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,t.dir=o==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")};goog.i18n.bidi.setElementDirByTextDirectionality=function(t,o){switch(goog.i18n.bidi.estimateDirection(o)){case goog.i18n.bidi.Dir.LTR:t.dir="ltr";break;case goog.i18n.bidi.Dir.RTL:t.dir="rtl";break;default:t.removeAttribute("dir")}};goog.i18n.bidi.DirectionalString=function(){};goog.html.TrustedResourceUrl=function(){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_="",this.trustedURL_=null,this.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0;goog.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()};goog.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString=!0;goog.html.TrustedResourceUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR};goog.html.TrustedResourceUrl.prototype.cloneWithParams=function(t,o){var r=goog.html.TrustedResourceUrl.unwrap(this);r=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(r);var n=r[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(r[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",r[2]||"",t)+goog.html.TrustedResourceUrl.stringifyParams_("#",n,o))};goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"});goog.html.TrustedResourceUrl.unwrap=function(t){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t).toString()};goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(t){return t instanceof goog.html.TrustedResourceUrl&&t.constructor===goog.html.TrustedResourceUrl&&t.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?t.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+t+"' of type "+goog.typeOf(t)),"type_error:TrustedResourceUrl")};goog.html.TrustedResourceUrl.unwrapTrustedURL=function(t){return t.trustedURL_?t.trustedURL_:goog.html.TrustedResourceUrl.unwrap(t)};goog.html.TrustedResourceUrl.format=function(t,o){var r=goog.string.Const.unwrap(t);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(r))throw Error("Invalid TrustedResourceUrl format: "+r);return t=r.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,function(n,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw Error('Found marker, "'+i+'", in format string, "'+r+'", but no valid label mapping found in args: '+JSON.stringify(o));return n=o[i],n instanceof goog.string.Const?goog.string.Const.unwrap(n):encodeURIComponent(String(n))}),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)};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(t,o,r,n){return goog.html.TrustedResourceUrl.format(t,o).cloneWithParams(r,n)};goog.html.TrustedResourceUrl.fromConstant=function(t){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(t))};goog.html.TrustedResourceUrl.fromConstants=function(t){for(var o="",r=0;r<t.length;r++)o+=goog.string.Const.unwrap(t[r]);return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(o)};goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse=function(t){var o=new goog.html.TrustedResourceUrl;return o.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScriptURL(t):t,goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY&&(o.trustedURL_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createURL(t)),o};goog.html.TrustedResourceUrl.stringifyParams_=function(t,o,r){if(r==null)return o;if(goog.isString(r))return r?t+encodeURIComponent(r):"";for(var n in r){var i=r[n];i=goog.isArray(i)?i:[i];for(var s=0;s<i.length;s++){var p=i[s];p!=null&&(o||(o=t),o+=(o.length>t.length?"&":"")+encodeURIComponent(n)+"="+encodeURIComponent(String(p)))}}return o};goog.string.internal={};goog.string.internal.startsWith=function(t,o){return t.lastIndexOf(o,0)==0};goog.string.internal.endsWith=function(t,o){var r=t.length-o.length;return 0<=r&&t.indexOf(o,r)==r};goog.string.internal.caseInsensitiveStartsWith=function(t,o){return goog.string.internal.caseInsensitiveCompare(o,t.substr(0,o.length))==0};goog.string.internal.caseInsensitiveEndsWith=function(t,o){return goog.string.internal.caseInsensitiveCompare(o,t.substr(t.length-o.length,o.length))==0};goog.string.internal.caseInsensitiveEquals=function(t,o){return t.toLowerCase()==o.toLowerCase()};goog.string.internal.isEmptyOrWhitespace=function(t){return/^[\s\xa0]*$/.test(t)};goog.string.internal.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};goog.string.internal.caseInsensitiveCompare=function(t,o){return t=String(t).toLowerCase(),o=String(o).toLowerCase(),t<o?-1:t==o?0:1};goog.string.internal.newLineToBr=function(t,o){return t.replace(/(\r\n|\r|\n)/g,o?"<br />":"<br>")};goog.string.internal.htmlEscape=function(t,o){if(o)t=t.replace(goog.string.internal.AMP_RE_,"&").replace(goog.string.internal.LT_RE_,"<").replace(goog.string.internal.GT_RE_,">").replace(goog.string.internal.QUOT_RE_,""").replace(goog.string.internal.SINGLE_QUOTE_RE_,"'").replace(goog.string.internal.NULL_RE_,"�");else{if(!goog.string.internal.ALL_RE_.test(t))return t;t.indexOf("&")!=-1&&(t=t.replace(goog.string.internal.AMP_RE_,"&")),t.indexOf("<")!=-1&&(t=t.replace(goog.string.internal.LT_RE_,"<")),t.indexOf(">")!=-1&&(t=t.replace(goog.string.internal.GT_RE_,">")),t.indexOf('"')!=-1&&(t=t.replace(goog.string.internal.QUOT_RE_,""")),t.indexOf("'")!=-1&&(t=t.replace(goog.string.internal.SINGLE_QUOTE_RE_,"'")),t.indexOf("\0")!=-1&&(t=t.replace(goog.string.internal.NULL_RE_,"�"))}return t};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(t,o){return goog.string.internal.newLineToBr(t.replace(/ /g,"  "),o)};goog.string.internal.contains=function(t,o){return t.indexOf(o)!=-1};goog.string.internal.caseInsensitiveContains=function(t,o){return goog.string.internal.contains(t.toLowerCase(),o.toLowerCase())};goog.string.internal.compareVersions=function(t,o){var r=0;t=goog.string.internal.trim(String(t)).split("."),o=goog.string.internal.trim(String(o)).split(".");for(var n=Math.max(t.length,o.length),i=0;r==0&&i<n;i++){var s=t[i]||"",p=o[i]||"";do{if(s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],p=/(\d*)(\D*)(.*)/.exec(p)||["","","",""],s[0].length==0&&p[0].length==0)break;r=s[1].length==0?0:parseInt(s[1],10);var u=p[1].length==0?0:parseInt(p[1],10);r=goog.string.internal.compareElements_(r,u)||goog.string.internal.compareElements_(s[2].length==0,p[2].length==0)||goog.string.internal.compareElements_(s[2],p[2]),s=s[3],p=p[3]}while(r==0)}return r};goog.string.internal.compareElements_=function(t,o){return t<o?-1:t>o?1:0};goog.html.SafeUrl=function(){this.privateDoNotAccessOrElseSafeUrlWrappedValue_="",this.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};goog.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez";goog.html.SafeUrl.prototype.implementsGoogStringTypedString=!0;goog.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()};goog.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0;goog.html.SafeUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR};goog.DEBUG&&(goog.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeUrlWrappedValue_+"}"});goog.html.SafeUrl.unwrap=function(t){return goog.html.SafeUrl.unwrapTrustedURL(t).toString()};goog.html.SafeUrl.unwrapTrustedURL=function(t){return t instanceof goog.html.SafeUrl&&t.constructor===goog.html.SafeUrl&&t.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?t.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+t+"' of type "+goog.typeOf(t)),"type_error:SafeUrl")};goog.html.SafeUrl.fromConstant=function(t){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(t))};goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime))(?:;\w+=(?:\w+|"[\w;=]+"))*$/i;goog.html.SafeUrl.isSafeMimeType=function(t){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(t)};goog.html.SafeUrl.fromBlob=function(t){return t=goog.html.SAFE_MIME_TYPE_PATTERN_.test(t.type)?goog.fs.url.createObjectUrl(t):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.DATA_URL_PATTERN_=/^data:([^,]*);base64,[a-z0-9+\/]+=*$/i;goog.html.SafeUrl.fromDataUrl=function(t){t=t.replace(/(%0A|%0D)/g,"");var o=t.match(goog.html.DATA_URL_PATTERN_);return o=o&&goog.html.SAFE_MIME_TYPE_PATTERN_.test(o[1]),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o?t:goog.html.SafeUrl.INNOCUOUS_STRING)};goog.html.SafeUrl.fromTelUrl=function(t){return goog.string.internal.caseInsensitiveStartsWith(t,"tel:")||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i;goog.html.SafeUrl.fromSipUrl=function(t){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(t))||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeUrl.fromFacebookMessengerUrl=function(t){return goog.string.internal.caseInsensitiveStartsWith(t,"fb-messenger://share")||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeUrl.fromWhatsAppUrl=function(t){return goog.string.internal.caseInsensitiveStartsWith(t,"whatsapp://send")||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeUrl.fromSmsUrl=function(t){return goog.string.internal.caseInsensitiveStartsWith(t,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(t)||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeUrl.isSmsUrlBodyValid_=function(t){var o=t.indexOf("#");if(0<o&&(t=t.substring(0,o)),o=t.match(/[?&]body=/gi),!o)return!0;if(1<o.length)return!1;if(t=t.match(/[?&]body=([^&]*)/)[1],!t)return!0;try{decodeURIComponent(t)}catch{return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(t)};goog.html.SafeUrl.fromSshUrl=function(t){return goog.string.internal.caseInsensitiveStartsWith(t,"ssh://")||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeUrl.sanitizeChromeExtensionUrl=function(t,o){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//,t,o)};goog.html.SafeUrl.sanitizeFirefoxExtensionUrl=function(t,o){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^moz-extension:\/\/([^\/]+)\//,t,o)};goog.html.SafeUrl.sanitizeEdgeExtensionUrl=function(t,o){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^ms-browser-extension:\/\/([^\/]+)\//,t,o)};goog.html.SafeUrl.sanitizeExtensionUrl_=function(t,o,r){return(t=t.exec(o))?(t=t[1],(r instanceof goog.string.Const?[goog.string.Const.unwrap(r)]:r.map(function(n){return goog.string.Const.unwrap(n)})).indexOf(t)==-1&&(o=goog.html.SafeUrl.INNOCUOUS_STRING)):o=goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)};goog.html.SafeUrl.fromTrustedResourceUrl=function(t){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(t))};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(t){return t instanceof goog.html.SafeUrl?t:(t=typeof t=="object"&&t.implementsGoogStringTypedString?t.getTypedStringValue():String(t),goog.html.SAFE_URL_PATTERN_.test(t)||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t))};goog.html.SafeUrl.sanitizeAssertUnchanged=function(t,o){return t instanceof goog.html.SafeUrl?t:(t=typeof t=="object"&&t.implementsGoogStringTypedString?t.getTypedStringValue():String(t),o&&/^data:/i.test(t)&&(o=goog.html.SafeUrl.fromDataUrl(t),o.getTypedStringValue()==t)?o:(goog.asserts.assert(goog.html.SAFE_URL_PATTERN_.test(t),"%s does not match the safe URL pattern",t)||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)))};goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse=function(t){var o=new goog.html.SafeUrl;return o.privateDoNotAccessOrElseSafeUrlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createURL(t):t,o};goog.html.SafeUrl.ABOUT_BLANK=goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank");goog.html.SafeStyle=function(){this.privateDoNotAccessOrElseSafeStyleWrappedValue_="",this.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};goog.html.SafeStyle.prototype.implementsGoogStringTypedString=!0;goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};goog.html.SafeStyle.fromConstant=function(t){return t=goog.string.Const.unwrap(t),t.length===0?goog.html.SafeStyle.EMPTY:(goog.asserts.assert(goog.string.internal.endsWith(t,";"),"Last character of style string is not ';': "+t),goog.asserts.assert(goog.string.internal.contains(t,":"),`Style string must contain at least one ':', to specify a "name: value" pair: `+t),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t))};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(t){return t instanceof goog.html.SafeStyle&&t.constructor===goog.html.SafeStyle&&t.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?t.privateDoNotAccessOrElseSafeStyleWrappedValue_:(goog.asserts.fail("expected object of type SafeStyle, got '"+t+"' of type "+goog.typeOf(t)),"type_error:SafeStyle")};goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse=function(t){return new goog.html.SafeStyle().initSecurityPrivateDoNotAccessOrElse_(t)};goog.html.SafeStyle.prototype.initSecurityPrivateDoNotAccessOrElse_=function(t){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_=t,this};goog.html.SafeStyle.EMPTY=goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse("");goog.html.SafeStyle.INNOCUOUS_STRING="zClosurez";goog.html.SafeStyle.create=function(t){var o="",r;for(r in t){if(!/^[-_a-zA-Z0-9]+$/.test(r))throw Error("Name allows only [-_a-zA-Z0-9], got: "+r);var n=t[r];n!=null&&(n=goog.isArray(n)?goog.array.map(n,goog.html.SafeStyle.sanitizePropertyValue_).join(" "):goog.html.SafeStyle.sanitizePropertyValue_(n),o+=r+":"+n+";")}return o?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(o):goog.html.SafeStyle.EMPTY};goog.html.SafeStyle.sanitizePropertyValue_=function(t){if(t instanceof goog.html.SafeUrl)return'url("'+goog.html.SafeUrl.unwrap(t).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(t=t instanceof goog.string.Const?goog.string.Const.unwrap(t):goog.html.SafeStyle.sanitizePropertyValueString_(String(t)),/[{;}]/.test(t))throw new goog.asserts.AssertionError("Value does not allow [{;}], got: %s.",[t]);return t};goog.html.SafeStyle.sanitizePropertyValueString_=function(t){var o=t.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(o)){if(goog.html.SafeStyle.COMMENT_RE_.test(t))return goog.asserts.fail("String value disallows comments, got: "+t),goog.html.SafeStyle.INNOCUOUS_STRING;if(!goog.html.SafeStyle.hasBalancedQuotes_(t))return goog.asserts.fail("String value requires balanced quotes, got: "+t),goog.html.SafeStyle.INNOCUOUS_STRING;if(!goog.html.SafeStyle.hasBalancedSquareBrackets_(t))return goog.asserts.fail("String value requires balanced square brackets and one identifier per pair of brackets, got: "+t),goog.html.SafeStyle.INNOCUOUS_STRING}else return goog.asserts.fail("String value allows only "+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+" and simple functions, got: "+t),goog.html.SafeStyle.INNOCUOUS_STRING;return goog.html.SafeStyle.sanitizeUrl_(t)};goog.html.SafeStyle.hasBalancedQuotes_=function(t){for(var o=!0,r=!0,n=0;n<t.length;n++){var i=t.charAt(n);i=="'"&&r?o=!o:i=='"'&&o&&(r=!r)}return o&&r};goog.html.SafeStyle.hasBalancedSquareBrackets_=function(t){for(var o=!0,r=/^[-_a-zA-Z0-9]$/,n=0;n<t.length;n++){var i=t.charAt(n);if(i=="]"){if(o)return!1;o=!0}else if(i=="["){if(!o)return!1;o=!1}else if(!o&&!r.test(i))return!1}return o};goog.html.SafeStyle.VALUE_ALLOWED_CHARS_=`[-,."'%_!# a-zA-Z0-9\\[\\]]`;goog.html.SafeStyle.VALUE_RE_=new RegExp("^"+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+"+$");goog.html.SafeStyle.URL_RE_=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g;goog.html.SafeStyle.FUNCTIONS_RE_=/\b(hsl|hsla|rgb|rgba|matrix|calc|minmax|fit-content|repeat|(rotate|scale|translate)(X|Y|Z|3d)?)\([-+*/0-9a-z.%\[\], ]+\)/g;goog.html.SafeStyle.COMMENT_RE_=/\/\*/;goog.html.SafeStyle.sanitizeUrl_=function(t){return t.replace(goog.html.SafeStyle.URL_RE_,function(o,r,n,i){var s="";return n=n.replace(/^(['"])(.*)\1$/,function(p,u,h){return s=u,h}),o=goog.html.SafeUrl.sanitize(n).getTypedStringValue(),r+s+o+s+i})};goog.html.SafeStyle.concat=function(t){var o="",r=function(n){goog.isArray(n)?goog.array.forEach(n,r):o+=goog.html.SafeStyle.unwrap(n)};return goog.array.forEach(arguments,r),o?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(o):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(t,o){if(goog.string.internal.contains(t,"<"))throw Error("Selector does not allow '<', got: "+t);var r=t.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: "+t);if(!goog.html.SafeStyleSheet.hasBalancedBrackets_(r))throw Error("() and [] in selector must be balanced, got: "+t);return o instanceof goog.html.SafeStyle||(o=goog.html.SafeStyle.create(o)),t=t+"{"+goog.html.SafeStyle.unwrap(o).replace(/</g,"\\3C ")+"}",goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeStyleSheet.hasBalancedBrackets_=function(t){for(var o={"(":")","[":"]"},r=[],n=0;n<t.length;n++){var i=t[n];if(o[i])r.push(o[i]);else if(goog.object.contains(o,i)&&r.pop()!=i)return!1}return r.length==0};goog.html.SafeStyleSheet.concat=function(t){var o="",r=function(n){goog.isArray(n)?goog.array.forEach(n,r):o+=goog.html.SafeStyleSheet.unwrap(n)};return goog.array.forEach(arguments,r),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(o)};goog.html.SafeStyleSheet.fromConstant=function(t){return t=goog.string.Const.unwrap(t),t.length===0?goog.html.SafeStyleSheet.EMPTY:(goog.asserts.assert(!goog.string.internal.contains(t,"<"),"Forbidden '<' character in style sheet string: "+t),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t))};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(t){return t instanceof goog.html.SafeStyleSheet&&t.constructor===goog.html.SafeStyleSheet&&t.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?t.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:(goog.asserts.fail("expected object of type SafeStyleSheet, got '"+t+"' of type "+goog.typeOf(t)),"type_error:SafeStyleSheet")};goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse=function(t){return new goog.html.SafeStyleSheet().initSecurityPrivateDoNotAccessOrElse_(t)};goog.html.SafeStyleSheet.prototype.initSecurityPrivateDoNotAccessOrElse_=function(t){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=t,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 t=goog.labs.userAgent.util.getNavigator_();return t&&(t=t.userAgent)?t:""};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(t){goog.labs.userAgent.util.userAgent_=t||goog.labs.userAgent.util.getNativeUserAgentString_()};goog.labs.userAgent.util.getUserAgent=function(){return goog.labs.userAgent.util.userAgent_};goog.labs.userAgent.util.matchUserAgent=function(t){var o=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.contains(o,t)};goog.labs.userAgent.util.matchUserAgentIgnoreCase=function(t){var o=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.caseInsensitiveContains(o,t)};goog.labs.userAgent.util.extractVersionTuples=function(t){for(var o=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,r=[],n;n=o.exec(t);)r.push([n[1],n[2],n[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 t(i){return i=goog.array.find(i,n),r[i]||""}var o=goog.labs.userAgent.util.getUserAgent();if(goog.labs.userAgent.browser.isIE())return goog.labs.userAgent.browser.getIEVersion_(o);o=goog.labs.userAgent.util.extractVersionTuples(o);var r={};goog.array.forEach(o,function(i){r[i[0]]=i[1]});var n=goog.partial(goog.object.containsKey,r);return goog.labs.userAgent.browser.isOpera()?t(["Version","Opera"]):goog.labs.userAgent.browser.isEdge()?t(["Edge"]):goog.labs.userAgent.browser.isEdgeChromium()?t(["Edg"]):goog.labs.userAgent.browser.isChrome()?t(["Chrome","CriOS"]):(o=o[2])&&o[1]||""};goog.labs.userAgent.browser.isVersionOrHigher=function(t){return 0<=goog.string.internal.compareVersions(goog.labs.userAgent.browser.getVersion(),t)};goog.labs.userAgent.browser.getIEVersion_=function(t){var o=/rv: *([\d\.]*)/.exec(t);if(o&&o[1])return o[1];o="";var r=/MSIE +([\d\.]+)/.exec(t);if(r&&r[1])if(t=/Trident\/(\d.\d)/.exec(t),r[1]=="7.0")if(t&&t[1])switch(t[1]){case"4.0":o="8.0";break;case"5.0":o="9.0";break;case"6.0":o="10.0";break;case"7.0":o="11.0"}else o="7.0";else o=r[1];return o};goog.html.SafeHtml=function(){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_="",this.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_,this.dir_=null};goog.html.SafeHtml.prototype.implementsGoogI18nBidiDirectionalString=!0;goog.html.SafeHtml.prototype.getDirection=function(){return this.dir_};goog.html.SafeHtml.prototype.implementsGoogStringTypedString=!0;goog.html.SafeHtml.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()};goog.DEBUG&&(goog.html.SafeHtml.prototype.toString=function(){return"SafeHtml{"+this.privateDoNotAccessOrElseSafeHtmlWrappedValue_+"}"});goog.html.SafeHtml.unwrap=function(t){return goog.html.SafeHtml.unwrapTrustedHTML(t).toString()};goog.html.SafeHtml.unwrapTrustedHTML=function(t){return t instanceof goog.html.SafeHtml&&t.constructor===goog.html.SafeHtml&&t.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?t.privateDoNotAccessOrElseSafeHtmlWrappedValue_:(goog.asserts.fail("expected object of type SafeHtml, got '"+t+"' of type "+goog.typeOf(t)),"type_error:SafeHtml")};goog.html.SafeHtml.htmlEscape=function(t){if(t instanceof goog.html.SafeHtml)return t;var o=typeof t=="object",r=null;return o&&t.implementsGoogI18nBidiDirectionalString&&(r=t.getDirection()),t=o&&t.implementsGoogStringTypedString?t.getTypedStringValue():String(t),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(t),r)};goog.html.SafeHtml.htmlEscapePreservingNewlines=function(t){return t instanceof goog.html.SafeHtml?t:(t=goog.html.SafeHtml.htmlEscape(t),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(goog.html.SafeHtml.unwrap(t)),t.getDirection()))};goog.html.SafeHtml.htmlEscapePreservingNewlinesAndSpaces=function(t){return t instanceof goog.html.SafeHtml?t:(t=goog.html.SafeHtml.htmlEscape(t),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(goog.html.SafeHtml.unwrap(t)),t.getDirection()))};goog.html.SafeHtml.from=goog.html.SafeHtml.htmlEscape;goog.html.SafeHtml.VALID_NAMES_IN_TAG_=/^[a-zA-Z0-9-]+$/;goog.html.SafeHtml.URL_ATTRIBUTES_={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0};goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0};goog.html.SafeHtml.create=function(t,o,r){return goog.html.SafeHtml.verifyTagName(String(t)),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(t),o,r)};goog.html.SafeHtml.verifyTagName=function(t){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(t))throw Error("Invalid tag name <"+t+">.");if(t.toUpperCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error("Tag name <"+t+"> is not allowed for SafeHtml.")};goog.html.SafeHtml.createIframe=function(t,o,r,n){t&&goog.html.TrustedResourceUrl.unwrap(t);var i={};return i.src=t||null,i.srcdoc=o&&goog.html.SafeHtml.unwrap(o),t=goog.html.SafeHtml.combineAttributes(i,{sandbox:""},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",t,n)};goog.html.SafeHtml.createSandboxIframe=function(t,o,r,n){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error("The browser does not support sandboxed iframes.");var i={};return i.src=t?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(t)):null,i.srcdoc=o||null,i.sandbox="",t=goog.html.SafeHtml.combineAttributes(i,{},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",t,n)};goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype};goog.html.SafeHtml.createScriptSrc=function(t,o){return goog.html.TrustedResourceUrl.unwrap(t),t=goog.html.SafeHtml.combineAttributes({src:t},{},o),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",t)};goog.html.SafeHtml.createScript=function(t,o){for(var r in o){var n=r.toLowerCase();if(n=="language"||n=="src"||n=="text"||n=="type")throw Error('Cannot set "'+n+'" attribute')}for(r="",t=goog.array.concat(t),n=0;n<t.length;n++)r+=goog.html.SafeScript.unwrap(t[n]);return t=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",o,t)};goog.html.SafeHtml.createStyle=function(t,o){o=goog.html.SafeHtml.combineAttributes({type:"text/css"},{},o);var r="";t=goog.array.concat(t);for(var n=0;n<t.length;n++)r+=goog.html.SafeStyleSheet.unwrap(t[n]);return t=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style",o,t)};goog.html.SafeHtml.createMetaRefresh=function(t,o){return t=goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(t)),(goog.labs.userAgent.browser.isIE()||goog.labs.userAgent.browser.isEdge())&&goog.string.internal.contains(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta",{"http-equiv":"refresh",content:(o||0)+"; url="+t})};goog.html.SafeHtml.getAttrNameAndValue_=function(t,o,r){if(r instanceof goog.string.Const)r=goog.string.Const.unwrap(r);else if(o.toLowerCase()=="style")r=goog.html.SafeHtml.getStyleValue_(r);else{if(/^on/i.test(o))throw Error('Attribute "'+o+'" requires goog.string.Const value, "'+r+'" given.');if(o.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(goog.isString(r))r=goog.html.SafeUrl.sanitize(r).getTypedStringValue();else throw Error('Attribute "'+o+'" on tag "'+t+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+r+'" given.')}return r.implementsGoogStringTypedString&&(r=r.getTypedStringValue()),goog.asserts.assert(goog.isString(r)||goog.isNumber(r),"String or number value expected, got "+typeof r+" with value: "+r),o+'="'+goog.string.internal.htmlEscape(String(r))+'"'};goog.html.SafeHtml.getStyleValue_=function(t){if(!goog.isObject(t))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof t+" given: "+t);return t instanceof goog.html.SafeStyle||(t=goog.html.SafeStyle.create(t)),goog.html.SafeStyle.unwrap(t)};goog.html.SafeHtml.createWithDir=function(t,o,r,n){return o=goog.html.SafeHtml.create(o,r,n),o.dir_=t,o};goog.html.SafeHtml.join=function(t,o){t=goog.html.SafeHtml.htmlEscape(t);var r=t.getDirection(),n=[],i=function(s){goog.isArray(s)?goog.array.forEach(s,i):(s=goog.html.SafeHtml.htmlEscape(s),n.push(goog.html.SafeHtml.unwrap(s)),s=s.getDirection(),r==goog.i18n.bidi.Dir.NEUTRAL?r=s:s!=goog.i18n.bidi.Dir.NEUTRAL&&r!=s&&(r=null))};return goog.array.forEach(o,i),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(n.join(goog.html.SafeHtml.unwrap(t)),r)};goog.html.SafeHtml.concat=function(t){return goog.html.SafeHtml.join(goog.html.SafeHtml.EMPTY,Array.prototype.slice.call(arguments))};goog.html.SafeHtml.concatWithDir=function(t,o){var r=goog.html.SafeHtml.concat(goog.array.slice(arguments,1));return r.dir_=t,r};goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse=function(t,o){return new goog.html.SafeHtml().initSecurityPrivateDoNotAccessOrElse_(t,o)};goog.html.SafeHtml.prototype.initSecurityPrivateDoNotAccessOrElse_=function(t,o){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createHTML(t):t,this.dir_=o,this};goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse=function(t,o,r){var n=null,i="<"+t+goog.html.SafeHtml.stringifyAttributes(t,o);return goog.isDefAndNotNull(r)?goog.isArray(r)||(r=[r]):r=[],goog.dom.tags.isVoidTag(t.toLowerCase())?(goog.asserts.assert(!r.length,"Void tag <"+t+"> does not allow content."),i+=">"):(n=goog.html.SafeHtml.concat(r),i+=">"+goog.html.SafeHtml.unwrap(n)+"</"+t+">",n=n.getDirection()),(t=o&&o.dir)&&(n=/^(ltr|rtl|auto)$/i.test(t)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(i,n)};goog.html.SafeHtml.stringifyAttributes=function(t,o){var r="";if(o)for(var n in o){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(n))throw Error('Invalid attribute name "'+n+'".');var i=o[n];goog.isDefAndNotNull(i)&&(r+=" "+goog.html.SafeHtml.getAttrNameAndValue_(t,n,i))}return r};goog.html.SafeHtml.combineAttributes=function(t,o,r){var n={},i;for(i in t)goog.asserts.assert(i.toLowerCase()==i,"Must be lower case"),n[i]=t[i];for(i in o)goog.asserts.assert(i.toLowerCase()==i,"Must be lower case"),n[i]=o[i];for(i in r){var s=i.toLowerCase();if(s in t)throw Error('Cannot override "'+s+'" attribute, got "'+i+'" with value "'+r[i]+'"');s in o&&delete n[s],n[i]=r[i]}return n};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(t,o,r){return goog.asserts.assertString(goog.string.Const.unwrap(t),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(t)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(o,r||null)};goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(t,o){return goog.asserts.assertString(goog.string.Const.unwrap(t),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(t)),"must provide non-empty justification"),goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(o)};goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(t,o){return goog.asserts.assertString(goog.string.Const.unwrap(t),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(t)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(o)};goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(t,o){return goog.asserts.assertString(goog.string.Const.unwrap(t),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(t)),"must provide non-empty justification"),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(o)};goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(t,o){return goog.asserts.assertString(goog.string.Const.unwrap(t),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(t)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)};goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(t,o){return goog.asserts.assertString(goog.string.Const.unwrap(t),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(t)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(o)};goog.dom.safe={};goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"};goog.dom.safe.insertAdjacentHtml=function(t,o,r){t.insertAdjacentHTML(o,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=="undefined")return!1;var t=document.createElement("div"),o=document.createElement("div");return o.appendChild(document.createElement("div")),t.appendChild(o),goog.DEBUG&&!t.firstChild?!1:(o=t.firstChild.firstChild,t.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(goog.html.SafeHtml.EMPTY),!o.parentElement)});goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(t,o){if(goog.dom.safe.isInnerHtmlCleanupRecursive_())for(;t.lastChild;)t.removeChild(t.lastChild);t.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(o)};goog.dom.safe.setInnerHtml=function(t,o){if(goog.asserts.ENABLE_ASSERTS){var r=t.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 "+t.tagName+".")}goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(t,o)};goog.dom.safe.setOuterHtml=function(t,o){t.outerHTML=goog.html.SafeHtml.unwrapTrustedHTML(o)};goog.dom.safe.setFormElementAction=function(t,o){o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),goog.dom.asserts.assertIsHTMLFormElement(t).action=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setButtonFormAction=function(t,o){o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),goog.dom.asserts.assertIsHTMLButtonElement(t).formAction=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setInputFormAction=function(t,o){o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),goog.dom.asserts.assertIsHTMLInputElement(t).formAction=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setStyle=function(t,o){t.style.cssText=goog.html.SafeStyle.unwrap(o)};goog.dom.safe.documentWrite=function(t,o){t.write(goog.html.SafeHtml.unwrapTrustedHTML(o))};goog.dom.safe.setAnchorHref=function(t,o){goog.dom.asserts.assertIsHTMLAnchorElement(t),o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),t.href=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setImageSrc=function(t,o){if(goog.dom.asserts.assertIsHTMLImageElement(t),!(o instanceof goog.html.SafeUrl)){var r=/^data:image\//i.test(o);o=goog.html.SafeUrl.sanitizeAssertUnchanged(o,r)}t.src=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setAudioSrc=function(t,o){if(goog.dom.asserts.assertIsHTMLAudioElement(t),!(o instanceof goog.html.SafeUrl)){var r=/^data:audio\//i.test(o);o=goog.html.SafeUrl.sanitizeAssertUnchanged(o,r)}t.src=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setVideoSrc=function(t,o){if(goog.dom.asserts.assertIsHTMLVideoElement(t),!(o instanceof goog.html.SafeUrl)){var r=/^data:video\//i.test(o);o=goog.html.SafeUrl.sanitizeAssertUnchanged(o,r)}t.src=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setEmbedSrc=function(t,o){goog.dom.asserts.assertIsHTMLEmbedElement(t),t.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(o)};goog.dom.safe.setFrameSrc=function(t,o){goog.dom.asserts.assertIsHTMLFrameElement(t),t.src=goog.html.TrustedResourceUrl.unwrapTrustedURL(o)};goog.dom.safe.setIframeSrc=function(t,o){goog.dom.asserts.assertIsHTMLIFrameElement(t),t.src=goog.html.TrustedResourceUrl.unwrapTrustedURL(o)};goog.dom.safe.setIframeSrcdoc=function(t,o){goog.dom.asserts.assertIsHTMLIFrameElement(t),t.srcdoc=goog.html.SafeHtml.unwrapTrustedHTML(o)};goog.dom.safe.setLinkHrefAndRel=function(t,o,r){goog.dom.asserts.assertIsHTMLLinkElement(t),t.rel=r,goog.string.internal.caseInsensitiveContains(r,"stylesheet")?(goog.asserts.assert(o instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),t.href=goog.html.TrustedResourceUrl.unwrapTrustedURL(o)):t.href=o instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrapTrustedURL(o):o instanceof goog.html.SafeUrl?goog.html.SafeUrl.unwrapTrustedURL(o):goog.html.SafeUrl.unwrapTrustedURL(goog.html.SafeUrl.sanitizeAssertUnchanged(o))};goog.dom.safe.setObjectData=function(t,o){goog.dom.asserts.assertIsHTMLObjectElement(t),t.data=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(o)};goog.dom.safe.setScriptSrc=function(t,o){goog.dom.asserts.assertIsHTMLScriptElement(t),t.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(o),(o=goog.getScriptNonce())&&t.setAttribute("nonce",o)};goog.dom.safe.setScriptContent=function(t,o){goog.dom.asserts.assertIsHTMLScriptElement(t),t.text=goog.html.SafeScript.unwrapTrustedScript(o),(o=goog.getScriptNonce())&&t.setAttribute("nonce",o)};goog.dom.safe.setLocationHref=function(t,o){goog.dom.asserts.assertIsLocation(t),o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),t.href=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.assignLocation=function(t,o){goog.dom.asserts.assertIsLocation(t),o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),t.assign(goog.html.SafeUrl.unwrapTrustedURL(o))};goog.dom.safe.replaceLocation=function(t,o){goog.dom.asserts.assertIsLocation(t),o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),t.replace(goog.html.SafeUrl.unwrapTrustedURL(o))};goog.dom.safe.openInWindow=function(t,o,r,n,i){return t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),(o||goog.global).open(goog.html.SafeUrl.unwrapTrustedURL(t),r?goog.string.Const.unwrap(r):"",n,i)};goog.dom.safe.parseFromStringHtml=function(t,o){return goog.dom.safe.parseFromString(t,o,"text/html")};goog.dom.safe.parseFromString=function(t,o,r){return t.parseFromString(goog.html.SafeHtml.unwrapTrustedHTML(o),r)};goog.dom.safe.createImageFromBlob=function(t){if(!/^image\/.*/g.test(t.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var o=goog.global.URL.createObjectURL(t);return t=new goog.global.Image,t.onload=function(){goog.global.URL.revokeObjectURL(o)},goog.dom.safe.setImageSrc(t,goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Image blob URL."),o)),t};goog.string.DETECT_DOUBLE_ESCAPING=!1;goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1;goog.string.Unicode={NBSP:"\xA0"};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(t,o){for(var r=t.split("%s"),n="",i=Array.prototype.slice.call(arguments,1);i.length&&1<r.length;)n+=r.shift()+i.shift();return n+r.join("%s")};goog.string.collapseWhitespace=function(t){return t.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};goog.string.isEmptyOrWhitespace=goog.string.internal.isEmptyOrWhitespace;goog.string.isEmptyString=function(t){return t.length==0};goog.string.isEmpty=goog.string.isEmptyOrWhitespace;goog.string.isEmptyOrWhitespaceSafe=function(t){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(t))};goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe;goog.string.isBreakingWhitespace=function(t){return!/[^\t\n\r ]/.test(t)};goog.string.isAlpha=function(t){return!/[^a-zA-Z]/.test(t)};goog.string.isNumeric=function(t){return!/[^0-9]/.test(t)};goog.string.isAlphaNumeric=function(t){return!/[^a-zA-Z0-9]/.test(t)};goog.string.isSpace=function(t){return t==" "};goog.string.isUnicodeChar=function(t){return t.length==1&&" "<=t&&"~">=t||"\x80"<=t&&"\uFFFD">=t};goog.string.stripNewlines=function(t){return t.replace(/(\r\n|\r|\n)+/g," ")};goog.string.canonicalizeNewlines=function(t){return t.replace(/(\r\n|\r|\n)/g,`
|
|
13
|
-
`)};goog.string.normalizeWhitespace=function(t){return t.replace(/\xa0|\s/g," ")};goog.string.normalizeSpaces=function(t){return t.replace(/\xa0|[ \t]+/g," ")};goog.string.collapseBreakingSpaces=function(t){return t.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};goog.string.trim=goog.string.internal.trim;goog.string.trimLeft=function(t){return t.replace(/^[\s\xa0]+/,"")};goog.string.trimRight=function(t){return t.replace(/[\s\xa0]+$/,"")};goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare;goog.string.numberAwareCompare_=function(t,o,r){if(t==o)return 0;if(!t)return-1;if(!o)return 1;for(var n=t.toLowerCase().match(r),i=o.toLowerCase().match(r),s=Math.min(n.length,i.length),p=0;p<s;p++){r=n[p];var u=i[p];if(r!=u)return t=parseInt(r,10),!isNaN(t)&&(o=parseInt(u,10),!isNaN(o)&&t-o)?t-o:r<u?-1:1}return n.length!=i.length?n.length-i.length:t<o?-1:1};goog.string.intAwareCompare=function(t,o){return goog.string.numberAwareCompare_(t,o,/\d+|\D+/g)};goog.string.floatAwareCompare=function(t,o){return goog.string.numberAwareCompare_(t,o,/\d+|\.\d+|\D+/g)};goog.string.numerateCompare=goog.string.floatAwareCompare;goog.string.urlEncode=function(t){return encodeURIComponent(String(t))};goog.string.urlDecode=function(t){return decodeURIComponent(t.replace(/\+/g," "))};goog.string.newLineToBr=goog.string.internal.newLineToBr;goog.string.htmlEscape=function(t,o){return t=goog.string.internal.htmlEscape(t,o),goog.string.DETECT_DOUBLE_ESCAPING&&(t=t.replace(goog.string.E_RE_,"e")),t};goog.string.E_RE_=/e/g;goog.string.unescapeEntities=function(t){return goog.string.contains(t,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(t):goog.string.unescapePureXmlEntities_(t):t};goog.string.unescapeEntitiesWithDocument=function(t,o){return goog.string.contains(t,"&")?goog.string.unescapeEntitiesUsingDom_(t,o):t};goog.string.unescapeEntitiesUsingDom_=function(t,o){var r={"&":"&","<":"<",">":">",""":'"'},n=o?o.createElement("div"):goog.global.document.createElement("div");return t.replace(goog.string.HTML_ENTITY_PATTERN_,function(i,s){var p=r[i];return p||(s.charAt(0)=="#"&&(s=Number("0"+s.substr(1)),isNaN(s)||(p=String.fromCharCode(s))),p||(goog.dom.safe.setInnerHtml(n,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),i+" ")),p=n.firstChild.nodeValue.slice(0,-1)),r[i]=p)})};goog.string.unescapePureXmlEntities_=function(t){return t.replace(/&([^;]+);/g,function(o,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))?o:String.fromCharCode(r)}})};goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g;goog.string.whitespaceEscape=function(t,o){return goog.string.newLineToBr(t.replace(/ /g,"  "),o)};goog.string.preserveSpaces=function(t){return t.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)};goog.string.stripQuotes=function(t,o){for(var r=o.length,n=0;n<r;n++){var i=r==1?o:o.charAt(n);if(t.charAt(0)==i&&t.charAt(t.length-1)==i)return t.substring(1,t.length-1)}return t};goog.string.truncate=function(t,o,r){return r&&(t=goog.string.unescapeEntities(t)),t.length>o&&(t=t.substring(0,o-3)+"..."),r&&(t=goog.string.htmlEscape(t)),t};goog.string.truncateMiddle=function(t,o,r,n){if(r&&(t=goog.string.unescapeEntities(t)),n&&t.length>o){n>o&&(n=o);var i=t.length-n;t=t.substring(0,o-n)+"..."+t.substring(i)}else t.length>o&&(n=Math.floor(o/2),i=t.length-n,t=t.substring(0,n+o%2)+"..."+t.substring(i));return r&&(t=goog.string.htmlEscape(t)),t};goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"};goog.string.jsEscapeCache_={"'":"\\'"};goog.string.quote=function(t){t=String(t);for(var o=['"'],r=0;r<t.length;r++){var n=t.charAt(r),i=n.charCodeAt(0);o[r+1]=goog.string.specialEscapeChars_[n]||(31<i&&127>i?n:goog.string.escapeChar(n))}return o.push('"'),o.join("")};goog.string.escapeString=function(t){for(var o=[],r=0;r<t.length;r++)o[r]=goog.string.escapeChar(t.charAt(r));return o.join("")};goog.string.escapeChar=function(t){if(t in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[t];if(t in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[t]=goog.string.specialEscapeChars_[t];var o=t.charCodeAt(0);if(31<o&&127>o)var r=t;else 256>o?(r="\\x",(16>o||256<o)&&(r+="0")):(r="\\u",4096>o&&(r+="0")),r+=o.toString(16).toUpperCase();return goog.string.jsEscapeCache_[t]=r};goog.string.contains=goog.string.internal.contains;goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains;goog.string.countOf=function(t,o){return t&&o?t.split(o).length-1:0};goog.string.removeAt=function(t,o,r){var n=t;return 0<=o&&o<t.length&&0<r&&(n=t.substr(0,o)+t.substr(o+r,t.length-o-r)),n};goog.string.remove=function(t,o){return t.replace(o,"")};goog.string.removeAll=function(t,o){return o=new RegExp(goog.string.regExpEscape(o),"g"),t.replace(o,"")};goog.string.replaceAll=function(t,o,r){return o=new RegExp(goog.string.regExpEscape(o),"g"),t.replace(o,r.replace(/\$/g,"$$$$"))};goog.string.regExpEscape=function(t){return String(t).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};goog.string.repeat=String.prototype.repeat?function(t,o){return t.repeat(o)}:function(t,o){return Array(o+1).join(t)};goog.string.padNumber=function(t,o,r){return t=goog.isDef(r)?t.toFixed(r):String(t),r=t.indexOf("."),r==-1&&(r=t.length),goog.string.repeat("0",Math.max(0,o-r))+t};goog.string.makeSafe=function(t){return t==null?"":String(t)};goog.string.buildString=function(t){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(t){for(var o=0,r=0;r<t.length;++r)o=31*o+t.charCodeAt(r)>>>0;return o};goog.string.uniqueStringCounter_=2147483648*Math.random()|0;goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++};goog.string.toNumber=function(t){var o=Number(t);return o==0&&goog.string.isEmptyOrWhitespace(t)?NaN:o};goog.string.isLowerCamelCase=function(t){return/^[a-z]+([A-Z][a-z]*)*$/.test(t)};goog.string.isUpperCamelCase=function(t){return/^([A-Z][a-z]*)+$/.test(t)};goog.string.toCamelCase=function(t){return String(t).replace(/\-([a-z])/g,function(o,r){return r.toUpperCase()})};goog.string.toSelectorCase=function(t){return String(t).replace(/([A-Z])/g,"-$1").toLowerCase()};goog.string.toTitleCase=function(t,o){return o=goog.isString(o)?goog.string.regExpEscape(o):"\\s",t.replace(new RegExp("(^"+(o?"|["+o+"]+":"")+")([a-z])","g"),function(r,n,i){return n+i.toUpperCase()})};goog.string.capitalize=function(t){return String(t.charAt(0)).toUpperCase()+String(t.substr(1)).toLowerCase()};goog.string.parseInt=function(t){return isFinite(t)&&(t=String(t)),goog.isString(t)?/^\s*-?0x/i.test(t)?parseInt(t,16):parseInt(t,10):NaN};goog.string.splitLimit=function(t,o,r){t=t.split(o);for(var n=[];0<r&&t.length;)n.push(t.shift()),r--;return t.length&&n.push(t.join(o)),n};goog.string.lastComponent=function(t,o){if(o)typeof o=="string"&&(o=[o]);else return t;for(var r=-1,n=0;n<o.length;n++)if(o[n]!=""){var i=t.lastIndexOf(o[n]);i>r&&(r=i)}return r==-1?t:t.slice(r+1)};goog.string.editDistance=function(t,o){var r=[],n=[];if(t==o)return 0;if(!t.length||!o.length)return Math.max(t.length,o.length);for(var i=0;i<o.length+1;i++)r[i]=i;for(i=0;i<t.length;i++){n[0]=i+1;for(var s=0;s<o.length;s++)n[s+1]=Math.min(n[s]+1,r[s+1]+1,r[s]+Number(t[i]!=o[s]));for(s=0;s<r.length;s++)r[s]=n[s]}return n[o.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 t=goog.labs.userAgent.util.getUserAgent();if(t){t=goog.labs.userAgent.util.extractVersionTuples(t);var o=goog.labs.userAgent.engine.getEngineTuple_(t);if(o)return o[0]=="Gecko"?goog.labs.userAgent.engine.getVersionForKey_(t,"Firefox"):o[1];t=t[0];var r;if(t&&(r=t[2])&&(r=/Trident\/([^\s;]+)/.exec(r)))return r[1]}return""};goog.labs.userAgent.engine.getEngineTuple_=function(t){if(!goog.labs.userAgent.engine.isEdge())return t[1];for(var o=0;o<t.length;o++){var r=t[o];if(r[0]=="Edge")return r}};goog.labs.userAgent.engine.isVersionOrHigher=function(t){return 0<=goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(),t)};goog.labs.userAgent.engine.getVersionForKey_=function(t,o){return(t=goog.array.find(t,function(r){return o==r[0]}))&&t[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.isGo2Phone=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("GAFP")};goog.labs.userAgent.platform.getVersion=function(){var t=goog.labs.userAgent.util.getUserAgent(),o="";return goog.labs.userAgent.platform.isWindows()?(o=/Windows (?:NT|Phone) ([0-9.]+)/,o=(t=o.exec(t))?t[1]:"0.0"):goog.labs.userAgent.platform.isIos()?(o=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,o=(t=o.exec(t))&&t[1].replace(/_/g,".")):goog.labs.userAgent.platform.isMacintosh()?(o=/Mac OS X ([0-9_.]+)/,o=(t=o.exec(t))?t[1].replace(/_/g,"."):"10"):goog.labs.userAgent.platform.isKaiOS()?(o=/(?:KaiOS)\/(\S+)/i,o=(t=o.exec(t))&&t[1]):goog.labs.userAgent.platform.isAndroid()?(o=/Android\s+([^\);]+)(\)|;)/,o=(t=o.exec(t))&&t[1]):goog.labs.userAgent.platform.isChromeOS()&&(o=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,o=(t=o.exec(t))&&t[1]),o||""};goog.labs.userAgent.platform.isVersionOrHigher=function(t){return 0<=goog.string.compareVersions(goog.labs.userAgent.platform.getVersion(),t)};goog.reflect={};goog.reflect.object=function(t,o){return o};goog.reflect.objectProperty=function(t,o){return t};goog.reflect.sinkValue=function(t){return goog.reflect.sinkValue[" "](t),t};goog.reflect.sinkValue[" "]=goog.nullFunction;goog.reflect.canAccessProperty=function(t,o){try{return goog.reflect.sinkValue(t[o]),!0}catch{}return!1};goog.reflect.cache=function(t,o,r,n){return n=n?n(o):o,Object.prototype.hasOwnProperty.call(t,n)?t[n]:t[n]=r(o)};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 t=goog.userAgent.getNavigatorTyped();return t&&t.platform||""};goog.userAgent.PLATFORM=goog.userAgent.determinePlatform_();goog.userAgent.ASSUME_MAC=!1;goog.userAgent.ASSUME_WINDOWS=!1;goog.userAgent.ASSUME_LINUX=!1;goog.userAgent.ASSUME_X11=!1;goog.userAgent.ASSUME_ANDROID=!1;goog.userAgent.ASSUME_IPHONE=!1;goog.userAgent.ASSUME_IPAD=!1;goog.userAgent.ASSUME_IPOD=!1;goog.userAgent.ASSUME_KAIOS=!1;goog.userAgent.ASSUME_GO2PHONE=!1;goog.userAgent.PLATFORM_KNOWN_=goog.userAgent.ASSUME_MAC||goog.userAgent.ASSUME_WINDOWS||goog.userAgent.ASSUME_LINUX||goog.userAgent.ASSUME_X11||goog.userAgent.ASSUME_ANDROID||goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD;goog.userAgent.MAC=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_MAC:goog.labs.userAgent.platform.isMacintosh();goog.userAgent.WINDOWS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_WINDOWS:goog.labs.userAgent.platform.isWindows();goog.userAgent.isLegacyLinux_=function(){return goog.labs.userAgent.platform.isLinux()||goog.labs.userAgent.platform.isChromeOS()};goog.userAgent.LINUX=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_LINUX:goog.userAgent.isLegacyLinux_();goog.userAgent.isX11_=function(){var t=goog.userAgent.getNavigatorTyped();return!!t&&goog.string.contains(t.appVersion||"","X11")};goog.userAgent.X11=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_X11:goog.userAgent.isX11_();goog.userAgent.ANDROID=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_ANDROID:goog.labs.userAgent.platform.isAndroid();goog.userAgent.IPHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE:goog.labs.userAgent.platform.isIphone();goog.userAgent.IPAD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad();goog.userAgent.IPOD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIpod();goog.userAgent.IOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIos();goog.userAgent.KAIOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_KAIOS:goog.labs.userAgent.platform.isKaiOS();goog.userAgent.GO2PHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_GO2PHONE:goog.labs.userAgent.platform.isGo2Phone();goog.userAgent.determineVersion_=function(){var t="",o=goog.userAgent.getVersionRegexResult_();return o&&(t=o?o[1]:""),goog.userAgent.IE&&(o=goog.userAgent.getDocumentMode_(),o!=null&&o>parseFloat(t))?String(o):t};goog.userAgent.getVersionRegexResult_=function(){var t=goog.userAgent.getUserAgentString();if(goog.userAgent.GECKO)return/rv:([^\);]+)(\)|;)/.exec(t);if(goog.userAgent.EDGE)return/Edge\/([\d\.]+)/.exec(t);if(goog.userAgent.IE)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t);if(goog.userAgent.WEBKIT)return/WebKit\/(\S+)/.exec(t);if(goog.userAgent.OPERA)return/(?:Version)[ \/]?(\S+)/.exec(t)};goog.userAgent.getDocumentMode_=function(){var t=goog.global.document;return t?t.documentMode:void 0};goog.userAgent.VERSION=goog.userAgent.determineVersion_();goog.userAgent.compare=function(t,o){return goog.string.compareVersions(t,o)};goog.userAgent.isVersionOrHigherCache_={};goog.userAgent.isVersionOrHigher=function(t){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,t,function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,t)})};goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher;goog.userAgent.isDocumentModeOrHigher=function(t){return Number(goog.userAgent.DOCUMENT_MODE)>=t};goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher;goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE)return goog.userAgent.getDocumentMode_()}();goog.userAgent.product={};goog.userAgent.product.ASSUME_FIREFOX=!1;goog.userAgent.product.ASSUME_IPHONE=!1;goog.userAgent.product.ASSUME_IPAD=!1;goog.userAgent.product.ASSUME_ANDROID=!1;goog.userAgent.product.ASSUME_CHROME=!1;goog.userAgent.product.ASSUME_SAFARI=!1;goog.userAgent.product.PRODUCT_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_OPERA||goog.userAgent.product.ASSUME_FIREFOX||goog.userAgent.product.ASSUME_IPHONE||goog.userAgent.product.ASSUME_IPAD||goog.userAgent.product.ASSUME_ANDROID||goog.userAgent.product.ASSUME_CHROME||goog.userAgent.product.ASSUME_SAFARI;goog.userAgent.product.OPERA=goog.userAgent.OPERA;goog.userAgent.product.IE=goog.userAgent.IE;goog.userAgent.product.EDGE=goog.userAgent.EDGE;goog.userAgent.product.FIREFOX=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_FIREFOX:goog.labs.userAgent.browser.isFirefox();goog.userAgent.product.isIphoneOrIpod_=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpod()};goog.userAgent.product.IPHONE=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPHONE:goog.userAgent.product.isIphoneOrIpod_();goog.userAgent.product.IPAD=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad();goog.userAgent.product.ANDROID=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_ANDROID:goog.labs.userAgent.browser.isAndroidBrowser();goog.userAgent.product.CHROME=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_CHROME:goog.labs.userAgent.browser.isChrome();goog.userAgent.product.isSafariDesktop_=function(){return goog.labs.userAgent.browser.isSafari()&&!goog.labs.userAgent.platform.isIos()};goog.userAgent.product.SAFARI=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_SAFARI:goog.userAgent.product.isSafariDesktop_();goog.crypt.base64={};goog.crypt.base64.DEFAULT_ALPHABET_COMMON_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";goog.crypt.base64.ENCODED_VALS=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"+/=";goog.crypt.base64.ENCODED_VALS_WEBSAFE=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"-_.";goog.crypt.base64.Alphabet={DEFAULT:0,NO_PADDING:1,WEBSAFE:2,WEBSAFE_DOT_PADDING:3,WEBSAFE_NO_PADDING:4};goog.crypt.base64.paddingChars_="=.";goog.crypt.base64.isPadding_=function(t){return goog.string.contains(goog.crypt.base64.paddingChars_,t)};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(t,o){goog.asserts.assert(goog.isArrayLike(t),"encodeByteArray takes an array as a parameter"),o===void 0&&(o=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),o=goog.crypt.base64.byteToCharMaps_[o];for(var r=[],n=0;n<t.length;n+=3){var i=t[n],s=n+1<t.length,p=s?t[n+1]:0,u=n+2<t.length,h=u?t[n+2]:0,w=i>>2;i=(i&3)<<4|p>>4,p=(p&15)<<2|h>>6,h&=63,u||(h=64,s||(p=64)),r.push(o[w],o[i],o[p]||"",o[h]||"")}return r.join("")};goog.crypt.base64.encodeString=function(t,o){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!o?goog.global.btoa(t):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(t),o)};goog.crypt.base64.decodeString=function(t,o){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!o)return goog.global.atob(t);var r="";return goog.crypt.base64.decodeStringInternal_(t,function(n){r+=String.fromCharCode(n)}),r};goog.crypt.base64.decodeStringToByteArray=function(t,o){var r=[];return goog.crypt.base64.decodeStringInternal_(t,function(n){r.push(n)}),r};goog.crypt.base64.decodeStringToUint8Array=function(t){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var o=t.length,r=3*o/4;r%3?r=Math.floor(r):goog.crypt.base64.isPadding_(t[o-1])&&(r=goog.crypt.base64.isPadding_(t[o-2])?r-2:r-1);var n=new Uint8Array(r),i=0;return goog.crypt.base64.decodeStringInternal_(t,function(s){n[i++]=s}),n.subarray(0,i)};goog.crypt.base64.decodeStringInternal_=function(t,o){function r(h){for(;n<t.length;){var w=t.charAt(n++),G=goog.crypt.base64.charToByteMap_[w];if(G!=null)return G;if(!goog.string.isEmptyOrWhitespace(w))throw Error("Unknown base64 encoding at char: "+w)}return h}goog.crypt.base64.init_();for(var n=0;;){var i=r(-1),s=r(0),p=r(64),u=r(64);if(u===64&&i===-1)break;o(i<<2|s>>4),p!=64&&(o(s<<4&240|p>>2),u!=64&&o(p<<6&192|u))}};goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var t=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),o=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var n=t.concat(o[r].split(""));goog.crypt.base64.byteToCharMaps_[r]=n;for(var i=0;i<n.length;i++){var s=n[i],p=goog.crypt.base64.charToByteMap_[s];p===void 0?goog.crypt.base64.charToByteMap_[s]=i:goog.asserts.assert(p===i)}}}};jspb.utils={};jspb.utils.split64Low=0;jspb.utils.split64High=0;jspb.utils.splitUint64=function(t){var o=t>>>0;t=Math.floor((t-o)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=o,jspb.utils.split64High=t};jspb.utils.splitInt64=function(t){var o=0>t;t=Math.abs(t);var r=t>>>0;t=Math.floor((t-r)/jspb.BinaryConstants.TWO_TO_32),t>>>=0,o&&(t=~t>>>0,r=(~r>>>0)+1,4294967295<r&&(r=0,t++,4294967295<t&&(t=0))),jspb.utils.split64Low=r,jspb.utils.split64High=t};jspb.utils.splitZigzag64=function(t){var o=0>t;t=2*Math.abs(t),jspb.utils.splitUint64(t),t=jspb.utils.split64Low;var r=jspb.utils.split64High;o&&(t==0?r==0?r=t=4294967295:(r--,t=4294967295):t--),jspb.utils.split64Low=t,jspb.utils.split64High=r};jspb.utils.splitFloat32=function(t){var o=0>t?1:0;if(t=o?-t:t,t===0)0<1/t?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(t))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(t>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(o<<31|2139095040)>>>0;else if(t<jspb.BinaryConstants.FLOAT32_MIN)t=Math.round(t/Math.pow(2,-149)),jspb.utils.split64High=0,jspb.utils.split64Low=(o<<31|t)>>>0;else{var r=Math.floor(Math.log(t)/Math.LN2);t*=Math.pow(2,-r),t=Math.round(t*jspb.BinaryConstants.TWO_TO_23),16777216<=t&&++r,jspb.utils.split64High=0,jspb.utils.split64Low=(o<<31|r+127<<23|t&8388607)>>>0}};jspb.utils.splitFloat64=function(t){var o=0>t?1:0;if(t=o?-t:t,t===0)jspb.utils.split64High=0<1/t?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(t))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(t>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(o<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(t<jspb.BinaryConstants.FLOAT64_MIN){var r=t/Math.pow(2,-1074);t=r/jspb.BinaryConstants.TWO_TO_32,jspb.utils.split64High=(o<<31|t)>>>0,jspb.utils.split64Low=r>>>0}else{r=t;var n=0;if(2<=r)for(;2<=r&&1023>n;)n++,r/=2;else for(;1>r&&-1022<n;)r*=2,n--;r=t*Math.pow(2,-n),t=r*jspb.BinaryConstants.TWO_TO_20&1048575,r=r*jspb.BinaryConstants.TWO_TO_52>>>0,jspb.utils.split64High=(o<<31|n+1023<<20|t)>>>0,jspb.utils.split64Low=r}};jspb.utils.splitHash64=function(t){var o=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),s=t.charCodeAt(4),p=t.charCodeAt(5),u=t.charCodeAt(6);t=t.charCodeAt(7),jspb.utils.split64Low=o+(r<<8)+(n<<16)+(i<<24)>>>0,jspb.utils.split64High=s+(p<<8)+(u<<16)+(t<<24)>>>0};jspb.utils.joinUint64=function(t,o){return o*jspb.BinaryConstants.TWO_TO_32+(t>>>0)};jspb.utils.joinInt64=function(t,o){var r=o&2147483648;return r&&(t=~t+1>>>0,o=~o>>>0,t==0&&(o=o+1>>>0)),t=jspb.utils.joinUint64(t,o),r?-t:t};jspb.utils.toZigzag64=function(t,o,r){var n=o>>31;return r(t<<1^n,(o<<1|t>>>31)^n)};jspb.utils.joinZigzag64=function(t,o){return jspb.utils.fromZigzag64(t,o,jspb.utils.joinInt64)};jspb.utils.fromZigzag64=function(t,o,r){var n=-(t&1);return r((t>>>1|o<<31)^n,o>>>1^n)};jspb.utils.joinFloat32=function(t,o){o=2*(t>>31)+1;var r=t>>>23&255;return t&=8388607,r==255?t?NaN:1/0*o:r==0?o*Math.pow(2,-149)*t:o*Math.pow(2,r-150)*(t+Math.pow(2,23))};jspb.utils.joinFloat64=function(t,o){var r=2*(o>>31)+1,n=o>>>20&2047;return t=jspb.BinaryConstants.TWO_TO_32*(o&1048575)+t,n==2047?t?NaN:1/0*r:n==0?r*Math.pow(2,-1074)*t:r*Math.pow(2,n-1075)*(t+jspb.BinaryConstants.TWO_TO_52)};jspb.utils.joinHash64=function(t,o){return String.fromCharCode(t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255,o>>>0&255,o>>>8&255,o>>>16&255,o>>>24&255)};jspb.utils.DIGITS="0123456789abcdef".split("");jspb.utils.ZERO_CHAR_CODE_=48;jspb.utils.A_CHAR_CODE_=97;jspb.utils.joinUnsignedDecimalString=function(t,o){function r(i,s){return i=i?String(i):"",s?"0000000".slice(i.length)+i:i}if(2097151>=o)return""+jspb.utils.joinUint64(t,o);var n=(t>>>24|o<<8)>>>0&16777215;return o=o>>16&65535,t=(t&16777215)+6777216*n+6710656*o,n+=8147497*o,o*=2,1e7<=t&&(n+=Math.floor(t/1e7),t%=1e7),1e7<=n&&(o+=Math.floor(n/1e7),n%=1e7),r(o,0)+r(n,o)+r(t,1)};jspb.utils.joinSignedDecimalString=function(t,o){var r=o&2147483648;return r&&(t=~t+1>>>0,o=~o+(t==0?1:0)>>>0),t=jspb.utils.joinUnsignedDecimalString(t,o),r?"-"+t:t};jspb.utils.hash64ToDecimalString=function(t,o){jspb.utils.splitHash64(t),t=jspb.utils.split64Low;var r=jspb.utils.split64High;return o?jspb.utils.joinSignedDecimalString(t,r):jspb.utils.joinUnsignedDecimalString(t,r)};jspb.utils.hash64ArrayToDecimalStrings=function(t,o){for(var r=Array(t.length),n=0;n<t.length;n++)r[n]=jspb.utils.hash64ToDecimalString(t[n],o);return r};jspb.utils.decimalStringToHash64=function(t){function o(p,u){for(var h=0;8>h&&(p!==1||0<u);h++)u=p*i[h]+u,i[h]=u&255,u>>>=8}function r(){for(var p=0;8>p;p++)i[p]=~i[p]&255}goog.asserts.assert(0<t.length);var n=!1;t[0]==="-"&&(n=!0,t=t.slice(1));for(var i=[0,0,0,0,0,0,0,0],s=0;s<t.length;s++)o(10,t.charCodeAt(s)-jspb.utils.ZERO_CHAR_CODE_);return n&&(r(),o(1,1)),goog.crypt.byteArrayToString(i)};jspb.utils.splitDecimalString=function(t){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(t))};jspb.utils.toHexDigit_=function(t){return String.fromCharCode(10>t?jspb.utils.ZERO_CHAR_CODE_+t:jspb.utils.A_CHAR_CODE_-10+t)};jspb.utils.fromHexCharCode_=function(t){return t>=jspb.utils.A_CHAR_CODE_?t-jspb.utils.A_CHAR_CODE_+10:t-jspb.utils.ZERO_CHAR_CODE_};jspb.utils.hash64ToHexString=function(t){var o=Array(18);o[0]="0",o[1]="x";for(var r=0;8>r;r++){var n=t.charCodeAt(7-r);o[2*r+2]=jspb.utils.toHexDigit_(n>>4),o[2*r+3]=jspb.utils.toHexDigit_(n&15)}return o.join("")};jspb.utils.hexStringToHash64=function(t){t=t.toLowerCase(),goog.asserts.assert(t.length==18),goog.asserts.assert(t[0]=="0"),goog.asserts.assert(t[1]=="x");for(var o="",r=0;8>r;r++){var n=jspb.utils.fromHexCharCode_(t.charCodeAt(2*r+2)),i=jspb.utils.fromHexCharCode_(t.charCodeAt(2*r+3));o=String.fromCharCode(16*n+i)+o}return o};jspb.utils.hash64ToNumber=function(t,o){jspb.utils.splitHash64(t),t=jspb.utils.split64Low;var r=jspb.utils.split64High;return o?jspb.utils.joinInt64(t,r):jspb.utils.joinUint64(t,r)};jspb.utils.numberToHash64=function(t){return jspb.utils.splitInt64(t),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.utils.countVarints=function(t,o,r){for(var n=0,i=o;i<r;i++)n+=t[i]>>7;return r-o-n};jspb.utils.countVarintFields=function(t,o,r,n){var i=0;if(n=8*n+jspb.BinaryConstants.WireType.VARINT,128>n)for(;o<r&&t[o++]==n;)for(i++;;){var s=t[o++];if((s&128)==0)break}else for(;o<r;){for(s=n;128<s;){if(t[o]!=(s&127|128))return i;o++,s>>=7}if(t[o++]!=s)break;for(i++;s=t[o++],(s&128)!=0;);}return i};jspb.utils.countFixedFields_=function(t,o,r,n,i){var s=0;if(128>n)for(;o<r&&t[o++]==n;)s++,o+=i;else for(;o<r;){for(var p=n;128<p;){if(t[o++]!=(p&127|128))return s;p>>=7}if(t[o++]!=p)break;s++,o+=i}return s};jspb.utils.countFixed32Fields=function(t,o,r,n){return jspb.utils.countFixedFields_(t,o,r,8*n+jspb.BinaryConstants.WireType.FIXED32,4)};jspb.utils.countFixed64Fields=function(t,o,r,n){return jspb.utils.countFixedFields_(t,o,r,8*n+jspb.BinaryConstants.WireType.FIXED64,8)};jspb.utils.countDelimitedFields=function(t,o,r,n){var i=0;for(n=8*n+jspb.BinaryConstants.WireType.DELIMITED;o<r;){for(var s=n;128<s;){if(t[o++]!=(s&127|128))return i;s>>=7}if(t[o++]!=s)break;i++;for(var p=0,u=1;s=t[o++],p+=(s&127)*u,u*=128,(s&128)!=0;);o+=p}return i};jspb.utils.debugBytesToTextFormat=function(t){var o='"';if(t){t=jspb.utils.byteSourceToUint8Array(t);for(var r=0;r<t.length;r++)o+="\\x",16>t[r]&&(o+="0"),o+=t[r].toString(16)}return o+'"'};jspb.utils.debugScalarToTextFormat=function(t){return typeof t=="string"?goog.string.quote(t):t.toString()};jspb.utils.stringToByteArray=function(t){for(var o=new Uint8Array(t.length),r=0;r<t.length;r++){var n=t.charCodeAt(r);if(255<n)throw Error("Conversion error: string contains codepoint outside of byte range");o[r]=n}return o};jspb.utils.byteSourceToUint8Array=function(t){return t.constructor===Uint8Array?t:t.constructor===ArrayBuffer||typeof Buffer!="undefined"&&t.constructor===Buffer||t.constructor===Array?new Uint8Array(t):t.constructor===String?goog.crypt.base64.decodeStringToUint8Array(t):(goog.asserts.fail("Type not convertible to Uint8Array."),new Uint8Array(0))};jspb.BinaryDecoder=function(t,o,r){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1,t&&this.setBlock(t,o,r)};jspb.BinaryDecoder.instanceCache_=[];jspb.BinaryDecoder.alloc=function(t,o,r){if(jspb.BinaryDecoder.instanceCache_.length){var n=jspb.BinaryDecoder.instanceCache_.pop();return t&&n.setBlock(t,o,r),n}return new jspb.BinaryDecoder(t,o,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(t,o,r){this.bytes_=jspb.utils.byteSourceToUint8Array(t),this.start_=o!==void 0?o: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(t){this.end_=t};jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_};jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_};jspb.BinaryDecoder.prototype.setCursor=function(t){this.cursor_=t};jspb.BinaryDecoder.prototype.advance=function(t){this.cursor_+=t,goog.asserts.assert(this.cursor_<=this.end_)};jspb.BinaryDecoder.prototype.atEnd=function(){return this.cursor_==this.end_};jspb.BinaryDecoder.prototype.pastEnd=function(){return this.cursor_>this.end_};jspb.BinaryDecoder.prototype.getError=function(){return this.error_||0>this.cursor_||this.cursor_>this.end_};jspb.BinaryDecoder.prototype.readSplitVarint64=function(t){for(var o=128,r=0,n=0,i=0;4>i&&128<=o;i++)o=this.bytes_[this.cursor_++],r|=(o&127)<<7*i;if(128<=o&&(o=this.bytes_[this.cursor_++],r|=(o&127)<<28,n|=(o&127)>>4),128<=o)for(i=0;5>i&&128<=o;i++)o=this.bytes_[this.cursor_++],n|=(o&127)<<7*i+3;if(128>o)return t(r>>>0,n>>>0);goog.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0};jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(t){return this.readSplitVarint64(function(o,r){return jspb.utils.fromZigzag64(o,r,t)})};jspb.BinaryDecoder.prototype.readSplitFixed64=function(t){var o=this.bytes_,r=this.cursor_;this.cursor_+=8;for(var n=0,i=0,s=r+7;s>=r;s--)n=n<<8|o[s],i=i<<8|o[s+4];return t(n,i)};jspb.BinaryDecoder.prototype.skipVarint=function(){for(;this.bytes_[this.cursor_]&128;)this.cursor_++;this.cursor_++};jspb.BinaryDecoder.prototype.unskipVarint=function(t){for(;128<t;)this.cursor_--,t>>>=7;this.cursor_--};jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var t=this.bytes_,o=t[this.cursor_+0],r=o&127;return 128>o?(this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),r):(o=t[this.cursor_+1],r|=(o&127)<<7,128>o?(this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),r):(o=t[this.cursor_+2],r|=(o&127)<<14,128>o?(this.cursor_+=3,goog.asserts.assert(this.cursor_<=this.end_),r):(o=t[this.cursor_+3],r|=(o&127)<<21,128>o?(this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),r):(o=t[this.cursor_+4],r|=(o&15)<<28,128>o?(this.cursor_+=5,goog.asserts.assert(this.cursor_<=this.end_),r>>>0):(this.cursor_+=5,128<=t[this.cursor_++]&&128<=t[this.cursor_++]&&128<=t[this.cursor_++]&&128<=t[this.cursor_++]&&128<=t[this.cursor_++]&&goog.asserts.assert(!1),goog.asserts.assert(this.cursor_<=this.end_),r)))))};jspb.BinaryDecoder.prototype.readSignedVarint32=jspb.BinaryDecoder.prototype.readUnsignedVarint32;jspb.BinaryDecoder.prototype.readUnsignedVarint32String=function(){return this.readUnsignedVarint32().toString()};jspb.BinaryDecoder.prototype.readSignedVarint32String=function(){return this.readSignedVarint32().toString()};jspb.BinaryDecoder.prototype.readZigzagVarint32=function(){var t=this.readUnsignedVarint32();return t>>>1^-(t&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 t=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),t};jspb.BinaryDecoder.prototype.readUint16=function(){var t=this.bytes_[this.cursor_+0],o=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),t<<0|o<<8};jspb.BinaryDecoder.prototype.readUint32=function(){var t=this.bytes_[this.cursor_+0],o=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],n=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),(t<<0|o<<8|r<<16|n<<24)>>>0};jspb.BinaryDecoder.prototype.readUint64=function(){var t=this.readUint32(),o=this.readUint32();return jspb.utils.joinUint64(t,o)};jspb.BinaryDecoder.prototype.readUint64String=function(){var t=this.readUint32(),o=this.readUint32();return jspb.utils.joinUnsignedDecimalString(t,o)};jspb.BinaryDecoder.prototype.readInt8=function(){var t=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),t<<24>>24};jspb.BinaryDecoder.prototype.readInt16=function(){var t=this.bytes_[this.cursor_+0],o=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),(t<<0|o<<8)<<16>>16};jspb.BinaryDecoder.prototype.readInt32=function(){var t=this.bytes_[this.cursor_+0],o=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],n=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),t<<0|o<<8|r<<16|n<<24};jspb.BinaryDecoder.prototype.readInt64=function(){var t=this.readUint32(),o=this.readUint32();return jspb.utils.joinInt64(t,o)};jspb.BinaryDecoder.prototype.readInt64String=function(){var t=this.readUint32(),o=this.readUint32();return jspb.utils.joinSignedDecimalString(t,o)};jspb.BinaryDecoder.prototype.readFloat=function(){var t=this.readUint32();return jspb.utils.joinFloat32(t,0)};jspb.BinaryDecoder.prototype.readDouble=function(){var t=this.readUint32(),o=this.readUint32();return jspb.utils.joinFloat64(t,o)};jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]};jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()};jspb.BinaryDecoder.prototype.readString=function(t){var o=this.bytes_,r=this.cursor_;t=r+t;for(var n=[],i="";r<t;){var s=o[r++];if(128>s)n.push(s);else{if(192>s)continue;if(224>s){var p=o[r++];n.push((s&31)<<6|p&63)}else if(240>s){p=o[r++];var u=o[r++];n.push((s&15)<<12|(p&63)<<6|u&63)}else if(248>s){p=o[r++],u=o[r++];var h=o[r++];s=(s&7)<<18|(p&63)<<12|(u&63)<<6|h&63,s-=65536,n.push((s>>10&1023)+55296,(s&1023)+56320)}}8192<=n.length&&(i+=String.fromCharCode.apply(null,n),n.length=0)}return i+=goog.crypt.byteArrayToString(n),this.cursor_=r,i};jspb.BinaryDecoder.prototype.readStringWithLength=function(){var t=this.readUnsignedVarint32();return this.readString(t)};jspb.BinaryDecoder.prototype.readBytes=function(t){if(0>t||this.cursor_+t>this.bytes_.length)return this.error_=!0,goog.asserts.fail("Invalid byte length!"),new Uint8Array(0);var o=this.bytes_.subarray(this.cursor_,this.cursor_+t);return this.cursor_+=t,goog.asserts.assert(this.cursor_<=this.end_),o};jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)};jspb.BinaryDecoder.prototype.readFixedHash64=function(){var t=this.bytes_,o=this.cursor_,r=t[o+0],n=t[o+1],i=t[o+2],s=t[o+3],p=t[o+4],u=t[o+5],h=t[o+6];return t=t[o+7],this.cursor_+=8,String.fromCharCode(r,n,i,s,p,u,h,t)};jspb.BinaryReader=function(t,o,r){this.decoder_=jspb.BinaryDecoder.alloc(t,o,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(t,o,r){if(jspb.BinaryReader.instanceCache_.length){var n=jspb.BinaryReader.instanceCache_.pop();return t&&n.decoder_.setBlock(t,o,r),n}return new jspb.BinaryReader(t,o,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_};jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_};jspb.BinaryReader.prototype.isDelimited=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED};jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP};jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()};jspb.BinaryReader.prototype.setBlock=function(t,o,r){this.decoder_.setBlock(t,o,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(t){this.decoder_.advance(t)};jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return goog.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var t=this.decoder_.readUnsignedVarint32(),o=t>>>3;return t&=7,t!=jspb.BinaryConstants.WireType.VARINT&&t!=jspb.BinaryConstants.WireType.FIXED32&&t!=jspb.BinaryConstants.WireType.FIXED64&&t!=jspb.BinaryConstants.WireType.DELIMITED&&t!=jspb.BinaryConstants.WireType.START_GROUP&&t!=jspb.BinaryConstants.WireType.END_GROUP?(goog.asserts.fail("Invalid wire type: %s (at position %s)",t,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=o,this.nextWireType_=t,!0)};jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)};jspb.BinaryReader.prototype.skipMatchingFields=function(){var t=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==t;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()};jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(goog.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()};jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)goog.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var t=this.decoder_.readUnsignedVarint32();this.decoder_.advance(t)}};jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(goog.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)};jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(goog.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)};jspb.BinaryReader.prototype.skipGroup=function(){var t=this.nextField_;do{if(!this.nextField()){goog.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=t&&(goog.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:goog.asserts.fail("Invalid wire encoding for field.")}};jspb.BinaryReader.prototype.registerReadCallback=function(t,o){this.readCallbacks_===null&&(this.readCallbacks_={}),goog.asserts.assert(!this.readCallbacks_[t]),this.readCallbacks_[t]=o};jspb.BinaryReader.prototype.runReadCallback=function(t){return goog.asserts.assert(this.readCallbacks_!==null),t=this.readCallbacks_[t],goog.asserts.assert(t),t(this)};jspb.BinaryReader.prototype.readAny=function(t){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(t);var o=jspb.BinaryConstants.FieldType;switch(t){case o.DOUBLE:return this.readDouble();case o.FLOAT:return this.readFloat();case o.INT64:return this.readInt64();case o.UINT64:return this.readUint64();case o.INT32:return this.readInt32();case o.FIXED64:return this.readFixed64();case o.FIXED32:return this.readFixed32();case o.BOOL:return this.readBool();case o.STRING:return this.readString();case o.GROUP:goog.asserts.fail("Group field type not supported in readAny()");case o.MESSAGE:goog.asserts.fail("Message field type not supported in readAny()");case o.BYTES:return this.readBytes();case o.UINT32:return this.readUint32();case o.ENUM:return this.readEnum();case o.SFIXED32:return this.readSfixed32();case o.SFIXED64:return this.readSfixed64();case o.SINT32:return this.readSint32();case o.SINT64:return this.readSint64();case o.FHASH64:return this.readFixedHash64();case o.VHASH64:return this.readVarintHash64();default:goog.asserts.fail("Invalid field type in readAny()")}return 0};jspb.BinaryReader.prototype.readMessage=function(t,o){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var r=this.decoder_.getEnd(),n=this.decoder_.readUnsignedVarint32();n=this.decoder_.getCursor()+n,this.decoder_.setEnd(n),o(t,this),this.decoder_.setCursor(n),this.decoder_.setEnd(r)};jspb.BinaryReader.prototype.readGroup=function(t,o,r){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),goog.asserts.assert(this.nextField_==t),r(o,this),this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(goog.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)};jspb.BinaryReader.prototype.getFieldDecoder=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var t=this.decoder_.readUnsignedVarint32(),o=this.decoder_.getCursor(),r=o+t;return t=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),o,t),this.decoder_.setCursor(r),t};jspb.BinaryReader.prototype.readInt32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()};jspb.BinaryReader.prototype.readInt32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()};jspb.BinaryReader.prototype.readInt64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()};jspb.BinaryReader.prototype.readInt64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()};jspb.BinaryReader.prototype.readUint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()};jspb.BinaryReader.prototype.readUint32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()};jspb.BinaryReader.prototype.readUint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()};jspb.BinaryReader.prototype.readUint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()};jspb.BinaryReader.prototype.readSint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()};jspb.BinaryReader.prototype.readSint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()};jspb.BinaryReader.prototype.readSint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()};jspb.BinaryReader.prototype.readFixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()};jspb.BinaryReader.prototype.readFixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()};jspb.BinaryReader.prototype.readFixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()};jspb.BinaryReader.prototype.readSfixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()};jspb.BinaryReader.prototype.readSfixed32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()};jspb.BinaryReader.prototype.readSfixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()};jspb.BinaryReader.prototype.readSfixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()};jspb.BinaryReader.prototype.readFloat=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()};jspb.BinaryReader.prototype.readDouble=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()};jspb.BinaryReader.prototype.readBool=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()};jspb.BinaryReader.prototype.readEnum=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()};jspb.BinaryReader.prototype.readString=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var t=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(t)};jspb.BinaryReader.prototype.readBytes=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var t=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(t)};jspb.BinaryReader.prototype.readVarintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()};jspb.BinaryReader.prototype.readSintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()};jspb.BinaryReader.prototype.readSplitVarint64=function(t){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(t)};jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(t){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(function(o,r){return jspb.utils.fromZigzag64(o,r,t)})};jspb.BinaryReader.prototype.readFixedHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()};jspb.BinaryReader.prototype.readSplitFixed64=function(t){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(t)};jspb.BinaryReader.prototype.readPackedField_=function(t){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();o=this.decoder_.getCursor()+o;for(var r=[];this.decoder_.getCursor()<o;)r.push(t.call(this.decoder_));return r};jspb.BinaryReader.prototype.readPackedInt32=function(){return this.readPackedField_(this.decoder_.readSignedVarint32)};jspb.BinaryReader.prototype.readPackedInt32String=function(){return this.readPackedField_(this.decoder_.readSignedVarint32String)};jspb.BinaryReader.prototype.readPackedInt64=function(){return this.readPackedField_(this.decoder_.readSignedVarint64)};jspb.BinaryReader.prototype.readPackedInt64String=function(){return this.readPackedField_(this.decoder_.readSignedVarint64String)};jspb.BinaryReader.prototype.readPackedUint32=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32)};jspb.BinaryReader.prototype.readPackedUint32String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32String)};jspb.BinaryReader.prototype.readPackedUint64=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64)};jspb.BinaryReader.prototype.readPackedUint64String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64String)};jspb.BinaryReader.prototype.readPackedSint32=function(){return this.readPackedField_(this.decoder_.readZigzagVarint32)};jspb.BinaryReader.prototype.readPackedSint64=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64)};jspb.BinaryReader.prototype.readPackedSint64String=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64String)};jspb.BinaryReader.prototype.readPackedFixed32=function(){return this.readPackedField_(this.decoder_.readUint32)};jspb.BinaryReader.prototype.readPackedFixed64=function(){return this.readPackedField_(this.decoder_.readUint64)};jspb.BinaryReader.prototype.readPackedFixed64String=function(){return this.readPackedField_(this.decoder_.readUint64String)};jspb.BinaryReader.prototype.readPackedSfixed32=function(){return this.readPackedField_(this.decoder_.readInt32)};jspb.BinaryReader.prototype.readPackedSfixed64=function(){return this.readPackedField_(this.decoder_.readInt64)};jspb.BinaryReader.prototype.readPackedSfixed64String=function(){return this.readPackedField_(this.decoder_.readInt64String)};jspb.BinaryReader.prototype.readPackedFloat=function(){return this.readPackedField_(this.decoder_.readFloat)};jspb.BinaryReader.prototype.readPackedDouble=function(){return this.readPackedField_(this.decoder_.readDouble)};jspb.BinaryReader.prototype.readPackedBool=function(){return this.readPackedField_(this.decoder_.readBool)};jspb.BinaryReader.prototype.readPackedEnum=function(){return this.readPackedField_(this.decoder_.readEnum)};jspb.BinaryReader.prototype.readPackedVarintHash64=function(){return this.readPackedField_(this.decoder_.readVarintHash64)};jspb.BinaryReader.prototype.readPackedFixedHash64=function(){return this.readPackedField_(this.decoder_.readFixedHash64)};jspb.BinaryEncoder=function(){this.buffer_=[]};jspb.BinaryEncoder.prototype.length=function(){return this.buffer_.length};jspb.BinaryEncoder.prototype.end=function(){var t=this.buffer_;return this.buffer_=[],t};jspb.BinaryEncoder.prototype.writeSplitVarint64=function(t,o){for(goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32);0<o||127<t;)this.buffer_.push(t&127|128),t=(t>>>7|o<<25)>>>0,o>>>=7;this.buffer_.push(t)};jspb.BinaryEncoder.prototype.writeSplitFixed64=function(t,o){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),this.writeUint32(t),this.writeUint32(o)};jspb.BinaryEncoder.prototype.writeUnsignedVarint32=function(t){for(goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32);127<t;)this.buffer_.push(t&127|128),t>>>=7;this.buffer_.push(t)};jspb.BinaryEncoder.prototype.writeSignedVarint32=function(t){if(goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),0<=t)this.writeUnsignedVarint32(t);else{for(var o=0;9>o;o++)this.buffer_.push(t&127|128),t>>=7;this.buffer_.push(1)}};jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitInt64(t),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeSignedVarint64=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(t),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeZigzagVarint32=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeUnsignedVarint32((t<<1^t>>31)>>>0)};jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitZigzag64(t),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeZigzagVarint64String=function(t){this.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(t))};jspb.BinaryEncoder.prototype.writeZigzagVarintHash64=function(t){var o=this;jspb.utils.splitHash64(t),jspb.utils.toZigzag64(jspb.utils.split64Low,jspb.utils.split64High,function(r,n){o.writeSplitVarint64(r>>>0,n>>>0)})};jspb.BinaryEncoder.prototype.writeUint8=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=t&&256>t),this.buffer_.push(t>>>0&255)};jspb.BinaryEncoder.prototype.writeUint16=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=t&&65536>t),this.buffer_.push(t>>>0&255),this.buffer_.push(t>>>8&255)};jspb.BinaryEncoder.prototype.writeUint32=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.buffer_.push(t>>>0&255),this.buffer_.push(t>>>8&255),this.buffer_.push(t>>>16&255),this.buffer_.push(t>>>24&255)};jspb.BinaryEncoder.prototype.writeUint64=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitUint64(t),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeInt8=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(-128<=t&&128>t),this.buffer_.push(t>>>0&255)};jspb.BinaryEncoder.prototype.writeInt16=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(-32768<=t&&32768>t),this.buffer_.push(t>>>0&255),this.buffer_.push(t>>>8&255)};jspb.BinaryEncoder.prototype.writeInt32=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.buffer_.push(t>>>0&255),this.buffer_.push(t>>>8&255),this.buffer_.push(t>>>16&255),this.buffer_.push(t>>>24&255)};jspb.BinaryEncoder.prototype.writeInt64=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(t),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeInt64String=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(+t>=-jspb.BinaryConstants.TWO_TO_63&&+t<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(t)),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeFloat=function(t){goog.asserts.assert(t===1/0||t===-1/0||isNaN(t)||t>=-jspb.BinaryConstants.FLOAT32_MAX&&t<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(t),this.writeUint32(jspb.utils.split64Low)};jspb.BinaryEncoder.prototype.writeDouble=function(t){goog.asserts.assert(t===1/0||t===-1/0||isNaN(t)||t>=-jspb.BinaryConstants.FLOAT64_MAX&&t<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(t),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeBool=function(t){goog.asserts.assert(typeof t=="boolean"||typeof t=="number"),this.buffer_.push(t?1:0)};jspb.BinaryEncoder.prototype.writeEnum=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32(t)};jspb.BinaryEncoder.prototype.writeBytes=function(t){this.buffer_.push.apply(this.buffer_,t)};jspb.BinaryEncoder.prototype.writeVarintHash64=function(t){jspb.utils.splitHash64(t),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeFixedHash64=function(t){jspb.utils.splitHash64(t),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeString=function(t){for(var o=this.buffer_.length,r=0;r<t.length;r++){var n=t.charCodeAt(r);if(128>n)this.buffer_.push(n);else if(2048>n)this.buffer_.push(n>>6|192),this.buffer_.push(n&63|128);else if(65536>n)if(55296<=n&&56319>=n&&r+1<t.length){var i=t.charCodeAt(r+1);56320<=i&&57343>=i&&(n=1024*(n-55296)+i-56320+65536,this.buffer_.push(n>>18|240),this.buffer_.push(n>>12&63|128),this.buffer_.push(n>>6&63|128),this.buffer_.push(n&63|128),r++)}else this.buffer_.push(n>>12|224),this.buffer_.push(n>>6&63|128),this.buffer_.push(n&63|128)}return this.buffer_.length-o};jspb.arith={};jspb.arith.UInt64=function(t,o){this.lo=t,this.hi=o};jspb.arith.UInt64.prototype.cmp=function(t){return this.hi<t.hi||this.hi==t.hi&&this.lo<t.lo?-1:this.hi==t.hi&&this.lo==t.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(t){return new jspb.arith.UInt64((this.lo+t.lo&4294967295)>>>0>>>0,((this.hi+t.hi&4294967295)>>>0)+(4294967296<=this.lo+t.lo?1:0)>>>0)};jspb.arith.UInt64.prototype.sub=function(t){return new jspb.arith.UInt64((this.lo-t.lo&4294967295)>>>0>>>0,((this.hi-t.hi&4294967295)>>>0)-(0>this.lo-t.lo?1:0)>>>0)};jspb.arith.UInt64.mul32x32=function(t,o){var r=t&65535;t>>>=16;var n=o&65535,i=o>>>16;for(o=r*n+65536*(r*i&65535)+65536*(t*n&65535),r=t*i+(r*i>>>16)+(t*n>>>16);4294967296<=o;)o-=4294967296,r+=1;return new jspb.arith.UInt64(o>>>0,r>>>0)};jspb.arith.UInt64.prototype.mul=function(t){var o=jspb.arith.UInt64.mul32x32(this.lo,t);return t=jspb.arith.UInt64.mul32x32(this.hi,t),t.hi=t.lo,t.lo=0,o.add(t)};jspb.arith.UInt64.prototype.div=function(t){if(t==0)return[];var o=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(this.lo,this.hi);t=new jspb.arith.UInt64(t,0);for(var n=new jspb.arith.UInt64(1,0);!t.msb();)t=t.leftShift(),n=n.leftShift();for(;!n.zero();)0>=t.cmp(r)&&(o=o.add(n),r=r.sub(t)),t=t.rightShift(),n=n.rightShift();return[o,r]};jspb.arith.UInt64.prototype.toString=function(){for(var t="",o=this;!o.zero();){o=o.div(10);var r=o[0];t=o[1].lo+t,o=r}return t==""&&(t="0"),t};jspb.arith.UInt64.fromString=function(t){for(var o=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(0,0),n=0;n<t.length;n++){if("0">t[n]||"9"<t[n])return null;var i=parseInt(t[n],10);r.lo=i,o=o.mul(10).add(r)}return o};jspb.arith.UInt64.prototype.clone=function(){return new jspb.arith.UInt64(this.lo,this.hi)};jspb.arith.Int64=function(t,o){this.lo=t,this.hi=o};jspb.arith.Int64.prototype.add=function(t){return new jspb.arith.Int64((this.lo+t.lo&4294967295)>>>0>>>0,((this.hi+t.hi&4294967295)>>>0)+(4294967296<=this.lo+t.lo?1:0)>>>0)};jspb.arith.Int64.prototype.sub=function(t){return new jspb.arith.Int64((this.lo-t.lo&4294967295)>>>0>>>0,((this.hi-t.hi&4294967295)>>>0)-(0>this.lo-t.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 t=(this.hi&2147483648)!=0,o=new jspb.arith.UInt64(this.lo,this.hi);return t&&(o=new jspb.arith.UInt64(0,0).sub(o)),(t?"-":"")+o.toString()};jspb.arith.Int64.fromString=function(t){var o=0<t.length&&t[0]=="-";return o&&(t=t.substring(1)),t=jspb.arith.UInt64.fromString(t),t===null?null:(o&&(t=new jspb.arith.UInt64(0,0).sub(t)),new jspb.arith.Int64(t.lo,t.hi))};jspb.BinaryWriter=function(){this.blocks_=[],this.totalLength_=0,this.encoder_=new jspb.BinaryEncoder,this.bookmarks_=[]};jspb.BinaryWriter.prototype.appendUint8Array_=function(t){var o=this.encoder_.end();this.blocks_.push(o),this.blocks_.push(t),this.totalLength_+=o.length+t.length};jspb.BinaryWriter.prototype.beginDelimited_=function(t){return this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),t=this.encoder_.end(),this.blocks_.push(t),this.totalLength_+=t.length,t.push(this.totalLength_),t};jspb.BinaryWriter.prototype.endDelimited_=function(t){var o=t.pop();for(o=this.totalLength_+this.encoder_.length()-o,goog.asserts.assert(0<=o);127<o;)t.push(o&127|128),o>>>=7,this.totalLength_++;t.push(o),this.totalLength_++};jspb.BinaryWriter.prototype.writeSerializedMessage=function(t,o,r){this.appendUint8Array_(t.subarray(o,r))};jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(t,o,r){t!=null&&o!=null&&r!=null&&this.writeSerializedMessage(t,o,r)};jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]};jspb.BinaryWriter.prototype.getResultBuffer=function(){goog.asserts.assert(this.bookmarks_.length==0);for(var t=new Uint8Array(this.totalLength_+this.encoder_.length()),o=this.blocks_,r=o.length,n=0,i=0;i<r;i++){var s=o[i];t.set(s,n),n+=s.length}return o=this.encoder_.end(),t.set(o,n),n+=o.length,goog.asserts.assert(n==t.length),this.blocks_=[t],t};jspb.BinaryWriter.prototype.getResultBase64String=function(t){return goog.crypt.base64.encodeByteArray(this.getResultBuffer(),t)};jspb.BinaryWriter.prototype.beginSubMessage=function(t){this.bookmarks_.push(this.beginDelimited_(t))};jspb.BinaryWriter.prototype.endSubMessage=function(){goog.asserts.assert(0<=this.bookmarks_.length),this.endDelimited_(this.bookmarks_.pop())};jspb.BinaryWriter.prototype.writeFieldHeader_=function(t,o){goog.asserts.assert(1<=t&&t==Math.floor(t)),this.encoder_.writeUnsignedVarint32(8*t+o)};jspb.BinaryWriter.prototype.writeAny=function(t,o,r){var n=jspb.BinaryConstants.FieldType;switch(t){case n.DOUBLE:this.writeDouble(o,r);break;case n.FLOAT:this.writeFloat(o,r);break;case n.INT64:this.writeInt64(o,r);break;case n.UINT64:this.writeUint64(o,r);break;case n.INT32:this.writeInt32(o,r);break;case n.FIXED64:this.writeFixed64(o,r);break;case n.FIXED32:this.writeFixed32(o,r);break;case n.BOOL:this.writeBool(o,r);break;case n.STRING:this.writeString(o,r);break;case n.GROUP:goog.asserts.fail("Group field type not supported in writeAny()");break;case n.MESSAGE:goog.asserts.fail("Message field type not supported in writeAny()");break;case n.BYTES:this.writeBytes(o,r);break;case n.UINT32:this.writeUint32(o,r);break;case n.ENUM:this.writeEnum(o,r);break;case n.SFIXED32:this.writeSfixed32(o,r);break;case n.SFIXED64:this.writeSfixed64(o,r);break;case n.SINT32:this.writeSint32(o,r);break;case n.SINT64:this.writeSint64(o,r);break;case n.FHASH64:this.writeFixedHash64(o,r);break;case n.VHASH64:this.writeVarintHash64(o,r);break;default:goog.asserts.fail("Invalid field type in writeAny()")}};jspb.BinaryWriter.prototype.writeUnsignedVarint32_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(o))};jspb.BinaryWriter.prototype.writeSignedVarint32_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(o))};jspb.BinaryWriter.prototype.writeUnsignedVarint64_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint64(o))};jspb.BinaryWriter.prototype.writeSignedVarint64_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint64(o))};jspb.BinaryWriter.prototype.writeZigzagVarint32_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(o))};jspb.BinaryWriter.prototype.writeZigzagVarint64_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64(o))};jspb.BinaryWriter.prototype.writeZigzagVarint64String_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64String(o))};jspb.BinaryWriter.prototype.writeZigzagVarintHash64_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarintHash64(o))};jspb.BinaryWriter.prototype.writeInt32=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(t,o))};jspb.BinaryWriter.prototype.writeInt32String=function(t,o){o!=null&&(o=parseInt(o,10),goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(t,o))};jspb.BinaryWriter.prototype.writeInt64=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),this.writeSignedVarint64_(t,o))};jspb.BinaryWriter.prototype.writeInt64String=function(t,o){o!=null&&(o=jspb.arith.Int64.fromString(o),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(o.lo,o.hi))};jspb.BinaryWriter.prototype.writeUint32=function(t,o){o!=null&&(goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(t,o))};jspb.BinaryWriter.prototype.writeUint32String=function(t,o){o!=null&&(o=parseInt(o,10),goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(t,o))};jspb.BinaryWriter.prototype.writeUint64=function(t,o){o!=null&&(goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_64),this.writeUnsignedVarint64_(t,o))};jspb.BinaryWriter.prototype.writeUint64String=function(t,o){o!=null&&(o=jspb.arith.UInt64.fromString(o),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(o.lo,o.hi))};jspb.BinaryWriter.prototype.writeSint32=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeZigzagVarint32_(t,o))};jspb.BinaryWriter.prototype.writeSint64=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),this.writeZigzagVarint64_(t,o))};jspb.BinaryWriter.prototype.writeSintHash64=function(t,o){o!=null&&this.writeZigzagVarintHash64_(t,o)};jspb.BinaryWriter.prototype.writeSint64String=function(t,o){o!=null&&this.writeZigzagVarint64String_(t,o)};jspb.BinaryWriter.prototype.writeFixed32=function(t,o){o!=null&&(goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeUint32(o))};jspb.BinaryWriter.prototype.writeFixed64=function(t,o){o!=null&&(goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_64),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeUint64(o))};jspb.BinaryWriter.prototype.writeFixed64String=function(t,o){o!=null&&(o=jspb.arith.UInt64.fromString(o),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(o.lo,o.hi))};jspb.BinaryWriter.prototype.writeSfixed32=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeInt32(o))};jspb.BinaryWriter.prototype.writeSfixed64=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeInt64(o))};jspb.BinaryWriter.prototype.writeSfixed64String=function(t,o){o!=null&&(o=jspb.arith.Int64.fromString(o),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(o.lo,o.hi))};jspb.BinaryWriter.prototype.writeFloat=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeFloat(o))};jspb.BinaryWriter.prototype.writeDouble=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeDouble(o))};jspb.BinaryWriter.prototype.writeBool=function(t,o){o!=null&&(goog.asserts.assert(typeof o=="boolean"||typeof o=="number"),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeBool(o))};jspb.BinaryWriter.prototype.writeEnum=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(o))};jspb.BinaryWriter.prototype.writeString=function(t,o){o!=null&&(t=this.beginDelimited_(t),this.encoder_.writeString(o),this.endDelimited_(t))};jspb.BinaryWriter.prototype.writeBytes=function(t,o){o!=null&&(o=jspb.utils.byteSourceToUint8Array(o),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(o.length),this.appendUint8Array_(o))};jspb.BinaryWriter.prototype.writeMessage=function(t,o,r){o!=null&&(t=this.beginDelimited_(t),r(o,this),this.endDelimited_(t))};jspb.BinaryWriter.prototype.writeMessageSet=function(t,o,r){o!=null&&(this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.START_GROUP),this.writeFieldHeader_(2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t),t=this.beginDelimited_(3),r(o,this),this.endDelimited_(t),this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.END_GROUP))};jspb.BinaryWriter.prototype.writeGroup=function(t,o,r){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.START_GROUP),r(o,this),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.END_GROUP))};jspb.BinaryWriter.prototype.writeFixedHash64=function(t,o){o!=null&&(goog.asserts.assert(o.length==8),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeFixedHash64(o))};jspb.BinaryWriter.prototype.writeVarintHash64=function(t,o){o!=null&&(goog.asserts.assert(o.length==8),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeVarintHash64(o))};jspb.BinaryWriter.prototype.writeSplitFixed64=function(t,o,r){this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(o,r)};jspb.BinaryWriter.prototype.writeSplitVarint64=function(t,o,r){this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(o,r)};jspb.BinaryWriter.prototype.writeSplitZigzagVarint64=function(t,o,r){this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT);var n=this.encoder_;jspb.utils.toZigzag64(o,r,function(i,s){n.writeSplitVarint64(i>>>0,s>>>0)})};jspb.BinaryWriter.prototype.writeRepeatedInt32=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeSignedVarint32_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedInt32String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeInt32String(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedInt64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeSignedVarint64_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSplitFixed64=function(t,o,r,n){if(o!=null)for(var i=0;i<o.length;i++)this.writeSplitFixed64(t,r(o[i]),n(o[i]))};jspb.BinaryWriter.prototype.writeRepeatedSplitVarint64=function(t,o,r,n){if(o!=null)for(var i=0;i<o.length;i++)this.writeSplitVarint64(t,r(o[i]),n(o[i]))};jspb.BinaryWriter.prototype.writeRepeatedSplitZigzagVarint64=function(t,o,r,n){if(o!=null)for(var i=0;i<o.length;i++)this.writeSplitZigzagVarint64(t,r(o[i]),n(o[i]))};jspb.BinaryWriter.prototype.writeRepeatedInt64String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeInt64String(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedUint32=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeUnsignedVarint32_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedUint32String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeUint32String(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedUint64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeUnsignedVarint64_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedUint64String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeUint64String(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSint32=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeZigzagVarint32_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSint64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeZigzagVarint64_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSint64String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeZigzagVarint64String_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSintHash64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeZigzagVarintHash64_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedFixed32=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeFixed32(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedFixed64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeFixed64(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedFixed64String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeFixed64String(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSfixed32=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeSfixed32(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSfixed64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeSfixed64(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSfixed64String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeSfixed64String(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedFloat=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeFloat(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedDouble=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeDouble(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedBool=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeBool(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedEnum=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeEnum(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedString=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeString(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedBytes=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeBytes(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedMessage=function(t,o,r){if(o!=null)for(var n=0;n<o.length;n++){var i=this.beginDelimited_(t);r(o[n],this),this.endDelimited_(i)}};jspb.BinaryWriter.prototype.writeRepeatedGroup=function(t,o,r){if(o!=null)for(var n=0;n<o.length;n++)this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.START_GROUP),r(o[n],this),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.END_GROUP)};jspb.BinaryWriter.prototype.writeRepeatedFixedHash64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeFixedHash64(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedVarintHash64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeVarintHash64(t,o[r])};jspb.BinaryWriter.prototype.writePackedInt32=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeSignedVarint32(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedInt32String=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeSignedVarint32(parseInt(o[r],10));this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedInt64=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeSignedVarint64(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSplitFixed64=function(t,o,r,n){if(o!=null){t=this.beginDelimited_(t);for(var i=0;i<o.length;i++)this.encoder_.writeSplitFixed64(r(o[i]),n(o[i]));this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSplitVarint64=function(t,o,r,n){if(o!=null){t=this.beginDelimited_(t);for(var i=0;i<o.length;i++)this.encoder_.writeSplitVarint64(r(o[i]),n(o[i]));this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSplitZigzagVarint64=function(t,o,r,n){if(o!=null){t=this.beginDelimited_(t);for(var i=this.encoder_,s=0;s<o.length;s++)jspb.utils.toZigzag64(r(o[s]),n(o[s]),function(p,u){i.writeSplitVarint64(p>>>0,u>>>0)});this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedInt64String=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++){var n=jspb.arith.Int64.fromString(o[r]);this.encoder_.writeSplitVarint64(n.lo,n.hi)}this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedUint32=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeUnsignedVarint32(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedUint32String=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeUnsignedVarint32(parseInt(o[r],10));this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedUint64=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeUnsignedVarint64(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedUint64String=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++){var n=jspb.arith.UInt64.fromString(o[r]);this.encoder_.writeSplitVarint64(n.lo,n.hi)}this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSint32=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeZigzagVarint32(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSint64=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeZigzagVarint64(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSint64String=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(o[r]));this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSintHash64=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeZigzagVarintHash64(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedFixed32=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*o.length),t=0;t<o.length;t++)this.encoder_.writeUint32(o[t])};jspb.BinaryWriter.prototype.writePackedFixed64=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*o.length),t=0;t<o.length;t++)this.encoder_.writeUint64(o[t])};jspb.BinaryWriter.prototype.writePackedFixed64String=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*o.length),t=0;t<o.length;t++){var r=jspb.arith.UInt64.fromString(o[t]);this.encoder_.writeSplitFixed64(r.lo,r.hi)}};jspb.BinaryWriter.prototype.writePackedSfixed32=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*o.length),t=0;t<o.length;t++)this.encoder_.writeInt32(o[t])};jspb.BinaryWriter.prototype.writePackedSfixed64=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*o.length),t=0;t<o.length;t++)this.encoder_.writeInt64(o[t])};jspb.BinaryWriter.prototype.writePackedSfixed64String=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*o.length),t=0;t<o.length;t++)this.encoder_.writeInt64String(o[t])};jspb.BinaryWriter.prototype.writePackedFloat=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*o.length),t=0;t<o.length;t++)this.encoder_.writeFloat(o[t])};jspb.BinaryWriter.prototype.writePackedDouble=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*o.length),t=0;t<o.length;t++)this.encoder_.writeDouble(o[t])};jspb.BinaryWriter.prototype.writePackedBool=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(o.length),t=0;t<o.length;t++)this.encoder_.writeBool(o[t])};jspb.BinaryWriter.prototype.writePackedEnum=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeEnum(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedFixedHash64=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*o.length),t=0;t<o.length;t++)this.encoder_.writeFixedHash64(o[t])};jspb.BinaryWriter.prototype.writePackedVarintHash64=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeVarintHash64(o[r]);this.endDelimited_(t)}};jspb.Map=function(t,o){this.arr_=t,this.valueCtor_=o,this.map_={},this.arrClean=!0,0<this.arr_.length&&this.loadFromArray_()};jspb.Map.prototype.loadFromArray_=function(){for(var t=0;t<this.arr_.length;t++){var o=this.arr_[t],r=o[0];this.map_[r.toString()]=new jspb.Map.Entry_(r,o[1])}this.arrClean=!0};jspb.Map.prototype.toArray=function(){if(this.arrClean){if(this.valueCtor_){var t=this.map_,o;for(o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var r=t[o].valueWrapper;r&&r.toArray()}}}else{for(this.arr_.length=0,t=this.stringKeys_(),t.sort(),o=0;o<t.length;o++){var n=this.map_[t[o]];(r=n.valueWrapper)&&r.toArray(),this.arr_.push([n.key,n.value])}this.arrClean=!0}return this.arr_};jspb.Map.prototype.toObject=function(t,o){for(var r=this.toArray(),n=[],i=0;i<r.length;i++){var s=this.map_[r[i][0].toString()];this.wrapEntry_(s);var p=s.valueWrapper;p?(goog.asserts.assert(o),n.push([s.key,o(t,p)])):n.push([s.key,s.value])}return n};jspb.Map.fromObject=function(t,o,r){o=new jspb.Map([],o);for(var n=0;n<t.length;n++){var i=t[n][0],s=r(t[n][1]);o.set(i,s)}return o};jspb.Map.ArrayIteratorIterable_=function(t){this.idx_=0,this.arr_=t};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!="undefined"&&(jspb.Map.ArrayIteratorIterable_.prototype[Symbol.iterator]=function(){return this});jspb.Map.prototype.getLength=function(){return this.stringKeys_().length};jspb.Map.prototype.clear=function(){this.map_={},this.arrClean=!1};jspb.Map.prototype.del=function(t){t=t.toString();var o=this.map_.hasOwnProperty(t);return delete this.map_[t],this.arrClean=!1,o};jspb.Map.prototype.getEntryList=function(){var t=[],o=this.stringKeys_();o.sort();for(var r=0;r<o.length;r++){var n=this.map_[o[r]];t.push([n.key,n.value])}return t};jspb.Map.prototype.entries=function(){var t=[],o=this.stringKeys_();o.sort();for(var r=0;r<o.length;r++){var n=this.map_[o[r]];t.push([n.key,this.wrapEntry_(n)])}return new jspb.Map.ArrayIteratorIterable_(t)};jspb.Map.prototype.keys=function(){var t=[],o=this.stringKeys_();o.sort();for(var r=0;r<o.length;r++)t.push(this.map_[o[r]].key);return new jspb.Map.ArrayIteratorIterable_(t)};jspb.Map.prototype.values=function(){var t=[],o=this.stringKeys_();o.sort();for(var r=0;r<o.length;r++)t.push(this.wrapEntry_(this.map_[o[r]]));return new jspb.Map.ArrayIteratorIterable_(t)};jspb.Map.prototype.forEach=function(t,o){var r=this.stringKeys_();r.sort();for(var n=0;n<r.length;n++){var i=this.map_[r[n]];t.call(o,this.wrapEntry_(i),i.key,this)}};jspb.Map.prototype.set=function(t,o){var r=new jspb.Map.Entry_(t);return this.valueCtor_?(r.valueWrapper=o,r.value=o.toArray()):r.value=o,this.map_[t.toString()]=r,this.arrClean=!1,this};jspb.Map.prototype.wrapEntry_=function(t){return this.valueCtor_?(t.valueWrapper||(t.valueWrapper=new this.valueCtor_(t.value)),t.valueWrapper):t.value};jspb.Map.prototype.get=function(t){if(t=this.map_[t.toString()])return this.wrapEntry_(t)};jspb.Map.prototype.has=function(t){return t.toString()in this.map_};jspb.Map.prototype.serializeBinary=function(t,o,r,n,i){var s=this.stringKeys_();s.sort();for(var p=0;p<s.length;p++){var u=this.map_[s[p]];o.beginSubMessage(t),r.call(o,1,u.key),this.valueCtor_?n.call(o,2,this.wrapEntry_(u),i):n.call(o,2,u.value),o.endSubMessage()}};jspb.Map.deserializeBinary=function(t,o,r,n,i,s,p){for(;o.nextField()&&!o.isEndGroup();){var u=o.getFieldNumber();u==1?s=r.call(o):u==2&&(t.valueCtor_?(goog.asserts.assert(i),p||(p=new t.valueCtor_),n.call(o,p,i)):p=n.call(o))}goog.asserts.assert(s!=null),goog.asserts.assert(p!=null),t.set(s,p)};jspb.Map.prototype.stringKeys_=function(){var t=this.map_,o=[],r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&o.push(r);return o};jspb.Map.Entry_=function(t,o){this.key=t,this.value=o,this.valueWrapper=void 0};jspb.ExtensionFieldInfo=function(t,o,r,n,i){this.fieldIndex=t,this.fieldName=o,this.ctor=r,this.toObjectFn=n,this.isRepeated=i};jspb.ExtensionFieldBinaryInfo=function(t,o,r,n,i,s){this.fieldInfo=t,this.binaryReaderFn=o,this.binaryWriterFn=r,this.binaryMessageSerializeFn=n,this.binaryMessageDeserializeFn=i,this.isPacked=s};jspb.ExtensionFieldInfo.prototype.isMessageType=function(){return!!this.ctor};jspb.Message=function(){};jspb.Message.GENERATE_TO_OBJECT=!0;jspb.Message.GENERATE_FROM_OBJECT=!goog.DISALLOW_TEST_ONLY_CODE;jspb.Message.GENERATE_TO_STRING=!0;jspb.Message.ASSUME_LOCAL_ARRAYS=!1;jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS=!0;jspb.Message.SUPPORTS_UINT8ARRAY_=typeof Uint8Array=="function";jspb.Message.prototype.getJsPbMessageId=function(){return this.messageId_};jspb.Message.getIndex_=function(t,o){return o+t.arrayIndexOffset_};jspb.Message.hiddenES6Property_=function(){};jspb.Message.getFieldNumber_=function(t,o){return o-t.arrayIndexOffset_};jspb.Message.initialize=function(t,o,r,n,i,s){if(t.wrappers_=null,o||(o=r?[r]:[]),t.messageId_=r?String(r):void 0,t.arrayIndexOffset_=r===0?-1:0,t.array=o,jspb.Message.initPivotAndExtensionObject_(t,n),t.convertedPrimitiveFields_={},jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS||(t.repeatedFields=i),i)for(o=0;o<i.length;o++)r=i[o],r<t.pivot_?(r=jspb.Message.getIndex_(t,r),t.array[r]=t.array[r]||jspb.Message.EMPTY_LIST_SENTINEL_):(jspb.Message.maybeInitEmptyExtensionObject_(t),t.extensionObject_[r]=t.extensionObject_[r]||jspb.Message.EMPTY_LIST_SENTINEL_);if(s&&s.length)for(o=0;o<s.length;o++)jspb.Message.computeOneofCase(t,s[o])};jspb.Message.EMPTY_LIST_SENTINEL_=goog.DEBUG&&Object.freeze?Object.freeze([]):[];jspb.Message.isArray_=function(t){return jspb.Message.ASSUME_LOCAL_ARRAYS?t instanceof Array:Array.isArray(t)};jspb.Message.isExtensionObject_=function(t){return t!==null&&typeof t=="object"&&!jspb.Message.isArray_(t)&&!(jspb.Message.SUPPORTS_UINT8ARRAY_&&t instanceof Uint8Array)};jspb.Message.initPivotAndExtensionObject_=function(t,o){var r=t.array.length,n=-1;if(r&&(n=r-1,r=t.array[n],jspb.Message.isExtensionObject_(r))){t.pivot_=jspb.Message.getFieldNumber_(t,n),t.extensionObject_=r;return}-1<o?(t.pivot_=Math.max(o,jspb.Message.getFieldNumber_(t,n+1)),t.extensionObject_=null):t.pivot_=Number.MAX_VALUE};jspb.Message.maybeInitEmptyExtensionObject_=function(t){var o=jspb.Message.getIndex_(t,t.pivot_);t.array[o]||(t.extensionObject_=t.array[o]={})};jspb.Message.toObjectList=function(t,o,r){for(var n=[],i=0;i<t.length;i++)n[i]=o.call(t[i],r,t[i]);return n};jspb.Message.toObjectExtension=function(t,o,r,n,i){for(var s in r){var p=r[s],u=n.call(t,p);if(u!=null){for(var h in p.fieldName)if(p.fieldName.hasOwnProperty(h))break;o[h]=p.toObjectFn?p.isRepeated?jspb.Message.toObjectList(u,p.toObjectFn,i):p.toObjectFn(i,u):u}}};jspb.Message.serializeBinaryExtensions=function(t,o,r,n){for(var i in r){var s=r[i],p=s.fieldInfo;if(!s.binaryWriterFn)throw Error("Message extension present that was generated without binary serialization support");var u=n.call(t,p);if(u!=null)if(p.isMessageType())if(s.binaryMessageSerializeFn)s.binaryWriterFn.call(o,p.fieldIndex,u,s.binaryMessageSerializeFn);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else s.binaryWriterFn.call(o,p.fieldIndex,u)}};jspb.Message.readBinaryExtension=function(t,o,r,n,i){var s=r[o.getFieldNumber()];if(s){if(r=s.fieldInfo,!s.binaryReaderFn)throw Error("Deserializing extension whose generated code does not support binary format");if(r.isMessageType()){var p=new r.ctor;s.binaryReaderFn.call(o,p,s.binaryMessageDeserializeFn)}else p=s.binaryReaderFn.call(o);r.isRepeated&&!s.isPacked?(o=n.call(t,r))?o.push(p):i.call(t,r,[p]):i.call(t,r,p)}else o.skipField()};jspb.Message.getField=function(t,o){if(o<t.pivot_){o=jspb.Message.getIndex_(t,o);var r=t.array[o];return r===jspb.Message.EMPTY_LIST_SENTINEL_?t.array[o]=[]:r}if(t.extensionObject_)return r=t.extensionObject_[o],r===jspb.Message.EMPTY_LIST_SENTINEL_?t.extensionObject_[o]=[]:r};jspb.Message.getRepeatedField=function(t,o){return jspb.Message.getField(t,o)};jspb.Message.getOptionalFloatingPointField=function(t,o){return t=jspb.Message.getField(t,o),t==null?t:+t};jspb.Message.getBooleanField=function(t,o){return t=jspb.Message.getField(t,o),t==null?t:!!t};jspb.Message.getRepeatedFloatingPointField=function(t,o){var r=jspb.Message.getRepeatedField(t,o);if(t.convertedPrimitiveFields_||(t.convertedPrimitiveFields_={}),!t.convertedPrimitiveFields_[o]){for(var n=0;n<r.length;n++)r[n]=+r[n];t.convertedPrimitiveFields_[o]=!0}return r};jspb.Message.getRepeatedBooleanField=function(t,o){var r=jspb.Message.getRepeatedField(t,o);if(t.convertedPrimitiveFields_||(t.convertedPrimitiveFields_={}),!t.convertedPrimitiveFields_[o]){for(var n=0;n<r.length;n++)r[n]=!!r[n];t.convertedPrimitiveFields_[o]=!0}return r};jspb.Message.bytesAsB64=function(t){return t==null||typeof t=="string"?t:jspb.Message.SUPPORTS_UINT8ARRAY_&&t instanceof Uint8Array?goog.crypt.base64.encodeByteArray(t):(goog.asserts.fail("Cannot coerce to b64 string: "+goog.typeOf(t)),null)};jspb.Message.bytesAsU8=function(t){return t==null||t instanceof Uint8Array?t:typeof t=="string"?goog.crypt.base64.decodeStringToUint8Array(t):(goog.asserts.fail("Cannot coerce to Uint8Array: "+goog.typeOf(t)),null)};jspb.Message.bytesListAsB64=function(t){return jspb.Message.assertConsistentTypes_(t),t.length&&typeof t[0]!="string"?goog.array.map(t,jspb.Message.bytesAsB64):t};jspb.Message.bytesListAsU8=function(t){return jspb.Message.assertConsistentTypes_(t),!t.length||t[0]instanceof Uint8Array?t:goog.array.map(t,jspb.Message.bytesAsU8)};jspb.Message.assertConsistentTypes_=function(t){if(goog.DEBUG&&t&&1<t.length){var o=goog.typeOf(t[0]);goog.array.forEach(t,function(r){goog.typeOf(r)!=o&&goog.asserts.fail("Inconsistent type in JSPB repeated field array. Got "+goog.typeOf(r)+" expected "+o)})}};jspb.Message.getFieldWithDefault=function(t,o,r){return t=jspb.Message.getField(t,o),t??r};jspb.Message.getBooleanFieldWithDefault=function(t,o,r){return t=jspb.Message.getBooleanField(t,o),t??r};jspb.Message.getFloatingPointFieldWithDefault=function(t,o,r){return t=jspb.Message.getOptionalFloatingPointField(t,o),t??r};jspb.Message.getFieldProto3=jspb.Message.getFieldWithDefault;jspb.Message.getMapField=function(t,o,r,n){if(t.wrappers_||(t.wrappers_={}),o in t.wrappers_)return t.wrappers_[o];var i=jspb.Message.getField(t,o);if(!i){if(r)return;i=[],jspb.Message.setField(t,o,i)}return t.wrappers_[o]=new jspb.Map(i,n)};jspb.Message.setField=function(t,o,r){return goog.asserts.assertInstanceof(t,jspb.Message),o<t.pivot_?t.array[jspb.Message.getIndex_(t,o)]=r:(jspb.Message.maybeInitEmptyExtensionObject_(t),t.extensionObject_[o]=r),t};jspb.Message.setProto3IntField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,0)};jspb.Message.setProto3FloatField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,0)};jspb.Message.setProto3BooleanField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,!1)};jspb.Message.setProto3StringField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,"")};jspb.Message.setProto3BytesField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,"")};jspb.Message.setProto3EnumField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,0)};jspb.Message.setProto3StringIntField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,"0")};jspb.Message.setFieldIgnoringDefault_=function(t,o,r,n){return goog.asserts.assertInstanceof(t,jspb.Message),r!==n?jspb.Message.setField(t,o,r):o<t.pivot_?t.array[jspb.Message.getIndex_(t,o)]=null:(jspb.Message.maybeInitEmptyExtensionObject_(t),delete t.extensionObject_[o]),t};jspb.Message.addToRepeatedField=function(t,o,r,n){return goog.asserts.assertInstanceof(t,jspb.Message),o=jspb.Message.getRepeatedField(t,o),n!=null?o.splice(n,0,r):o.push(r),t};jspb.Message.setOneofField=function(t,o,r,n){return goog.asserts.assertInstanceof(t,jspb.Message),(r=jspb.Message.computeOneofCase(t,r))&&r!==o&&n!==void 0&&(t.wrappers_&&r in t.wrappers_&&(t.wrappers_[r]=void 0),jspb.Message.setField(t,r,void 0)),jspb.Message.setField(t,o,n)};jspb.Message.computeOneofCase=function(t,o){for(var r,n,i=0;i<o.length;i++){var s=o[i],p=jspb.Message.getField(t,s);p!=null&&(r=s,n=p,jspb.Message.setField(t,s,void 0))}return r?(jspb.Message.setField(t,r,n),r):0};jspb.Message.getWrapperField=function(t,o,r,n){if(t.wrappers_||(t.wrappers_={}),!t.wrappers_[r]){var i=jspb.Message.getField(t,r);(n||i)&&(t.wrappers_[r]=new o(i))}return t.wrappers_[r]};jspb.Message.getRepeatedWrapperField=function(t,o,r){return jspb.Message.wrapRepeatedField_(t,o,r),o=t.wrappers_[r],o==jspb.Message.EMPTY_LIST_SENTINEL_&&(o=t.wrappers_[r]=[]),o};jspb.Message.wrapRepeatedField_=function(t,o,r){if(t.wrappers_||(t.wrappers_={}),!t.wrappers_[r]){for(var n=jspb.Message.getRepeatedField(t,r),i=[],s=0;s<n.length;s++)i[s]=new o(n[s]);t.wrappers_[r]=i}};jspb.Message.setWrapperField=function(t,o,r){goog.asserts.assertInstanceof(t,jspb.Message),t.wrappers_||(t.wrappers_={});var n=r&&r.toArray();return t.wrappers_[o]=r,jspb.Message.setField(t,o,n)};jspb.Message.setOneofWrapperField=function(t,o,r,n){goog.asserts.assertInstanceof(t,jspb.Message),t.wrappers_||(t.wrappers_={});var i=n&&n.toArray();return t.wrappers_[o]=n,jspb.Message.setOneofField(t,o,r,i)};jspb.Message.setRepeatedWrapperField=function(t,o,r){goog.asserts.assertInstanceof(t,jspb.Message),t.wrappers_||(t.wrappers_={}),r=r||[];for(var n=[],i=0;i<r.length;i++)n[i]=r[i].toArray();return t.wrappers_[o]=r,jspb.Message.setField(t,o,n)};jspb.Message.addToRepeatedWrapperField=function(t,o,r,n,i){jspb.Message.wrapRepeatedField_(t,n,o);var s=t.wrappers_[o];return s||(s=t.wrappers_[o]=[]),r=r||new n,t=jspb.Message.getRepeatedField(t,o),i!=null?(s.splice(i,0,r),t.splice(i,0,r.toArray())):(s.push(r),t.push(r.toArray())),r};jspb.Message.toMap=function(t,o,r,n){for(var i={},s=0;s<t.length;s++)i[o.call(t[s])]=r?r.call(t[s],n,t[s]):t[s];return i};jspb.Message.prototype.syncMapFields_=function(){if(this.wrappers_)for(var t in this.wrappers_){var o=this.wrappers_[t];if(Array.isArray(o))for(var r=0;r<o.length;r++)o[r]&&o[r].toArray();else o&&o.toArray()}};jspb.Message.prototype.toArray=function(){return this.syncMapFields_(),this.array};jspb.Message.GENERATE_TO_STRING&&(jspb.Message.prototype.toString=function(){return this.syncMapFields_(),this.array.toString()});jspb.Message.prototype.getExtension=function(t){if(this.extensionObject_){this.wrappers_||(this.wrappers_={});var o=t.fieldIndex;if(t.isRepeated){if(t.isMessageType())return this.wrappers_[o]||(this.wrappers_[o]=goog.array.map(this.extensionObject_[o]||[],function(r){return new t.ctor(r)})),this.wrappers_[o]}else if(t.isMessageType())return!this.wrappers_[o]&&this.extensionObject_[o]&&(this.wrappers_[o]=new t.ctor(this.extensionObject_[o])),this.wrappers_[o];return this.extensionObject_[o]}};jspb.Message.prototype.setExtension=function(t,o){this.wrappers_||(this.wrappers_={}),jspb.Message.maybeInitEmptyExtensionObject_(this);var r=t.fieldIndex;return t.isRepeated?(o=o||[],t.isMessageType()?(this.wrappers_[r]=o,this.extensionObject_[r]=goog.array.map(o,function(n){return n.toArray()})):this.extensionObject_[r]=o):t.isMessageType()?(this.wrappers_[r]=o,this.extensionObject_[r]=o&&o.toArray()):this.extensionObject_[r]=o,this};jspb.Message.difference=function(t,o){if(!(t instanceof o.constructor))throw Error("Messages have different types.");var r=t.toArray();o=o.toArray();var n=[],i=0,s=r.length>o.length?r.length:o.length;for(t.getJsPbMessageId()&&(n[0]=t.getJsPbMessageId(),i=1);i<s;i++)jspb.Message.compareFields(r[i],o[i])||(n[i]=o[i]);return new t.constructor(n)};jspb.Message.equals=function(t,o){return t==o||!(!t||!o)&&t instanceof o.constructor&&jspb.Message.compareFields(t.toArray(),o.toArray())};jspb.Message.compareExtensions=function(t,o){t=t||{},o=o||{};var r={},n;for(n in t)r[n]=0;for(n in o)r[n]=0;for(n in r)if(!jspb.Message.compareFields(t[n],o[n]))return!1;return!0};jspb.Message.compareFields=function(t,o){if(t==o)return!0;if(!goog.isObject(t)||!goog.isObject(o))return typeof t=="number"&&isNaN(t)||typeof o=="number"&&isNaN(o)?String(t)==String(o):!1;if(t.constructor!=o.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&t.constructor===Uint8Array){if(t.length!=o.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!=o[r])return!1;return!0}if(t.constructor===Array){var n=void 0,i=void 0,s=Math.max(t.length,o.length);for(r=0;r<s;r++){var p=t[r],u=o[r];if(p&&p.constructor==Object&&(goog.asserts.assert(n===void 0),goog.asserts.assert(r===t.length-1),n=p,p=void 0),u&&u.constructor==Object&&(goog.asserts.assert(i===void 0),goog.asserts.assert(r===o.length-1),i=u,u=void 0),!jspb.Message.compareFields(p,u))return!1}return n||i?(n=n||{},i=i||{},jspb.Message.compareExtensions(n,i)):!0}if(t.constructor===Object)return jspb.Message.compareExtensions(t,o);throw Error("Invalid type in JSPB array")};jspb.Message.prototype.cloneMessage=function(){return jspb.Message.cloneMessage(this)};jspb.Message.prototype.clone=function(){return jspb.Message.cloneMessage(this)};jspb.Message.clone=function(t){return jspb.Message.cloneMessage(t)};jspb.Message.cloneMessage=function(t){return new t.constructor(jspb.Message.clone_(t.toArray()))};jspb.Message.copyInto=function(t,o){goog.asserts.assertInstanceof(t,jspb.Message),goog.asserts.assertInstanceof(o,jspb.Message),goog.asserts.assert(t.constructor==o.constructor,"Copy source and target message should have the same type."),t=jspb.Message.clone(t);for(var r=o.toArray(),n=t.toArray(),i=r.length=0;i<n.length;i++)r[i]=n[i];o.wrappers_=t.wrappers_,o.extensionObject_=t.extensionObject_};jspb.Message.clone_=function(t){if(Array.isArray(t)){for(var o=Array(t.length),r=0;r<t.length;r++){var n=t[r];n!=null&&(o[r]=typeof n=="object"?jspb.Message.clone_(goog.asserts.assert(n)):n)}return o}if(jspb.Message.SUPPORTS_UINT8ARRAY_&&t instanceof Uint8Array)return new Uint8Array(t);o={};for(r in t)n=t[r],n!=null&&(o[r]=typeof n=="object"?jspb.Message.clone_(goog.asserts.assert(n)):n);return o};jspb.Message.registerMessageType=function(t,o){o.messageId=t};jspb.Message.messageSetExtensions={};jspb.Message.messageSetExtensionsBinary={};jspb.Export={};typeof exports=="object"&&(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)});var is=H(ns=>{var g=ur(),j=g,ge=function(){return this?this:typeof window!="undefined"?window:typeof ge!="undefined"?ge:typeof self!="undefined"?self:Function("return this")()}.call(null);j.exportSymbol("proto.google.protobuf.DescriptorProto",null,ge);j.exportSymbol("proto.google.protobuf.DescriptorProto.ExtensionRange",null,ge);j.exportSymbol("proto.google.protobuf.DescriptorProto.ReservedRange",null,ge);j.exportSymbol("proto.google.protobuf.EnumDescriptorProto",null,ge);j.exportSymbol("proto.google.protobuf.EnumDescriptorProto.EnumReservedRange",null,ge);j.exportSymbol("proto.google.protobuf.EnumOptions",null,ge);j.exportSymbol("proto.google.protobuf.EnumValueDescriptorProto",null,ge);j.exportSymbol("proto.google.protobuf.EnumValueOptions",null,ge);j.exportSymbol("proto.google.protobuf.ExtensionRangeOptions",null,ge);j.exportSymbol("proto.google.protobuf.FieldDescriptorProto",null,ge);j.exportSymbol("proto.google.protobuf.FieldDescriptorProto.Label",null,ge);j.exportSymbol("proto.google.protobuf.FieldDescriptorProto.Type",null,ge);j.exportSymbol("proto.google.protobuf.FieldOptions",null,ge);j.exportSymbol("proto.google.protobuf.FieldOptions.CType",null,ge);j.exportSymbol("proto.google.protobuf.FieldOptions.JSType",null,ge);j.exportSymbol("proto.google.protobuf.FileDescriptorProto",null,ge);j.exportSymbol("proto.google.protobuf.FileDescriptorSet",null,ge);j.exportSymbol("proto.google.protobuf.FileOptions",null,ge);j.exportSymbol("proto.google.protobuf.FileOptions.OptimizeMode",null,ge);j.exportSymbol("proto.google.protobuf.GeneratedCodeInfo",null,ge);j.exportSymbol("proto.google.protobuf.GeneratedCodeInfo.Annotation",null,ge);j.exportSymbol("proto.google.protobuf.MessageOptions",null,ge);j.exportSymbol("proto.google.protobuf.MethodDescriptorProto",null,ge);j.exportSymbol("proto.google.protobuf.MethodOptions",null,ge);j.exportSymbol("proto.google.protobuf.MethodOptions.IdempotencyLevel",null,ge);j.exportSymbol("proto.google.protobuf.OneofDescriptorProto",null,ge);j.exportSymbol("proto.google.protobuf.OneofOptions",null,ge);j.exportSymbol("proto.google.protobuf.ServiceDescriptorProto",null,ge);j.exportSymbol("proto.google.protobuf.ServiceOptions",null,ge);j.exportSymbol("proto.google.protobuf.SourceCodeInfo",null,ge);j.exportSymbol("proto.google.protobuf.SourceCodeInfo.Location",null,ge);j.exportSymbol("proto.google.protobuf.UninterpretedOption",null,ge);j.exportSymbol("proto.google.protobuf.UninterpretedOption.NamePart",null,ge);proto.google.protobuf.FileDescriptorSet=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.FileDescriptorSet.repeatedFields_,null)};j.inherits(proto.google.protobuf.FileDescriptorSet,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.FileDescriptorSet.displayName="proto.google.protobuf.FileDescriptorSet");proto.google.protobuf.FileDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.FileDescriptorProto.repeatedFields_,null)};j.inherits(proto.google.protobuf.FileDescriptorProto,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.FileDescriptorProto.displayName="proto.google.protobuf.FileDescriptorProto");proto.google.protobuf.DescriptorProto=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.DescriptorProto.repeatedFields_,null)};j.inherits(proto.google.protobuf.DescriptorProto,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.DescriptorProto.displayName="proto.google.protobuf.DescriptorProto");proto.google.protobuf.DescriptorProto.ExtensionRange=function(t){g.Message.initialize(this,t,0,-1,null,null)};j.inherits(proto.google.protobuf.DescriptorProto.ExtensionRange,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.DescriptorProto.ExtensionRange.displayName="proto.google.protobuf.DescriptorProto.ExtensionRange");proto.google.protobuf.DescriptorProto.ReservedRange=function(t){g.Message.initialize(this,t,0,-1,null,null)};j.inherits(proto.google.protobuf.DescriptorProto.ReservedRange,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.DescriptorProto.ReservedRange.displayName="proto.google.protobuf.DescriptorProto.ReservedRange");proto.google.protobuf.ExtensionRangeOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.ExtensionRangeOptions.repeatedFields_,null)};j.inherits(proto.google.protobuf.ExtensionRangeOptions,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.ExtensionRangeOptions.displayName="proto.google.protobuf.ExtensionRangeOptions");proto.google.protobuf.ExtensionRangeOptions.extensions={};proto.google.protobuf.ExtensionRangeOptions.extensionsBinary={};proto.google.protobuf.FieldDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,null,null)};j.inherits(proto.google.protobuf.FieldDescriptorProto,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.FieldDescriptorProto.displayName="proto.google.protobuf.FieldDescriptorProto");proto.google.protobuf.OneofDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,null,null)};j.inherits(proto.google.protobuf.OneofDescriptorProto,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.OneofDescriptorProto.displayName="proto.google.protobuf.OneofDescriptorProto");proto.google.protobuf.EnumDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.EnumDescriptorProto.repeatedFields_,null)};j.inherits(proto.google.protobuf.EnumDescriptorProto,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumDescriptorProto.displayName="proto.google.protobuf.EnumDescriptorProto");proto.google.protobuf.EnumDescriptorProto.EnumReservedRange=function(t){g.Message.initialize(this,t,0,-1,null,null)};j.inherits(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.displayName="proto.google.protobuf.EnumDescriptorProto.EnumReservedRange");proto.google.protobuf.EnumValueDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,null,null)};j.inherits(proto.google.protobuf.EnumValueDescriptorProto,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumValueDescriptorProto.displayName="proto.google.protobuf.EnumValueDescriptorProto");proto.google.protobuf.ServiceDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.ServiceDescriptorProto.repeatedFields_,null)};j.inherits(proto.google.protobuf.ServiceDescriptorProto,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.ServiceDescriptorProto.displayName="proto.google.protobuf.ServiceDescriptorProto");proto.google.protobuf.MethodDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,null,null)};j.inherits(proto.google.protobuf.MethodDescriptorProto,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.MethodDescriptorProto.displayName="proto.google.protobuf.MethodDescriptorProto");proto.google.protobuf.FileOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.FileOptions.repeatedFields_,null)};j.inherits(proto.google.protobuf.FileOptions,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.FileOptions.displayName="proto.google.protobuf.FileOptions");proto.google.protobuf.FileOptions.extensions={};proto.google.protobuf.FileOptions.extensionsBinary={};proto.google.protobuf.MessageOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.MessageOptions.repeatedFields_,null)};j.inherits(proto.google.protobuf.MessageOptions,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.MessageOptions.displayName="proto.google.protobuf.MessageOptions");proto.google.protobuf.MessageOptions.extensions={};proto.google.protobuf.MessageOptions.extensionsBinary={};proto.google.protobuf.FieldOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.FieldOptions.repeatedFields_,null)};j.inherits(proto.google.protobuf.FieldOptions,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.FieldOptions.displayName="proto.google.protobuf.FieldOptions");proto.google.protobuf.FieldOptions.extensions={};proto.google.protobuf.FieldOptions.extensionsBinary={};proto.google.protobuf.OneofOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.OneofOptions.repeatedFields_,null)};j.inherits(proto.google.protobuf.OneofOptions,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.OneofOptions.displayName="proto.google.protobuf.OneofOptions");proto.google.protobuf.OneofOptions.extensions={};proto.google.protobuf.OneofOptions.extensionsBinary={};proto.google.protobuf.EnumOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.EnumOptions.repeatedFields_,null)};j.inherits(proto.google.protobuf.EnumOptions,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumOptions.displayName="proto.google.protobuf.EnumOptions");proto.google.protobuf.EnumOptions.extensions={};proto.google.protobuf.EnumOptions.extensionsBinary={};proto.google.protobuf.EnumValueOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.EnumValueOptions.repeatedFields_,null)};j.inherits(proto.google.protobuf.EnumValueOptions,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumValueOptions.displayName="proto.google.protobuf.EnumValueOptions");proto.google.protobuf.EnumValueOptions.extensions={};proto.google.protobuf.EnumValueOptions.extensionsBinary={};proto.google.protobuf.ServiceOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.ServiceOptions.repeatedFields_,null)};j.inherits(proto.google.protobuf.ServiceOptions,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.ServiceOptions.displayName="proto.google.protobuf.ServiceOptions");proto.google.protobuf.ServiceOptions.extensions={};proto.google.protobuf.ServiceOptions.extensionsBinary={};proto.google.protobuf.MethodOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.MethodOptions.repeatedFields_,null)};j.inherits(proto.google.protobuf.MethodOptions,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.MethodOptions.displayName="proto.google.protobuf.MethodOptions");proto.google.protobuf.MethodOptions.extensions={};proto.google.protobuf.MethodOptions.extensionsBinary={};proto.google.protobuf.UninterpretedOption=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.UninterpretedOption.repeatedFields_,null)};j.inherits(proto.google.protobuf.UninterpretedOption,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.UninterpretedOption.displayName="proto.google.protobuf.UninterpretedOption");proto.google.protobuf.UninterpretedOption.NamePart=function(t){g.Message.initialize(this,t,0,-1,null,null)};j.inherits(proto.google.protobuf.UninterpretedOption.NamePart,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.UninterpretedOption.NamePart.displayName="proto.google.protobuf.UninterpretedOption.NamePart");proto.google.protobuf.SourceCodeInfo=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.SourceCodeInfo.repeatedFields_,null)};j.inherits(proto.google.protobuf.SourceCodeInfo,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.SourceCodeInfo.displayName="proto.google.protobuf.SourceCodeInfo");proto.google.protobuf.SourceCodeInfo.Location=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.SourceCodeInfo.Location.repeatedFields_,null)};j.inherits(proto.google.protobuf.SourceCodeInfo.Location,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.SourceCodeInfo.Location.displayName="proto.google.protobuf.SourceCodeInfo.Location");proto.google.protobuf.GeneratedCodeInfo=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.GeneratedCodeInfo.repeatedFields_,null)};j.inherits(proto.google.protobuf.GeneratedCodeInfo,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.GeneratedCodeInfo.displayName="proto.google.protobuf.GeneratedCodeInfo");proto.google.protobuf.GeneratedCodeInfo.Annotation=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.GeneratedCodeInfo.Annotation.repeatedFields_,null)};j.inherits(proto.google.protobuf.GeneratedCodeInfo.Annotation,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.GeneratedCodeInfo.Annotation.displayName="proto.google.protobuf.GeneratedCodeInfo.Annotation");proto.google.protobuf.FileDescriptorSet.repeatedFields_=[1];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FileDescriptorSet.prototype.toObject=function(t){return proto.google.protobuf.FileDescriptorSet.toObject(t,this)},proto.google.protobuf.FileDescriptorSet.toObject=function(t,o){var r,n={fileList:g.Message.toObjectList(o.getFileList(),proto.google.protobuf.FileDescriptorProto.toObject,t)};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.FileDescriptorSet.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.FileDescriptorSet;return proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader(r,o)};proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.google.protobuf.FileDescriptorProto;o.readMessage(n,proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader),t.addFile(n);break;default:o.skipField();break}}return t};proto.google.protobuf.FileDescriptorSet.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getFileList(),r.length>0&&o.writeRepeatedMessage(1,r,proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter)};proto.google.protobuf.FileDescriptorSet.prototype.getFileList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.FileDescriptorProto,1)};proto.google.protobuf.FileDescriptorSet.prototype.setFileList=function(t){return g.Message.setRepeatedWrapperField(this,1,t)};proto.google.protobuf.FileDescriptorSet.prototype.addFile=function(t,o){return g.Message.addToRepeatedWrapperField(this,1,t,proto.google.protobuf.FileDescriptorProto,o)};proto.google.protobuf.FileDescriptorSet.prototype.clearFileList=function(){return this.setFileList([])};proto.google.protobuf.FileDescriptorProto.repeatedFields_=[3,10,11,4,5,6,7];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FileDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.FileDescriptorProto.toObject(t,this)},proto.google.protobuf.FileDescriptorProto.toObject=function(t,o){var r,n={name:(r=g.Message.getField(o,1))==null?void 0:r,pb_package:(r=g.Message.getField(o,2))==null?void 0:r,dependencyList:(r=g.Message.getRepeatedField(o,3))==null?void 0:r,publicDependencyList:(r=g.Message.getRepeatedField(o,10))==null?void 0:r,weakDependencyList:(r=g.Message.getRepeatedField(o,11))==null?void 0:r,messageTypeList:g.Message.toObjectList(o.getMessageTypeList(),proto.google.protobuf.DescriptorProto.toObject,t),enumTypeList:g.Message.toObjectList(o.getEnumTypeList(),proto.google.protobuf.EnumDescriptorProto.toObject,t),serviceList:g.Message.toObjectList(o.getServiceList(),proto.google.protobuf.ServiceDescriptorProto.toObject,t),extensionList:g.Message.toObjectList(o.getExtensionList(),proto.google.protobuf.FieldDescriptorProto.toObject,t),options:(r=o.getOptions())&&proto.google.protobuf.FileOptions.toObject(t,r),sourceCodeInfo:(r=o.getSourceCodeInfo())&&proto.google.protobuf.SourceCodeInfo.toObject(t,r),syntax:(r=g.Message.getField(o,12))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.FileDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.FileDescriptorProto;return proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var s=o.readString();t.setName(s);break;case 2:var s=o.readString();t.setPackage(s);break;case 3:var s=o.readString();t.addDependency(s);break;case 10:for(var i=o.isDelimited()?o.readPackedInt32():[o.readInt32()],n=0;n<i.length;n++)t.addPublicDependency(i[n]);break;case 11:for(var i=o.isDelimited()?o.readPackedInt32():[o.readInt32()],n=0;n<i.length;n++)t.addWeakDependency(i[n]);break;case 4:var s=new proto.google.protobuf.DescriptorProto;o.readMessage(s,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader),t.addMessageType(s);break;case 5:var s=new proto.google.protobuf.EnumDescriptorProto;o.readMessage(s,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader),t.addEnumType(s);break;case 6:var s=new proto.google.protobuf.ServiceDescriptorProto;o.readMessage(s,proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader),t.addService(s);break;case 7:var s=new proto.google.protobuf.FieldDescriptorProto;o.readMessage(s,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader),t.addExtension$(s);break;case 8:var s=new proto.google.protobuf.FileOptions;o.readMessage(s,proto.google.protobuf.FileOptions.deserializeBinaryFromReader),t.setOptions(s);break;case 9:var s=new proto.google.protobuf.SourceCodeInfo;o.readMessage(s,proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader),t.setSourceCodeInfo(s);break;case 12:var s=o.readString();t.setSyntax(s);break;default:o.skipField();break}}return t};proto.google.protobuf.FileDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=g.Message.getField(t,2),r!=null&&o.writeString(2,r),r=t.getDependencyList(),r.length>0&&o.writeRepeatedString(3,r),r=t.getPublicDependencyList(),r.length>0&&o.writeRepeatedInt32(10,r),r=t.getWeakDependencyList(),r.length>0&&o.writeRepeatedInt32(11,r),r=t.getMessageTypeList(),r.length>0&&o.writeRepeatedMessage(4,r,proto.google.protobuf.DescriptorProto.serializeBinaryToWriter),r=t.getEnumTypeList(),r.length>0&&o.writeRepeatedMessage(5,r,proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter),r=t.getServiceList(),r.length>0&&o.writeRepeatedMessage(6,r,proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter),r=t.getExtensionList(),r.length>0&&o.writeRepeatedMessage(7,r,proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter),r=t.getOptions(),r!=null&&o.writeMessage(8,r,proto.google.protobuf.FileOptions.serializeBinaryToWriter),r=t.getSourceCodeInfo(),r!=null&&o.writeMessage(9,r,proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter),r=g.Message.getField(t,12),r!=null&&o.writeString(12,r)};proto.google.protobuf.FileDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.FileDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.FileDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.FileDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.FileDescriptorProto.prototype.getPackage=function(){return g.Message.getFieldWithDefault(this,2,"")};proto.google.protobuf.FileDescriptorProto.prototype.setPackage=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.FileDescriptorProto.prototype.clearPackage=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.FileDescriptorProto.prototype.hasPackage=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.FileDescriptorProto.prototype.getDependencyList=function(){return g.Message.getRepeatedField(this,3)};proto.google.protobuf.FileDescriptorProto.prototype.setDependencyList=function(t){return g.Message.setField(this,3,t||[])};proto.google.protobuf.FileDescriptorProto.prototype.addDependency=function(t,o){return g.Message.addToRepeatedField(this,3,t,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearDependencyList=function(){return this.setDependencyList([])};proto.google.protobuf.FileDescriptorProto.prototype.getPublicDependencyList=function(){return g.Message.getRepeatedField(this,10)};proto.google.protobuf.FileDescriptorProto.prototype.setPublicDependencyList=function(t){return g.Message.setField(this,10,t||[])};proto.google.protobuf.FileDescriptorProto.prototype.addPublicDependency=function(t,o){return g.Message.addToRepeatedField(this,10,t,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearPublicDependencyList=function(){return this.setPublicDependencyList([])};proto.google.protobuf.FileDescriptorProto.prototype.getWeakDependencyList=function(){return g.Message.getRepeatedField(this,11)};proto.google.protobuf.FileDescriptorProto.prototype.setWeakDependencyList=function(t){return g.Message.setField(this,11,t||[])};proto.google.protobuf.FileDescriptorProto.prototype.addWeakDependency=function(t,o){return g.Message.addToRepeatedField(this,11,t,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearWeakDependencyList=function(){return this.setWeakDependencyList([])};proto.google.protobuf.FileDescriptorProto.prototype.getMessageTypeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto,4)};proto.google.protobuf.FileDescriptorProto.prototype.setMessageTypeList=function(t){return g.Message.setRepeatedWrapperField(this,4,t)};proto.google.protobuf.FileDescriptorProto.prototype.addMessageType=function(t,o){return g.Message.addToRepeatedWrapperField(this,4,t,proto.google.protobuf.DescriptorProto,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearMessageTypeList=function(){return this.setMessageTypeList([])};proto.google.protobuf.FileDescriptorProto.prototype.getEnumTypeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumDescriptorProto,5)};proto.google.protobuf.FileDescriptorProto.prototype.setEnumTypeList=function(t){return g.Message.setRepeatedWrapperField(this,5,t)};proto.google.protobuf.FileDescriptorProto.prototype.addEnumType=function(t,o){return g.Message.addToRepeatedWrapperField(this,5,t,proto.google.protobuf.EnumDescriptorProto,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearEnumTypeList=function(){return this.setEnumTypeList([])};proto.google.protobuf.FileDescriptorProto.prototype.getServiceList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.ServiceDescriptorProto,6)};proto.google.protobuf.FileDescriptorProto.prototype.setServiceList=function(t){return g.Message.setRepeatedWrapperField(this,6,t)};proto.google.protobuf.FileDescriptorProto.prototype.addService=function(t,o){return g.Message.addToRepeatedWrapperField(this,6,t,proto.google.protobuf.ServiceDescriptorProto,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearServiceList=function(){return this.setServiceList([])};proto.google.protobuf.FileDescriptorProto.prototype.getExtensionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.FieldDescriptorProto,7)};proto.google.protobuf.FileDescriptorProto.prototype.setExtensionList=function(t){return g.Message.setRepeatedWrapperField(this,7,t)};proto.google.protobuf.FileDescriptorProto.prototype.addExtension$=function(t,o){return g.Message.addToRepeatedWrapperField(this,7,t,proto.google.protobuf.FieldDescriptorProto,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearExtensionList=function(){return this.setExtensionList([])};proto.google.protobuf.FileDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.FileOptions,8)};proto.google.protobuf.FileDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,8,t)};proto.google.protobuf.FileDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.FileDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,8)!=null};proto.google.protobuf.FileDescriptorProto.prototype.getSourceCodeInfo=function(){return g.Message.getWrapperField(this,proto.google.protobuf.SourceCodeInfo,9)};proto.google.protobuf.FileDescriptorProto.prototype.setSourceCodeInfo=function(t){return g.Message.setWrapperField(this,9,t)};proto.google.protobuf.FileDescriptorProto.prototype.clearSourceCodeInfo=function(){return this.setSourceCodeInfo(void 0)};proto.google.protobuf.FileDescriptorProto.prototype.hasSourceCodeInfo=function(){return g.Message.getField(this,9)!=null};proto.google.protobuf.FileDescriptorProto.prototype.getSyntax=function(){return g.Message.getFieldWithDefault(this,12,"")};proto.google.protobuf.FileDescriptorProto.prototype.setSyntax=function(t){return g.Message.setField(this,12,t)};proto.google.protobuf.FileDescriptorProto.prototype.clearSyntax=function(){return g.Message.setField(this,12,void 0)};proto.google.protobuf.FileDescriptorProto.prototype.hasSyntax=function(){return g.Message.getField(this,12)!=null};proto.google.protobuf.DescriptorProto.repeatedFields_=[2,6,3,4,5,8,9,10];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.DescriptorProto.toObject(t,this)},proto.google.protobuf.DescriptorProto.toObject=function(t,o){var r,n={name:(r=g.Message.getField(o,1))==null?void 0:r,fieldList:g.Message.toObjectList(o.getFieldList(),proto.google.protobuf.FieldDescriptorProto.toObject,t),extensionList:g.Message.toObjectList(o.getExtensionList(),proto.google.protobuf.FieldDescriptorProto.toObject,t),nestedTypeList:g.Message.toObjectList(o.getNestedTypeList(),proto.google.protobuf.DescriptorProto.toObject,t),enumTypeList:g.Message.toObjectList(o.getEnumTypeList(),proto.google.protobuf.EnumDescriptorProto.toObject,t),extensionRangeList:g.Message.toObjectList(o.getExtensionRangeList(),proto.google.protobuf.DescriptorProto.ExtensionRange.toObject,t),oneofDeclList:g.Message.toObjectList(o.getOneofDeclList(),proto.google.protobuf.OneofDescriptorProto.toObject,t),options:(r=o.getOptions())&&proto.google.protobuf.MessageOptions.toObject(t,r),reservedRangeList:g.Message.toObjectList(o.getReservedRangeList(),proto.google.protobuf.DescriptorProto.ReservedRange.toObject,t),reservedNameList:(r=g.Message.getRepeatedField(o,10))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.DescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.DescriptorProto;return proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setName(n);break;case 2:var n=new proto.google.protobuf.FieldDescriptorProto;o.readMessage(n,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader),t.addField(n);break;case 6:var n=new proto.google.protobuf.FieldDescriptorProto;o.readMessage(n,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader),t.addExtension$(n);break;case 3:var n=new proto.google.protobuf.DescriptorProto;o.readMessage(n,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader),t.addNestedType(n);break;case 4:var n=new proto.google.protobuf.EnumDescriptorProto;o.readMessage(n,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader),t.addEnumType(n);break;case 5:var n=new proto.google.protobuf.DescriptorProto.ExtensionRange;o.readMessage(n,proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader),t.addExtensionRange(n);break;case 8:var n=new proto.google.protobuf.OneofDescriptorProto;o.readMessage(n,proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader),t.addOneofDecl(n);break;case 7:var n=new proto.google.protobuf.MessageOptions;o.readMessage(n,proto.google.protobuf.MessageOptions.deserializeBinaryFromReader),t.setOptions(n);break;case 9:var n=new proto.google.protobuf.DescriptorProto.ReservedRange;o.readMessage(n,proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader),t.addReservedRange(n);break;case 10:var n=o.readString();t.addReservedName(n);break;default:o.skipField();break}}return t};proto.google.protobuf.DescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.DescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.DescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=t.getFieldList(),r.length>0&&o.writeRepeatedMessage(2,r,proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter),r=t.getExtensionList(),r.length>0&&o.writeRepeatedMessage(6,r,proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter),r=t.getNestedTypeList(),r.length>0&&o.writeRepeatedMessage(3,r,proto.google.protobuf.DescriptorProto.serializeBinaryToWriter),r=t.getEnumTypeList(),r.length>0&&o.writeRepeatedMessage(4,r,proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter),r=t.getExtensionRangeList(),r.length>0&&o.writeRepeatedMessage(5,r,proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter),r=t.getOneofDeclList(),r.length>0&&o.writeRepeatedMessage(8,r,proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter),r=t.getOptions(),r!=null&&o.writeMessage(7,r,proto.google.protobuf.MessageOptions.serializeBinaryToWriter),r=t.getReservedRangeList(),r.length>0&&o.writeRepeatedMessage(9,r,proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter),r=t.getReservedNameList(),r.length>0&&o.writeRepeatedString(10,r)};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.toObject=function(t){return proto.google.protobuf.DescriptorProto.ExtensionRange.toObject(t,this)},proto.google.protobuf.DescriptorProto.ExtensionRange.toObject=function(t,o){var r,n={start:(r=g.Message.getField(o,1))==null?void 0:r,end:(r=g.Message.getField(o,2))==null?void 0:r,options:(r=o.getOptions())&&proto.google.protobuf.ExtensionRangeOptions.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.DescriptorProto.ExtensionRange;return proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader(r,o)};proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readInt32();t.setStart(n);break;case 2:var n=o.readInt32();t.setEnd(n);break;case 3:var n=new proto.google.protobuf.ExtensionRangeOptions;o.readMessage(n,proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader),t.setOptions(n);break;default:o.skipField();break}}return t};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeInt32(1,r),r=g.Message.getField(t,2),r!=null&&o.writeInt32(2,r),r=t.getOptions(),r!=null&&o.writeMessage(3,r,proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getStart=function(){return g.Message.getFieldWithDefault(this,1,0)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setStart=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearStart=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasStart=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getEnd=function(){return g.Message.getFieldWithDefault(this,2,0)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setEnd=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearEnd=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasEnd=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.ExtensionRangeOptions,3)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setOptions=function(t){return g.Message.setWrapperField(this,3,t)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasOptions=function(){return g.Message.getField(this,3)!=null};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DescriptorProto.ReservedRange.prototype.toObject=function(t){return proto.google.protobuf.DescriptorProto.ReservedRange.toObject(t,this)},proto.google.protobuf.DescriptorProto.ReservedRange.toObject=function(t,o){var r,n={start:(r=g.Message.getField(o,1))==null?void 0:r,end:(r=g.Message.getField(o,2))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.DescriptorProto.ReservedRange;return proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader(r,o)};proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readInt32();t.setStart(n);break;case 2:var n=o.readInt32();t.setEnd(n);break;default:o.skipField();break}}return t};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeInt32(1,r),r=g.Message.getField(t,2),r!=null&&o.writeInt32(2,r)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getStart=function(){return g.Message.getFieldWithDefault(this,1,0)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setStart=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearStart=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasStart=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getEnd=function(){return g.Message.getFieldWithDefault(this,2,0)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setEnd=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearEnd=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasEnd=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.DescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.DescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.DescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.DescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.DescriptorProto.prototype.getFieldList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.FieldDescriptorProto,2)};proto.google.protobuf.DescriptorProto.prototype.setFieldList=function(t){return g.Message.setRepeatedWrapperField(this,2,t)};proto.google.protobuf.DescriptorProto.prototype.addField=function(t,o){return g.Message.addToRepeatedWrapperField(this,2,t,proto.google.protobuf.FieldDescriptorProto,o)};proto.google.protobuf.DescriptorProto.prototype.clearFieldList=function(){return this.setFieldList([])};proto.google.protobuf.DescriptorProto.prototype.getExtensionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.FieldDescriptorProto,6)};proto.google.protobuf.DescriptorProto.prototype.setExtensionList=function(t){return g.Message.setRepeatedWrapperField(this,6,t)};proto.google.protobuf.DescriptorProto.prototype.addExtension$=function(t,o){return g.Message.addToRepeatedWrapperField(this,6,t,proto.google.protobuf.FieldDescriptorProto,o)};proto.google.protobuf.DescriptorProto.prototype.clearExtensionList=function(){return this.setExtensionList([])};proto.google.protobuf.DescriptorProto.prototype.getNestedTypeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto,3)};proto.google.protobuf.DescriptorProto.prototype.setNestedTypeList=function(t){return g.Message.setRepeatedWrapperField(this,3,t)};proto.google.protobuf.DescriptorProto.prototype.addNestedType=function(t,o){return g.Message.addToRepeatedWrapperField(this,3,t,proto.google.protobuf.DescriptorProto,o)};proto.google.protobuf.DescriptorProto.prototype.clearNestedTypeList=function(){return this.setNestedTypeList([])};proto.google.protobuf.DescriptorProto.prototype.getEnumTypeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumDescriptorProto,4)};proto.google.protobuf.DescriptorProto.prototype.setEnumTypeList=function(t){return g.Message.setRepeatedWrapperField(this,4,t)};proto.google.protobuf.DescriptorProto.prototype.addEnumType=function(t,o){return g.Message.addToRepeatedWrapperField(this,4,t,proto.google.protobuf.EnumDescriptorProto,o)};proto.google.protobuf.DescriptorProto.prototype.clearEnumTypeList=function(){return this.setEnumTypeList([])};proto.google.protobuf.DescriptorProto.prototype.getExtensionRangeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto.ExtensionRange,5)};proto.google.protobuf.DescriptorProto.prototype.setExtensionRangeList=function(t){return g.Message.setRepeatedWrapperField(this,5,t)};proto.google.protobuf.DescriptorProto.prototype.addExtensionRange=function(t,o){return g.Message.addToRepeatedWrapperField(this,5,t,proto.google.protobuf.DescriptorProto.ExtensionRange,o)};proto.google.protobuf.DescriptorProto.prototype.clearExtensionRangeList=function(){return this.setExtensionRangeList([])};proto.google.protobuf.DescriptorProto.prototype.getOneofDeclList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.OneofDescriptorProto,8)};proto.google.protobuf.DescriptorProto.prototype.setOneofDeclList=function(t){return g.Message.setRepeatedWrapperField(this,8,t)};proto.google.protobuf.DescriptorProto.prototype.addOneofDecl=function(t,o){return g.Message.addToRepeatedWrapperField(this,8,t,proto.google.protobuf.OneofDescriptorProto,o)};proto.google.protobuf.DescriptorProto.prototype.clearOneofDeclList=function(){return this.setOneofDeclList([])};proto.google.protobuf.DescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.MessageOptions,7)};proto.google.protobuf.DescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,7,t)};proto.google.protobuf.DescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.DescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,7)!=null};proto.google.protobuf.DescriptorProto.prototype.getReservedRangeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto.ReservedRange,9)};proto.google.protobuf.DescriptorProto.prototype.setReservedRangeList=function(t){return g.Message.setRepeatedWrapperField(this,9,t)};proto.google.protobuf.DescriptorProto.prototype.addReservedRange=function(t,o){return g.Message.addToRepeatedWrapperField(this,9,t,proto.google.protobuf.DescriptorProto.ReservedRange,o)};proto.google.protobuf.DescriptorProto.prototype.clearReservedRangeList=function(){return this.setReservedRangeList([])};proto.google.protobuf.DescriptorProto.prototype.getReservedNameList=function(){return g.Message.getRepeatedField(this,10)};proto.google.protobuf.DescriptorProto.prototype.setReservedNameList=function(t){return g.Message.setField(this,10,t||[])};proto.google.protobuf.DescriptorProto.prototype.addReservedName=function(t,o){return g.Message.addToRepeatedField(this,10,t,o)};proto.google.protobuf.DescriptorProto.prototype.clearReservedNameList=function(){return this.setReservedNameList([])};proto.google.protobuf.ExtensionRangeOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ExtensionRangeOptions.prototype.toObject=function(t){return proto.google.protobuf.ExtensionRangeOptions.toObject(t,this)},proto.google.protobuf.ExtensionRangeOptions.toObject=function(t,o){var r,n={uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,n,proto.google.protobuf.ExtensionRangeOptions.extensions,proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension,t),t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.ExtensionRangeOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.ExtensionRangeOptions;return proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 999:var n=new proto.google.protobuf.UninterpretedOption;o.readMessage(n,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(n);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.ExtensionRangeOptions.extensionsBinary,proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension,proto.google.protobuf.ExtensionRangeOptions.prototype.setExtension);break}}return t};proto.google.protobuf.ExtensionRangeOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.ExtensionRangeOptions.extensionsBinary,proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension)};proto.google.protobuf.ExtensionRangeOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.ExtensionRangeOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.ExtensionRangeOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.ExtensionRangeOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FieldDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.FieldDescriptorProto.toObject(t,this)},proto.google.protobuf.FieldDescriptorProto.toObject=function(t,o){var r,n={name:(r=g.Message.getField(o,1))==null?void 0:r,number:(r=g.Message.getField(o,3))==null?void 0:r,label:(r=g.Message.getField(o,4))==null?void 0:r,type:(r=g.Message.getField(o,5))==null?void 0:r,typeName:(r=g.Message.getField(o,6))==null?void 0:r,extendee:(r=g.Message.getField(o,2))==null?void 0:r,defaultValue:(r=g.Message.getField(o,7))==null?void 0:r,oneofIndex:(r=g.Message.getField(o,9))==null?void 0:r,jsonName:(r=g.Message.getField(o,10))==null?void 0:r,options:(r=o.getOptions())&&proto.google.protobuf.FieldOptions.toObject(t,r),proto3Optional:(r=g.Message.getBooleanField(o,17))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.FieldDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.FieldDescriptorProto;return proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setName(n);break;case 3:var n=o.readInt32();t.setNumber(n);break;case 4:var n=o.readEnum();t.setLabel(n);break;case 5:var n=o.readEnum();t.setType(n);break;case 6:var n=o.readString();t.setTypeName(n);break;case 2:var n=o.readString();t.setExtendee(n);break;case 7:var n=o.readString();t.setDefaultValue(n);break;case 9:var n=o.readInt32();t.setOneofIndex(n);break;case 10:var n=o.readString();t.setJsonName(n);break;case 8:var n=new proto.google.protobuf.FieldOptions;o.readMessage(n,proto.google.protobuf.FieldOptions.deserializeBinaryFromReader),t.setOptions(n);break;case 17:var n=o.readBool();t.setProto3Optional(n);break;default:o.skipField();break}}return t};proto.google.protobuf.FieldDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=g.Message.getField(t,3),r!=null&&o.writeInt32(3,r),r=g.Message.getField(t,4),r!=null&&o.writeEnum(4,r),r=g.Message.getField(t,5),r!=null&&o.writeEnum(5,r),r=g.Message.getField(t,6),r!=null&&o.writeString(6,r),r=g.Message.getField(t,2),r!=null&&o.writeString(2,r),r=g.Message.getField(t,7),r!=null&&o.writeString(7,r),r=g.Message.getField(t,9),r!=null&&o.writeInt32(9,r),r=g.Message.getField(t,10),r!=null&&o.writeString(10,r),r=t.getOptions(),r!=null&&o.writeMessage(8,r,proto.google.protobuf.FieldOptions.serializeBinaryToWriter),r=g.Message.getField(t,17),r!=null&&o.writeBool(17,r)};proto.google.protobuf.FieldDescriptorProto.Type={TYPE_DOUBLE:1,TYPE_FLOAT:2,TYPE_INT64:3,TYPE_UINT64:4,TYPE_INT32:5,TYPE_FIXED64:6,TYPE_FIXED32:7,TYPE_BOOL:8,TYPE_STRING:9,TYPE_GROUP:10,TYPE_MESSAGE:11,TYPE_BYTES:12,TYPE_UINT32:13,TYPE_ENUM:14,TYPE_SFIXED32:15,TYPE_SFIXED64:16,TYPE_SINT32:17,TYPE_SINT64:18};proto.google.protobuf.FieldDescriptorProto.Label={LABEL_OPTIONAL:1,LABEL_REQUIRED:2,LABEL_REPEATED:3};proto.google.protobuf.FieldDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.FieldDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getNumber=function(){return g.Message.getFieldWithDefault(this,3,0)};proto.google.protobuf.FieldDescriptorProto.prototype.setNumber=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearNumber=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasNumber=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getLabel=function(){return g.Message.getFieldWithDefault(this,4,1)};proto.google.protobuf.FieldDescriptorProto.prototype.setLabel=function(t){return g.Message.setField(this,4,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearLabel=function(){return g.Message.setField(this,4,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasLabel=function(){return g.Message.getField(this,4)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getType=function(){return g.Message.getFieldWithDefault(this,5,1)};proto.google.protobuf.FieldDescriptorProto.prototype.setType=function(t){return g.Message.setField(this,5,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearType=function(){return g.Message.setField(this,5,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasType=function(){return g.Message.getField(this,5)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getTypeName=function(){return g.Message.getFieldWithDefault(this,6,"")};proto.google.protobuf.FieldDescriptorProto.prototype.setTypeName=function(t){return g.Message.setField(this,6,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearTypeName=function(){return g.Message.setField(this,6,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasTypeName=function(){return g.Message.getField(this,6)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getExtendee=function(){return g.Message.getFieldWithDefault(this,2,"")};proto.google.protobuf.FieldDescriptorProto.prototype.setExtendee=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearExtendee=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasExtendee=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getDefaultValue=function(){return g.Message.getFieldWithDefault(this,7,"")};proto.google.protobuf.FieldDescriptorProto.prototype.setDefaultValue=function(t){return g.Message.setField(this,7,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearDefaultValue=function(){return g.Message.setField(this,7,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasDefaultValue=function(){return g.Message.getField(this,7)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getOneofIndex=function(){return g.Message.getFieldWithDefault(this,9,0)};proto.google.protobuf.FieldDescriptorProto.prototype.setOneofIndex=function(t){return g.Message.setField(this,9,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearOneofIndex=function(){return g.Message.setField(this,9,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasOneofIndex=function(){return g.Message.getField(this,9)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getJsonName=function(){return g.Message.getFieldWithDefault(this,10,"")};proto.google.protobuf.FieldDescriptorProto.prototype.setJsonName=function(t){return g.Message.setField(this,10,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearJsonName=function(){return g.Message.setField(this,10,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasJsonName=function(){return g.Message.getField(this,10)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.FieldOptions,8)};proto.google.protobuf.FieldDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,8,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,8)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getProto3Optional=function(){return g.Message.getBooleanFieldWithDefault(this,17,!1)};proto.google.protobuf.FieldDescriptorProto.prototype.setProto3Optional=function(t){return g.Message.setField(this,17,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearProto3Optional=function(){return g.Message.setField(this,17,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasProto3Optional=function(){return g.Message.getField(this,17)!=null};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.OneofDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.OneofDescriptorProto.toObject(t,this)},proto.google.protobuf.OneofDescriptorProto.toObject=function(t,o){var r,n={name:(r=g.Message.getField(o,1))==null?void 0:r,options:(r=o.getOptions())&&proto.google.protobuf.OneofOptions.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.OneofDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.OneofDescriptorProto;return proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setName(n);break;case 2:var n=new proto.google.protobuf.OneofOptions;o.readMessage(n,proto.google.protobuf.OneofOptions.deserializeBinaryFromReader),t.setOptions(n);break;default:o.skipField();break}}return t};proto.google.protobuf.OneofDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=t.getOptions(),r!=null&&o.writeMessage(2,r,proto.google.protobuf.OneofOptions.serializeBinaryToWriter)};proto.google.protobuf.OneofDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.OneofDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.OneofDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.OneofDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.OneofDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.OneofOptions,2)};proto.google.protobuf.OneofDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,2,t)};proto.google.protobuf.OneofDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.OneofDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.EnumDescriptorProto.repeatedFields_=[2,4,5];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.EnumDescriptorProto.toObject(t,this)},proto.google.protobuf.EnumDescriptorProto.toObject=function(t,o){var r,n={name:(r=g.Message.getField(o,1))==null?void 0:r,valueList:g.Message.toObjectList(o.getValueList(),proto.google.protobuf.EnumValueDescriptorProto.toObject,t),options:(r=o.getOptions())&&proto.google.protobuf.EnumOptions.toObject(t,r),reservedRangeList:g.Message.toObjectList(o.getReservedRangeList(),proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject,t),reservedNameList:(r=g.Message.getRepeatedField(o,5))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.EnumDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.EnumDescriptorProto;return proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setName(n);break;case 2:var n=new proto.google.protobuf.EnumValueDescriptorProto;o.readMessage(n,proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader),t.addValue(n);break;case 3:var n=new proto.google.protobuf.EnumOptions;o.readMessage(n,proto.google.protobuf.EnumOptions.deserializeBinaryFromReader),t.setOptions(n);break;case 4:var n=new proto.google.protobuf.EnumDescriptorProto.EnumReservedRange;o.readMessage(n,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader),t.addReservedRange(n);break;case 5:var n=o.readString();t.addReservedName(n);break;default:o.skipField();break}}return t};proto.google.protobuf.EnumDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=t.getValueList(),r.length>0&&o.writeRepeatedMessage(2,r,proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter),r=t.getOptions(),r!=null&&o.writeMessage(3,r,proto.google.protobuf.EnumOptions.serializeBinaryToWriter),r=t.getReservedRangeList(),r.length>0&&o.writeRepeatedMessage(4,r,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter),r=t.getReservedNameList(),r.length>0&&o.writeRepeatedString(5,r)};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.toObject=function(t){return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(t,this)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject=function(t,o){var r,n={start:(r=g.Message.getField(o,1))==null?void 0:r,end:(r=g.Message.getField(o,2))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.EnumDescriptorProto.EnumReservedRange;return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader(r,o)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readInt32();t.setStart(n);break;case 2:var n=o.readInt32();t.setEnd(n);break;default:o.skipField();break}}return t};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeInt32(1,r),r=g.Message.getField(t,2),r!=null&&o.writeInt32(2,r)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.getStart=function(){return g.Message.getFieldWithDefault(this,1,0)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.setStart=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.clearStart=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.hasStart=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.getEnd=function(){return g.Message.getFieldWithDefault(this,2,0)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.setEnd=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.clearEnd=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.hasEnd=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.EnumDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.EnumDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.EnumDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.EnumDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.EnumDescriptorProto.prototype.getValueList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumValueDescriptorProto,2)};proto.google.protobuf.EnumDescriptorProto.prototype.setValueList=function(t){return g.Message.setRepeatedWrapperField(this,2,t)};proto.google.protobuf.EnumDescriptorProto.prototype.addValue=function(t,o){return g.Message.addToRepeatedWrapperField(this,2,t,proto.google.protobuf.EnumValueDescriptorProto,o)};proto.google.protobuf.EnumDescriptorProto.prototype.clearValueList=function(){return this.setValueList([])};proto.google.protobuf.EnumDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.EnumOptions,3)};proto.google.protobuf.EnumDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,3,t)};proto.google.protobuf.EnumDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.EnumDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.EnumDescriptorProto.prototype.getReservedRangeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,4)};proto.google.protobuf.EnumDescriptorProto.prototype.setReservedRangeList=function(t){return g.Message.setRepeatedWrapperField(this,4,t)};proto.google.protobuf.EnumDescriptorProto.prototype.addReservedRange=function(t,o){return g.Message.addToRepeatedWrapperField(this,4,t,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,o)};proto.google.protobuf.EnumDescriptorProto.prototype.clearReservedRangeList=function(){return this.setReservedRangeList([])};proto.google.protobuf.EnumDescriptorProto.prototype.getReservedNameList=function(){return g.Message.getRepeatedField(this,5)};proto.google.protobuf.EnumDescriptorProto.prototype.setReservedNameList=function(t){return g.Message.setField(this,5,t||[])};proto.google.protobuf.EnumDescriptorProto.prototype.addReservedName=function(t,o){return g.Message.addToRepeatedField(this,5,t,o)};proto.google.protobuf.EnumDescriptorProto.prototype.clearReservedNameList=function(){return this.setReservedNameList([])};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumValueDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.EnumValueDescriptorProto.toObject(t,this)},proto.google.protobuf.EnumValueDescriptorProto.toObject=function(t,o){var r,n={name:(r=g.Message.getField(o,1))==null?void 0:r,number:(r=g.Message.getField(o,2))==null?void 0:r,options:(r=o.getOptions())&&proto.google.protobuf.EnumValueOptions.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.EnumValueDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.EnumValueDescriptorProto;return proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setName(n);break;case 2:var n=o.readInt32();t.setNumber(n);break;case 3:var n=new proto.google.protobuf.EnumValueOptions;o.readMessage(n,proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader),t.setOptions(n);break;default:o.skipField();break}}return t};proto.google.protobuf.EnumValueDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=g.Message.getField(t,2),r!=null&&o.writeInt32(2,r),r=t.getOptions(),r!=null&&o.writeMessage(3,r,proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter)};proto.google.protobuf.EnumValueDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.EnumValueDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.EnumValueDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.EnumValueDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.EnumValueDescriptorProto.prototype.getNumber=function(){return g.Message.getFieldWithDefault(this,2,0)};proto.google.protobuf.EnumValueDescriptorProto.prototype.setNumber=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.EnumValueDescriptorProto.prototype.clearNumber=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.EnumValueDescriptorProto.prototype.hasNumber=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.EnumValueDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.EnumValueOptions,3)};proto.google.protobuf.EnumValueDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,3,t)};proto.google.protobuf.EnumValueDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.EnumValueDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.ServiceDescriptorProto.repeatedFields_=[2];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ServiceDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.ServiceDescriptorProto.toObject(t,this)},proto.google.protobuf.ServiceDescriptorProto.toObject=function(t,o){var r,n={name:(r=g.Message.getField(o,1))==null?void 0:r,methodList:g.Message.toObjectList(o.getMethodList(),proto.google.protobuf.MethodDescriptorProto.toObject,t),options:(r=o.getOptions())&&proto.google.protobuf.ServiceOptions.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.ServiceDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.ServiceDescriptorProto;return proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setName(n);break;case 2:var n=new proto.google.protobuf.MethodDescriptorProto;o.readMessage(n,proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader),t.addMethod(n);break;case 3:var n=new proto.google.protobuf.ServiceOptions;o.readMessage(n,proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader),t.setOptions(n);break;default:o.skipField();break}}return t};proto.google.protobuf.ServiceDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=t.getMethodList(),r.length>0&&o.writeRepeatedMessage(2,r,proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter),r=t.getOptions(),r!=null&&o.writeMessage(3,r,proto.google.protobuf.ServiceOptions.serializeBinaryToWriter)};proto.google.protobuf.ServiceDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.ServiceDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.ServiceDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.ServiceDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.ServiceDescriptorProto.prototype.getMethodList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.MethodDescriptorProto,2)};proto.google.protobuf.ServiceDescriptorProto.prototype.setMethodList=function(t){return g.Message.setRepeatedWrapperField(this,2,t)};proto.google.protobuf.ServiceDescriptorProto.prototype.addMethod=function(t,o){return g.Message.addToRepeatedWrapperField(this,2,t,proto.google.protobuf.MethodDescriptorProto,o)};proto.google.protobuf.ServiceDescriptorProto.prototype.clearMethodList=function(){return this.setMethodList([])};proto.google.protobuf.ServiceDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.ServiceOptions,3)};proto.google.protobuf.ServiceDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,3,t)};proto.google.protobuf.ServiceDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.ServiceDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,3)!=null};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.MethodDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.MethodDescriptorProto.toObject(t,this)},proto.google.protobuf.MethodDescriptorProto.toObject=function(t,o){var r,n={name:(r=g.Message.getField(o,1))==null?void 0:r,inputType:(r=g.Message.getField(o,2))==null?void 0:r,outputType:(r=g.Message.getField(o,3))==null?void 0:r,options:(r=o.getOptions())&&proto.google.protobuf.MethodOptions.toObject(t,r),clientStreaming:g.Message.getBooleanFieldWithDefault(o,5,!1),serverStreaming:g.Message.getBooleanFieldWithDefault(o,6,!1)};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.MethodDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.MethodDescriptorProto;return proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setName(n);break;case 2:var n=o.readString();t.setInputType(n);break;case 3:var n=o.readString();t.setOutputType(n);break;case 4:var n=new proto.google.protobuf.MethodOptions;o.readMessage(n,proto.google.protobuf.MethodOptions.deserializeBinaryFromReader),t.setOptions(n);break;case 5:var n=o.readBool();t.setClientStreaming(n);break;case 6:var n=o.readBool();t.setServerStreaming(n);break;default:o.skipField();break}}return t};proto.google.protobuf.MethodDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=g.Message.getField(t,2),r!=null&&o.writeString(2,r),r=g.Message.getField(t,3),r!=null&&o.writeString(3,r),r=t.getOptions(),r!=null&&o.writeMessage(4,r,proto.google.protobuf.MethodOptions.serializeBinaryToWriter),r=g.Message.getField(t,5),r!=null&&o.writeBool(5,r),r=g.Message.getField(t,6),r!=null&&o.writeBool(6,r)};proto.google.protobuf.MethodDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.MethodDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.MethodDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.MethodDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.MethodDescriptorProto.prototype.getInputType=function(){return g.Message.getFieldWithDefault(this,2,"")};proto.google.protobuf.MethodDescriptorProto.prototype.setInputType=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.MethodDescriptorProto.prototype.clearInputType=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.MethodDescriptorProto.prototype.hasInputType=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.MethodDescriptorProto.prototype.getOutputType=function(){return g.Message.getFieldWithDefault(this,3,"")};proto.google.protobuf.MethodDescriptorProto.prototype.setOutputType=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.MethodDescriptorProto.prototype.clearOutputType=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.MethodDescriptorProto.prototype.hasOutputType=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.MethodDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.MethodOptions,4)};proto.google.protobuf.MethodDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,4,t)};proto.google.protobuf.MethodDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.MethodDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,4)!=null};proto.google.protobuf.MethodDescriptorProto.prototype.getClientStreaming=function(){return g.Message.getBooleanFieldWithDefault(this,5,!1)};proto.google.protobuf.MethodDescriptorProto.prototype.setClientStreaming=function(t){return g.Message.setField(this,5,t)};proto.google.protobuf.MethodDescriptorProto.prototype.clearClientStreaming=function(){return g.Message.setField(this,5,void 0)};proto.google.protobuf.MethodDescriptorProto.prototype.hasClientStreaming=function(){return g.Message.getField(this,5)!=null};proto.google.protobuf.MethodDescriptorProto.prototype.getServerStreaming=function(){return g.Message.getBooleanFieldWithDefault(this,6,!1)};proto.google.protobuf.MethodDescriptorProto.prototype.setServerStreaming=function(t){return g.Message.setField(this,6,t)};proto.google.protobuf.MethodDescriptorProto.prototype.clearServerStreaming=function(){return g.Message.setField(this,6,void 0)};proto.google.protobuf.MethodDescriptorProto.prototype.hasServerStreaming=function(){return g.Message.getField(this,6)!=null};proto.google.protobuf.FileOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FileOptions.prototype.toObject=function(t){return proto.google.protobuf.FileOptions.toObject(t,this)},proto.google.protobuf.FileOptions.toObject=function(t,o){var r,n={javaPackage:(r=g.Message.getField(o,1))==null?void 0:r,javaOuterClassname:(r=g.Message.getField(o,8))==null?void 0:r,javaMultipleFiles:g.Message.getBooleanFieldWithDefault(o,10,!1),javaGenerateEqualsAndHash:(r=g.Message.getBooleanField(o,20))==null?void 0:r,javaStringCheckUtf8:g.Message.getBooleanFieldWithDefault(o,27,!1),optimizeFor:g.Message.getFieldWithDefault(o,9,1),goPackage:(r=g.Message.getField(o,11))==null?void 0:r,ccGenericServices:g.Message.getBooleanFieldWithDefault(o,16,!1),javaGenericServices:g.Message.getBooleanFieldWithDefault(o,17,!1),pyGenericServices:g.Message.getBooleanFieldWithDefault(o,18,!1),phpGenericServices:g.Message.getBooleanFieldWithDefault(o,42,!1),deprecated:g.Message.getBooleanFieldWithDefault(o,23,!1),ccEnableArenas:g.Message.getBooleanFieldWithDefault(o,31,!0),objcClassPrefix:(r=g.Message.getField(o,36))==null?void 0:r,csharpNamespace:(r=g.Message.getField(o,37))==null?void 0:r,swiftPrefix:(r=g.Message.getField(o,39))==null?void 0:r,phpClassPrefix:(r=g.Message.getField(o,40))==null?void 0:r,phpNamespace:(r=g.Message.getField(o,41))==null?void 0:r,phpMetadataNamespace:(r=g.Message.getField(o,44))==null?void 0:r,rubyPackage:(r=g.Message.getField(o,45))==null?void 0:r,uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,n,proto.google.protobuf.FileOptions.extensions,proto.google.protobuf.FileOptions.prototype.getExtension,t),t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.FileOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.FileOptions;return proto.google.protobuf.FileOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.FileOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setJavaPackage(n);break;case 8:var n=o.readString();t.setJavaOuterClassname(n);break;case 10:var n=o.readBool();t.setJavaMultipleFiles(n);break;case 20:var n=o.readBool();t.setJavaGenerateEqualsAndHash(n);break;case 27:var n=o.readBool();t.setJavaStringCheckUtf8(n);break;case 9:var n=o.readEnum();t.setOptimizeFor(n);break;case 11:var n=o.readString();t.setGoPackage(n);break;case 16:var n=o.readBool();t.setCcGenericServices(n);break;case 17:var n=o.readBool();t.setJavaGenericServices(n);break;case 18:var n=o.readBool();t.setPyGenericServices(n);break;case 42:var n=o.readBool();t.setPhpGenericServices(n);break;case 23:var n=o.readBool();t.setDeprecated(n);break;case 31:var n=o.readBool();t.setCcEnableArenas(n);break;case 36:var n=o.readString();t.setObjcClassPrefix(n);break;case 37:var n=o.readString();t.setCsharpNamespace(n);break;case 39:var n=o.readString();t.setSwiftPrefix(n);break;case 40:var n=o.readString();t.setPhpClassPrefix(n);break;case 41:var n=o.readString();t.setPhpNamespace(n);break;case 44:var n=o.readString();t.setPhpMetadataNamespace(n);break;case 45:var n=o.readString();t.setRubyPackage(n);break;case 999:var n=new proto.google.protobuf.UninterpretedOption;o.readMessage(n,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(n);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.FileOptions.extensionsBinary,proto.google.protobuf.FileOptions.prototype.getExtension,proto.google.protobuf.FileOptions.prototype.setExtension);break}}return t};proto.google.protobuf.FileOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.FileOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.FileOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=g.Message.getField(t,8),r!=null&&o.writeString(8,r),r=g.Message.getField(t,10),r!=null&&o.writeBool(10,r),r=g.Message.getField(t,20),r!=null&&o.writeBool(20,r),r=g.Message.getField(t,27),r!=null&&o.writeBool(27,r),r=g.Message.getField(t,9),r!=null&&o.writeEnum(9,r),r=g.Message.getField(t,11),r!=null&&o.writeString(11,r),r=g.Message.getField(t,16),r!=null&&o.writeBool(16,r),r=g.Message.getField(t,17),r!=null&&o.writeBool(17,r),r=g.Message.getField(t,18),r!=null&&o.writeBool(18,r),r=g.Message.getField(t,42),r!=null&&o.writeBool(42,r),r=g.Message.getField(t,23),r!=null&&o.writeBool(23,r),r=g.Message.getField(t,31),r!=null&&o.writeBool(31,r),r=g.Message.getField(t,36),r!=null&&o.writeString(36,r),r=g.Message.getField(t,37),r!=null&&o.writeString(37,r),r=g.Message.getField(t,39),r!=null&&o.writeString(39,r),r=g.Message.getField(t,40),r!=null&&o.writeString(40,r),r=g.Message.getField(t,41),r!=null&&o.writeString(41,r),r=g.Message.getField(t,44),r!=null&&o.writeString(44,r),r=g.Message.getField(t,45),r!=null&&o.writeString(45,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.FileOptions.extensionsBinary,proto.google.protobuf.FileOptions.prototype.getExtension)};proto.google.protobuf.FileOptions.OptimizeMode={SPEED:1,CODE_SIZE:2,LITE_RUNTIME:3};proto.google.protobuf.FileOptions.prototype.getJavaPackage=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.FileOptions.prototype.setJavaPackage=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.FileOptions.prototype.clearJavaPackage=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.FileOptions.prototype.hasJavaPackage=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.FileOptions.prototype.getJavaOuterClassname=function(){return g.Message.getFieldWithDefault(this,8,"")};proto.google.protobuf.FileOptions.prototype.setJavaOuterClassname=function(t){return g.Message.setField(this,8,t)};proto.google.protobuf.FileOptions.prototype.clearJavaOuterClassname=function(){return g.Message.setField(this,8,void 0)};proto.google.protobuf.FileOptions.prototype.hasJavaOuterClassname=function(){return g.Message.getField(this,8)!=null};proto.google.protobuf.FileOptions.prototype.getJavaMultipleFiles=function(){return g.Message.getBooleanFieldWithDefault(this,10,!1)};proto.google.protobuf.FileOptions.prototype.setJavaMultipleFiles=function(t){return g.Message.setField(this,10,t)};proto.google.protobuf.FileOptions.prototype.clearJavaMultipleFiles=function(){return g.Message.setField(this,10,void 0)};proto.google.protobuf.FileOptions.prototype.hasJavaMultipleFiles=function(){return g.Message.getField(this,10)!=null};proto.google.protobuf.FileOptions.prototype.getJavaGenerateEqualsAndHash=function(){return g.Message.getBooleanFieldWithDefault(this,20,!1)};proto.google.protobuf.FileOptions.prototype.setJavaGenerateEqualsAndHash=function(t){return g.Message.setField(this,20,t)};proto.google.protobuf.FileOptions.prototype.clearJavaGenerateEqualsAndHash=function(){return g.Message.setField(this,20,void 0)};proto.google.protobuf.FileOptions.prototype.hasJavaGenerateEqualsAndHash=function(){return g.Message.getField(this,20)!=null};proto.google.protobuf.FileOptions.prototype.getJavaStringCheckUtf8=function(){return g.Message.getBooleanFieldWithDefault(this,27,!1)};proto.google.protobuf.FileOptions.prototype.setJavaStringCheckUtf8=function(t){return g.Message.setField(this,27,t)};proto.google.protobuf.FileOptions.prototype.clearJavaStringCheckUtf8=function(){return g.Message.setField(this,27,void 0)};proto.google.protobuf.FileOptions.prototype.hasJavaStringCheckUtf8=function(){return g.Message.getField(this,27)!=null};proto.google.protobuf.FileOptions.prototype.getOptimizeFor=function(){return g.Message.getFieldWithDefault(this,9,1)};proto.google.protobuf.FileOptions.prototype.setOptimizeFor=function(t){return g.Message.setField(this,9,t)};proto.google.protobuf.FileOptions.prototype.clearOptimizeFor=function(){return g.Message.setField(this,9,void 0)};proto.google.protobuf.FileOptions.prototype.hasOptimizeFor=function(){return g.Message.getField(this,9)!=null};proto.google.protobuf.FileOptions.prototype.getGoPackage=function(){return g.Message.getFieldWithDefault(this,11,"")};proto.google.protobuf.FileOptions.prototype.setGoPackage=function(t){return g.Message.setField(this,11,t)};proto.google.protobuf.FileOptions.prototype.clearGoPackage=function(){return g.Message.setField(this,11,void 0)};proto.google.protobuf.FileOptions.prototype.hasGoPackage=function(){return g.Message.getField(this,11)!=null};proto.google.protobuf.FileOptions.prototype.getCcGenericServices=function(){return g.Message.getBooleanFieldWithDefault(this,16,!1)};proto.google.protobuf.FileOptions.prototype.setCcGenericServices=function(t){return g.Message.setField(this,16,t)};proto.google.protobuf.FileOptions.prototype.clearCcGenericServices=function(){return g.Message.setField(this,16,void 0)};proto.google.protobuf.FileOptions.prototype.hasCcGenericServices=function(){return g.Message.getField(this,16)!=null};proto.google.protobuf.FileOptions.prototype.getJavaGenericServices=function(){return g.Message.getBooleanFieldWithDefault(this,17,!1)};proto.google.protobuf.FileOptions.prototype.setJavaGenericServices=function(t){return g.Message.setField(this,17,t)};proto.google.protobuf.FileOptions.prototype.clearJavaGenericServices=function(){return g.Message.setField(this,17,void 0)};proto.google.protobuf.FileOptions.prototype.hasJavaGenericServices=function(){return g.Message.getField(this,17)!=null};proto.google.protobuf.FileOptions.prototype.getPyGenericServices=function(){return g.Message.getBooleanFieldWithDefault(this,18,!1)};proto.google.protobuf.FileOptions.prototype.setPyGenericServices=function(t){return g.Message.setField(this,18,t)};proto.google.protobuf.FileOptions.prototype.clearPyGenericServices=function(){return g.Message.setField(this,18,void 0)};proto.google.protobuf.FileOptions.prototype.hasPyGenericServices=function(){return g.Message.getField(this,18)!=null};proto.google.protobuf.FileOptions.prototype.getPhpGenericServices=function(){return g.Message.getBooleanFieldWithDefault(this,42,!1)};proto.google.protobuf.FileOptions.prototype.setPhpGenericServices=function(t){return g.Message.setField(this,42,t)};proto.google.protobuf.FileOptions.prototype.clearPhpGenericServices=function(){return g.Message.setField(this,42,void 0)};proto.google.protobuf.FileOptions.prototype.hasPhpGenericServices=function(){return g.Message.getField(this,42)!=null};proto.google.protobuf.FileOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,23,!1)};proto.google.protobuf.FileOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,23,t)};proto.google.protobuf.FileOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,23,void 0)};proto.google.protobuf.FileOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,23)!=null};proto.google.protobuf.FileOptions.prototype.getCcEnableArenas=function(){return g.Message.getBooleanFieldWithDefault(this,31,!0)};proto.google.protobuf.FileOptions.prototype.setCcEnableArenas=function(t){return g.Message.setField(this,31,t)};proto.google.protobuf.FileOptions.prototype.clearCcEnableArenas=function(){return g.Message.setField(this,31,void 0)};proto.google.protobuf.FileOptions.prototype.hasCcEnableArenas=function(){return g.Message.getField(this,31)!=null};proto.google.protobuf.FileOptions.prototype.getObjcClassPrefix=function(){return g.Message.getFieldWithDefault(this,36,"")};proto.google.protobuf.FileOptions.prototype.setObjcClassPrefix=function(t){return g.Message.setField(this,36,t)};proto.google.protobuf.FileOptions.prototype.clearObjcClassPrefix=function(){return g.Message.setField(this,36,void 0)};proto.google.protobuf.FileOptions.prototype.hasObjcClassPrefix=function(){return g.Message.getField(this,36)!=null};proto.google.protobuf.FileOptions.prototype.getCsharpNamespace=function(){return g.Message.getFieldWithDefault(this,37,"")};proto.google.protobuf.FileOptions.prototype.setCsharpNamespace=function(t){return g.Message.setField(this,37,t)};proto.google.protobuf.FileOptions.prototype.clearCsharpNamespace=function(){return g.Message.setField(this,37,void 0)};proto.google.protobuf.FileOptions.prototype.hasCsharpNamespace=function(){return g.Message.getField(this,37)!=null};proto.google.protobuf.FileOptions.prototype.getSwiftPrefix=function(){return g.Message.getFieldWithDefault(this,39,"")};proto.google.protobuf.FileOptions.prototype.setSwiftPrefix=function(t){return g.Message.setField(this,39,t)};proto.google.protobuf.FileOptions.prototype.clearSwiftPrefix=function(){return g.Message.setField(this,39,void 0)};proto.google.protobuf.FileOptions.prototype.hasSwiftPrefix=function(){return g.Message.getField(this,39)!=null};proto.google.protobuf.FileOptions.prototype.getPhpClassPrefix=function(){return g.Message.getFieldWithDefault(this,40,"")};proto.google.protobuf.FileOptions.prototype.setPhpClassPrefix=function(t){return g.Message.setField(this,40,t)};proto.google.protobuf.FileOptions.prototype.clearPhpClassPrefix=function(){return g.Message.setField(this,40,void 0)};proto.google.protobuf.FileOptions.prototype.hasPhpClassPrefix=function(){return g.Message.getField(this,40)!=null};proto.google.protobuf.FileOptions.prototype.getPhpNamespace=function(){return g.Message.getFieldWithDefault(this,41,"")};proto.google.protobuf.FileOptions.prototype.setPhpNamespace=function(t){return g.Message.setField(this,41,t)};proto.google.protobuf.FileOptions.prototype.clearPhpNamespace=function(){return g.Message.setField(this,41,void 0)};proto.google.protobuf.FileOptions.prototype.hasPhpNamespace=function(){return g.Message.getField(this,41)!=null};proto.google.protobuf.FileOptions.prototype.getPhpMetadataNamespace=function(){return g.Message.getFieldWithDefault(this,44,"")};proto.google.protobuf.FileOptions.prototype.setPhpMetadataNamespace=function(t){return g.Message.setField(this,44,t)};proto.google.protobuf.FileOptions.prototype.clearPhpMetadataNamespace=function(){return g.Message.setField(this,44,void 0)};proto.google.protobuf.FileOptions.prototype.hasPhpMetadataNamespace=function(){return g.Message.getField(this,44)!=null};proto.google.protobuf.FileOptions.prototype.getRubyPackage=function(){return g.Message.getFieldWithDefault(this,45,"")};proto.google.protobuf.FileOptions.prototype.setRubyPackage=function(t){return g.Message.setField(this,45,t)};proto.google.protobuf.FileOptions.prototype.clearRubyPackage=function(){return g.Message.setField(this,45,void 0)};proto.google.protobuf.FileOptions.prototype.hasRubyPackage=function(){return g.Message.getField(this,45)!=null};proto.google.protobuf.FileOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.FileOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.FileOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.FileOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.MessageOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.MessageOptions.prototype.toObject=function(t){return proto.google.protobuf.MessageOptions.toObject(t,this)},proto.google.protobuf.MessageOptions.toObject=function(t,o){var r,n={messageSetWireFormat:g.Message.getBooleanFieldWithDefault(o,1,!1),noStandardDescriptorAccessor:g.Message.getBooleanFieldWithDefault(o,2,!1),deprecated:g.Message.getBooleanFieldWithDefault(o,3,!1),mapEntry:(r=g.Message.getBooleanField(o,7))==null?void 0:r,uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,n,proto.google.protobuf.MessageOptions.extensions,proto.google.protobuf.MessageOptions.prototype.getExtension,t),t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.MessageOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.MessageOptions;return proto.google.protobuf.MessageOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.MessageOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBool();t.setMessageSetWireFormat(n);break;case 2:var n=o.readBool();t.setNoStandardDescriptorAccessor(n);break;case 3:var n=o.readBool();t.setDeprecated(n);break;case 7:var n=o.readBool();t.setMapEntry(n);break;case 999:var n=new proto.google.protobuf.UninterpretedOption;o.readMessage(n,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(n);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.MessageOptions.extensionsBinary,proto.google.protobuf.MessageOptions.prototype.getExtension,proto.google.protobuf.MessageOptions.prototype.setExtension);break}}return t};proto.google.protobuf.MessageOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.MessageOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.MessageOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeBool(1,r),r=g.Message.getField(t,2),r!=null&&o.writeBool(2,r),r=g.Message.getField(t,3),r!=null&&o.writeBool(3,r),r=g.Message.getField(t,7),r!=null&&o.writeBool(7,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.MessageOptions.extensionsBinary,proto.google.protobuf.MessageOptions.prototype.getExtension)};proto.google.protobuf.MessageOptions.prototype.getMessageSetWireFormat=function(){return g.Message.getBooleanFieldWithDefault(this,1,!1)};proto.google.protobuf.MessageOptions.prototype.setMessageSetWireFormat=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.MessageOptions.prototype.clearMessageSetWireFormat=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.MessageOptions.prototype.hasMessageSetWireFormat=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.MessageOptions.prototype.getNoStandardDescriptorAccessor=function(){return g.Message.getBooleanFieldWithDefault(this,2,!1)};proto.google.protobuf.MessageOptions.prototype.setNoStandardDescriptorAccessor=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.MessageOptions.prototype.clearNoStandardDescriptorAccessor=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.MessageOptions.prototype.hasNoStandardDescriptorAccessor=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.MessageOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,3,!1)};proto.google.protobuf.MessageOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.MessageOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.MessageOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.MessageOptions.prototype.getMapEntry=function(){return g.Message.getBooleanFieldWithDefault(this,7,!1)};proto.google.protobuf.MessageOptions.prototype.setMapEntry=function(t){return g.Message.setField(this,7,t)};proto.google.protobuf.MessageOptions.prototype.clearMapEntry=function(){return g.Message.setField(this,7,void 0)};proto.google.protobuf.MessageOptions.prototype.hasMapEntry=function(){return g.Message.getField(this,7)!=null};proto.google.protobuf.MessageOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.MessageOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.MessageOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.MessageOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.FieldOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FieldOptions.prototype.toObject=function(t){return proto.google.protobuf.FieldOptions.toObject(t,this)},proto.google.protobuf.FieldOptions.toObject=function(t,o){var r,n={ctype:g.Message.getFieldWithDefault(o,1,0),packed:(r=g.Message.getBooleanField(o,2))==null?void 0:r,jstype:g.Message.getFieldWithDefault(o,6,0),lazy:g.Message.getBooleanFieldWithDefault(o,5,!1),deprecated:g.Message.getBooleanFieldWithDefault(o,3,!1),weak:g.Message.getBooleanFieldWithDefault(o,10,!1),uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,n,proto.google.protobuf.FieldOptions.extensions,proto.google.protobuf.FieldOptions.prototype.getExtension,t),t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.FieldOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.FieldOptions;return proto.google.protobuf.FieldOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.FieldOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readEnum();t.setCtype(n);break;case 2:var n=o.readBool();t.setPacked(n);break;case 6:var n=o.readEnum();t.setJstype(n);break;case 5:var n=o.readBool();t.setLazy(n);break;case 3:var n=o.readBool();t.setDeprecated(n);break;case 10:var n=o.readBool();t.setWeak(n);break;case 999:var n=new proto.google.protobuf.UninterpretedOption;o.readMessage(n,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(n);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.FieldOptions.extensionsBinary,proto.google.protobuf.FieldOptions.prototype.getExtension,proto.google.protobuf.FieldOptions.prototype.setExtension);break}}return t};proto.google.protobuf.FieldOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.FieldOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.FieldOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeEnum(1,r),r=g.Message.getField(t,2),r!=null&&o.writeBool(2,r),r=g.Message.getField(t,6),r!=null&&o.writeEnum(6,r),r=g.Message.getField(t,5),r!=null&&o.writeBool(5,r),r=g.Message.getField(t,3),r!=null&&o.writeBool(3,r),r=g.Message.getField(t,10),r!=null&&o.writeBool(10,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.FieldOptions.extensionsBinary,proto.google.protobuf.FieldOptions.prototype.getExtension)};proto.google.protobuf.FieldOptions.CType={STRING:0,CORD:1,STRING_PIECE:2};proto.google.protobuf.FieldOptions.JSType={JS_NORMAL:0,JS_STRING:1,JS_NUMBER:2};proto.google.protobuf.FieldOptions.prototype.getCtype=function(){return g.Message.getFieldWithDefault(this,1,0)};proto.google.protobuf.FieldOptions.prototype.setCtype=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.FieldOptions.prototype.clearCtype=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.FieldOptions.prototype.hasCtype=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.FieldOptions.prototype.getPacked=function(){return g.Message.getBooleanFieldWithDefault(this,2,!1)};proto.google.protobuf.FieldOptions.prototype.setPacked=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.FieldOptions.prototype.clearPacked=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.FieldOptions.prototype.hasPacked=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.FieldOptions.prototype.getJstype=function(){return g.Message.getFieldWithDefault(this,6,0)};proto.google.protobuf.FieldOptions.prototype.setJstype=function(t){return g.Message.setField(this,6,t)};proto.google.protobuf.FieldOptions.prototype.clearJstype=function(){return g.Message.setField(this,6,void 0)};proto.google.protobuf.FieldOptions.prototype.hasJstype=function(){return g.Message.getField(this,6)!=null};proto.google.protobuf.FieldOptions.prototype.getLazy=function(){return g.Message.getBooleanFieldWithDefault(this,5,!1)};proto.google.protobuf.FieldOptions.prototype.setLazy=function(t){return g.Message.setField(this,5,t)};proto.google.protobuf.FieldOptions.prototype.clearLazy=function(){return g.Message.setField(this,5,void 0)};proto.google.protobuf.FieldOptions.prototype.hasLazy=function(){return g.Message.getField(this,5)!=null};proto.google.protobuf.FieldOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,3,!1)};proto.google.protobuf.FieldOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.FieldOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.FieldOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.FieldOptions.prototype.getWeak=function(){return g.Message.getBooleanFieldWithDefault(this,10,!1)};proto.google.protobuf.FieldOptions.prototype.setWeak=function(t){return g.Message.setField(this,10,t)};proto.google.protobuf.FieldOptions.prototype.clearWeak=function(){return g.Message.setField(this,10,void 0)};proto.google.protobuf.FieldOptions.prototype.hasWeak=function(){return g.Message.getField(this,10)!=null};proto.google.protobuf.FieldOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.FieldOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.FieldOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.FieldOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.OneofOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.OneofOptions.prototype.toObject=function(t){return proto.google.protobuf.OneofOptions.toObject(t,this)},proto.google.protobuf.OneofOptions.toObject=function(t,o){var r,n={uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,n,proto.google.protobuf.OneofOptions.extensions,proto.google.protobuf.OneofOptions.prototype.getExtension,t),t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.OneofOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.OneofOptions;return proto.google.protobuf.OneofOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.OneofOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 999:var n=new proto.google.protobuf.UninterpretedOption;o.readMessage(n,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(n);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.OneofOptions.extensionsBinary,proto.google.protobuf.OneofOptions.prototype.getExtension,proto.google.protobuf.OneofOptions.prototype.setExtension);break}}return t};proto.google.protobuf.OneofOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.OneofOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.OneofOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.OneofOptions.extensionsBinary,proto.google.protobuf.OneofOptions.prototype.getExtension)};proto.google.protobuf.OneofOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.OneofOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.OneofOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.OneofOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.EnumOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumOptions.prototype.toObject=function(t){return proto.google.protobuf.EnumOptions.toObject(t,this)},proto.google.protobuf.EnumOptions.toObject=function(t,o){var r,n={allowAlias:(r=g.Message.getBooleanField(o,2))==null?void 0:r,deprecated:g.Message.getBooleanFieldWithDefault(o,3,!1),uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,n,proto.google.protobuf.EnumOptions.extensions,proto.google.protobuf.EnumOptions.prototype.getExtension,t),t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.EnumOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.EnumOptions;return proto.google.protobuf.EnumOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.EnumOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 2:var n=o.readBool();t.setAllowAlias(n);break;case 3:var n=o.readBool();t.setDeprecated(n);break;case 999:var n=new proto.google.protobuf.UninterpretedOption;o.readMessage(n,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(n);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.EnumOptions.extensionsBinary,proto.google.protobuf.EnumOptions.prototype.getExtension,proto.google.protobuf.EnumOptions.prototype.setExtension);break}}return t};proto.google.protobuf.EnumOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.EnumOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.EnumOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,2),r!=null&&o.writeBool(2,r),r=g.Message.getField(t,3),r!=null&&o.writeBool(3,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.EnumOptions.extensionsBinary,proto.google.protobuf.EnumOptions.prototype.getExtension)};proto.google.protobuf.EnumOptions.prototype.getAllowAlias=function(){return g.Message.getBooleanFieldWithDefault(this,2,!1)};proto.google.protobuf.EnumOptions.prototype.setAllowAlias=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.EnumOptions.prototype.clearAllowAlias=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.EnumOptions.prototype.hasAllowAlias=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.EnumOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,3,!1)};proto.google.protobuf.EnumOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.EnumOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.EnumOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.EnumOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.EnumOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.EnumOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.EnumOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.EnumValueOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumValueOptions.prototype.toObject=function(t){return proto.google.protobuf.EnumValueOptions.toObject(t,this)},proto.google.protobuf.EnumValueOptions.toObject=function(t,o){var r,n={deprecated:g.Message.getBooleanFieldWithDefault(o,1,!1),uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,n,proto.google.protobuf.EnumValueOptions.extensions,proto.google.protobuf.EnumValueOptions.prototype.getExtension,t),t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.EnumValueOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.EnumValueOptions;return proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBool();t.setDeprecated(n);break;case 999:var n=new proto.google.protobuf.UninterpretedOption;o.readMessage(n,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(n);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.EnumValueOptions.extensionsBinary,proto.google.protobuf.EnumValueOptions.prototype.getExtension,proto.google.protobuf.EnumValueOptions.prototype.setExtension);break}}return t};proto.google.protobuf.EnumValueOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeBool(1,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.EnumValueOptions.extensionsBinary,proto.google.protobuf.EnumValueOptions.prototype.getExtension)};proto.google.protobuf.EnumValueOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,1,!1)};proto.google.protobuf.EnumValueOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.EnumValueOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.EnumValueOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.EnumValueOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.EnumValueOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.EnumValueOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.EnumValueOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.ServiceOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ServiceOptions.prototype.toObject=function(t){return proto.google.protobuf.ServiceOptions.toObject(t,this)},proto.google.protobuf.ServiceOptions.toObject=function(t,o){var r,n={deprecated:g.Message.getBooleanFieldWithDefault(o,33,!1),uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,n,proto.google.protobuf.ServiceOptions.extensions,proto.google.protobuf.ServiceOptions.prototype.getExtension,t),t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.ServiceOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.ServiceOptions;return proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 33:var n=o.readBool();t.setDeprecated(n);break;case 999:var n=new proto.google.protobuf.UninterpretedOption;o.readMessage(n,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(n);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.ServiceOptions.extensionsBinary,proto.google.protobuf.ServiceOptions.prototype.getExtension,proto.google.protobuf.ServiceOptions.prototype.setExtension);break}}return t};proto.google.protobuf.ServiceOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.ServiceOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.ServiceOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,33),r!=null&&o.writeBool(33,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.ServiceOptions.extensionsBinary,proto.google.protobuf.ServiceOptions.prototype.getExtension)};proto.google.protobuf.ServiceOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,33,!1)};proto.google.protobuf.ServiceOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,33,t)};proto.google.protobuf.ServiceOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,33,void 0)};proto.google.protobuf.ServiceOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,33)!=null};proto.google.protobuf.ServiceOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.ServiceOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.ServiceOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.ServiceOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.MethodOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.MethodOptions.prototype.toObject=function(t){return proto.google.protobuf.MethodOptions.toObject(t,this)},proto.google.protobuf.MethodOptions.toObject=function(t,o){var r,n={deprecated:g.Message.getBooleanFieldWithDefault(o,33,!1),idempotencyLevel:g.Message.getFieldWithDefault(o,34,0),uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,n,proto.google.protobuf.MethodOptions.extensions,proto.google.protobuf.MethodOptions.prototype.getExtension,t),t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.MethodOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.MethodOptions;return proto.google.protobuf.MethodOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.MethodOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 33:var n=o.readBool();t.setDeprecated(n);break;case 34:var n=o.readEnum();t.setIdempotencyLevel(n);break;case 999:var n=new proto.google.protobuf.UninterpretedOption;o.readMessage(n,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(n);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.MethodOptions.extensionsBinary,proto.google.protobuf.MethodOptions.prototype.getExtension,proto.google.protobuf.MethodOptions.prototype.setExtension);break}}return t};proto.google.protobuf.MethodOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.MethodOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.MethodOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,33),r!=null&&o.writeBool(33,r),r=g.Message.getField(t,34),r!=null&&o.writeEnum(34,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.MethodOptions.extensionsBinary,proto.google.protobuf.MethodOptions.prototype.getExtension)};proto.google.protobuf.MethodOptions.IdempotencyLevel={IDEMPOTENCY_UNKNOWN:0,NO_SIDE_EFFECTS:1,IDEMPOTENT:2};proto.google.protobuf.MethodOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,33,!1)};proto.google.protobuf.MethodOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,33,t)};proto.google.protobuf.MethodOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,33,void 0)};proto.google.protobuf.MethodOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,33)!=null};proto.google.protobuf.MethodOptions.prototype.getIdempotencyLevel=function(){return g.Message.getFieldWithDefault(this,34,0)};proto.google.protobuf.MethodOptions.prototype.setIdempotencyLevel=function(t){return g.Message.setField(this,34,t)};proto.google.protobuf.MethodOptions.prototype.clearIdempotencyLevel=function(){return g.Message.setField(this,34,void 0)};proto.google.protobuf.MethodOptions.prototype.hasIdempotencyLevel=function(){return g.Message.getField(this,34)!=null};proto.google.protobuf.MethodOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.MethodOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.MethodOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.MethodOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.UninterpretedOption.repeatedFields_=[2];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UninterpretedOption.prototype.toObject=function(t){return proto.google.protobuf.UninterpretedOption.toObject(t,this)},proto.google.protobuf.UninterpretedOption.toObject=function(t,o){var r,n={nameList:g.Message.toObjectList(o.getNameList(),proto.google.protobuf.UninterpretedOption.NamePart.toObject,t),identifierValue:(r=g.Message.getField(o,3))==null?void 0:r,positiveIntValue:(r=g.Message.getField(o,4))==null?void 0:r,negativeIntValue:(r=g.Message.getField(o,5))==null?void 0:r,doubleValue:(r=g.Message.getOptionalFloatingPointField(o,6))==null?void 0:r,stringValue:o.getStringValue_asB64(),aggregateValue:(r=g.Message.getField(o,8))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.UninterpretedOption.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.UninterpretedOption;return proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader(r,o)};proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 2:var n=new proto.google.protobuf.UninterpretedOption.NamePart;o.readMessage(n,proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader),t.addName(n);break;case 3:var n=o.readString();t.setIdentifierValue(n);break;case 4:var n=o.readUint64();t.setPositiveIntValue(n);break;case 5:var n=o.readInt64();t.setNegativeIntValue(n);break;case 6:var n=o.readDouble();t.setDoubleValue(n);break;case 7:var n=o.readBytes();t.setStringValue(n);break;case 8:var n=o.readString();t.setAggregateValue(n);break;default:o.skipField();break}}return t};proto.google.protobuf.UninterpretedOption.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getNameList(),r.length>0&&o.writeRepeatedMessage(2,r,proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter),r=g.Message.getField(t,3),r!=null&&o.writeString(3,r),r=g.Message.getField(t,4),r!=null&&o.writeUint64(4,r),r=g.Message.getField(t,5),r!=null&&o.writeInt64(5,r),r=g.Message.getField(t,6),r!=null&&o.writeDouble(6,r),r=g.Message.getField(t,7),r!=null&&o.writeBytes(7,r),r=g.Message.getField(t,8),r!=null&&o.writeString(8,r)};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UninterpretedOption.NamePart.prototype.toObject=function(t){return proto.google.protobuf.UninterpretedOption.NamePart.toObject(t,this)},proto.google.protobuf.UninterpretedOption.NamePart.toObject=function(t,o){var r,n={namePart:(r=g.Message.getField(o,1))==null?void 0:r,isExtension:(r=g.Message.getBooleanField(o,2))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.UninterpretedOption.NamePart;return proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader(r,o)};proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setNamePart(n);break;case 2:var n=o.readBool();t.setIsExtension(n);break;default:o.skipField();break}}return t};proto.google.protobuf.UninterpretedOption.NamePart.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=g.Message.getField(t,2),r!=null&&o.writeBool(2,r)};proto.google.protobuf.UninterpretedOption.NamePart.prototype.getNamePart=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.UninterpretedOption.NamePart.prototype.setNamePart=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.UninterpretedOption.NamePart.prototype.clearNamePart=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.UninterpretedOption.NamePart.prototype.hasNamePart=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.UninterpretedOption.NamePart.prototype.getIsExtension=function(){return g.Message.getBooleanFieldWithDefault(this,2,!1)};proto.google.protobuf.UninterpretedOption.NamePart.prototype.setIsExtension=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.UninterpretedOption.NamePart.prototype.clearIsExtension=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.UninterpretedOption.NamePart.prototype.hasIsExtension=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.UninterpretedOption.prototype.getNameList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption.NamePart,2)};proto.google.protobuf.UninterpretedOption.prototype.setNameList=function(t){return g.Message.setRepeatedWrapperField(this,2,t)};proto.google.protobuf.UninterpretedOption.prototype.addName=function(t,o){return g.Message.addToRepeatedWrapperField(this,2,t,proto.google.protobuf.UninterpretedOption.NamePart,o)};proto.google.protobuf.UninterpretedOption.prototype.clearNameList=function(){return this.setNameList([])};proto.google.protobuf.UninterpretedOption.prototype.getIdentifierValue=function(){return g.Message.getFieldWithDefault(this,3,"")};proto.google.protobuf.UninterpretedOption.prototype.setIdentifierValue=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.UninterpretedOption.prototype.clearIdentifierValue=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.UninterpretedOption.prototype.hasIdentifierValue=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.UninterpretedOption.prototype.getPositiveIntValue=function(){return g.Message.getFieldWithDefault(this,4,0)};proto.google.protobuf.UninterpretedOption.prototype.setPositiveIntValue=function(t){return g.Message.setField(this,4,t)};proto.google.protobuf.UninterpretedOption.prototype.clearPositiveIntValue=function(){return g.Message.setField(this,4,void 0)};proto.google.protobuf.UninterpretedOption.prototype.hasPositiveIntValue=function(){return g.Message.getField(this,4)!=null};proto.google.protobuf.UninterpretedOption.prototype.getNegativeIntValue=function(){return g.Message.getFieldWithDefault(this,5,0)};proto.google.protobuf.UninterpretedOption.prototype.setNegativeIntValue=function(t){return g.Message.setField(this,5,t)};proto.google.protobuf.UninterpretedOption.prototype.clearNegativeIntValue=function(){return g.Message.setField(this,5,void 0)};proto.google.protobuf.UninterpretedOption.prototype.hasNegativeIntValue=function(){return g.Message.getField(this,5)!=null};proto.google.protobuf.UninterpretedOption.prototype.getDoubleValue=function(){return g.Message.getFloatingPointFieldWithDefault(this,6,0)};proto.google.protobuf.UninterpretedOption.prototype.setDoubleValue=function(t){return g.Message.setField(this,6,t)};proto.google.protobuf.UninterpretedOption.prototype.clearDoubleValue=function(){return g.Message.setField(this,6,void 0)};proto.google.protobuf.UninterpretedOption.prototype.hasDoubleValue=function(){return g.Message.getField(this,6)!=null};proto.google.protobuf.UninterpretedOption.prototype.getStringValue=function(){return g.Message.getFieldWithDefault(this,7,"")};proto.google.protobuf.UninterpretedOption.prototype.getStringValue_asB64=function(){return g.Message.bytesAsB64(this.getStringValue())};proto.google.protobuf.UninterpretedOption.prototype.getStringValue_asU8=function(){return g.Message.bytesAsU8(this.getStringValue())};proto.google.protobuf.UninterpretedOption.prototype.setStringValue=function(t){return g.Message.setField(this,7,t)};proto.google.protobuf.UninterpretedOption.prototype.clearStringValue=function(){return g.Message.setField(this,7,void 0)};proto.google.protobuf.UninterpretedOption.prototype.hasStringValue=function(){return g.Message.getField(this,7)!=null};proto.google.protobuf.UninterpretedOption.prototype.getAggregateValue=function(){return g.Message.getFieldWithDefault(this,8,"")};proto.google.protobuf.UninterpretedOption.prototype.setAggregateValue=function(t){return g.Message.setField(this,8,t)};proto.google.protobuf.UninterpretedOption.prototype.clearAggregateValue=function(){return g.Message.setField(this,8,void 0)};proto.google.protobuf.UninterpretedOption.prototype.hasAggregateValue=function(){return g.Message.getField(this,8)!=null};proto.google.protobuf.SourceCodeInfo.repeatedFields_=[1];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.SourceCodeInfo.prototype.toObject=function(t){return proto.google.protobuf.SourceCodeInfo.toObject(t,this)},proto.google.protobuf.SourceCodeInfo.toObject=function(t,o){var r,n={locationList:g.Message.toObjectList(o.getLocationList(),proto.google.protobuf.SourceCodeInfo.Location.toObject,t)};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.SourceCodeInfo.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.SourceCodeInfo;return proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader(r,o)};proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.google.protobuf.SourceCodeInfo.Location;o.readMessage(n,proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader),t.addLocation(n);break;default:o.skipField();break}}return t};proto.google.protobuf.SourceCodeInfo.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getLocationList(),r.length>0&&o.writeRepeatedMessage(1,r,proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter)};proto.google.protobuf.SourceCodeInfo.Location.repeatedFields_=[1,2,6];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.SourceCodeInfo.Location.prototype.toObject=function(t){return proto.google.protobuf.SourceCodeInfo.Location.toObject(t,this)},proto.google.protobuf.SourceCodeInfo.Location.toObject=function(t,o){var r,n={pathList:(r=g.Message.getRepeatedField(o,1))==null?void 0:r,spanList:(r=g.Message.getRepeatedField(o,2))==null?void 0:r,leadingComments:(r=g.Message.getField(o,3))==null?void 0:r,trailingComments:(r=g.Message.getField(o,4))==null?void 0:r,leadingDetachedCommentsList:(r=g.Message.getRepeatedField(o,6))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.SourceCodeInfo.Location.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.SourceCodeInfo.Location;return proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader(r,o)};proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:for(var i=o.isDelimited()?o.readPackedInt32():[o.readInt32()],n=0;n<i.length;n++)t.addPath(i[n]);break;case 2:for(var i=o.isDelimited()?o.readPackedInt32():[o.readInt32()],n=0;n<i.length;n++)t.addSpan(i[n]);break;case 3:var s=o.readString();t.setLeadingComments(s);break;case 4:var s=o.readString();t.setTrailingComments(s);break;case 6:var s=o.readString();t.addLeadingDetachedComments(s);break;default:o.skipField();break}}return t};proto.google.protobuf.SourceCodeInfo.Location.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getPathList(),r.length>0&&o.writePackedInt32(1,r),r=t.getSpanList(),r.length>0&&o.writePackedInt32(2,r),r=g.Message.getField(t,3),r!=null&&o.writeString(3,r),r=g.Message.getField(t,4),r!=null&&o.writeString(4,r),r=t.getLeadingDetachedCommentsList(),r.length>0&&o.writeRepeatedString(6,r)};proto.google.protobuf.SourceCodeInfo.Location.prototype.getPathList=function(){return g.Message.getRepeatedField(this,1)};proto.google.protobuf.SourceCodeInfo.Location.prototype.setPathList=function(t){return g.Message.setField(this,1,t||[])};proto.google.protobuf.SourceCodeInfo.Location.prototype.addPath=function(t,o){return g.Message.addToRepeatedField(this,1,t,o)};proto.google.protobuf.SourceCodeInfo.Location.prototype.clearPathList=function(){return this.setPathList([])};proto.google.protobuf.SourceCodeInfo.Location.prototype.getSpanList=function(){return g.Message.getRepeatedField(this,2)};proto.google.protobuf.SourceCodeInfo.Location.prototype.setSpanList=function(t){return g.Message.setField(this,2,t||[])};proto.google.protobuf.SourceCodeInfo.Location.prototype.addSpan=function(t,o){return g.Message.addToRepeatedField(this,2,t,o)};proto.google.protobuf.SourceCodeInfo.Location.prototype.clearSpanList=function(){return this.setSpanList([])};proto.google.protobuf.SourceCodeInfo.Location.prototype.getLeadingComments=function(){return g.Message.getFieldWithDefault(this,3,"")};proto.google.protobuf.SourceCodeInfo.Location.prototype.setLeadingComments=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.SourceCodeInfo.Location.prototype.clearLeadingComments=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.SourceCodeInfo.Location.prototype.hasLeadingComments=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.SourceCodeInfo.Location.prototype.getTrailingComments=function(){return g.Message.getFieldWithDefault(this,4,"")};proto.google.protobuf.SourceCodeInfo.Location.prototype.setTrailingComments=function(t){return g.Message.setField(this,4,t)};proto.google.protobuf.SourceCodeInfo.Location.prototype.clearTrailingComments=function(){return g.Message.setField(this,4,void 0)};proto.google.protobuf.SourceCodeInfo.Location.prototype.hasTrailingComments=function(){return g.Message.getField(this,4)!=null};proto.google.protobuf.SourceCodeInfo.Location.prototype.getLeadingDetachedCommentsList=function(){return g.Message.getRepeatedField(this,6)};proto.google.protobuf.SourceCodeInfo.Location.prototype.setLeadingDetachedCommentsList=function(t){return g.Message.setField(this,6,t||[])};proto.google.protobuf.SourceCodeInfo.Location.prototype.addLeadingDetachedComments=function(t,o){return g.Message.addToRepeatedField(this,6,t,o)};proto.google.protobuf.SourceCodeInfo.Location.prototype.clearLeadingDetachedCommentsList=function(){return this.setLeadingDetachedCommentsList([])};proto.google.protobuf.SourceCodeInfo.prototype.getLocationList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.SourceCodeInfo.Location,1)};proto.google.protobuf.SourceCodeInfo.prototype.setLocationList=function(t){return g.Message.setRepeatedWrapperField(this,1,t)};proto.google.protobuf.SourceCodeInfo.prototype.addLocation=function(t,o){return g.Message.addToRepeatedWrapperField(this,1,t,proto.google.protobuf.SourceCodeInfo.Location,o)};proto.google.protobuf.SourceCodeInfo.prototype.clearLocationList=function(){return this.setLocationList([])};proto.google.protobuf.GeneratedCodeInfo.repeatedFields_=[1];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.GeneratedCodeInfo.prototype.toObject=function(t){return proto.google.protobuf.GeneratedCodeInfo.toObject(t,this)},proto.google.protobuf.GeneratedCodeInfo.toObject=function(t,o){var r,n={annotationList:g.Message.toObjectList(o.getAnnotationList(),proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject,t)};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.GeneratedCodeInfo.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.GeneratedCodeInfo;return proto.google.protobuf.GeneratedCodeInfo.deserializeBinaryFromReader(r,o)};proto.google.protobuf.GeneratedCodeInfo.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.google.protobuf.GeneratedCodeInfo.Annotation;o.readMessage(n,proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader),t.addAnnotation(n);break;default:o.skipField();break}}return t};proto.google.protobuf.GeneratedCodeInfo.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.GeneratedCodeInfo.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.GeneratedCodeInfo.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getAnnotationList(),r.length>0&&o.writeRepeatedMessage(1,r,proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter)};proto.google.protobuf.GeneratedCodeInfo.Annotation.repeatedFields_=[1];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.toObject=function(t){return proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject(t,this)},proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject=function(t,o){var r,n={pathList:(r=g.Message.getRepeatedField(o,1))==null?void 0:r,sourceFile:(r=g.Message.getField(o,2))==null?void 0:r,begin:(r=g.Message.getField(o,3))==null?void 0:r,end:(r=g.Message.getField(o,4))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.GeneratedCodeInfo.Annotation;return proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader(r,o)};proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:for(var n=o.isDelimited()?o.readPackedInt32():[o.readInt32()],i=0;i<n.length;i++)t.addPath(n[i]);break;case 2:var s=o.readString();t.setSourceFile(s);break;case 3:var s=o.readInt32();t.setBegin(s);break;case 4:var s=o.readInt32();t.setEnd(s);break;default:o.skipField();break}}return t};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getPathList(),r.length>0&&o.writePackedInt32(1,r),r=g.Message.getField(t,2),r!=null&&o.writeString(2,r),r=g.Message.getField(t,3),r!=null&&o.writeInt32(3,r),r=g.Message.getField(t,4),r!=null&&o.writeInt32(4,r)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getPathList=function(){return g.Message.getRepeatedField(this,1)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setPathList=function(t){return g.Message.setField(this,1,t||[])};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.addPath=function(t,o){return g.Message.addToRepeatedField(this,1,t,o)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearPathList=function(){return this.setPathList([])};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getSourceFile=function(){return g.Message.getFieldWithDefault(this,2,"")};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setSourceFile=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearSourceFile=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasSourceFile=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getBegin=function(){return g.Message.getFieldWithDefault(this,3,0)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setBegin=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearBegin=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasBegin=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getEnd=function(){return g.Message.getFieldWithDefault(this,4,0)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setEnd=function(t){return g.Message.setField(this,4,t)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearEnd=function(){return g.Message.setField(this,4,void 0)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasEnd=function(){return g.Message.getField(this,4)!=null};proto.google.protobuf.GeneratedCodeInfo.prototype.getAnnotationList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.GeneratedCodeInfo.Annotation,1)};proto.google.protobuf.GeneratedCodeInfo.prototype.setAnnotationList=function(t){return g.Message.setRepeatedWrapperField(this,1,t)};proto.google.protobuf.GeneratedCodeInfo.prototype.addAnnotation=function(t,o){return g.Message.addToRepeatedWrapperField(this,1,t,proto.google.protobuf.GeneratedCodeInfo.Annotation,o)};proto.google.protobuf.GeneratedCodeInfo.prototype.clearAnnotationList=function(){return this.setAnnotationList([])};j.object.extend(ns,proto.google.protobuf)});var as=H(ss=>{var Y=ur(),Fe=Y,Jt=Function("return this")(),Go=is();Fe.object.extend(proto,Go);Fe.exportSymbol("proto.ic_base_types.pb.v1.CanisterAuthzInfo",null,Jt);Fe.exportSymbol("proto.ic_base_types.pb.v1.CanisterId",null,Jt);Fe.exportSymbol("proto.ic_base_types.pb.v1.MethodAuthzInfo",null,Jt);Fe.exportSymbol("proto.ic_base_types.pb.v1.NeuronId",null,Jt);Fe.exportSymbol("proto.ic_base_types.pb.v1.PrincipalId",null,Jt);Fe.exportSymbol("proto.ic_base_types.pb.v1.ProposalId",null,Jt);Fe.exportSymbol("proto.ic_base_types.pb.v1.tuiSignedDisplayQ22021",null,Jt);Fe.exportSymbol("proto.ic_base_types.pb.v1.tuiSignedMessage",null,Jt);proto.ic_base_types.pb.v1.PrincipalId=function(t){Y.Message.initialize(this,t,0,-1,null,null)};Fe.inherits(proto.ic_base_types.pb.v1.PrincipalId,Y.Message);Fe.DEBUG&&!COMPILED&&(proto.ic_base_types.pb.v1.PrincipalId.displayName="proto.ic_base_types.pb.v1.PrincipalId");proto.ic_base_types.pb.v1.CanisterId=function(t){Y.Message.initialize(this,t,0,-1,null,null)};Fe.inherits(proto.ic_base_types.pb.v1.CanisterId,Y.Message);Fe.DEBUG&&!COMPILED&&(proto.ic_base_types.pb.v1.CanisterId.displayName="proto.ic_base_types.pb.v1.CanisterId");proto.ic_base_types.pb.v1.NeuronId=function(t){Y.Message.initialize(this,t,0,-1,null,null)};Fe.inherits(proto.ic_base_types.pb.v1.NeuronId,Y.Message);Fe.DEBUG&&!COMPILED&&(proto.ic_base_types.pb.v1.NeuronId.displayName="proto.ic_base_types.pb.v1.NeuronId");proto.ic_base_types.pb.v1.ProposalId=function(t){Y.Message.initialize(this,t,0,-1,null,null)};Fe.inherits(proto.ic_base_types.pb.v1.ProposalId,Y.Message);Fe.DEBUG&&!COMPILED&&(proto.ic_base_types.pb.v1.ProposalId.displayName="proto.ic_base_types.pb.v1.ProposalId");proto.ic_base_types.pb.v1.MethodAuthzInfo=function(t){Y.Message.initialize(this,t,0,-1,proto.ic_base_types.pb.v1.MethodAuthzInfo.repeatedFields_,null)};Fe.inherits(proto.ic_base_types.pb.v1.MethodAuthzInfo,Y.Message);Fe.DEBUG&&!COMPILED&&(proto.ic_base_types.pb.v1.MethodAuthzInfo.displayName="proto.ic_base_types.pb.v1.MethodAuthzInfo");proto.ic_base_types.pb.v1.CanisterAuthzInfo=function(t){Y.Message.initialize(this,t,0,-1,proto.ic_base_types.pb.v1.CanisterAuthzInfo.repeatedFields_,null)};Fe.inherits(proto.ic_base_types.pb.v1.CanisterAuthzInfo,Y.Message);Fe.DEBUG&&!COMPILED&&(proto.ic_base_types.pb.v1.CanisterAuthzInfo.displayName="proto.ic_base_types.pb.v1.CanisterAuthzInfo");Y.Message.GENERATE_TO_OBJECT&&(proto.ic_base_types.pb.v1.PrincipalId.prototype.toObject=function(t){return proto.ic_base_types.pb.v1.PrincipalId.toObject(t,this)},proto.ic_base_types.pb.v1.PrincipalId.toObject=function(t,o){var r,n={serializedId:o.getSerializedId_asB64()};return t&&(n.$jspbMessageInstance=o),n});proto.ic_base_types.pb.v1.PrincipalId.deserializeBinary=function(t){var o=new Y.BinaryReader(t),r=new proto.ic_base_types.pb.v1.PrincipalId;return proto.ic_base_types.pb.v1.PrincipalId.deserializeBinaryFromReader(r,o)};proto.ic_base_types.pb.v1.PrincipalId.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBytes();t.setSerializedId(n);break;default:o.skipField();break}}return t};proto.ic_base_types.pb.v1.PrincipalId.prototype.serializeBinary=function(){var t=new Y.BinaryWriter;return proto.ic_base_types.pb.v1.PrincipalId.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_base_types.pb.v1.PrincipalId.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getSerializedId_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_base_types.pb.v1.PrincipalId.prototype.getSerializedId=function(){return Y.Message.getFieldWithDefault(this,1,"")};proto.ic_base_types.pb.v1.PrincipalId.prototype.getSerializedId_asB64=function(){return Y.Message.bytesAsB64(this.getSerializedId())};proto.ic_base_types.pb.v1.PrincipalId.prototype.getSerializedId_asU8=function(){return Y.Message.bytesAsU8(this.getSerializedId())};proto.ic_base_types.pb.v1.PrincipalId.prototype.setSerializedId=function(t){return Y.Message.setProto3BytesField(this,1,t)};Y.Message.GENERATE_TO_OBJECT&&(proto.ic_base_types.pb.v1.CanisterId.prototype.toObject=function(t){return proto.ic_base_types.pb.v1.CanisterId.toObject(t,this)},proto.ic_base_types.pb.v1.CanisterId.toObject=function(t,o){var r,n={serializedId:o.getSerializedId_asB64()};return t&&(n.$jspbMessageInstance=o),n});proto.ic_base_types.pb.v1.CanisterId.deserializeBinary=function(t){var o=new Y.BinaryReader(t),r=new proto.ic_base_types.pb.v1.CanisterId;return proto.ic_base_types.pb.v1.CanisterId.deserializeBinaryFromReader(r,o)};proto.ic_base_types.pb.v1.CanisterId.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBytes();t.setSerializedId(n);break;default:o.skipField();break}}return t};proto.ic_base_types.pb.v1.CanisterId.prototype.serializeBinary=function(){var t=new Y.BinaryWriter;return proto.ic_base_types.pb.v1.CanisterId.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_base_types.pb.v1.CanisterId.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getSerializedId_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_base_types.pb.v1.CanisterId.prototype.getSerializedId=function(){return Y.Message.getFieldWithDefault(this,1,"")};proto.ic_base_types.pb.v1.CanisterId.prototype.getSerializedId_asB64=function(){return Y.Message.bytesAsB64(this.getSerializedId())};proto.ic_base_types.pb.v1.CanisterId.prototype.getSerializedId_asU8=function(){return Y.Message.bytesAsU8(this.getSerializedId())};proto.ic_base_types.pb.v1.CanisterId.prototype.setSerializedId=function(t){return Y.Message.setProto3BytesField(this,1,t)};Y.Message.GENERATE_TO_OBJECT&&(proto.ic_base_types.pb.v1.NeuronId.prototype.toObject=function(t){return proto.ic_base_types.pb.v1.NeuronId.toObject(t,this)},proto.ic_base_types.pb.v1.NeuronId.toObject=function(t,o){var r,n={id:Y.Message.getFieldWithDefault(o,2,"0")};return t&&(n.$jspbMessageInstance=o),n});proto.ic_base_types.pb.v1.NeuronId.deserializeBinary=function(t){var o=new Y.BinaryReader(t),r=new proto.ic_base_types.pb.v1.NeuronId;return proto.ic_base_types.pb.v1.NeuronId.deserializeBinaryFromReader(r,o)};proto.ic_base_types.pb.v1.NeuronId.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 2:var n=o.readUint64String();t.setId(n);break;default:o.skipField();break}}return t};proto.ic_base_types.pb.v1.NeuronId.prototype.serializeBinary=function(){var t=new Y.BinaryWriter;return proto.ic_base_types.pb.v1.NeuronId.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_base_types.pb.v1.NeuronId.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getId(),parseInt(r,10)!==0&&o.writeUint64String(2,r)};proto.ic_base_types.pb.v1.NeuronId.prototype.getId=function(){return Y.Message.getFieldWithDefault(this,2,"0")};proto.ic_base_types.pb.v1.NeuronId.prototype.setId=function(t){return Y.Message.setProto3StringIntField(this,2,t)};Y.Message.GENERATE_TO_OBJECT&&(proto.ic_base_types.pb.v1.ProposalId.prototype.toObject=function(t){return proto.ic_base_types.pb.v1.ProposalId.toObject(t,this)},proto.ic_base_types.pb.v1.ProposalId.toObject=function(t,o){var r,n={id:Y.Message.getFieldWithDefault(o,1,"0")};return t&&(n.$jspbMessageInstance=o),n});proto.ic_base_types.pb.v1.ProposalId.deserializeBinary=function(t){var o=new Y.BinaryReader(t),r=new proto.ic_base_types.pb.v1.ProposalId;return proto.ic_base_types.pb.v1.ProposalId.deserializeBinaryFromReader(r,o)};proto.ic_base_types.pb.v1.ProposalId.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readUint64String();t.setId(n);break;default:o.skipField();break}}return t};proto.ic_base_types.pb.v1.ProposalId.prototype.serializeBinary=function(){var t=new Y.BinaryWriter;return proto.ic_base_types.pb.v1.ProposalId.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_base_types.pb.v1.ProposalId.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getId(),parseInt(r,10)!==0&&o.writeUint64String(1,r)};proto.ic_base_types.pb.v1.ProposalId.prototype.getId=function(){return Y.Message.getFieldWithDefault(this,1,"0")};proto.ic_base_types.pb.v1.ProposalId.prototype.setId=function(t){return Y.Message.setProto3StringIntField(this,1,t)};proto.ic_base_types.pb.v1.MethodAuthzInfo.repeatedFields_=[2];Y.Message.GENERATE_TO_OBJECT&&(proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.toObject=function(t){return proto.ic_base_types.pb.v1.MethodAuthzInfo.toObject(t,this)},proto.ic_base_types.pb.v1.MethodAuthzInfo.toObject=function(t,o){var r,n={methodName:Y.Message.getFieldWithDefault(o,1,""),principalIdsList:o.getPrincipalIdsList_asB64()};return t&&(n.$jspbMessageInstance=o),n});proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinary=function(t){var o=new Y.BinaryReader(t),r=new proto.ic_base_types.pb.v1.MethodAuthzInfo;return proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinaryFromReader(r,o)};proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setMethodName(n);break;case 2:var n=o.readBytes();t.addPrincipalIds(n);break;default:o.skipField();break}}return t};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.serializeBinary=function(){var t=new Y.BinaryWriter;return proto.ic_base_types.pb.v1.MethodAuthzInfo.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_base_types.pb.v1.MethodAuthzInfo.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getMethodName(),r.length>0&&o.writeString(1,r),r=t.getPrincipalIdsList_asU8(),r.length>0&&o.writeRepeatedBytes(2,r)};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getMethodName=function(){return Y.Message.getFieldWithDefault(this,1,"")};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.setMethodName=function(t){return Y.Message.setProto3StringField(this,1,t)};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getPrincipalIdsList=function(){return Y.Message.getRepeatedField(this,2)};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getPrincipalIdsList_asB64=function(){return Y.Message.bytesListAsB64(this.getPrincipalIdsList())};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getPrincipalIdsList_asU8=function(){return Y.Message.bytesListAsU8(this.getPrincipalIdsList())};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.setPrincipalIdsList=function(t){return Y.Message.setField(this,2,t||[])};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.addPrincipalIds=function(t,o){return Y.Message.addToRepeatedField(this,2,t,o)};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.clearPrincipalIdsList=function(){return this.setPrincipalIdsList([])};proto.ic_base_types.pb.v1.CanisterAuthzInfo.repeatedFields_=[1];Y.Message.GENERATE_TO_OBJECT&&(proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.toObject=function(t){return proto.ic_base_types.pb.v1.CanisterAuthzInfo.toObject(t,this)},proto.ic_base_types.pb.v1.CanisterAuthzInfo.toObject=function(t,o){var r,n={methodsAuthzList:Y.Message.toObjectList(o.getMethodsAuthzList(),proto.ic_base_types.pb.v1.MethodAuthzInfo.toObject,t)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_base_types.pb.v1.CanisterAuthzInfo.deserializeBinary=function(t){var o=new Y.BinaryReader(t),r=new proto.ic_base_types.pb.v1.CanisterAuthzInfo;return proto.ic_base_types.pb.v1.CanisterAuthzInfo.deserializeBinaryFromReader(r,o)};proto.ic_base_types.pb.v1.CanisterAuthzInfo.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_base_types.pb.v1.MethodAuthzInfo;o.readMessage(n,proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinaryFromReader),t.addMethodsAuthz(n);break;default:o.skipField();break}}return t};proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.serializeBinary=function(){var t=new Y.BinaryWriter;return proto.ic_base_types.pb.v1.CanisterAuthzInfo.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_base_types.pb.v1.CanisterAuthzInfo.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getMethodsAuthzList(),r.length>0&&o.writeRepeatedMessage(1,r,proto.ic_base_types.pb.v1.MethodAuthzInfo.serializeBinaryToWriter)};proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.getMethodsAuthzList=function(){return Y.Message.getRepeatedWrapperField(this,proto.ic_base_types.pb.v1.MethodAuthzInfo,1)};proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.setMethodsAuthzList=function(t){return Y.Message.setRepeatedWrapperField(this,1,t)};proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.addMethodsAuthz=function(t,o){return Y.Message.addToRepeatedWrapperField(this,1,t,proto.ic_base_types.pb.v1.MethodAuthzInfo,o)};proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.clearMethodsAuthzList=function(){return this.setMethodsAuthzList([])};proto.ic_base_types.pb.v1.tuiSignedMessage=new Y.ExtensionFieldInfo(2e4,{tuiSignedMessage:0},null,null,0);Go.MessageOptions.extensionsBinary[2e4]=new Y.ExtensionFieldBinaryInfo(proto.ic_base_types.pb.v1.tuiSignedMessage,Y.BinaryReader.prototype.readBool,Y.BinaryWriter.prototype.writeBool,void 0,void 0,!1);Go.MessageOptions.extensions[2e4]=proto.ic_base_types.pb.v1.tuiSignedMessage;proto.ic_base_types.pb.v1.tuiSignedDisplayQ22021=new Y.ExtensionFieldInfo(20001,{tuiSignedDisplayQ22021:0},null,null,0);Go.FieldOptions.extensionsBinary[20001]=new Y.ExtensionFieldBinaryInfo(proto.ic_base_types.pb.v1.tuiSignedDisplayQ22021,Y.BinaryReader.prototype.readBool,Y.BinaryWriter.prototype.writeBool,void 0,void 0,!1);Go.FieldOptions.extensions[20001]=proto.ic_base_types.pb.v1.tuiSignedDisplayQ22021;Fe.object.extend(ss,proto.ic_base_types.pb.v1)});var lr=H(gs=>{var A=ur(),k=A,pe=Function("return this")(),Pe=as();k.object.extend(proto,Pe);k.exportSymbol("proto.ic_ledger.pb.v1.Account",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.AccountBalanceRequest",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.AccountBalanceResponse",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.AccountIdentifier",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.Block",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.BlockHeight",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.Burn",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.Certification",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.CyclesNotificationResponse",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.CyclesNotificationResponse.ResponseCase",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.EncodedBlock",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.EncodedBlocks",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.GetBlocksRequest",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.GetBlocksResponse",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.GetBlocksResponse.GetBlocksContentCase",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.Hash",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.ICPTs",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.Memo",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.Mint",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.NotifyRequest",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.NotifyResponse",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.Payment",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.Refund",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.Send",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.SendRequest",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.SendResponse",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.Subaccount",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.TimeStamp",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.TipOfChainRequest",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.TipOfChainResponse",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.ToppedUp",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.Transaction",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.Transaction.TransferCase",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.TransactionNotificationRequest",null,pe);k.exportSymbol("proto.ic_ledger.pb.v1.TransactionNotificationResponse",null,pe);proto.ic_ledger.pb.v1.SendRequest=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.SendRequest,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.SendRequest.displayName="proto.ic_ledger.pb.v1.SendRequest");proto.ic_ledger.pb.v1.SendResponse=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.SendResponse,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.SendResponse.displayName="proto.ic_ledger.pb.v1.SendResponse");proto.ic_ledger.pb.v1.NotifyRequest=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.NotifyRequest,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.NotifyRequest.displayName="proto.ic_ledger.pb.v1.NotifyRequest");proto.ic_ledger.pb.v1.NotifyResponse=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.NotifyResponse,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.NotifyResponse.displayName="proto.ic_ledger.pb.v1.NotifyResponse");proto.ic_ledger.pb.v1.TransactionNotificationRequest=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.TransactionNotificationRequest,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.TransactionNotificationRequest.displayName="proto.ic_ledger.pb.v1.TransactionNotificationRequest");proto.ic_ledger.pb.v1.TransactionNotificationResponse=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.TransactionNotificationResponse,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.TransactionNotificationResponse.displayName="proto.ic_ledger.pb.v1.TransactionNotificationResponse");proto.ic_ledger.pb.v1.CyclesNotificationResponse=function(t){A.Message.initialize(this,t,0,-1,null,proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_)};k.inherits(proto.ic_ledger.pb.v1.CyclesNotificationResponse,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.CyclesNotificationResponse.displayName="proto.ic_ledger.pb.v1.CyclesNotificationResponse");proto.ic_ledger.pb.v1.AccountBalanceRequest=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.AccountBalanceRequest,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.AccountBalanceRequest.displayName="proto.ic_ledger.pb.v1.AccountBalanceRequest");proto.ic_ledger.pb.v1.AccountBalanceResponse=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.AccountBalanceResponse,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.AccountBalanceResponse.displayName="proto.ic_ledger.pb.v1.AccountBalanceResponse");proto.ic_ledger.pb.v1.TipOfChainRequest=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.TipOfChainRequest,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.TipOfChainRequest.displayName="proto.ic_ledger.pb.v1.TipOfChainRequest");proto.ic_ledger.pb.v1.TipOfChainResponse=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.TipOfChainResponse,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.TipOfChainResponse.displayName="proto.ic_ledger.pb.v1.TipOfChainResponse");proto.ic_ledger.pb.v1.EncodedBlock=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.EncodedBlock,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.EncodedBlock.displayName="proto.ic_ledger.pb.v1.EncodedBlock");proto.ic_ledger.pb.v1.GetBlocksRequest=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.GetBlocksRequest,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.GetBlocksRequest.displayName="proto.ic_ledger.pb.v1.GetBlocksRequest");proto.ic_ledger.pb.v1.Refund=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Refund,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Refund.displayName="proto.ic_ledger.pb.v1.Refund");proto.ic_ledger.pb.v1.ToppedUp=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.ToppedUp,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.ToppedUp.displayName="proto.ic_ledger.pb.v1.ToppedUp");proto.ic_ledger.pb.v1.EncodedBlocks=function(t){A.Message.initialize(this,t,0,-1,proto.ic_ledger.pb.v1.EncodedBlocks.repeatedFields_,null)};k.inherits(proto.ic_ledger.pb.v1.EncodedBlocks,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.EncodedBlocks.displayName="proto.ic_ledger.pb.v1.EncodedBlocks");proto.ic_ledger.pb.v1.GetBlocksResponse=function(t){A.Message.initialize(this,t,0,-1,null,proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_)};k.inherits(proto.ic_ledger.pb.v1.GetBlocksResponse,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.GetBlocksResponse.displayName="proto.ic_ledger.pb.v1.GetBlocksResponse");proto.ic_ledger.pb.v1.ICPTs=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.ICPTs,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.ICPTs.displayName="proto.ic_ledger.pb.v1.ICPTs");proto.ic_ledger.pb.v1.Payment=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Payment,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Payment.displayName="proto.ic_ledger.pb.v1.Payment");proto.ic_ledger.pb.v1.BlockHeight=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.BlockHeight,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.BlockHeight.displayName="proto.ic_ledger.pb.v1.BlockHeight");proto.ic_ledger.pb.v1.Block=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Block,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Block.displayName="proto.ic_ledger.pb.v1.Block");proto.ic_ledger.pb.v1.Hash=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Hash,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Hash.displayName="proto.ic_ledger.pb.v1.Hash");proto.ic_ledger.pb.v1.Account=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Account,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Account.displayName="proto.ic_ledger.pb.v1.Account");proto.ic_ledger.pb.v1.Transaction=function(t){A.Message.initialize(this,t,0,-1,null,proto.ic_ledger.pb.v1.Transaction.oneofGroups_)};k.inherits(proto.ic_ledger.pb.v1.Transaction,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Transaction.displayName="proto.ic_ledger.pb.v1.Transaction");proto.ic_ledger.pb.v1.Send=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Send,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Send.displayName="proto.ic_ledger.pb.v1.Send");proto.ic_ledger.pb.v1.Mint=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Mint,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Mint.displayName="proto.ic_ledger.pb.v1.Mint");proto.ic_ledger.pb.v1.Burn=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Burn,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Burn.displayName="proto.ic_ledger.pb.v1.Burn");proto.ic_ledger.pb.v1.AccountIdentifier=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.AccountIdentifier,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.AccountIdentifier.displayName="proto.ic_ledger.pb.v1.AccountIdentifier");proto.ic_ledger.pb.v1.Subaccount=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Subaccount,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Subaccount.displayName="proto.ic_ledger.pb.v1.Subaccount");proto.ic_ledger.pb.v1.Memo=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Memo,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Memo.displayName="proto.ic_ledger.pb.v1.Memo");proto.ic_ledger.pb.v1.TimeStamp=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.TimeStamp,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.TimeStamp.displayName="proto.ic_ledger.pb.v1.TimeStamp");proto.ic_ledger.pb.v1.Certification=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Certification,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Certification.displayName="proto.ic_ledger.pb.v1.Certification");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.SendRequest.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.SendRequest.toObject(t,this)},proto.ic_ledger.pb.v1.SendRequest.toObject=function(t,o){var r,n={memo:(r=o.getMemo())&&proto.ic_ledger.pb.v1.Memo.toObject(t,r),payment:(r=o.getPayment())&&proto.ic_ledger.pb.v1.Payment.toObject(t,r),maxFee:(r=o.getMaxFee())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r),fromSubaccount:(r=o.getFromSubaccount())&&proto.ic_ledger.pb.v1.Subaccount.toObject(t,r),to:(r=o.getTo())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r),createdAt:(r=o.getCreatedAt())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r),createdAtTime:(r=o.getCreatedAtTime())&&proto.ic_ledger.pb.v1.TimeStamp.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.SendRequest.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.SendRequest;return proto.ic_ledger.pb.v1.SendRequest.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.SendRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.Memo;o.readMessage(n,proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader),t.setMemo(n);break;case 2:var n=new proto.ic_ledger.pb.v1.Payment;o.readMessage(n,proto.ic_ledger.pb.v1.Payment.deserializeBinaryFromReader),t.setPayment(n);break;case 3:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setMaxFee(n);break;case 4:var n=new proto.ic_ledger.pb.v1.Subaccount;o.readMessage(n,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader),t.setFromSubaccount(n);break;case 5:var n=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(n,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setTo(n);break;case 6:var n=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(n,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setCreatedAt(n);break;case 7:var n=new proto.ic_ledger.pb.v1.TimeStamp;o.readMessage(n,proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader),t.setCreatedAtTime(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.SendRequest.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.SendRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.SendRequest.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getMemo(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter),r=t.getPayment(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.Payment.serializeBinaryToWriter),r=t.getMaxFee(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter),r=t.getFromSubaccount(),r!=null&&o.writeMessage(4,r,proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter),r=t.getTo(),r!=null&&o.writeMessage(5,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter),r=t.getCreatedAt(),r!=null&&o.writeMessage(6,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter),r=t.getCreatedAtTime(),r!=null&&o.writeMessage(7,r,proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.SendRequest.prototype.getMemo=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Memo,1)};proto.ic_ledger.pb.v1.SendRequest.prototype.setMemo=function(t){return A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearMemo=function(){return this.setMemo(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasMemo=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.SendRequest.prototype.getPayment=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Payment,2)};proto.ic_ledger.pb.v1.SendRequest.prototype.setPayment=function(t){return A.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearPayment=function(){return this.setPayment(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasPayment=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.SendRequest.prototype.getMaxFee=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,3)};proto.ic_ledger.pb.v1.SendRequest.prototype.setMaxFee=function(t){return A.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearMaxFee=function(){return this.setMaxFee(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasMaxFee=function(){return A.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.SendRequest.prototype.getFromSubaccount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Subaccount,4)};proto.ic_ledger.pb.v1.SendRequest.prototype.setFromSubaccount=function(t){return A.Message.setWrapperField(this,4,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearFromSubaccount=function(){return this.setFromSubaccount(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasFromSubaccount=function(){return A.Message.getField(this,4)!=null};proto.ic_ledger.pb.v1.SendRequest.prototype.getTo=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,5)};proto.ic_ledger.pb.v1.SendRequest.prototype.setTo=function(t){return A.Message.setWrapperField(this,5,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearTo=function(){return this.setTo(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasTo=function(){return A.Message.getField(this,5)!=null};proto.ic_ledger.pb.v1.SendRequest.prototype.getCreatedAt=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,6)};proto.ic_ledger.pb.v1.SendRequest.prototype.setCreatedAt=function(t){return A.Message.setWrapperField(this,6,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearCreatedAt=function(){return this.setCreatedAt(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasCreatedAt=function(){return A.Message.getField(this,6)!=null};proto.ic_ledger.pb.v1.SendRequest.prototype.getCreatedAtTime=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.TimeStamp,7)};proto.ic_ledger.pb.v1.SendRequest.prototype.setCreatedAtTime=function(t){return A.Message.setWrapperField(this,7,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearCreatedAtTime=function(){return this.setCreatedAtTime(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasCreatedAtTime=function(){return A.Message.getField(this,7)!=null};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.SendResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.SendResponse.toObject(t,this)},proto.ic_ledger.pb.v1.SendResponse.toObject=function(t,o){var r,n={resultingHeight:(r=o.getResultingHeight())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.SendResponse.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.SendResponse;return proto.ic_ledger.pb.v1.SendResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.SendResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(n,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setResultingHeight(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.SendResponse.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.SendResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.SendResponse.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getResultingHeight(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.SendResponse.prototype.getResultingHeight=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,1)};proto.ic_ledger.pb.v1.SendResponse.prototype.setResultingHeight=function(t){return A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.SendResponse.prototype.clearResultingHeight=function(){return this.setResultingHeight(void 0)};proto.ic_ledger.pb.v1.SendResponse.prototype.hasResultingHeight=function(){return A.Message.getField(this,1)!=null};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.NotifyRequest.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.NotifyRequest.toObject(t,this)},proto.ic_ledger.pb.v1.NotifyRequest.toObject=function(t,o){var r,n={blockHeight:(r=o.getBlockHeight())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r),maxFee:(r=o.getMaxFee())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r),fromSubaccount:(r=o.getFromSubaccount())&&proto.ic_ledger.pb.v1.Subaccount.toObject(t,r),toCanister:(r=o.getToCanister())&&Pe.PrincipalId.toObject(t,r),toSubaccount:(r=o.getToSubaccount())&&proto.ic_ledger.pb.v1.Subaccount.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.NotifyRequest.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.NotifyRequest;return proto.ic_ledger.pb.v1.NotifyRequest.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.NotifyRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(n,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setBlockHeight(n);break;case 2:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setMaxFee(n);break;case 3:var n=new proto.ic_ledger.pb.v1.Subaccount;o.readMessage(n,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader),t.setFromSubaccount(n);break;case 4:var n=new Pe.PrincipalId;o.readMessage(n,Pe.PrincipalId.deserializeBinaryFromReader),t.setToCanister(n);break;case 5:var n=new proto.ic_ledger.pb.v1.Subaccount;o.readMessage(n,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader),t.setToSubaccount(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.NotifyRequest.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.NotifyRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.NotifyRequest.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getBlockHeight(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter),r=t.getMaxFee(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter),r=t.getFromSubaccount(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter),r=t.getToCanister(),r!=null&&o.writeMessage(4,r,Pe.PrincipalId.serializeBinaryToWriter),r=t.getToSubaccount(),r!=null&&o.writeMessage(5,r,proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.getBlockHeight=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,1)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.setBlockHeight=function(t){return A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearBlockHeight=function(){return this.setBlockHeight(void 0)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasBlockHeight=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.NotifyRequest.prototype.getMaxFee=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,2)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.setMaxFee=function(t){return A.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearMaxFee=function(){return this.setMaxFee(void 0)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasMaxFee=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.NotifyRequest.prototype.getFromSubaccount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Subaccount,3)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.setFromSubaccount=function(t){return A.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearFromSubaccount=function(){return this.setFromSubaccount(void 0)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasFromSubaccount=function(){return A.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.NotifyRequest.prototype.getToCanister=function(){return A.Message.getWrapperField(this,Pe.PrincipalId,4)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.setToCanister=function(t){return A.Message.setWrapperField(this,4,t)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearToCanister=function(){return this.setToCanister(void 0)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasToCanister=function(){return A.Message.getField(this,4)!=null};proto.ic_ledger.pb.v1.NotifyRequest.prototype.getToSubaccount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Subaccount,5)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.setToSubaccount=function(t){return A.Message.setWrapperField(this,5,t)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearToSubaccount=function(){return this.setToSubaccount(void 0)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasToSubaccount=function(){return A.Message.getField(this,5)!=null};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.NotifyResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.NotifyResponse.toObject(t,this)},proto.ic_ledger.pb.v1.NotifyResponse.toObject=function(t,o){var r,n={};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.NotifyResponse.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.NotifyResponse;return proto.ic_ledger.pb.v1.NotifyResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.NotifyResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.NotifyResponse.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.NotifyResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.NotifyResponse.serializeBinaryToWriter=function(t,o){var r=void 0};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.TransactionNotificationRequest.toObject(t,this)},proto.ic_ledger.pb.v1.TransactionNotificationRequest.toObject=function(t,o){var r,n={from:(r=o.getFrom())&&Pe.PrincipalId.toObject(t,r),fromSubaccount:(r=o.getFromSubaccount())&&proto.ic_ledger.pb.v1.Subaccount.toObject(t,r),to:(r=o.getTo())&&Pe.PrincipalId.toObject(t,r),toSubaccount:(r=o.getToSubaccount())&&proto.ic_ledger.pb.v1.Subaccount.toObject(t,r),blockHeight:(r=o.getBlockHeight())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r),amount:(r=o.getAmount())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r),memo:(r=o.getMemo())&&proto.ic_ledger.pb.v1.Memo.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.TransactionNotificationRequest.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.TransactionNotificationRequest;return proto.ic_ledger.pb.v1.TransactionNotificationRequest.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new Pe.PrincipalId;o.readMessage(n,Pe.PrincipalId.deserializeBinaryFromReader),t.setFrom(n);break;case 2:var n=new proto.ic_ledger.pb.v1.Subaccount;o.readMessage(n,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader),t.setFromSubaccount(n);break;case 3:var n=new Pe.PrincipalId;o.readMessage(n,Pe.PrincipalId.deserializeBinaryFromReader),t.setTo(n);break;case 4:var n=new proto.ic_ledger.pb.v1.Subaccount;o.readMessage(n,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader),t.setToSubaccount(n);break;case 5:var n=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(n,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setBlockHeight(n);break;case 6:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setAmount(n);break;case 7:var n=new proto.ic_ledger.pb.v1.Memo;o.readMessage(n,proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader),t.setMemo(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.TransactionNotificationRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.TransactionNotificationRequest.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getFrom(),r!=null&&o.writeMessage(1,r,Pe.PrincipalId.serializeBinaryToWriter),r=t.getFromSubaccount(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter),r=t.getTo(),r!=null&&o.writeMessage(3,r,Pe.PrincipalId.serializeBinaryToWriter),r=t.getToSubaccount(),r!=null&&o.writeMessage(4,r,proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter),r=t.getBlockHeight(),r!=null&&o.writeMessage(5,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter),r=t.getAmount(),r!=null&&o.writeMessage(6,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter),r=t.getMemo(),r!=null&&o.writeMessage(7,r,proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getFrom=function(){return A.Message.getWrapperField(this,Pe.PrincipalId,1)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setFrom=function(t){return A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearFrom=function(){return this.setFrom(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasFrom=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getFromSubaccount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Subaccount,2)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setFromSubaccount=function(t){return A.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearFromSubaccount=function(){return this.setFromSubaccount(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasFromSubaccount=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getTo=function(){return A.Message.getWrapperField(this,Pe.PrincipalId,3)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setTo=function(t){return A.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearTo=function(){return this.setTo(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasTo=function(){return A.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getToSubaccount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Subaccount,4)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setToSubaccount=function(t){return A.Message.setWrapperField(this,4,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearToSubaccount=function(){return this.setToSubaccount(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasToSubaccount=function(){return A.Message.getField(this,4)!=null};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getBlockHeight=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,5)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setBlockHeight=function(t){return A.Message.setWrapperField(this,5,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearBlockHeight=function(){return this.setBlockHeight(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasBlockHeight=function(){return A.Message.getField(this,5)!=null};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getAmount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,6)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setAmount=function(t){return A.Message.setWrapperField(this,6,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearAmount=function(){return this.setAmount(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasAmount=function(){return A.Message.getField(this,6)!=null};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getMemo=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Memo,7)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setMemo=function(t){return A.Message.setWrapperField(this,7,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearMemo=function(){return this.setMemo(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasMemo=function(){return A.Message.getField(this,7)!=null};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.TransactionNotificationResponse.toObject(t,this)},proto.ic_ledger.pb.v1.TransactionNotificationResponse.toObject=function(t,o){var r,n={response:o.getResponse_asB64()};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.TransactionNotificationResponse.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.TransactionNotificationResponse;return proto.ic_ledger.pb.v1.TransactionNotificationResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.TransactionNotificationResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBytes();t.setResponse(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.TransactionNotificationResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.TransactionNotificationResponse.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getResponse_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.getResponse=function(){return A.Message.getFieldWithDefault(this,1,"")};proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.getResponse_asB64=function(){return A.Message.bytesAsB64(this.getResponse())};proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.getResponse_asU8=function(){return A.Message.bytesAsU8(this.getResponse())};proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.setResponse=function(t){return A.Message.setProto3BytesField(this,1,t)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_=[[1,2,3]];proto.ic_ledger.pb.v1.CyclesNotificationResponse.ResponseCase={RESPONSE_NOT_SET:0,CREATED_CANISTER_ID:1,REFUND:2,TOPPED_UP:3};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getResponseCase=function(){return A.Message.computeOneofCase(this,proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0])};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.CyclesNotificationResponse.toObject(t,this)},proto.ic_ledger.pb.v1.CyclesNotificationResponse.toObject=function(t,o){var r,n={createdCanisterId:(r=o.getCreatedCanisterId())&&Pe.PrincipalId.toObject(t,r),refund:(r=o.getRefund())&&proto.ic_ledger.pb.v1.Refund.toObject(t,r),toppedUp:(r=o.getToppedUp())&&proto.ic_ledger.pb.v1.ToppedUp.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.CyclesNotificationResponse.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.CyclesNotificationResponse;return proto.ic_ledger.pb.v1.CyclesNotificationResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new Pe.PrincipalId;o.readMessage(n,Pe.PrincipalId.deserializeBinaryFromReader),t.setCreatedCanisterId(n);break;case 2:var n=new proto.ic_ledger.pb.v1.Refund;o.readMessage(n,proto.ic_ledger.pb.v1.Refund.deserializeBinaryFromReader),t.setRefund(n);break;case 3:var n=new proto.ic_ledger.pb.v1.ToppedUp;o.readMessage(n,proto.ic_ledger.pb.v1.ToppedUp.deserializeBinaryFromReader),t.setToppedUp(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.CyclesNotificationResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.CyclesNotificationResponse.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getCreatedCanisterId(),r!=null&&o.writeMessage(1,r,Pe.PrincipalId.serializeBinaryToWriter),r=t.getRefund(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.Refund.serializeBinaryToWriter),r=t.getToppedUp(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.ToppedUp.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getCreatedCanisterId=function(){return A.Message.getWrapperField(this,Pe.PrincipalId,1)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.setCreatedCanisterId=function(t){return A.Message.setOneofWrapperField(this,1,proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.clearCreatedCanisterId=function(){return this.setCreatedCanisterId(void 0)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.hasCreatedCanisterId=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getRefund=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Refund,2)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.setRefund=function(t){return A.Message.setOneofWrapperField(this,2,proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.clearRefund=function(){return this.setRefund(void 0)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.hasRefund=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getToppedUp=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ToppedUp,3)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.setToppedUp=function(t){return A.Message.setOneofWrapperField(this,3,proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.clearToppedUp=function(){return this.setToppedUp(void 0)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.hasToppedUp=function(){return A.Message.getField(this,3)!=null};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.AccountBalanceRequest.toObject(t,this)},proto.ic_ledger.pb.v1.AccountBalanceRequest.toObject=function(t,o){var r,n={account:(r=o.getAccount())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.AccountBalanceRequest.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.AccountBalanceRequest;return proto.ic_ledger.pb.v1.AccountBalanceRequest.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.AccountBalanceRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(n,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setAccount(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.AccountBalanceRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.AccountBalanceRequest.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getAccount(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.getAccount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,1)};proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.setAccount=function(t){return A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.clearAccount=function(){return this.setAccount(void 0)};proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.hasAccount=function(){return A.Message.getField(this,1)!=null};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.AccountBalanceResponse.toObject(t,this)},proto.ic_ledger.pb.v1.AccountBalanceResponse.toObject=function(t,o){var r,n={balance:(r=o.getBalance())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.AccountBalanceResponse.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.AccountBalanceResponse;return proto.ic_ledger.pb.v1.AccountBalanceResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.AccountBalanceResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setBalance(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.AccountBalanceResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.AccountBalanceResponse.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getBalance(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.getBalance=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,1)};proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.setBalance=function(t){return A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.clearBalance=function(){return this.setBalance(void 0)};proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.hasBalance=function(){return A.Message.getField(this,1)!=null};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.TipOfChainRequest.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.TipOfChainRequest.toObject(t,this)},proto.ic_ledger.pb.v1.TipOfChainRequest.toObject=function(t,o){var r,n={};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.TipOfChainRequest.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.TipOfChainRequest;return proto.ic_ledger.pb.v1.TipOfChainRequest.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.TipOfChainRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.TipOfChainRequest.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.TipOfChainRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.TipOfChainRequest.serializeBinaryToWriter=function(t,o){var r=void 0};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.TipOfChainResponse.toObject(t,this)},proto.ic_ledger.pb.v1.TipOfChainResponse.toObject=function(t,o){var r,n={certification:(r=o.getCertification())&&proto.ic_ledger.pb.v1.Certification.toObject(t,r),chainLength:(r=o.getChainLength())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.TipOfChainResponse.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.TipOfChainResponse;return proto.ic_ledger.pb.v1.TipOfChainResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.TipOfChainResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.Certification;o.readMessage(n,proto.ic_ledger.pb.v1.Certification.deserializeBinaryFromReader),t.setCertification(n);break;case 2:var n=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(n,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setChainLength(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.TipOfChainResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.TipOfChainResponse.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getCertification(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.Certification.serializeBinaryToWriter),r=t.getChainLength(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.getCertification=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Certification,1)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.setCertification=function(t){return A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.clearCertification=function(){return this.setCertification(void 0)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.hasCertification=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.getChainLength=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,2)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.setChainLength=function(t){return A.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.clearChainLength=function(){return this.setChainLength(void 0)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.hasChainLength=function(){return A.Message.getField(this,2)!=null};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.EncodedBlock.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.EncodedBlock.toObject(t,this)},proto.ic_ledger.pb.v1.EncodedBlock.toObject=function(t,o){var r,n={block:o.getBlock_asB64()};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.EncodedBlock;return proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBytes();t.setBlock(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.EncodedBlock.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.EncodedBlock.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.EncodedBlock.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getBlock_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_ledger.pb.v1.EncodedBlock.prototype.getBlock=function(){return A.Message.getFieldWithDefault(this,1,"")};proto.ic_ledger.pb.v1.EncodedBlock.prototype.getBlock_asB64=function(){return A.Message.bytesAsB64(this.getBlock())};proto.ic_ledger.pb.v1.EncodedBlock.prototype.getBlock_asU8=function(){return A.Message.bytesAsU8(this.getBlock())};proto.ic_ledger.pb.v1.EncodedBlock.prototype.setBlock=function(t){return A.Message.setProto3BytesField(this,1,t)};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.GetBlocksRequest.toObject(t,this)},proto.ic_ledger.pb.v1.GetBlocksRequest.toObject=function(t,o){var r,n={start:A.Message.getFieldWithDefault(o,1,"0"),length:A.Message.getFieldWithDefault(o,2,"0")};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.GetBlocksRequest.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.GetBlocksRequest;return proto.ic_ledger.pb.v1.GetBlocksRequest.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.GetBlocksRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readUint64String();t.setStart(n);break;case 2:var n=o.readUint64String();t.setLength(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.GetBlocksRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.GetBlocksRequest.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getStart(),parseInt(r,10)!==0&&o.writeUint64String(1,r),r=t.getLength(),parseInt(r,10)!==0&&o.writeUint64String(2,r)};proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.getStart=function(){return A.Message.getFieldWithDefault(this,1,"0")};proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.setStart=function(t){return A.Message.setProto3StringIntField(this,1,t)};proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.getLength=function(){return A.Message.getFieldWithDefault(this,2,"0")};proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.setLength=function(t){return A.Message.setProto3StringIntField(this,2,t)};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Refund.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Refund.toObject(t,this)},proto.ic_ledger.pb.v1.Refund.toObject=function(t,o){var r,n={refund:(r=o.getRefund())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r),error:A.Message.getFieldWithDefault(o,3,"")};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Refund.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Refund;return proto.ic_ledger.pb.v1.Refund.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Refund.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 2:var n=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(n,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setRefund(n);break;case 3:var n=o.readString();t.setError(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Refund.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Refund.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Refund.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getRefund(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter),r=t.getError(),r.length>0&&o.writeString(3,r)};proto.ic_ledger.pb.v1.Refund.prototype.getRefund=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,2)};proto.ic_ledger.pb.v1.Refund.prototype.setRefund=function(t){return A.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.Refund.prototype.clearRefund=function(){return this.setRefund(void 0)};proto.ic_ledger.pb.v1.Refund.prototype.hasRefund=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.Refund.prototype.getError=function(){return A.Message.getFieldWithDefault(this,3,"")};proto.ic_ledger.pb.v1.Refund.prototype.setError=function(t){return A.Message.setProto3StringField(this,3,t)};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.ToppedUp.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.ToppedUp.toObject(t,this)},proto.ic_ledger.pb.v1.ToppedUp.toObject=function(t,o){var r,n={};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.ToppedUp.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.ToppedUp;return proto.ic_ledger.pb.v1.ToppedUp.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.ToppedUp.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.ToppedUp.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.ToppedUp.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.ToppedUp.serializeBinaryToWriter=function(t,o){var r=void 0};proto.ic_ledger.pb.v1.EncodedBlocks.repeatedFields_=[1];A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.EncodedBlocks.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.EncodedBlocks.toObject(t,this)},proto.ic_ledger.pb.v1.EncodedBlocks.toObject=function(t,o){var r,n={blocksList:A.Message.toObjectList(o.getBlocksList(),proto.ic_ledger.pb.v1.EncodedBlock.toObject,t)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.EncodedBlocks;return proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.EncodedBlock;o.readMessage(n,proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinaryFromReader),t.addBlocks(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.EncodedBlocks.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.EncodedBlocks.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.EncodedBlocks.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getBlocksList(),r.length>0&&o.writeRepeatedMessage(1,r,proto.ic_ledger.pb.v1.EncodedBlock.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.EncodedBlocks.prototype.getBlocksList=function(){return A.Message.getRepeatedWrapperField(this,proto.ic_ledger.pb.v1.EncodedBlock,1)};proto.ic_ledger.pb.v1.EncodedBlocks.prototype.setBlocksList=function(t){return A.Message.setRepeatedWrapperField(this,1,t)};proto.ic_ledger.pb.v1.EncodedBlocks.prototype.addBlocks=function(t,o){return A.Message.addToRepeatedWrapperField(this,1,t,proto.ic_ledger.pb.v1.EncodedBlock,o)};proto.ic_ledger.pb.v1.EncodedBlocks.prototype.clearBlocksList=function(){return this.setBlocksList([])};proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_=[[1,2]];proto.ic_ledger.pb.v1.GetBlocksResponse.GetBlocksContentCase={GET_BLOCKS_CONTENT_NOT_SET:0,BLOCKS:1,ERROR:2};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.getGetBlocksContentCase=function(){return A.Message.computeOneofCase(this,proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0])};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.GetBlocksResponse.toObject(t,this)},proto.ic_ledger.pb.v1.GetBlocksResponse.toObject=function(t,o){var r,n={blocks:(r=o.getBlocks())&&proto.ic_ledger.pb.v1.EncodedBlocks.toObject(t,r),error:A.Message.getFieldWithDefault(o,2,"")};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.GetBlocksResponse.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.GetBlocksResponse;return proto.ic_ledger.pb.v1.GetBlocksResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.GetBlocksResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.EncodedBlocks;o.readMessage(n,proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinaryFromReader),t.setBlocks(n);break;case 2:var n=o.readString();t.setError(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.GetBlocksResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.GetBlocksResponse.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getBlocks(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.EncodedBlocks.serializeBinaryToWriter),r=A.Message.getField(t,2),r!=null&&o.writeString(2,r)};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.getBlocks=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.EncodedBlocks,1)};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.setBlocks=function(t){return A.Message.setOneofWrapperField(this,1,proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.clearBlocks=function(){return this.setBlocks(void 0)};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.hasBlocks=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.getError=function(){return A.Message.getFieldWithDefault(this,2,"")};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.setError=function(t){return A.Message.setOneofField(this,2,proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.clearError=function(){return A.Message.setOneofField(this,2,proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0],void 0)};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.hasError=function(){return A.Message.getField(this,2)!=null};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.ICPTs.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.ICPTs.toObject(t,this)},proto.ic_ledger.pb.v1.ICPTs.toObject=function(t,o){var r,n={e8s:A.Message.getFieldWithDefault(o,1,"0")};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.ICPTs.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.ICPTs;return proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readUint64String();t.setE8s(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.ICPTs.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getE8s(),parseInt(r,10)!==0&&o.writeUint64String(1,r)};proto.ic_ledger.pb.v1.ICPTs.prototype.getE8s=function(){return A.Message.getFieldWithDefault(this,1,"0")};proto.ic_ledger.pb.v1.ICPTs.prototype.setE8s=function(t){return A.Message.setProto3StringIntField(this,1,t)};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Payment.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Payment.toObject(t,this)},proto.ic_ledger.pb.v1.Payment.toObject=function(t,o){var r,n={receiverGets:(r=o.getReceiverGets())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Payment.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Payment;return proto.ic_ledger.pb.v1.Payment.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Payment.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setReceiverGets(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Payment.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Payment.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Payment.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getReceiverGets(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Payment.prototype.getReceiverGets=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,1)};proto.ic_ledger.pb.v1.Payment.prototype.setReceiverGets=function(t){return A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.Payment.prototype.clearReceiverGets=function(){return this.setReceiverGets(void 0)};proto.ic_ledger.pb.v1.Payment.prototype.hasReceiverGets=function(){return A.Message.getField(this,1)!=null};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.BlockHeight.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.BlockHeight.toObject(t,this)},proto.ic_ledger.pb.v1.BlockHeight.toObject=function(t,o){var r,n={height:A.Message.getFieldWithDefault(o,1,"0")};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.BlockHeight.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.BlockHeight;return proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readUint64String();t.setHeight(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.BlockHeight.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getHeight(),parseInt(r,10)!==0&&o.writeUint64String(1,r)};proto.ic_ledger.pb.v1.BlockHeight.prototype.getHeight=function(){return A.Message.getFieldWithDefault(this,1,"0")};proto.ic_ledger.pb.v1.BlockHeight.prototype.setHeight=function(t){return A.Message.setProto3StringIntField(this,1,t)};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Block.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Block.toObject(t,this)},proto.ic_ledger.pb.v1.Block.toObject=function(t,o){var r,n={parentHash:(r=o.getParentHash())&&proto.ic_ledger.pb.v1.Hash.toObject(t,r),timestamp:(r=o.getTimestamp())&&proto.ic_ledger.pb.v1.TimeStamp.toObject(t,r),transaction:(r=o.getTransaction())&&proto.ic_ledger.pb.v1.Transaction.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Block.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Block;return proto.ic_ledger.pb.v1.Block.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Block.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.Hash;o.readMessage(n,proto.ic_ledger.pb.v1.Hash.deserializeBinaryFromReader),t.setParentHash(n);break;case 2:var n=new proto.ic_ledger.pb.v1.TimeStamp;o.readMessage(n,proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader),t.setTimestamp(n);break;case 3:var n=new proto.ic_ledger.pb.v1.Transaction;o.readMessage(n,proto.ic_ledger.pb.v1.Transaction.deserializeBinaryFromReader),t.setTransaction(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Block.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Block.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Block.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getParentHash(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.Hash.serializeBinaryToWriter),r=t.getTimestamp(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter),r=t.getTransaction(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.Transaction.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Block.prototype.getParentHash=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Hash,1)};proto.ic_ledger.pb.v1.Block.prototype.setParentHash=function(t){return A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.Block.prototype.clearParentHash=function(){return this.setParentHash(void 0)};proto.ic_ledger.pb.v1.Block.prototype.hasParentHash=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.Block.prototype.getTimestamp=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.TimeStamp,2)};proto.ic_ledger.pb.v1.Block.prototype.setTimestamp=function(t){return A.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.Block.prototype.clearTimestamp=function(){return this.setTimestamp(void 0)};proto.ic_ledger.pb.v1.Block.prototype.hasTimestamp=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.Block.prototype.getTransaction=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Transaction,3)};proto.ic_ledger.pb.v1.Block.prototype.setTransaction=function(t){return A.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.Block.prototype.clearTransaction=function(){return this.setTransaction(void 0)};proto.ic_ledger.pb.v1.Block.prototype.hasTransaction=function(){return A.Message.getField(this,3)!=null};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Hash.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Hash.toObject(t,this)},proto.ic_ledger.pb.v1.Hash.toObject=function(t,o){var r,n={hash:o.getHash_asB64()};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Hash.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Hash;return proto.ic_ledger.pb.v1.Hash.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Hash.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBytes();t.setHash(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Hash.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Hash.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Hash.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getHash_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_ledger.pb.v1.Hash.prototype.getHash=function(){return A.Message.getFieldWithDefault(this,1,"")};proto.ic_ledger.pb.v1.Hash.prototype.getHash_asB64=function(){return A.Message.bytesAsB64(this.getHash())};proto.ic_ledger.pb.v1.Hash.prototype.getHash_asU8=function(){return A.Message.bytesAsU8(this.getHash())};proto.ic_ledger.pb.v1.Hash.prototype.setHash=function(t){return A.Message.setProto3BytesField(this,1,t)};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Account.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Account.toObject(t,this)},proto.ic_ledger.pb.v1.Account.toObject=function(t,o){var r,n={identifier:(r=o.getIdentifier())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r),balance:(r=o.getBalance())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Account.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Account;return proto.ic_ledger.pb.v1.Account.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Account.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(n,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setIdentifier(n);break;case 2:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setBalance(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Account.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Account.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Account.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getIdentifier(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter),r=t.getBalance(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Account.prototype.getIdentifier=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,1)};proto.ic_ledger.pb.v1.Account.prototype.setIdentifier=function(t){return A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.Account.prototype.clearIdentifier=function(){return this.setIdentifier(void 0)};proto.ic_ledger.pb.v1.Account.prototype.hasIdentifier=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.Account.prototype.getBalance=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,2)};proto.ic_ledger.pb.v1.Account.prototype.setBalance=function(t){return A.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.Account.prototype.clearBalance=function(){return this.setBalance(void 0)};proto.ic_ledger.pb.v1.Account.prototype.hasBalance=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.Transaction.oneofGroups_=[[1,2,3]];proto.ic_ledger.pb.v1.Transaction.TransferCase={TRANSFER_NOT_SET:0,BURN:1,MINT:2,SEND:3};proto.ic_ledger.pb.v1.Transaction.prototype.getTransferCase=function(){return A.Message.computeOneofCase(this,proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0])};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Transaction.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Transaction.toObject(t,this)},proto.ic_ledger.pb.v1.Transaction.toObject=function(t,o){var r,n={burn:(r=o.getBurn())&&proto.ic_ledger.pb.v1.Burn.toObject(t,r),mint:(r=o.getMint())&&proto.ic_ledger.pb.v1.Mint.toObject(t,r),send:(r=o.getSend())&&proto.ic_ledger.pb.v1.Send.toObject(t,r),memo:(r=o.getMemo())&&proto.ic_ledger.pb.v1.Memo.toObject(t,r),createdAt:(r=o.getCreatedAt())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r),createdAtTime:(r=o.getCreatedAtTime())&&proto.ic_ledger.pb.v1.TimeStamp.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Transaction.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Transaction;return proto.ic_ledger.pb.v1.Transaction.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Transaction.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.Burn;o.readMessage(n,proto.ic_ledger.pb.v1.Burn.deserializeBinaryFromReader),t.setBurn(n);break;case 2:var n=new proto.ic_ledger.pb.v1.Mint;o.readMessage(n,proto.ic_ledger.pb.v1.Mint.deserializeBinaryFromReader),t.setMint(n);break;case 3:var n=new proto.ic_ledger.pb.v1.Send;o.readMessage(n,proto.ic_ledger.pb.v1.Send.deserializeBinaryFromReader),t.setSend(n);break;case 4:var n=new proto.ic_ledger.pb.v1.Memo;o.readMessage(n,proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader),t.setMemo(n);break;case 5:var n=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(n,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setCreatedAt(n);break;case 6:var n=new proto.ic_ledger.pb.v1.TimeStamp;o.readMessage(n,proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader),t.setCreatedAtTime(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Transaction.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Transaction.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Transaction.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getBurn(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.Burn.serializeBinaryToWriter),r=t.getMint(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.Mint.serializeBinaryToWriter),r=t.getSend(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.Send.serializeBinaryToWriter),r=t.getMemo(),r!=null&&o.writeMessage(4,r,proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter),r=t.getCreatedAt(),r!=null&&o.writeMessage(5,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter),r=t.getCreatedAtTime(),r!=null&&o.writeMessage(6,r,proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Transaction.prototype.getBurn=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Burn,1)};proto.ic_ledger.pb.v1.Transaction.prototype.setBurn=function(t){return A.Message.setOneofWrapperField(this,1,proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.Transaction.prototype.clearBurn=function(){return this.setBurn(void 0)};proto.ic_ledger.pb.v1.Transaction.prototype.hasBurn=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.Transaction.prototype.getMint=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Mint,2)};proto.ic_ledger.pb.v1.Transaction.prototype.setMint=function(t){return A.Message.setOneofWrapperField(this,2,proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.Transaction.prototype.clearMint=function(){return this.setMint(void 0)};proto.ic_ledger.pb.v1.Transaction.prototype.hasMint=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.Transaction.prototype.getSend=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Send,3)};proto.ic_ledger.pb.v1.Transaction.prototype.setSend=function(t){return A.Message.setOneofWrapperField(this,3,proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.Transaction.prototype.clearSend=function(){return this.setSend(void 0)};proto.ic_ledger.pb.v1.Transaction.prototype.hasSend=function(){return A.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.Transaction.prototype.getMemo=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Memo,4)};proto.ic_ledger.pb.v1.Transaction.prototype.setMemo=function(t){return A.Message.setWrapperField(this,4,t)};proto.ic_ledger.pb.v1.Transaction.prototype.clearMemo=function(){return this.setMemo(void 0)};proto.ic_ledger.pb.v1.Transaction.prototype.hasMemo=function(){return A.Message.getField(this,4)!=null};proto.ic_ledger.pb.v1.Transaction.prototype.getCreatedAt=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,5)};proto.ic_ledger.pb.v1.Transaction.prototype.setCreatedAt=function(t){return A.Message.setWrapperField(this,5,t)};proto.ic_ledger.pb.v1.Transaction.prototype.clearCreatedAt=function(){return this.setCreatedAt(void 0)};proto.ic_ledger.pb.v1.Transaction.prototype.hasCreatedAt=function(){return A.Message.getField(this,5)!=null};proto.ic_ledger.pb.v1.Transaction.prototype.getCreatedAtTime=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.TimeStamp,6)};proto.ic_ledger.pb.v1.Transaction.prototype.setCreatedAtTime=function(t){return A.Message.setWrapperField(this,6,t)};proto.ic_ledger.pb.v1.Transaction.prototype.clearCreatedAtTime=function(){return this.setCreatedAtTime(void 0)};proto.ic_ledger.pb.v1.Transaction.prototype.hasCreatedAtTime=function(){return A.Message.getField(this,6)!=null};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Send.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Send.toObject(t,this)},proto.ic_ledger.pb.v1.Send.toObject=function(t,o){var r,n={from:(r=o.getFrom())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r),to:(r=o.getTo())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r),amount:(r=o.getAmount())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r),maxFee:(r=o.getMaxFee())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Send.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Send;return proto.ic_ledger.pb.v1.Send.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Send.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(n,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setFrom(n);break;case 2:var n=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(n,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setTo(n);break;case 3:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setAmount(n);break;case 4:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setMaxFee(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Send.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Send.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Send.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getFrom(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter),r=t.getTo(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter),r=t.getAmount(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter),r=t.getMaxFee(),r!=null&&o.writeMessage(4,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Send.prototype.getFrom=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,1)};proto.ic_ledger.pb.v1.Send.prototype.setFrom=function(t){return A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.Send.prototype.clearFrom=function(){return this.setFrom(void 0)};proto.ic_ledger.pb.v1.Send.prototype.hasFrom=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.Send.prototype.getTo=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,2)};proto.ic_ledger.pb.v1.Send.prototype.setTo=function(t){return A.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.Send.prototype.clearTo=function(){return this.setTo(void 0)};proto.ic_ledger.pb.v1.Send.prototype.hasTo=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.Send.prototype.getAmount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,3)};proto.ic_ledger.pb.v1.Send.prototype.setAmount=function(t){return A.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.Send.prototype.clearAmount=function(){return this.setAmount(void 0)};proto.ic_ledger.pb.v1.Send.prototype.hasAmount=function(){return A.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.Send.prototype.getMaxFee=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,4)};proto.ic_ledger.pb.v1.Send.prototype.setMaxFee=function(t){return A.Message.setWrapperField(this,4,t)};proto.ic_ledger.pb.v1.Send.prototype.clearMaxFee=function(){return this.setMaxFee(void 0)};proto.ic_ledger.pb.v1.Send.prototype.hasMaxFee=function(){return A.Message.getField(this,4)!=null};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Mint.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Mint.toObject(t,this)},proto.ic_ledger.pb.v1.Mint.toObject=function(t,o){var r,n={to:(r=o.getTo())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r),amount:(r=o.getAmount())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Mint.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Mint;return proto.ic_ledger.pb.v1.Mint.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Mint.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 2:var n=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(n,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setTo(n);break;case 3:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setAmount(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Mint.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Mint.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Mint.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getTo(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter),r=t.getAmount(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Mint.prototype.getTo=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,2)};proto.ic_ledger.pb.v1.Mint.prototype.setTo=function(t){return A.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.Mint.prototype.clearTo=function(){return this.setTo(void 0)};proto.ic_ledger.pb.v1.Mint.prototype.hasTo=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.Mint.prototype.getAmount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,3)};proto.ic_ledger.pb.v1.Mint.prototype.setAmount=function(t){return A.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.Mint.prototype.clearAmount=function(){return this.setAmount(void 0)};proto.ic_ledger.pb.v1.Mint.prototype.hasAmount=function(){return A.Message.getField(this,3)!=null};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Burn.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Burn.toObject(t,this)},proto.ic_ledger.pb.v1.Burn.toObject=function(t,o){var r,n={from:(r=o.getFrom())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r),amount:(r=o.getAmount())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Burn.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Burn;return proto.ic_ledger.pb.v1.Burn.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Burn.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(n,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setFrom(n);break;case 3:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setAmount(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Burn.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Burn.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Burn.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getFrom(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter),r=t.getAmount(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Burn.prototype.getFrom=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,1)};proto.ic_ledger.pb.v1.Burn.prototype.setFrom=function(t){return A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.Burn.prototype.clearFrom=function(){return this.setFrom(void 0)};proto.ic_ledger.pb.v1.Burn.prototype.hasFrom=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.Burn.prototype.getAmount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,3)};proto.ic_ledger.pb.v1.Burn.prototype.setAmount=function(t){return A.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.Burn.prototype.clearAmount=function(){return this.setAmount(void 0)};proto.ic_ledger.pb.v1.Burn.prototype.hasAmount=function(){return A.Message.getField(this,3)!=null};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.AccountIdentifier.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,this)},proto.ic_ledger.pb.v1.AccountIdentifier.toObject=function(t,o){var r,n={hash:o.getHash_asB64()};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.AccountIdentifier;return proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBytes();t.setHash(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.AccountIdentifier.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getHash_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_ledger.pb.v1.AccountIdentifier.prototype.getHash=function(){return A.Message.getFieldWithDefault(this,1,"")};proto.ic_ledger.pb.v1.AccountIdentifier.prototype.getHash_asB64=function(){return A.Message.bytesAsB64(this.getHash())};proto.ic_ledger.pb.v1.AccountIdentifier.prototype.getHash_asU8=function(){return A.Message.bytesAsU8(this.getHash())};proto.ic_ledger.pb.v1.AccountIdentifier.prototype.setHash=function(t){return A.Message.setProto3BytesField(this,1,t)};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Subaccount.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Subaccount.toObject(t,this)},proto.ic_ledger.pb.v1.Subaccount.toObject=function(t,o){var r,n={subAccount:o.getSubAccount_asB64()};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Subaccount.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Subaccount;return proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBytes();t.setSubAccount(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Subaccount.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getSubAccount_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_ledger.pb.v1.Subaccount.prototype.getSubAccount=function(){return A.Message.getFieldWithDefault(this,1,"")};proto.ic_ledger.pb.v1.Subaccount.prototype.getSubAccount_asB64=function(){return A.Message.bytesAsB64(this.getSubAccount())};proto.ic_ledger.pb.v1.Subaccount.prototype.getSubAccount_asU8=function(){return A.Message.bytesAsU8(this.getSubAccount())};proto.ic_ledger.pb.v1.Subaccount.prototype.setSubAccount=function(t){return A.Message.setProto3BytesField(this,1,t)};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Memo.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Memo.toObject(t,this)},proto.ic_ledger.pb.v1.Memo.toObject=function(t,o){var r,n={memo:A.Message.getFieldWithDefault(o,1,"0")};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Memo.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Memo;return proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readUint64String();t.setMemo(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Memo.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getMemo(),parseInt(r,10)!==0&&o.writeUint64String(1,r)};proto.ic_ledger.pb.v1.Memo.prototype.getMemo=function(){return A.Message.getFieldWithDefault(this,1,"0")};proto.ic_ledger.pb.v1.Memo.prototype.setMemo=function(t){return A.Message.setProto3StringIntField(this,1,t)};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.TimeStamp.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.TimeStamp.toObject(t,this)},proto.ic_ledger.pb.v1.TimeStamp.toObject=function(t,o){var r,n={timestampNanos:A.Message.getFieldWithDefault(o,1,"0")};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.TimeStamp.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.TimeStamp;return proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readUint64String();t.setTimestampNanos(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.TimeStamp.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getTimestampNanos(),parseInt(r,10)!==0&&o.writeUint64String(1,r)};proto.ic_ledger.pb.v1.TimeStamp.prototype.getTimestampNanos=function(){return A.Message.getFieldWithDefault(this,1,"0")};proto.ic_ledger.pb.v1.TimeStamp.prototype.setTimestampNanos=function(t){return A.Message.setProto3StringIntField(this,1,t)};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Certification.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Certification.toObject(t,this)},proto.ic_ledger.pb.v1.Certification.toObject=function(t,o){var r,n={certification:o.getCertification_asB64()};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Certification.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Certification;return proto.ic_ledger.pb.v1.Certification.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Certification.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBytes();t.setCertification(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Certification.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Certification.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Certification.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getCertification_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_ledger.pb.v1.Certification.prototype.getCertification=function(){return A.Message.getFieldWithDefault(this,1,"")};proto.ic_ledger.pb.v1.Certification.prototype.getCertification_asB64=function(){return A.Message.bytesAsB64(this.getCertification())};proto.ic_ledger.pb.v1.Certification.prototype.getCertification_asU8=function(){return A.Message.bytesAsU8(this.getCertification())};proto.ic_ledger.pb.v1.Certification.prototype.setCertification=function(t){return A.Message.setProto3BytesField(this,1,t)};k.object.extend(gs,proto.ic_ledger.pb.v1)});var ft=H(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});var lo=require("buffer"),kA=lo.Buffer.from&&lo.Buffer.alloc&&lo.Buffer.allocUnsafe&&lo.Buffer.allocUnsafeSlow?lo.Buffer.from:function(t){return new lo.Buffer(t)};pn.default=kA});var ht=H(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.default=function(t,o){var r=function(i,s){return o(i,s)>>>0};return r.signed=o,r.unsigned=r,r.model=t,r}});var As=H(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});var UA=require("buffer"),jA=ft(),DA=ps(jA),HA=ht(),qA=ps(HA);function ps(t){return t&&t.__esModule?t:{default:t}}var WA=(0,qA.default)("crc1",function(t,o){UA.Buffer.isBuffer(t)||(t=(0,DA.default)(t));for(var r=~~o,n=0,i=0;i<t.length;i++){var s=t[i];n+=s}return r+=n%256,r%256});un.default=WA});var ls=H((hh,us)=>{"use strict";us.exports=As().default});var ds=H(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});var VA=require("buffer"),YA=ft(),zA=cs(YA),LA=ht(),JA=cs(LA);function cs(t){return t&&t.__esModule?t:{default:t}}var ln=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];typeof Int32Array!="undefined"&&(ln=new Int32Array(ln));var KA=(0,JA.default)("crc-8",function(t,o){VA.Buffer.isBuffer(t)||(t=(0,zA.default)(t));for(var r=~~o,n=0;n<t.length;n++){var i=t[n];r=ln[(r^i)&255]&255}return r});cn.default=KA});var hs=H((Eh,fs)=>{"use strict";fs.exports=ds().default});var Es=H(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});var ZA=require("buffer"),XA=ft(),$A=Bs(XA),eu=ht(),tu=Bs(eu);function Bs(t){return t&&t.__esModule?t:{default:t}}var dn=[0,94,188,226,97,63,221,131,194,156,126,32,163,253,31,65,157,195,33,127,252,162,64,30,95,1,227,189,62,96,130,220,35,125,159,193,66,28,254,160,225,191,93,3,128,222,60,98,190,224,2,92,223,129,99,61,124,34,192,158,29,67,161,255,70,24,250,164,39,121,155,197,132,218,56,102,229,187,89,7,219,133,103,57,186,228,6,88,25,71,165,251,120,38,196,154,101,59,217,135,4,90,184,230,167,249,27,69,198,152,122,36,248,166,68,26,153,199,37,123,58,100,134,216,91,5,231,185,140,210,48,110,237,179,81,15,78,16,242,172,47,113,147,205,17,79,173,243,112,46,204,146,211,141,111,49,178,236,14,80,175,241,19,77,206,144,114,44,109,51,209,143,12,82,176,238,50,108,142,208,83,13,239,177,240,174,76,18,145,207,45,115,202,148,118,40,171,245,23,73,8,86,180,234,105,55,213,139,87,9,235,181,54,104,138,212,149,203,41,119,244,170,72,22,233,183,85,11,136,214,52,106,43,117,151,201,74,20,246,168,116,42,200,150,21,75,169,247,182,232,10,84,215,137,107,53];typeof Int32Array!="undefined"&&(dn=new Int32Array(dn));var ou=(0,tu.default)("dallas-1-wire",function(t,o){ZA.Buffer.isBuffer(t)||(t=(0,$A.default)(t));for(var r=~~o,n=0;n<t.length;n++){var i=t[n];r=dn[(r^i)&255]&255}return r});fn.default=ou});var ys=H((yh,bs)=>{"use strict";bs.exports=Es().default});var Is=H(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});var ru=require("buffer"),nu=ft(),iu=_s(nu),su=ht(),au=_s(su);function _s(t){return t&&t.__esModule?t:{default:t}}var hn=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];typeof Int32Array!="undefined"&&(hn=new Int32Array(hn));var gu=(0,au.default)("crc-16",function(t,o){ru.Buffer.isBuffer(t)||(t=(0,iu.default)(t));for(var r=~~o,n=0;n<t.length;n++){var i=t[n];r=(hn[(r^i)&255]^r>>8)&65535}return r});Bn.default=gu});var Cs=H((Ih,ms)=>{"use strict";ms.exports=Is().default});var Ss=H(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});var pu=require("buffer"),Au=ft(),uu=xs(Au),lu=ht(),cu=xs(lu);function xs(t){return t&&t.__esModule?t:{default:t}}var En=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];typeof Int32Array!="undefined"&&(En=new Int32Array(En));var du=(0,cu.default)("ccitt",function(t,o){pu.Buffer.isBuffer(t)||(t=(0,uu.default)(t));for(var r=typeof o!="undefined"?~~o:65535,n=0;n<t.length;n++){var i=t[n];r=(En[(r>>8^i)&255]^r<<8)&65535}return r});bn.default=du});var vs=H((Ch,ws)=>{"use strict";ws.exports=Ss().default});var Qs=H(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});var fu=require("buffer"),hu=ft(),Bu=Rs(hu),Eu=ht(),bu=Rs(Eu);function Rs(t){return t&&t.__esModule?t:{default:t}}var yn=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];typeof Int32Array!="undefined"&&(yn=new Int32Array(yn));var yu=(0,bu.default)("crc-16-modbus",function(t,o){fu.Buffer.isBuffer(t)||(t=(0,Bu.default)(t));for(var r=typeof o!="undefined"?~~o:65535,n=0;n<t.length;n++){var i=t[n];r=(yn[(r^i)&255]^r>>8)&65535}return r});_n.default=yu});var Ts=H((Sh,Fs)=>{"use strict";Fs.exports=Qs().default});var Os=H(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});var _u=require("buffer"),Iu=ft(),mu=Ms(Iu),Cu=ht(),xu=Ms(Cu);function Ms(t){return t&&t.__esModule?t:{default:t}}var Su=(0,xu.default)("xmodem",function(t,o){_u.Buffer.isBuffer(t)||(t=(0,mu.default)(t));for(var r=typeof o!="undefined"?~~o:0,n=0;n<t.length;n++){var i=t[n],s=r>>>8&255;s^=i&255,s^=s>>>4,r=r<<8&65535,r^=s,s=s<<5&65535,r^=s,s=s<<7&65535,r^=s}return r});In.default=Su});var Gs=H((vh,Ns)=>{"use strict";Ns.exports=Os().default});var ks=H(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});var wu=require("buffer"),vu=ft(),Ru=Ps(vu),Qu=ht(),Fu=Ps(Qu);function Ps(t){return t&&t.__esModule?t:{default:t}}var mn=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];typeof Int32Array!="undefined"&&(mn=new Int32Array(mn));var Tu=(0,Fu.default)("kermit",function(t,o){wu.Buffer.isBuffer(t)||(t=(0,Ru.default)(t));for(var r=typeof o!="undefined"?~~o:0,n=0;n<t.length;n++){var i=t[n];r=(mn[(r^i)&255]^r>>8)&65535}return r});Cn.default=Tu});var js=H((Qh,Us)=>{"use strict";Us.exports=ks().default});var Hs=H(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});var Mu=require("buffer"),Ou=ft(),Nu=Ds(Ou),Gu=ht(),Pu=Ds(Gu);function Ds(t){return t&&t.__esModule?t:{default:t}}var xn=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];typeof Int32Array!="undefined"&&(xn=new Int32Array(xn));var ku=(0,Pu.default)("crc-24",function(t,o){Mu.Buffer.isBuffer(t)||(t=(0,Nu.default)(t));for(var r=typeof o!="undefined"?~~o:11994318,n=0;n<t.length;n++){var i=t[n];r=(xn[(r>>16^i)&255]^r<<8)&16777215}return r});Sn.default=ku});var Ws=H((Th,qs)=>{"use strict";qs.exports=Hs().default});var Ys=H(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});var Uu=require("buffer"),ju=ft(),Du=Vs(ju),Hu=ht(),qu=Vs(Hu);function Vs(t){return t&&t.__esModule?t:{default:t}}var wn=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array!="undefined"&&(wn=new Int32Array(wn));var Wu=(0,qu.default)("crc-32",function(t,o){Uu.Buffer.isBuffer(t)||(t=(0,Du.default)(t));for(var r=o===0?0:~~o^-1,n=0;n<t.length;n++){var i=t[n];r=wn[(r^i)&255]^r>>>8}return r^-1});vn.default=Wu});var Ls=H((Oh,zs)=>{"use strict";zs.exports=Ys().default});var Ks=H(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});var Vu=require("buffer"),Yu=ft(),zu=Js(Yu),Lu=ht(),Ju=Js(Lu);function Js(t){return t&&t.__esModule?t:{default:t}}var Rn=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array!="undefined"&&(Rn=new Int32Array(Rn));var Ku=(0,Ju.default)("jam",function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;Vu.Buffer.isBuffer(t)||(t=(0,zu.default)(t));for(var r=o===0?0:~~o,n=0;n<t.length;n++){var i=t[n];r=Rn[(r^i)&255]^r>>>8}return r});Qn.default=Ku});var Xs=H((Gh,Zs)=>{"use strict";Zs.exports=Ks().default});var ea=H((Ph,$s)=>{"use strict";$s.exports={crc1:ls(),crc8:hs(),crc81wire:ys(),crc16:Cs(),crc16ccitt:vs(),crc16modbus:Ts(),crc16xmodem:Gs(),crc16kermit:js(),crc24:Ws(),crc32:Ls(),crcjam:Xs()}});var la=H(dr=>{"use strict";dr.byteLength=Xu;dr.toByteArray=el;dr.fromByteArray=rl;var Rt=[],Bt=[],Zu=typeof Uint8Array!="undefined"?Uint8Array:Array,Nn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(eo=0,Aa=Nn.length;eo<Aa;++eo)Rt[eo]=Nn[eo],Bt[Nn.charCodeAt(eo)]=eo;var eo,Aa;Bt["-".charCodeAt(0)]=62;Bt["_".charCodeAt(0)]=63;function ua(t){var o=t.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=o);var n=r===o?0:4-r%4;return[r,n]}function Xu(t){var o=ua(t),r=o[0],n=o[1];return(r+n)*3/4-n}function $u(t,o,r){return(o+r)*3/4-r}function el(t){var o,r=ua(t),n=r[0],i=r[1],s=new Zu($u(t,n,i)),p=0,u=i>0?n-4:n,h;for(h=0;h<u;h+=4)o=Bt[t.charCodeAt(h)]<<18|Bt[t.charCodeAt(h+1)]<<12|Bt[t.charCodeAt(h+2)]<<6|Bt[t.charCodeAt(h+3)],s[p++]=o>>16&255,s[p++]=o>>8&255,s[p++]=o&255;return i===2&&(o=Bt[t.charCodeAt(h)]<<2|Bt[t.charCodeAt(h+1)]>>4,s[p++]=o&255),i===1&&(o=Bt[t.charCodeAt(h)]<<10|Bt[t.charCodeAt(h+1)]<<4|Bt[t.charCodeAt(h+2)]>>2,s[p++]=o>>8&255,s[p++]=o&255),s}function tl(t){return Rt[t>>18&63]+Rt[t>>12&63]+Rt[t>>6&63]+Rt[t&63]}function ol(t,o,r){for(var n,i=[],s=o;s<r;s+=3)n=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(t[s+2]&255),i.push(tl(n));return i.join("")}function rl(t){for(var o,r=t.length,n=r%3,i=[],s=16383,p=0,u=r-n;p<u;p+=s)i.push(ol(t,p,p+s>u?u:p+s));return n===1?(o=t[r-1],i.push(Rt[o>>2]+Rt[o<<4&63]+"==")):n===2&&(o=(t[r-2]<<8)+t[r-1],i.push(Rt[o>>10]+Rt[o>>4&63]+Rt[o<<2&63]+"=")),i.join("")}});var Pn=H(Gn=>{Gn.read=function(t,o,r,n,i){var s,p,u=i*8-n-1,h=(1<<u)-1,w=h>>1,G=-7,T=r?i-1:0,V=r?-1:1,P=t[o+T];for(T+=V,s=P&(1<<-G)-1,P>>=-G,G+=u;G>0;s=s*256+t[o+T],T+=V,G-=8);for(p=s&(1<<-G)-1,s>>=-G,G+=n;G>0;p=p*256+t[o+T],T+=V,G-=8);if(s===0)s=1-w;else{if(s===h)return p?NaN:(P?-1:1)*(1/0);p=p+Math.pow(2,n),s=s-w}return(P?-1:1)*p*Math.pow(2,s-n)};Gn.write=function(t,o,r,n,i,s){var p,u,h,w=s*8-i-1,G=(1<<w)-1,T=G>>1,V=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=n?0:s-1,L=n?1:-1,ee=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(u=isNaN(o)?1:0,p=G):(p=Math.floor(Math.log(o)/Math.LN2),o*(h=Math.pow(2,-p))<1&&(p--,h*=2),p+T>=1?o+=V/h:o+=V*Math.pow(2,1-T),o*h>=2&&(p++,h/=2),p+T>=G?(u=0,p=G):p+T>=1?(u=(o*h-1)*Math.pow(2,i),p=p+T):(u=o*Math.pow(2,T-1)*Math.pow(2,i),p=0));i>=8;t[r+P]=u&255,P+=L,u/=256,i-=8);for(p=p<<i|u,w+=i;w>0;t[r+P]=p&255,P+=L,p/=256,w-=8);t[r+P-L]|=ee*128}});var xa=H(ho=>{"use strict";var kn=la(),fo=Pn(),ca=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ho.Buffer=O;ho.SlowBuffer=pl;ho.INSPECT_MAX_BYTES=50;var fr=2147483647;ho.kMaxLength=fr;O.TYPED_ARRAY_SUPPORT=nl();!O.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function nl(){try{var t=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(t,o),t.foo()===42}catch{return!1}}Object.defineProperty(O.prototype,"parent",{enumerable:!0,get:function(){if(!!O.isBuffer(this))return this.buffer}});Object.defineProperty(O.prototype,"offset",{enumerable:!0,get:function(){if(!!O.isBuffer(this))return this.byteOffset}});function qt(t){if(t>fr)throw new RangeError('The value "'+t+'" is invalid for option "size"');var o=new Uint8Array(t);return Object.setPrototypeOf(o,O.prototype),o}function O(t,o,r){if(typeof t=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Un(t)}return da(t,o,r)}O.poolSize=8192;function da(t,o,r){if(typeof t=="string")return sl(t,o);if(ArrayBuffer.isView(t))return al(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Qt(t,ArrayBuffer)||t&&Qt(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Qt(t,SharedArrayBuffer)||t&&Qt(t.buffer,SharedArrayBuffer)))return Dn(t,o,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return O.from(n,o,r);var i=gl(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return O.from(t[Symbol.toPrimitive]("string"),o,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}O.from=function(t,o,r){return da(t,o,r)};Object.setPrototypeOf(O.prototype,Uint8Array.prototype);Object.setPrototypeOf(O,Uint8Array);function fa(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function il(t,o,r){return fa(t),t<=0?qt(t):o!==void 0?typeof r=="string"?qt(t).fill(o,r):qt(t).fill(o):qt(t)}O.alloc=function(t,o,r){return il(t,o,r)};function Un(t){return fa(t),qt(t<0?0:Hn(t)|0)}O.allocUnsafe=function(t){return Un(t)};O.allocUnsafeSlow=function(t){return Un(t)};function sl(t,o){if((typeof o!="string"||o==="")&&(o="utf8"),!O.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var r=ha(t,o)|0,n=qt(r),i=n.write(t,o);return i!==r&&(n=n.slice(0,i)),n}function jn(t){for(var o=t.length<0?0:Hn(t.length)|0,r=qt(o),n=0;n<o;n+=1)r[n]=t[n]&255;return r}function al(t){if(Qt(t,Uint8Array)){var o=new Uint8Array(t);return Dn(o.buffer,o.byteOffset,o.byteLength)}return jn(t)}function Dn(t,o,r){if(o<0||t.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<o+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return o===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,o):n=new Uint8Array(t,o,r),Object.setPrototypeOf(n,O.prototype),n}function gl(t){if(O.isBuffer(t)){var o=Hn(t.length)|0,r=qt(o);return r.length===0||t.copy(r,0,0,o),r}if(t.length!==void 0)return typeof t.length!="number"||Wn(t.length)?qt(0):jn(t);if(t.type==="Buffer"&&Array.isArray(t.data))return jn(t.data)}function Hn(t){if(t>=fr)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+fr.toString(16)+" bytes");return t|0}function pl(t){return+t!=t&&(t=0),O.alloc(+t)}O.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==O.prototype};O.compare=function(o,r){if(Qt(o,Uint8Array)&&(o=O.from(o,o.offset,o.byteLength)),Qt(r,Uint8Array)&&(r=O.from(r,r.offset,r.byteLength)),!O.isBuffer(o)||!O.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===r)return 0;for(var n=o.length,i=r.length,s=0,p=Math.min(n,i);s<p;++s)if(o[s]!==r[s]){n=o[s],i=r[s];break}return n<i?-1:i<n?1:0};O.isEncoding=function(o){switch(String(o).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};O.concat=function(o,r){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return O.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<o.length;++n)r+=o[n].length;var i=O.allocUnsafe(r),s=0;for(n=0;n<o.length;++n){var p=o[n];if(Qt(p,Uint8Array))s+p.length>i.length?O.from(p).copy(i,s):Uint8Array.prototype.set.call(i,p,s);else if(O.isBuffer(p))p.copy(i,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=p.length}return i};function ha(t,o){if(O.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Qt(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(o){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return qn(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ca(t).length;default:if(i)return n?-1:qn(t).length;o=(""+o).toLowerCase(),i=!0}}O.byteLength=ha;function Al(t,o,r){var n=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,o>>>=0,r<=o))return"";for(t||(t="utf8");;)switch(t){case"hex":return yl(this,o,r);case"utf8":case"utf-8":return ba(this,o,r);case"ascii":return El(this,o,r);case"latin1":case"binary":return bl(this,o,r);case"base64":return hl(this,o,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _l(this,o,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}O.prototype._isBuffer=!0;function to(t,o,r){var n=t[o];t[o]=t[r],t[r]=n}O.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<o;r+=2)to(this,r,r+1);return this};O.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<o;r+=4)to(this,r,r+3),to(this,r+1,r+2);return this};O.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<o;r+=8)to(this,r,r+7),to(this,r+1,r+6),to(this,r+2,r+5),to(this,r+3,r+4);return this};O.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?ba(this,0,o):Al.apply(this,arguments)};O.prototype.toLocaleString=O.prototype.toString;O.prototype.equals=function(o){if(!O.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:O.compare(this,o)===0};O.prototype.inspect=function(){var o="",r=ho.INSPECT_MAX_BYTES;return o=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(o+=" ... "),"<Buffer "+o+">"};ca&&(O.prototype[ca]=O.prototype.inspect);O.prototype.compare=function(o,r,n,i,s){if(Qt(o,Uint8Array)&&(o=O.from(o,o.offset,o.byteLength)),!O.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(r===void 0&&(r=0),n===void 0&&(n=o?o.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),r<0||n>o.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&r>=n)return 0;if(i>=s)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,s>>>=0,this===o)return 0;for(var p=s-i,u=n-r,h=Math.min(p,u),w=this.slice(i,s),G=o.slice(r,n),T=0;T<h;++T)if(w[T]!==G[T]){p=w[T],u=G[T];break}return p<u?-1:u<p?1:0};function Ba(t,o,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Wn(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof o=="string"&&(o=O.from(o,n)),O.isBuffer(o))return o.length===0?-1:Ea(t,o,r,n,i);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,o,r):Uint8Array.prototype.lastIndexOf.call(t,o,r):Ea(t,[o],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Ea(t,o,r,n,i){var s=1,p=t.length,u=o.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||o.length<2)return-1;s=2,p/=2,u/=2,r/=2}function h(P,L){return s===1?P[L]:P.readUInt16BE(L*s)}var w;if(i){var G=-1;for(w=r;w<p;w++)if(h(t,w)===h(o,G===-1?0:w-G)){if(G===-1&&(G=w),w-G+1===u)return G*s}else G!==-1&&(w-=w-G),G=-1}else for(r+u>p&&(r=p-u),w=r;w>=0;w--){for(var T=!0,V=0;V<u;V++)if(h(t,w+V)!==h(o,V)){T=!1;break}if(T)return w}return-1}O.prototype.includes=function(o,r,n){return this.indexOf(o,r,n)!==-1};O.prototype.indexOf=function(o,r,n){return Ba(this,o,r,n,!0)};O.prototype.lastIndexOf=function(o,r,n){return Ba(this,o,r,n,!1)};function ul(t,o,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var s=o.length;n>s/2&&(n=s/2);for(var p=0;p<n;++p){var u=parseInt(o.substr(p*2,2),16);if(Wn(u))return p;t[r+p]=u}return p}function ll(t,o,r,n){return hr(qn(o,t.length-r),t,r,n)}function cl(t,o,r,n){return hr(Cl(o),t,r,n)}function dl(t,o,r,n){return hr(Ca(o),t,r,n)}function fl(t,o,r,n){return hr(xl(o,t.length-r),t,r,n)}O.prototype.write=function(o,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var s=this.length-r;if((n===void 0||n>s)&&(n=s),o.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return ul(this,o,r,n);case"utf8":case"utf-8":return ll(this,o,r,n);case"ascii":case"latin1":case"binary":return cl(this,o,r,n);case"base64":return dl(this,o,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fl(this,o,r,n);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};O.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function hl(t,o,r){return o===0&&r===t.length?kn.fromByteArray(t):kn.fromByteArray(t.slice(o,r))}function ba(t,o,r){r=Math.min(t.length,r);for(var n=[],i=o;i<r;){var s=t[i],p=null,u=s>239?4:s>223?3:s>191?2:1;if(i+u<=r){var h,w,G,T;switch(u){case 1:s<128&&(p=s);break;case 2:h=t[i+1],(h&192)===128&&(T=(s&31)<<6|h&63,T>127&&(p=T));break;case 3:h=t[i+1],w=t[i+2],(h&192)===128&&(w&192)===128&&(T=(s&15)<<12|(h&63)<<6|w&63,T>2047&&(T<55296||T>57343)&&(p=T));break;case 4:h=t[i+1],w=t[i+2],G=t[i+3],(h&192)===128&&(w&192)===128&&(G&192)===128&&(T=(s&15)<<18|(h&63)<<12|(w&63)<<6|G&63,T>65535&&T<1114112&&(p=T))}}p===null?(p=65533,u=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|p&1023),n.push(p),i+=u}return Bl(n)}var ya=4096;function Bl(t){var o=t.length;if(o<=ya)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<o;)r+=String.fromCharCode.apply(String,t.slice(n,n+=ya));return r}function El(t,o,r){var n="";r=Math.min(t.length,r);for(var i=o;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function bl(t,o,r){var n="";r=Math.min(t.length,r);for(var i=o;i<r;++i)n+=String.fromCharCode(t[i]);return n}function yl(t,o,r){var n=t.length;(!o||o<0)&&(o=0),(!r||r<0||r>n)&&(r=n);for(var i="",s=o;s<r;++s)i+=Sl[t[s]];return i}function _l(t,o,r){for(var n=t.slice(o,r),i="",s=0;s<n.length-1;s+=2)i+=String.fromCharCode(n[s]+n[s+1]*256);return i}O.prototype.slice=function(o,r){var n=this.length;o=~~o,r=r===void 0?n:~~r,o<0?(o+=n,o<0&&(o=0)):o>n&&(o=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<o&&(r=o);var i=this.subarray(o,r);return Object.setPrototypeOf(i,O.prototype),i};function Ve(t,o,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+o>r)throw new RangeError("Trying to access beyond buffer length")}O.prototype.readUintLE=O.prototype.readUIntLE=function(o,r,n){o=o>>>0,r=r>>>0,n||Ve(o,r,this.length);for(var i=this[o],s=1,p=0;++p<r&&(s*=256);)i+=this[o+p]*s;return i};O.prototype.readUintBE=O.prototype.readUIntBE=function(o,r,n){o=o>>>0,r=r>>>0,n||Ve(o,r,this.length);for(var i=this[o+--r],s=1;r>0&&(s*=256);)i+=this[o+--r]*s;return i};O.prototype.readUint8=O.prototype.readUInt8=function(o,r){return o=o>>>0,r||Ve(o,1,this.length),this[o]};O.prototype.readUint16LE=O.prototype.readUInt16LE=function(o,r){return o=o>>>0,r||Ve(o,2,this.length),this[o]|this[o+1]<<8};O.prototype.readUint16BE=O.prototype.readUInt16BE=function(o,r){return o=o>>>0,r||Ve(o,2,this.length),this[o]<<8|this[o+1]};O.prototype.readUint32LE=O.prototype.readUInt32LE=function(o,r){return o=o>>>0,r||Ve(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};O.prototype.readUint32BE=O.prototype.readUInt32BE=function(o,r){return o=o>>>0,r||Ve(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};O.prototype.readIntLE=function(o,r,n){o=o>>>0,r=r>>>0,n||Ve(o,r,this.length);for(var i=this[o],s=1,p=0;++p<r&&(s*=256);)i+=this[o+p]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*r)),i};O.prototype.readIntBE=function(o,r,n){o=o>>>0,r=r>>>0,n||Ve(o,r,this.length);for(var i=r,s=1,p=this[o+--i];i>0&&(s*=256);)p+=this[o+--i]*s;return s*=128,p>=s&&(p-=Math.pow(2,8*r)),p};O.prototype.readInt8=function(o,r){return o=o>>>0,r||Ve(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};O.prototype.readInt16LE=function(o,r){o=o>>>0,r||Ve(o,2,this.length);var n=this[o]|this[o+1]<<8;return n&32768?n|4294901760:n};O.prototype.readInt16BE=function(o,r){o=o>>>0,r||Ve(o,2,this.length);var n=this[o+1]|this[o]<<8;return n&32768?n|4294901760:n};O.prototype.readInt32LE=function(o,r){return o=o>>>0,r||Ve(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};O.prototype.readInt32BE=function(o,r){return o=o>>>0,r||Ve(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};O.prototype.readFloatLE=function(o,r){return o=o>>>0,r||Ve(o,4,this.length),fo.read(this,o,!0,23,4)};O.prototype.readFloatBE=function(o,r){return o=o>>>0,r||Ve(o,4,this.length),fo.read(this,o,!1,23,4)};O.prototype.readDoubleLE=function(o,r){return o=o>>>0,r||Ve(o,8,this.length),fo.read(this,o,!0,52,8)};O.prototype.readDoubleBE=function(o,r){return o=o>>>0,r||Ve(o,8,this.length),fo.read(this,o,!1,52,8)};function it(t,o,r,n,i,s){if(!O.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>i||o<s)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}O.prototype.writeUintLE=O.prototype.writeUIntLE=function(o,r,n,i){if(o=+o,r=r>>>0,n=n>>>0,!i){var s=Math.pow(2,8*n)-1;it(this,o,r,n,s,0)}var p=1,u=0;for(this[r]=o&255;++u<n&&(p*=256);)this[r+u]=o/p&255;return r+n};O.prototype.writeUintBE=O.prototype.writeUIntBE=function(o,r,n,i){if(o=+o,r=r>>>0,n=n>>>0,!i){var s=Math.pow(2,8*n)-1;it(this,o,r,n,s,0)}var p=n-1,u=1;for(this[r+p]=o&255;--p>=0&&(u*=256);)this[r+p]=o/u&255;return r+n};O.prototype.writeUint8=O.prototype.writeUInt8=function(o,r,n){return o=+o,r=r>>>0,n||it(this,o,r,1,255,0),this[r]=o&255,r+1};O.prototype.writeUint16LE=O.prototype.writeUInt16LE=function(o,r,n){return o=+o,r=r>>>0,n||it(this,o,r,2,65535,0),this[r]=o&255,this[r+1]=o>>>8,r+2};O.prototype.writeUint16BE=O.prototype.writeUInt16BE=function(o,r,n){return o=+o,r=r>>>0,n||it(this,o,r,2,65535,0),this[r]=o>>>8,this[r+1]=o&255,r+2};O.prototype.writeUint32LE=O.prototype.writeUInt32LE=function(o,r,n){return o=+o,r=r>>>0,n||it(this,o,r,4,4294967295,0),this[r+3]=o>>>24,this[r+2]=o>>>16,this[r+1]=o>>>8,this[r]=o&255,r+4};O.prototype.writeUint32BE=O.prototype.writeUInt32BE=function(o,r,n){return o=+o,r=r>>>0,n||it(this,o,r,4,4294967295,0),this[r]=o>>>24,this[r+1]=o>>>16,this[r+2]=o>>>8,this[r+3]=o&255,r+4};O.prototype.writeIntLE=function(o,r,n,i){if(o=+o,r=r>>>0,!i){var s=Math.pow(2,8*n-1);it(this,o,r,n,s-1,-s)}var p=0,u=1,h=0;for(this[r]=o&255;++p<n&&(u*=256);)o<0&&h===0&&this[r+p-1]!==0&&(h=1),this[r+p]=(o/u>>0)-h&255;return r+n};O.prototype.writeIntBE=function(o,r,n,i){if(o=+o,r=r>>>0,!i){var s=Math.pow(2,8*n-1);it(this,o,r,n,s-1,-s)}var p=n-1,u=1,h=0;for(this[r+p]=o&255;--p>=0&&(u*=256);)o<0&&h===0&&this[r+p+1]!==0&&(h=1),this[r+p]=(o/u>>0)-h&255;return r+n};O.prototype.writeInt8=function(o,r,n){return o=+o,r=r>>>0,n||it(this,o,r,1,127,-128),o<0&&(o=255+o+1),this[r]=o&255,r+1};O.prototype.writeInt16LE=function(o,r,n){return o=+o,r=r>>>0,n||it(this,o,r,2,32767,-32768),this[r]=o&255,this[r+1]=o>>>8,r+2};O.prototype.writeInt16BE=function(o,r,n){return o=+o,r=r>>>0,n||it(this,o,r,2,32767,-32768),this[r]=o>>>8,this[r+1]=o&255,r+2};O.prototype.writeInt32LE=function(o,r,n){return o=+o,r=r>>>0,n||it(this,o,r,4,2147483647,-2147483648),this[r]=o&255,this[r+1]=o>>>8,this[r+2]=o>>>16,this[r+3]=o>>>24,r+4};O.prototype.writeInt32BE=function(o,r,n){return o=+o,r=r>>>0,n||it(this,o,r,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[r]=o>>>24,this[r+1]=o>>>16,this[r+2]=o>>>8,this[r+3]=o&255,r+4};function _a(t,o,r,n,i,s){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ia(t,o,r,n,i){return o=+o,r=r>>>0,i||_a(t,o,r,4,34028234663852886e22,-34028234663852886e22),fo.write(t,o,r,n,23,4),r+4}O.prototype.writeFloatLE=function(o,r,n){return Ia(this,o,r,!0,n)};O.prototype.writeFloatBE=function(o,r,n){return Ia(this,o,r,!1,n)};function ma(t,o,r,n,i){return o=+o,r=r>>>0,i||_a(t,o,r,8,17976931348623157e292,-17976931348623157e292),fo.write(t,o,r,n,52,8),r+8}O.prototype.writeDoubleLE=function(o,r,n){return ma(this,o,r,!0,n)};O.prototype.writeDoubleBE=function(o,r,n){return ma(this,o,r,!1,n)};O.prototype.copy=function(o,r,n,i){if(!O.isBuffer(o))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=o.length&&(r=o.length),r||(r=0),i>0&&i<n&&(i=n),i===n||o.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),o.length-r<i-n&&(i=o.length-r+n);var s=i-n;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(o,this.subarray(n,i),r),s};O.prototype.fill=function(o,r,n,i){if(typeof o=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!O.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(o.length===1){var s=o.charCodeAt(0);(i==="utf8"&&s<128||i==="latin1")&&(o=s)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,o||(o=0);var p;if(typeof o=="number")for(p=r;p<n;++p)this[p]=o;else{var u=O.isBuffer(o)?o:O.from(o,i),h=u.length;if(h===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(p=0;p<n-r;++p)this[p+r]=u[p%h]}return this};var Il=/[^+/0-9A-Za-z-_]/g;function ml(t){if(t=t.split("=")[0],t=t.trim().replace(Il,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function qn(t,o){o=o||1/0;for(var r,n=t.length,i=null,s=[],p=0;p<n;++p){if(r=t.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(o-=3)>-1&&s.push(239,191,189);continue}else if(p+1===n){(o-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(o-=3)>-1&&s.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(o-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((o-=1)<0)break;s.push(r)}else if(r<2048){if((o-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((o-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((o-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return s}function Cl(t){for(var o=[],r=0;r<t.length;++r)o.push(t.charCodeAt(r)&255);return o}function xl(t,o){for(var r,n,i,s=[],p=0;p<t.length&&!((o-=2)<0);++p)r=t.charCodeAt(p),n=r>>8,i=r%256,s.push(i),s.push(n);return s}function Ca(t){return kn.toByteArray(ml(t))}function hr(t,o,r,n){for(var i=0;i<n&&!(i+r>=o.length||i>=t.length);++i)o[i+r]=t[i];return i}function Qt(t,o){return t instanceof o||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===o.name}function Wn(t){return t!==t}var Sl=function(){for(var t="0123456789abcdef",o=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)o[n+i]=t[r]+t[i];return o}()});var Sa=H(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.ReplicaRejectCode=void 0;var wl;(function(t){t[t.SysFatal=1]="SysFatal",t[t.SysTransient=2]="SysTransient",t[t.DestinationInvalid=3]="DestinationInvalid",t[t.CanisterReject=4]="CanisterReject",t[t.CanisterError=5]="CanisterError"})(wl=jo.ReplicaRejectCode||(jo.ReplicaRejectCode={}))});var wa=H(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.decode=Eo.encode=void 0;var Br="abcdefghijklmnopqrstuvwxyz234567",Bo=Object.create(null);for(let t=0;t<Br.length;t++)Bo[Br[t]]=t;Bo["0"]=Bo.o;Bo["1"]=Bo.i;function vl(t){let o=0,r=0,n="";function i(s){return o<0?r|=s>>-o:r=s<<o&248,o>3?(o-=8,1):(o<4&&(n+=Br[r>>3],o+=5),0)}for(let s=0;s<t.length;)s+=i(t[s]);return n+(o<0?Br[r>>3]:"")}Eo.encode=vl;function Rl(t){let o=0,r=0,n=new Uint8Array(t.length*4/3|0),i=0;function s(p){let u=Bo[p.toLowerCase()];if(u===void 0)throw new Error(`Invalid character: ${JSON.stringify(p)}`);u<<=3,r|=u>>>o,o+=5,o>=8&&(n[i++]=r,o-=8,o>0?r=u<<5-o&255:r=0)}for(let p of t)s(p);return n.slice(0,i)}Eo.decode=Rl});var va=H(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.getCrc32=void 0;var Ql=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function Fl(t){let o=new Uint8Array(t),r=-1;for(let n=0;n<o.length;n++){let s=(o[n]^r)&255;r=Ql[s]^r>>>8}return(r^-1)>>>0}Er.getCrc32=Fl});var Ra=H(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.sha224=void 0;var Tl=No();function Ml(t){let o=Tl.sha224.create();return o.update(t),new Uint8Array(o.array())}br.sha224=Ml});var Ft=H(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.Principal=void 0;var Qa=wa(),Ol=va(),Nl=Ra(),Gl=2,Fa=4,Pl=t=>{var o;return new Uint8Array(((o=t.match(/.{1,2}/g))!==null&&o!==void 0?o:[]).map(r=>parseInt(r,16)))},kl=t=>t.reduce((o,r)=>o+r.toString(16).padStart(2,"0"),""),Do=class{constructor(o){this._arr=o,this._isPrincipal=!0}static anonymous(){return new this(new Uint8Array([Fa]))}static selfAuthenticating(o){let r=Nl.sha224(o);return new this(new Uint8Array([...r,Gl]))}static from(o){if(typeof o=="string")return Do.fromText(o);if(typeof o=="object"&&o!==null&&o._isPrincipal===!0)return new Do(o._arr);throw new Error(`Impossible to convert ${JSON.stringify(o)} to Principal.`)}static fromHex(o){return new this(Pl(o))}static fromText(o){let r=o.toLowerCase().replace(/-/g,""),n=Qa.decode(r);n=n.slice(4,n.length);let i=new this(n);if(i.toText()!==o)throw new Error(`Principal "${i.toText()}" does not have a valid checksum (original value "${o}" may not be a valid Principal ID).`);return i}static fromUint8Array(o){return new this(o)}isAnonymous(){return this._arr.byteLength===1&&this._arr[0]===Fa}toUint8Array(){return this._arr}toHex(){return kl(this._arr).toUpperCase()}toText(){let o=new ArrayBuffer(4);new DataView(o).setUint32(0,Ol.getCrc32(this._arr));let n=new Uint8Array(o),i=Uint8Array.from(this._arr),s=new Uint8Array([...n,...i]),u=Qa.encode(s).match(/.{1,5}/g);if(!u)throw new Error;return u.join("-")}toString(){return this.toText()}};yr.Principal=Do});var Ir=H(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.AgentError=void 0;var Ta=class extends Error{};_r.AgentError=Ta});var Vn=H(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.PipeArrayBuffer=Tt.fromHexString=Tt.toHexString=Tt.concat=void 0;function Ul(...t){let o=new Uint8Array(t.reduce((n,i)=>n+i.byteLength,0)),r=0;for(let n of t)o.set(new Uint8Array(n),r),r+=n.byteLength;return o}Tt.concat=Ul;function jl(t){return new Uint8Array(t).reduce((o,r)=>o+r.toString(16).padStart(2,"0"),"")}Tt.toHexString=jl;function Dl(t){var o;return new Uint8Array(((o=t.match(/.{1,2}/g))!==null&&o!==void 0?o:[]).map(r=>parseInt(r,16)))}Tt.fromHexString=Dl;var Ma=class{constructor(o,r=(o==null?void 0:o.byteLength)||0){this._buffer=o||new ArrayBuffer(0),this._view=new Uint8Array(this._buffer,0,r)}get buffer(){return this._view.slice()}get byteLength(){return this._view.byteLength}read(o){let r=this._view.subarray(0,o);return this._view=this._view.subarray(o),r.slice().buffer}readUint8(){let o=this._view[0];return this._view=this._view.subarray(1),o}write(o){let r=new Uint8Array(o),n=this._view.byteLength;this._view.byteOffset+this._view.byteLength+r.byteLength>=this._buffer.byteLength?this.alloc(r.byteLength):this._view=new Uint8Array(this._buffer,this._view.byteOffset,this._view.byteLength+r.byteLength),this._view.set(r,n)}get end(){return this._view.byteLength===0}alloc(o){let r=new ArrayBuffer((this._buffer.byteLength+o)*1.2|0),n=new Uint8Array(r,0,this._view.byteLength+o);n.set(this._view),this._buffer=r,this._view=n}};Tt.PipeArrayBuffer=Ma});var Yn=H(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.idlLabelToId=void 0;function Hl(t){let r=new TextEncoder().encode(t),n=0;for(let i of r)n=(n*223+i)%2**32;return n}function ql(t){if(/^_\d+_$/.test(t)||/^_0x[0-9a-fA-F]+_$/.test(t)){let o=+t.slice(1,-1);if(Number.isSafeInteger(o)&&o>=0&&o<2**32)return o}return Hl(t)}mr.idlLabelToId=ql});var xr=H(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.readIntLE=Te.readUIntLE=Te.writeIntLE=Te.writeUIntLE=Te.slebDecode=Te.slebEncode=Te.lebDecode=Te.lebEncode=Te.safeReadUint8=Te.safeRead=void 0;var zn=Vn();function Oa(){throw new Error("unexpected end of buffer")}function Na(t,o){return t.byteLength<o&&Oa(),t.read(o)}Te.safeRead=Na;function Cr(t){let o=t.readUint8();return o===void 0&&Oa(),o}Te.safeReadUint8=Cr;function Wl(t){if(typeof t=="number"&&(t=BigInt(t)),t<BigInt(0))throw new Error("Cannot leb encode negative values.");let o=(t===BigInt(0)?0:Math.ceil(Math.log2(Number(t))))+1,r=new zn.PipeArrayBuffer(new ArrayBuffer(o),0);for(;;){let n=Number(t&BigInt(127));if(t/=BigInt(128),t===BigInt(0)){r.write(new Uint8Array([n]));break}else r.write(new Uint8Array([n|128]))}return r.buffer}Te.lebEncode=Wl;function Ga(t){let o=BigInt(1),r=BigInt(0),n;do n=Cr(t),r+=BigInt(n&127).valueOf()*o,o*=BigInt(128);while(n>=128);return r}Te.lebDecode=Ga;function Vl(t){typeof t=="number"&&(t=BigInt(t));let o=t<BigInt(0);o&&(t=-t-BigInt(1));let r=(t===BigInt(0)?0:Math.ceil(Math.log2(Number(t))))+1,n=new zn.PipeArrayBuffer(new ArrayBuffer(r),0);for(;;){let s=i(t);if(t/=BigInt(128),o&&t===BigInt(0)&&(s&64)!==0||!o&&t===BigInt(0)&&(s&64)===0){n.write(new Uint8Array([s]));break}else n.write(new Uint8Array([s|128]))}function i(s){let p=s%BigInt(128);return Number(o?BigInt(128)-p-BigInt(1):p)}return n.buffer}Te.slebEncode=Vl;function Yl(t){let o=new Uint8Array(t.buffer),r=0;for(;r<o.byteLength;r++)if(o[r]<128){if((o[r]&64)===0)return Ga(t);break}let n=new Uint8Array(Na(t,r+1)),i=BigInt(0);for(let s=n.byteLength-1;s>=0;s--)i=i*BigInt(128)+BigInt(128-(n[s]&127)-1);return-i-BigInt(1)}Te.slebDecode=Yl;function zl(t,o){if(BigInt(t)<BigInt(0))throw new Error("Cannot write negative values.");return Pa(t,o)}Te.writeUIntLE=zl;function Pa(t,o){t=BigInt(t);let r=new zn.PipeArrayBuffer(new ArrayBuffer(Math.min(1,o)),0),n=0,i=BigInt(256),s=BigInt(0),p=Number(t%i);for(r.write(new Uint8Array([p]));++n<o;)t<0&&s===BigInt(0)&&p!==0&&(s=BigInt(1)),p=Number((t/i-s)%BigInt(256)),r.write(new Uint8Array([p])),i*=BigInt(256);return r.buffer}Te.writeIntLE=Pa;function ka(t,o){let r=BigInt(Cr(t)),n=BigInt(1),i=0;for(;++i<o;){n*=BigInt(256);let s=BigInt(Cr(t));r=r+n*s}return r}Te.readUIntLE=ka;function Ll(t,o){let r=ka(t,o),n=BigInt(2)**(BigInt(8)*BigInt(o-1)+BigInt(7));return r>=n&&(r-=n*BigInt(2)),r}Te.readIntLE=Ll});var ni=H(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.Func=M.Rec=M.Variant=M.Record=M.Opt=M.Vec=M.Tuple=M.Principal=M.Nat64=M.Nat32=M.Nat16=M.Nat8=M.Int64=M.Int32=M.Int16=M.Int8=M.Float64=M.Float32=M.Nat=M.Int=M.Text=M.Null=M.Bool=M.Reserved=M.Empty=M.decode=M.encode=M.ServiceClass=M.FuncClass=M.PrincipalClass=M.RecClass=M.VariantClass=M.TupleClass=M.RecordClass=M.OptClass=M.VecClass=M.FixedNatClass=M.FixedIntClass=M.FloatClass=M.NatClass=M.IntClass=M.TextClass=M.ReservedClass=M.NullClass=M.BoolClass=M.EmptyClass=M.ConstructType=M.PrimitiveType=M.Type=M.Visitor=void 0;M.Service=void 0;var Jl=Ft(),fe=Vn(),Et=Yn(),W=xr(),Sr=xr(),wr="DIDL";function Ho(t,o,r){return t.map((n,i)=>r(n,o[i]))}var Ua=class{constructor(){this._typs=[],this._idx=new Map}has(o){return this._idx.has(o.name)}add(o,r){let n=this._typs.length;this._idx.set(o.name,n),this._typs.push(r)}merge(o,r){let n=this._idx.get(o.name),i=this._idx.get(r);if(n===void 0)throw new Error("Missing type index for "+o);if(i===void 0)throw new Error("Missing type index for "+r);this._typs[n]=this._typs[i],this._typs.splice(i,1),this._idx.delete(r)}encode(){let o=W.lebEncode(this._typs.length),r=fe.concat(...this._typs);return fe.concat(o,r)}indexOf(o){if(!this._idx.has(o))throw new Error("Missing type index for "+o);return W.slebEncode(this._idx.get(o)||0)}},ja=class{visitType(o,r){throw new Error("Not implemented")}visitPrimitive(o,r){return this.visitType(o,r)}visitEmpty(o,r){return this.visitPrimitive(o,r)}visitBool(o,r){return this.visitPrimitive(o,r)}visitNull(o,r){return this.visitPrimitive(o,r)}visitReserved(o,r){return this.visitPrimitive(o,r)}visitText(o,r){return this.visitPrimitive(o,r)}visitNumber(o,r){return this.visitPrimitive(o,r)}visitInt(o,r){return this.visitNumber(o,r)}visitNat(o,r){return this.visitNumber(o,r)}visitFloat(o,r){return this.visitPrimitive(o,r)}visitFixedInt(o,r){return this.visitNumber(o,r)}visitFixedNat(o,r){return this.visitNumber(o,r)}visitPrincipal(o,r){return this.visitPrimitive(o,r)}visitConstruct(o,r){return this.visitType(o,r)}visitVec(o,r,n){return this.visitConstruct(o,n)}visitOpt(o,r,n){return this.visitConstruct(o,n)}visitRecord(o,r,n){return this.visitConstruct(o,n)}visitTuple(o,r,n){let i=r.map((s,p)=>[`_${p}_`,s]);return this.visitRecord(o,i,n)}visitVariant(o,r,n){return this.visitConstruct(o,n)}visitRec(o,r,n){return this.visitConstruct(r,n)}visitFunc(o,r){return this.visitConstruct(o,r)}visitService(o,r){return this.visitConstruct(o,r)}};M.Visitor=ja;var vr=class{display(){return this.name}valueToString(o){return Da(o)}buildTypeTable(o){o.has(this)||this._buildTypeTableImpl(o)}};M.Type=vr;var At=class extends vr{checkType(o){if(this.name!==o.name)throw new Error(`type mismatch: type on the wire ${o.name}, expect type ${this.name}`);return o}_buildTypeTableImpl(o){}};M.PrimitiveType=At;var Wt=class extends vr{checkType(o){if(o instanceof ro){let r=o.getType();if(typeof r=="undefined")throw new Error("type mismatch with uninitialized type");return r}throw new Error(`type mismatch: type on the wire ${o.name}, expect type ${this.name}`)}encodeType(o){return o.indexOf(this.name)}};M.ConstructType=Wt;var Ln=class extends At{accept(o,r){return o.visitEmpty(this,r)}covariant(o){return!1}encodeValue(){throw new Error("Empty cannot appear as a function argument")}valueToString(){throw new Error("Empty cannot appear as a value")}encodeType(){return W.slebEncode(-17)}decodeValue(){throw new Error("Empty cannot appear as an output")}get name(){return"empty"}};M.EmptyClass=Ln;var Jn=class extends At{accept(o,r){return o.visitBool(this,r)}covariant(o){return typeof o=="boolean"}encodeValue(o){return new Uint8Array([o?1:0])}encodeType(){return W.slebEncode(-2)}decodeValue(o,r){switch(this.checkType(r),W.safeReadUint8(o)){case 0:return!1;case 1:return!0;default:throw new Error("Boolean value out of range")}}get name(){return"bool"}};M.BoolClass=Jn;var Kn=class extends At{accept(o,r){return o.visitNull(this,r)}covariant(o){return o===null}encodeValue(){return new ArrayBuffer(0)}encodeType(){return W.slebEncode(-1)}decodeValue(o,r){return this.checkType(r),null}get name(){return"null"}};M.NullClass=Kn;var Rr=class extends At{accept(o,r){return o.visitReserved(this,r)}covariant(o){return!0}encodeValue(){return new ArrayBuffer(0)}encodeType(){return W.slebEncode(-16)}decodeValue(o,r){return r.name!==this.name&&r.decodeValue(o,r),null}get name(){return"reserved"}};M.ReservedClass=Rr;var Zn=class extends At{accept(o,r){return o.visitText(this,r)}covariant(o){return typeof o=="string"}encodeValue(o){let r=new TextEncoder().encode(o),n=W.lebEncode(r.byteLength);return fe.concat(n,r)}encodeType(){return W.slebEncode(-15)}decodeValue(o,r){this.checkType(r);let n=W.lebDecode(o),i=W.safeRead(o,Number(n));return new TextDecoder("utf8",{fatal:!0}).decode(i)}get name(){return"text"}valueToString(o){return'"'+o+'"'}};M.TextClass=Zn;var Xn=class extends At{accept(o,r){return o.visitInt(this,r)}covariant(o){return typeof o=="bigint"||Number.isInteger(o)}encodeValue(o){return W.slebEncode(o)}encodeType(){return W.slebEncode(-4)}decodeValue(o,r){return this.checkType(r),W.slebDecode(o)}get name(){return"int"}valueToString(o){return o.toString()}};M.IntClass=Xn;var $n=class extends At{accept(o,r){return o.visitNat(this,r)}covariant(o){return typeof o=="bigint"&&o>=BigInt(0)||Number.isInteger(o)&&o>=0}encodeValue(o){return W.lebEncode(o)}encodeType(){return W.slebEncode(-3)}decodeValue(o,r){return this.checkType(r),W.lebDecode(o)}get name(){return"nat"}valueToString(o){return o.toString()}};M.NatClass=$n;var Qr=class extends At{constructor(o){super();if(this._bits=o,o!==32&&o!==64)throw new Error("not a valid float type")}accept(o,r){return o.visitFloat(this,r)}covariant(o){return typeof o=="number"||o instanceof Number}encodeValue(o){let r=new ArrayBuffer(this._bits/8),n=new DataView(r);return this._bits===32?n.setFloat32(0,o,!0):n.setFloat64(0,o,!0),r}encodeType(){let o=this._bits===32?-13:-14;return W.slebEncode(o)}decodeValue(o,r){this.checkType(r);let n=W.safeRead(o,this._bits/8),i=new DataView(n);return this._bits===32?i.getFloat32(0,!0):i.getFloat64(0,!0)}get name(){return"float"+this._bits}valueToString(o){return o.toString()}};M.FloatClass=Qr;var bo=class extends At{constructor(o){super();this._bits=o}accept(o,r){return o.visitFixedInt(this,r)}covariant(o){let r=BigInt(2)**BigInt(this._bits-1)*BigInt(-1),n=BigInt(2)**BigInt(this._bits-1)-BigInt(1);if(typeof o=="bigint")return o>=r&&o<=n;if(Number.isInteger(o)){let i=BigInt(o);return i>=r&&i<=n}else return!1}encodeValue(o){return Sr.writeIntLE(o,this._bits/8)}encodeType(){let o=Math.log2(this._bits)-3;return W.slebEncode(-9-o)}decodeValue(o,r){this.checkType(r);let n=Sr.readIntLE(o,this._bits/8);return this._bits<=32?Number(n):n}get name(){return`int${this._bits}`}valueToString(o){return o.toString()}};M.FixedIntClass=bo;var oo=class extends At{constructor(o){super();this.bits=o}accept(o,r){return o.visitFixedNat(this,r)}covariant(o){let r=BigInt(2)**BigInt(this.bits);return typeof o=="bigint"&&o>=BigInt(0)?o<r:Number.isInteger(o)&&o>=0?BigInt(o)<r:!1}encodeValue(o){return Sr.writeUIntLE(o,this.bits/8)}encodeType(){let o=Math.log2(this.bits)-3;return W.slebEncode(-5-o)}decodeValue(o,r){this.checkType(r);let n=Sr.readUIntLE(o,this.bits/8);return this.bits<=32?Number(n):n}get name(){return`nat${this.bits}`}valueToString(o){return o.toString()}};M.FixedNatClass=oo;var qo=class extends Wt{constructor(o){super();this._type=o,this._blobOptimization=!1,o instanceof oo&&o.bits===8&&(this._blobOptimization=!0)}accept(o,r){return o.visitVec(this,this._type,r)}covariant(o){return Array.isArray(o)&&o.every(r=>this._type.covariant(r))}encodeValue(o){let r=W.lebEncode(o.length);return this._blobOptimization?fe.concat(r,new Uint8Array(o)):fe.concat(r,...o.map(n=>this._type.encodeValue(n)))}_buildTypeTableImpl(o){this._type.buildTypeTable(o);let r=W.slebEncode(-19),n=this._type.encodeType(o);o.add(this,fe.concat(r,n))}decodeValue(o,r){let n=this.checkType(r);if(!(n instanceof qo))throw new Error("Not a vector type");let i=Number(W.lebDecode(o));if(this._blobOptimization)return[...new Uint8Array(o.read(i))];let s=[];for(let p=0;p<i;p++)s.push(this._type.decodeValue(o,n._type));return s}get name(){return`vec ${this._type.name}`}display(){return`vec ${this._type.display()}`}valueToString(o){let r=o.map(n=>this._type.valueToString(n));return"vec {"+r.join("; ")+"}"}};M.VecClass=qo;var yo=class extends Wt{constructor(o){super();this._type=o}accept(o,r){return o.visitOpt(this,this._type,r)}covariant(o){return Array.isArray(o)&&(o.length===0||o.length===1&&this._type.covariant(o[0]))}encodeValue(o){return o.length===0?new Uint8Array([0]):fe.concat(new Uint8Array([1]),this._type.encodeValue(o[0]))}_buildTypeTableImpl(o){this._type.buildTypeTable(o);let r=W.slebEncode(-18),n=this._type.encodeType(o);o.add(this,fe.concat(r,n))}decodeValue(o,r){let n=this.checkType(r);if(!(n instanceof yo))throw new Error("Not an option type");switch(W.safeReadUint8(o)){case 0:return[];case 1:return[this._type.decodeValue(o,n._type)];default:throw new Error("Not an option value")}}get name(){return`opt ${this._type.name}`}display(){return`opt ${this._type.display()}`}valueToString(o){return o.length===0?"null":`opt ${this._type.valueToString(o[0])}`}};M.OptClass=yo;var _o=class extends Wt{constructor(o={}){super();this._fields=Object.entries(o).sort((r,n)=>Et.idlLabelToId(r[0])-Et.idlLabelToId(n[0]))}accept(o,r){return o.visitRecord(this,this._fields,r)}tryAsTuple(){let o=[];for(let r=0;r<this._fields.length;r++){let[n,i]=this._fields[r];if(n!==`_${r}_`)return null;o.push(i)}return o}covariant(o){return typeof o=="object"&&this._fields.every(([r,n])=>{if(!o.hasOwnProperty(r))throw new Error(`Record is missing key "${r}".`);return n.covariant(o[r])})}encodeValue(o){let r=this._fields.map(([i])=>o[i]),n=Ho(this._fields,r,([,i],s)=>i.encodeValue(s));return fe.concat(...n)}_buildTypeTableImpl(o){this._fields.forEach(([s,p])=>p.buildTypeTable(o));let r=W.slebEncode(-20),n=W.lebEncode(this._fields.length),i=this._fields.map(([s,p])=>fe.concat(W.lebEncode(Et.idlLabelToId(s)),p.encodeType(o)));o.add(this,fe.concat(r,n,fe.concat(...i)))}decodeValue(o,r){let n=this.checkType(r);if(!(n instanceof _o))throw new Error("Not a record type");let i={},s=0;for(let[p,u]of n._fields){if(s>=this._fields.length||Et.idlLabelToId(this._fields[s][0])!==Et.idlLabelToId(p)){u.decodeValue(o,u);continue}let[h,w]=this._fields[s];i[h]=w.decodeValue(o,u),s++}for(let[p,u]of this._fields.slice(s))if(u instanceof yo||u instanceof Rr)i[p]=[];else throw new Error("Cannot find required field "+p);return i}get name(){return`record {${this._fields.map(([r,n])=>r+":"+n.name).join("; ")}}`}display(){return`record {${this._fields.map(([r,n])=>r+":"+n.display()).join("; ")}}`}valueToString(o){let r=this._fields.map(([i])=>o[i]);return`record {${Ho(this._fields,r,([i,s],p)=>i+"="+s.valueToString(p)).join("; ")}}`}};M.RecordClass=_o;var Wo=class extends _o{constructor(o){let r={};o.forEach((n,i)=>r["_"+i+"_"]=n);super(r);this._components=o}accept(o,r){return o.visitTuple(this,this._components,r)}covariant(o){return Array.isArray(o)&&o.length>=this._fields.length&&this._components.every((r,n)=>r.covariant(o[n]))}encodeValue(o){let r=Ho(this._components,o,(n,i)=>n.encodeValue(i));return fe.concat(...r)}decodeValue(o,r){let n=this.checkType(r);if(!(n instanceof Wo))throw new Error("not a tuple type");if(n._components.length<this._components.length)throw new Error("tuple mismatch");let i=[];for(let[s,p]of n._components.entries())s>=this._components.length?p.decodeValue(o,p):i.push(this._components[s].decodeValue(o,p));return i}display(){return`record {${this._components.map(r=>r.display()).join("; ")}}`}valueToString(o){return`record {${Ho(this._components,o,(n,i)=>n.valueToString(i)).join("; ")}}`}};M.TupleClass=Wo;var Vo=class extends Wt{constructor(o={}){super();this._fields=Object.entries(o).sort((r,n)=>Et.idlLabelToId(r[0])-Et.idlLabelToId(n[0]))}accept(o,r){return o.visitVariant(this,this._fields,r)}covariant(o){return typeof o=="object"&&Object.entries(o).length===1&&this._fields.every(([r,n])=>!o.hasOwnProperty(r)||n.covariant(o[r]))}encodeValue(o){for(let r=0;r<this._fields.length;r++){let[n,i]=this._fields[r];if(o.hasOwnProperty(n)){let s=W.lebEncode(r),p=i.encodeValue(o[n]);return fe.concat(s,p)}}throw Error("Variant has no data: "+o)}_buildTypeTableImpl(o){this._fields.forEach(([,s])=>{s.buildTypeTable(o)});let r=W.slebEncode(-21),n=W.lebEncode(this._fields.length),i=this._fields.map(([s,p])=>fe.concat(W.lebEncode(Et.idlLabelToId(s)),p.encodeType(o)));o.add(this,fe.concat(r,n,...i))}decodeValue(o,r){let n=this.checkType(r);if(!(n instanceof Vo))throw new Error("Not a variant type");let i=Number(W.lebDecode(o));if(i>=n._fields.length)throw Error("Invalid variant index: "+i);let[s,p]=n._fields[i];for(let[u,h]of this._fields)if(Et.idlLabelToId(s)===Et.idlLabelToId(u)){let w=h.decodeValue(o,p);return{[u]:w}}throw new Error("Cannot find field hash "+s)}get name(){return`variant {${this._fields.map(([r,n])=>r+":"+n.name).join("; ")}}`}display(){return`variant {${this._fields.map(([r,n])=>r+(n.name==="null"?"":`:${n.display()}`)).join("; ")}}`}valueToString(o){for(let[r,n]of this._fields)if(o.hasOwnProperty(r)){let i=n.valueToString(o[r]);return i==="null"?`variant {${r}}`:`variant {${r}=${i}}`}throw new Error("Variant has no data: "+o)}};M.VariantClass=Vo;var ro=class extends Wt{constructor(){super(...arguments);this._id=ro._counter++,this._type=void 0}accept(o,r){if(!this._type)throw Error("Recursive type uninitialized.");return o.visitRec(this,this._type,r)}fill(o){this._type=o}getType(){return this._type}covariant(o){return this._type?this._type.covariant(o):!1}encodeValue(o){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.encodeValue(o)}_buildTypeTableImpl(o){if(!this._type)throw Error("Recursive type uninitialized.");o.add(this,new Uint8Array([])),this._type.buildTypeTable(o),o.merge(this,this._type.name)}decodeValue(o,r){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.decodeValue(o,r)}get name(){return`rec_${this._id}`}display(){if(!this._type)throw Error("Recursive type uninitialized.");return`\u03BC${this.name}.${this._type.name}`}valueToString(o){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.valueToString(o)}};M.RecClass=ro;ro._counter=0;function ei(t){if(W.safeReadUint8(t)!==1)throw new Error("Cannot decode principal");let r=Number(W.lebDecode(t));return Jl.Principal.fromUint8Array(new Uint8Array(W.safeRead(t,r)))}var ti=class extends At{accept(o,r){return o.visitPrincipal(this,r)}covariant(o){return o&&o._isPrincipal}encodeValue(o){let r=o.toUint8Array(),n=W.lebEncode(r.byteLength);return fe.concat(new Uint8Array([1]),n,r)}encodeType(){return W.slebEncode(-24)}decodeValue(o,r){return this.checkType(r),ei(o)}get name(){return"principal"}valueToString(o){return`${this.name} "${o.toText()}"`}};M.PrincipalClass=ti;var oi=class extends Wt{constructor(o,r,n=[]){super();this.argTypes=o,this.retTypes=r,this.annotations=n}static argsToString(o,r){if(o.length!==r.length)throw new Error("arity mismatch");return"("+o.map((n,i)=>n.valueToString(r[i])).join(", ")+")"}accept(o,r){return o.visitFunc(this,r)}covariant(o){return Array.isArray(o)&&o.length===2&&o[0]&&o[0]._isPrincipal&&typeof o[1]=="string"}encodeValue([o,r]){let n=o.toUint8Array(),i=W.lebEncode(n.byteLength),s=fe.concat(new Uint8Array([1]),i,n),p=new TextEncoder().encode(r),u=W.lebEncode(p.byteLength);return fe.concat(new Uint8Array([1]),s,u,p)}_buildTypeTableImpl(o){this.argTypes.forEach(w=>w.buildTypeTable(o)),this.retTypes.forEach(w=>w.buildTypeTable(o));let r=W.slebEncode(-22),n=W.lebEncode(this.argTypes.length),i=fe.concat(...this.argTypes.map(w=>w.encodeType(o))),s=W.lebEncode(this.retTypes.length),p=fe.concat(...this.retTypes.map(w=>w.encodeType(o))),u=W.lebEncode(this.annotations.length),h=fe.concat(...this.annotations.map(w=>this.encodeAnnotation(w)));o.add(this,fe.concat(r,n,i,s,p,u,h))}decodeValue(o){if(W.safeReadUint8(o)!==1)throw new Error("Cannot decode function reference");let n=ei(o),i=Number(W.lebDecode(o)),s=W.safeRead(o,i),u=new TextDecoder("utf8",{fatal:!0}).decode(s);return[n,u]}get name(){let o=this.argTypes.map(i=>i.name).join(", "),r=this.retTypes.map(i=>i.name).join(", "),n=" "+this.annotations.join(" ");return`(${o}) -> (${r})${n}`}valueToString([o,r]){return`func "${o.toText()}".${r}`}display(){let o=this.argTypes.map(i=>i.display()).join(", "),r=this.retTypes.map(i=>i.display()).join(", "),n=" "+this.annotations.join(" ");return`(${o}) \u2192 (${r})${n}`}encodeAnnotation(o){if(o==="query")return new Uint8Array([1]);if(o==="oneway")return new Uint8Array([2]);throw new Error("Illeagal function annotation")}};M.FuncClass=oi;var ri=class extends Wt{constructor(o){super();this._fields=Object.entries(o).sort((r,n)=>Et.idlLabelToId(r[0])-Et.idlLabelToId(n[0]))}accept(o,r){return o.visitService(this,r)}covariant(o){return o&&o._isPrincipal}encodeValue(o){let r=o.toUint8Array(),n=W.lebEncode(r.length);return fe.concat(new Uint8Array([1]),n,r)}_buildTypeTableImpl(o){this._fields.forEach(([s,p])=>p.buildTypeTable(o));let r=W.slebEncode(-23),n=W.lebEncode(this._fields.length),i=this._fields.map(([s,p])=>{let u=new TextEncoder().encode(s),h=W.lebEncode(u.length);return fe.concat(h,u,p.encodeType(o))});o.add(this,fe.concat(r,n,...i))}decodeValue(o){return ei(o)}get name(){return`service {${this._fields.map(([r,n])=>r+":"+n.name).join("; ")}}`}valueToString(o){return`service "${o.toText()}"`}};M.ServiceClass=ri;function Da(t){return JSON.stringify(t,(o,r)=>typeof r=="bigint"?`BigInt(${r})`:r)}function Kl(t,o){if(o.length<t.length)throw Error("Wrong number of message arguments");let r=new Ua;t.forEach(h=>h.buildTypeTable(r));let n=new TextEncoder().encode(wr),i=r.encode(),s=W.lebEncode(o.length),p=fe.concat(...t.map(h=>h.encodeType(r))),u=fe.concat(...Ho(t,o,(h,w)=>{if(!h.covariant(w))throw new Error(`Invalid ${h.display()} argument: ${Da(w)}`);return h.encodeValue(w)}));return fe.concat(n,i,s,p,u)}M.encode=Kl;function Zl(t,o){let r=new fe.PipeArrayBuffer(o);if(o.byteLength<wr.length)throw new Error("Message length smaller than magic number");let n=W.safeRead(r,wr.length),i=new TextDecoder().decode(n);if(i!==wr)throw new Error("Wrong magic number: "+JSON.stringify(i));function s(P){let L=[],ee=Number(W.lebDecode(P));for(let xe=0;xe<ee;xe++){let Ie=Number(W.slebDecode(P));switch(Ie){case-18:case-19:{let Se=Number(W.slebDecode(P));L.push([Ie,Se]);break}case-20:case-21:{let Se=[],X=Number(W.lebDecode(P)),Z;for(;X--;){let Ae=Number(W.lebDecode(P));if(Ae>=Math.pow(2,32))throw new Error("field id out of 32-bit range");if(typeof Z=="number"&&Z>=Ae)throw new Error("field id collision or not sorted");Z=Ae;let he=Number(W.slebDecode(P));Se.push([Ae,he])}L.push([Ie,Se]);break}case-22:{for(let X=0;X<2;X++){let Z=Number(W.lebDecode(P));for(;Z--;)W.slebDecode(P)}let Se=Number(W.lebDecode(P));W.safeRead(P,Se),L.push([Ie,void 0]);break}case-23:{let Se=Number(W.lebDecode(P));for(;Se--;){let X=Number(W.lebDecode(P));W.safeRead(P,X),W.slebDecode(P)}L.push([Ie,void 0]);break}default:throw new Error("Illegal op_code: "+Ie)}}let le=[],te=Number(W.lebDecode(P));for(let xe=0;xe<te;xe++)le.push(Number(W.slebDecode(P)));return[L,le]}let[p,u]=s(r);if(u.length<t.length)throw new Error("Wrong number of return values");let h=p.map(P=>za());function w(P){if(P<-24)throw new Error("future value not supported");if(P<0)switch(P){case-1:return M.Null;case-2:return M.Bool;case-3:return M.Nat;case-4:return M.Int;case-5:return M.Nat8;case-6:return M.Nat16;case-7:return M.Nat32;case-8:return M.Nat64;case-9:return M.Int8;case-10:return M.Int16;case-11:return M.Int32;case-12:return M.Int64;case-13:return M.Float32;case-14:return M.Float64;case-15:return M.Text;case-16:return M.Reserved;case-17:return M.Empty;case-24:return M.Principal;default:throw new Error("Illegal op_code: "+P)}if(P>=p.length)throw new Error("type index out of range");return h[P]}function G(P){switch(P[0]){case-19:{let L=w(P[1]);return qa(L)}case-18:{let L=w(P[1]);return Wa(L)}case-20:{let L={};for(let[te,xe]of P[1]){let Ie=`_${te}_`;L[Ie]=w(xe)}let ee=Va(L),le=ee.tryAsTuple();return Array.isArray(le)?Ha(...le):ee}case-21:{let L={};for(let[ee,le]of P[1]){let te=`_${ee}_`;L[te]=w(le)}return Ya(L)}case-22:return La([],[],[]);case-23:return Ja({});default:throw new Error("Illegal op_code: "+P[0])}}p.forEach((P,L)=>{let ee=G(P);h[L].fill(ee)});let T=u.map(P=>w(P)),V=t.map((P,L)=>P.decodeValue(r,T[L]));for(let P=t.length;P<T.length;P++)T[P].decodeValue(r,T[P]);if(r.byteLength>0)throw new Error("decode: Left-over bytes");return V}M.decode=Zl;M.Empty=new Ln;M.Reserved=new Rr;M.Bool=new Jn;M.Null=new Kn;M.Text=new Zn;M.Int=new Xn;M.Nat=new $n;M.Float32=new Qr(32);M.Float64=new Qr(64);M.Int8=new bo(8);M.Int16=new bo(16);M.Int32=new bo(32);M.Int64=new bo(64);M.Nat8=new oo(8);M.Nat16=new oo(16);M.Nat32=new oo(32);M.Nat64=new oo(64);M.Principal=new ti;function Ha(...t){return new Wo(t)}M.Tuple=Ha;function qa(t){return new qo(t)}M.Vec=qa;function Wa(t){return new yo(t)}M.Opt=Wa;function Va(t){return new _o(t)}M.Record=Va;function Ya(t){return new Vo(t)}M.Variant=Ya;function za(){return new ro}M.Rec=za;function La(t,o,r=[]){return new oi(t,o,r)}M.Func=La;function Ja(t){return new ri(t)}M.Service=Ja});var ii=H(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.VecForm=ot.OptionForm=ot.VariantForm=ot.TupleForm=ot.RecordForm=ot.InputForm=ot.InputBox=void 0;var Ka=class{constructor(o,r){this.idl=o,this.ui=r,this.label=null,this.value=void 0;let n=document.createElement("span");n.className="status",this.status=n,r.input&&(r.input.addEventListener("blur",()=>{r.input.value!==""&&this.parse()}),r.input.addEventListener("input",()=>{n.style.display="none",r.input.classList.remove("reject")}))}isRejected(){return this.value===void 0}parse(o={}){if(this.ui.form){let r=this.ui.form.parse(o);return this.value=r,r}if(this.ui.input){let r=this.ui.input;try{let n=this.ui.parse(this.idl,o,r.value);if(!this.idl.covariant(n))throw new Error(`${r.value} is not of type ${this.idl.display()}`);return this.status.style.display="none",this.value=n,n}catch(n){r.classList.add("reject"),this.status.style.display="block",this.status.innerHTML="InputError: "+n.message,this.value=void 0;return}}return null}render(o){let r=document.createElement("span");if(this.label){let n=document.createElement("label");n.innerText=this.label,r.appendChild(n)}this.ui.input&&(r.appendChild(this.ui.input),r.appendChild(this.status)),this.ui.form&&this.ui.form.render(r),o.appendChild(r)}};ot.InputBox=Ka;var no=class{constructor(o){this.ui=o,this.form=[]}renderForm(o){this.ui.container?(this.form.forEach(r=>r.render(this.ui.container)),o.appendChild(this.ui.container)):this.form.forEach(r=>r.render(o))}render(o){if(this.ui.open&&this.ui.event){o.appendChild(this.ui.open);let r=this;r.ui.open.addEventListener(r.ui.event,()=>{if(r.ui.container)r.ui.container.innerHTML="";else{let n=r.ui.open.nextElementSibling;n&&n.parentNode.removeChild(n)}r.generateForm(),r.renderForm(o)})}else this.generateForm(),this.renderForm(o)}};ot.InputForm=no;var Za=class extends no{constructor(o,r){super(r);this.fields=o,this.ui=r}generateForm(){this.form=this.fields.map(([o,r])=>{let n=this.ui.render(r);return this.ui.labelMap&&this.ui.labelMap.hasOwnProperty(o)?n.label=this.ui.labelMap[o]+" ":n.label=o+" ",n})}parse(o){let r={};if(this.fields.forEach(([n,i],s)=>{let p=this.form[s].parse(o);r[n]=p}),!this.form.some(n=>n.isRejected()))return r}};ot.RecordForm=Za;var Xa=class extends no{constructor(o,r){super(r);this.components=o,this.ui=r}generateForm(){this.form=this.components.map(o=>this.ui.render(o))}parse(o){let r=[];if(this.components.forEach((n,i)=>{let s=this.form[i].parse(o);r.push(s)}),!this.form.some(n=>n.isRejected()))return r}};ot.TupleForm=Xa;var $a=class extends no{constructor(o,r){super(r);this.fields=o,this.ui=r}generateForm(){let o=this.ui.open.selectedIndex,[r,n]=this.fields[o],i=this.ui.render(n);this.form=[i]}parse(o){let r=this.ui.open,n=r.options[r.selectedIndex].value,i=this.form[0].parse(o);if(i===void 0)return;let s={};return s[n]=i,s}};ot.VariantForm=$a;var eg=class extends no{constructor(o,r){super(r);this.ty=o,this.ui=r}generateForm(){if(this.ui.open.checked){let o=this.ui.render(this.ty);this.form=[o]}else this.form=[]}parse(o){if(this.form.length===0)return[];{let r=this.form[0].parse(o);return r===void 0?void 0:[r]}}};ot.OptionForm=eg;var tg=class extends no{constructor(o,r){super(r);this.ty=o,this.ui=r}generateForm(){let o=+this.ui.open.value;this.form=[];for(let r=0;r<o;r++){let n=this.ui.render(this.ty);this.form.push(n)}}parse(o){let r=this.form.map(n=>n.parse(o));if(!this.form.some(n=>n.isRejected()))return r}};ot.VecForm=tg});var sg=H(ie=>{"use strict";var Xl=ie&&ie.__createBinding||(Object.create?function(t,o,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,n){n===void 0&&(n=r),t[n]=o[r]}),$l=ie&&ie.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),og=ie&&ie.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xl(o,t,r);return $l(o,t),o};Object.defineProperty(ie,"__esModule",{value:!0});ie.renderValue=ie.renderInput=ie.Render=ie.vecForm=ie.optForm=ie.variantForm=ie.tupleForm=ie.recordForm=ie.inputBox=void 0;var Fr=og(ni()),si=Ft(),Io=og(ii()),ec={parse:ac},Yo={render:gi},tc=(t,o)=>new Io.InputBox(t,Object.assign(Object.assign({},ec),o));ie.inputBox=tc;var oc=(t,o)=>new Io.RecordForm(t,Object.assign(Object.assign({},Yo),o));ie.recordForm=oc;var rc=(t,o)=>new Io.TupleForm(t,Object.assign(Object.assign({},Yo),o));ie.tupleForm=rc;var nc=(t,o)=>new Io.VariantForm(t,Object.assign(Object.assign({},Yo),o));ie.variantForm=nc;var ic=(t,o)=>new Io.OptionForm(t,Object.assign(Object.assign({},Yo),o));ie.optForm=ic;var sc=(t,o)=>new Io.VecForm(t,Object.assign(Object.assign({},Yo),o));ie.vecForm=sc;var ai=class extends Fr.Visitor{visitType(o,r){let n=document.createElement("input");return n.classList.add("argument"),n.placeholder=o.display(),ie.inputBox(o,{input:n})}visitNull(o,r){return ie.inputBox(o,{})}visitRecord(o,r,n){let i={};if(r.length>1){let p=document.createElement("div");p.classList.add("popup-form"),i={container:p}}let s=ie.recordForm(r,i);return ie.inputBox(o,{form:s})}visitTuple(o,r,n){let i={};if(r.length>1){let p=document.createElement("div");p.classList.add("popup-form"),i={container:p}}let s=ie.tupleForm(r,i);return ie.inputBox(o,{form:s})}visitVariant(o,r,n){let i=document.createElement("select");for(let[u,h]of r){let w=new Option(u);i.add(w)}i.selectedIndex=-1,i.classList.add("open");let s={open:i,event:"change"},p=ie.variantForm(r,s);return ie.inputBox(o,{form:p})}visitOpt(o,r,n){let i=document.createElement("input");i.type="checkbox",i.classList.add("open");let s=ie.optForm(r,{open:i,event:"change"});return ie.inputBox(o,{form:s})}visitVec(o,r,n){let i=document.createElement("input");i.type="number",i.min="0",i.max="100",i.style.width="8rem",i.placeholder="len",i.classList.add("open");let s=document.createElement("div");s.classList.add("popup-form");let p=ie.vecForm(r,{open:i,event:"change",container:s});return ie.inputBox(o,{form:p})}visitRec(o,r,n){return gi(r)}};ie.Render=ai;var rg=class extends Fr.Visitor{visitNull(o,r){return null}visitBool(o,r){if(r==="true")return!0;if(r==="false")return!1;throw new Error(`Cannot parse ${r} as boolean`)}visitText(o,r){return r}visitFloat(o,r){return parseFloat(r)}visitNumber(o,r){return BigInt(r)}visitPrincipal(o,r){return si.Principal.fromText(r)}visitService(o,r){return si.Principal.fromText(r)}visitFunc(o,r){let n=r.split(".",2);return[si.Principal.fromText(n[0]),n[1]]}},ng=class extends Fr.Visitor{visitNull(o,r){return null}visitBool(o,r){return Math.random()<.5}visitText(o,r){return Math.random().toString(36).substring(6)}visitFloat(o,r){return Math.random()}visitInt(o,r){return BigInt(this.generateNumber(!0))}visitNat(o,r){return BigInt(this.generateNumber(!1))}visitFixedInt(o,r){return BigInt(this.generateNumber(!0))}visitFixedNat(o,r){return BigInt(this.generateNumber(!1))}generateNumber(o){let r=Math.floor(Math.random()*100);return o&&Math.random()<.5?-r:r}};function ac(t,o,r){return o.random&&r===""?t.accept(new ng,r):t.accept(new rg,r)}function gi(t){return t.accept(new ai,null)}ie.renderInput=gi;function io(t,o,r){return t.accept(new ig,{input:o,value:r})}ie.renderValue=io;var ig=class extends Fr.Visitor{visitType(o,r){r.input.ui.input.value=o.valueToString(r.value)}visitNull(o,r){}visitText(o,r){r.input.ui.input.value=r.value}visitRec(o,r,n){io(r,n.input,n.value)}visitOpt(o,r,n){if(n.value.length!==0){let i=n.input.ui.form,s=i.ui.open;s.checked=!0,s.dispatchEvent(new Event(i.ui.event)),io(r,i.form[0],n.value[0])}}visitRecord(o,r,n){let i=n.input.ui.form;r.forEach(([s,p],u)=>{io(p,i.form[u],n.value[s])})}visitTuple(o,r,n){let i=n.input.ui.form;r.forEach((s,p)=>{io(s,i.form[p],n.value[p])})}visitVariant(o,r,n){let i=n.input.ui.form,s=Object.entries(n.value)[0];r.forEach(([p,u],h)=>{if(p===s[0]){let w=i.ui.open;w.selectedIndex=h,w.dispatchEvent(new Event(i.ui.event)),io(u,i.form[0],s[1])}})}visitVec(o,r,n){let i=n.input.ui.form,s=n.value.length,p=i.ui.open;p.value=s,p.dispatchEvent(new Event(i.ui.event)),n.value.forEach((u,h)=>{io(r,i.form[h],u)})}}});var gg=H(ag=>{"use strict";Object.defineProperty(ag,"__esModule",{value:!0})});var mo=H(Ke=>{"use strict";var pg=Ke&&Ke.__createBinding||(Object.create?function(t,o,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,n){n===void 0&&(n=r),t[n]=o[r]}),gc=Ke&&Ke.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),zo=Ke&&Ke.__exportStar||function(t,o){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(o,r)&&pg(o,t,r)},pc=Ke&&Ke.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pg(o,t,r);return gc(o,t),o};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.IDL=void 0;zo(sg(),Ke);zo(ii(),Ke);Ke.IDL=pc(ni());zo(Yn(),Ke);zo(xr(),Ke);zo(gg(),Ke)});var Lo=H((Ag,Tr)=>{(function(t){"use strict";var o,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,i=Math.floor,s="[BigNumber Error] ",p=s+"Number primitive has more than 15 significant digits: ",u=1e14,h=14,w=9007199254740991,G=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],T=1e7,V=1e9;function P(X){var Z,Ae,he,q=U.prototype={constructor:U,toString:null,valueOf:null},Be=new U(1),ce=20,de=4,ve=-7,Ne=21,$e=-1e7,Ue=1e7,nt=!1,Re=1,et=0,Ut={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},dt="0123456789abcdefghijklmnopqrstuvwxyz",jt=!0;function U(l,B){var E,R,C,S,F,y,x,Q,v=this;if(!(v instanceof U))return new U(l,B);if(B==null){if(l&&l._isBigNumber===!0){v.s=l.s,!l.c||l.e>Ue?v.c=v.e=null:l.e<$e?v.c=[v.e=0]:(v.e=l.e,v.c=l.c.slice());return}if((y=typeof l=="number")&&l*0==0){if(v.s=1/l<0?(l=-l,-1):1,l===~~l){for(S=0,F=l;F>=10;F/=10,S++);S>Ue?v.c=v.e=null:(v.e=S,v.c=[l]);return}Q=String(l)}else{if(!r.test(Q=String(l)))return he(v,Q,y);v.s=Q.charCodeAt(0)==45?(Q=Q.slice(1),-1):1}(S=Q.indexOf("."))>-1&&(Q=Q.replace(".","")),(F=Q.search(/e/i))>0?(S<0&&(S=F),S+=+Q.slice(F+1),Q=Q.substring(0,F)):S<0&&(S=Q.length)}else{if(te(B,2,dt.length,"Base"),B==10&&jt)return v=new U(l),He(v,ce+v.e+1,de);if(Q=String(l),y=typeof l=="number"){if(l*0!=0)return he(v,Q,y,B);if(v.s=1/l<0?(Q=Q.slice(1),-1):1,U.DEBUG&&Q.replace(/^0\.0*|\./,"").length>15)throw Error(p+l)}else v.s=Q.charCodeAt(0)===45?(Q=Q.slice(1),-1):1;for(E=dt.slice(0,B),S=F=0,x=Q.length;F<x;F++)if(E.indexOf(R=Q.charAt(F))<0){if(R=="."){if(F>S){S=x;continue}}else if(!C&&(Q==Q.toUpperCase()&&(Q=Q.toLowerCase())||Q==Q.toLowerCase()&&(Q=Q.toUpperCase()))){C=!0,F=-1,S=0;continue}return he(v,String(l),y,B)}y=!1,Q=Ae(Q,B,10,v.s),(S=Q.indexOf("."))>-1?Q=Q.replace(".",""):S=Q.length}for(F=0;Q.charCodeAt(F)===48;F++);for(x=Q.length;Q.charCodeAt(--x)===48;);if(Q=Q.slice(F,++x)){if(x-=F,y&&U.DEBUG&&x>15&&(l>w||l!==i(l)))throw Error(p+v.s*l);if((S=S-F-1)>Ue)v.c=v.e=null;else if(S<$e)v.c=[v.e=0];else{if(v.e=S,v.c=[],F=(S+1)%h,S<0&&(F+=h),F<x){for(F&&v.c.push(+Q.slice(0,F)),x-=h;F<x;)v.c.push(+Q.slice(F,F+=h));F=h-(Q=Q.slice(F)).length}else F-=x;for(;F--;Q+="0");v.c.push(+Q)}}else v.c=[v.e=0]}U.clone=P,U.ROUND_UP=0,U.ROUND_DOWN=1,U.ROUND_CEIL=2,U.ROUND_FLOOR=3,U.ROUND_HALF_UP=4,U.ROUND_HALF_DOWN=5,U.ROUND_HALF_EVEN=6,U.ROUND_HALF_CEIL=7,U.ROUND_HALF_FLOOR=8,U.EUCLID=9,U.config=U.set=function(l){var B,E;if(l!=null)if(typeof l=="object"){if(l.hasOwnProperty(B="DECIMAL_PLACES")&&(E=l[B],te(E,0,V,B),ce=E),l.hasOwnProperty(B="ROUNDING_MODE")&&(E=l[B],te(E,0,8,B),de=E),l.hasOwnProperty(B="EXPONENTIAL_AT")&&(E=l[B],E&&E.pop?(te(E[0],-V,0,B),te(E[1],0,V,B),ve=E[0],Ne=E[1]):(te(E,-V,V,B),ve=-(Ne=E<0?-E:E))),l.hasOwnProperty(B="RANGE"))if(E=l[B],E&&E.pop)te(E[0],-V,-1,B),te(E[1],1,V,B),$e=E[0],Ue=E[1];else if(te(E,-V,V,B),E)$e=-(Ue=E<0?-E:E);else throw Error(s+B+" cannot be zero: "+E);if(l.hasOwnProperty(B="CRYPTO"))if(E=l[B],E===!!E)if(E)if(typeof crypto!="undefined"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))nt=E;else throw nt=!E,Error(s+"crypto unavailable");else nt=E;else throw Error(s+B+" not true or false: "+E);if(l.hasOwnProperty(B="MODULO_MODE")&&(E=l[B],te(E,0,9,B),Re=E),l.hasOwnProperty(B="POW_PRECISION")&&(E=l[B],te(E,0,V,B),et=E),l.hasOwnProperty(B="FORMAT"))if(E=l[B],typeof E=="object")Ut=E;else throw Error(s+B+" not an object: "+E);if(l.hasOwnProperty(B="ALPHABET"))if(E=l[B],typeof E=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(E))jt=E.slice(0,10)=="0123456789",dt=E;else throw Error(s+B+" invalid: "+E)}else throw Error(s+"Object expected: "+l);return{DECIMAL_PLACES:ce,ROUNDING_MODE:de,EXPONENTIAL_AT:[ve,Ne],RANGE:[$e,Ue],CRYPTO:nt,MODULO_MODE:Re,POW_PRECISION:et,FORMAT:Ut,ALPHABET:dt}},U.isBigNumber=function(l){if(!l||l._isBigNumber!==!0)return!1;if(!U.DEBUG)return!0;var B,E,R=l.c,C=l.e,S=l.s;e:if({}.toString.call(R)=="[object Array]"){if((S===1||S===-1)&&C>=-V&&C<=V&&C===i(C)){if(R[0]===0){if(C===0&&R.length===1)return!0;break e}if(B=(C+1)%h,B<1&&(B+=h),String(R[0]).length==B){for(B=0;B<R.length;B++)if(E=R[B],E<0||E>=u||E!==i(E))break e;if(E!==0)return!0}}}else if(R===null&&C===null&&(S===null||S===1||S===-1))return!0;throw Error(s+"Invalid BigNumber: "+l)},U.maximum=U.max=function(){return wt(arguments,q.lt)},U.minimum=U.min=function(){return wt(arguments,q.gt)},U.random=function(){var l=9007199254740992,B=Math.random()*l&2097151?function(){return i(Math.random()*l)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(E){var R,C,S,F,y,x=0,Q=[],v=new U(Be);if(E==null?E=ce:te(E,0,V),F=n(E/h),nt)if(crypto.getRandomValues){for(R=crypto.getRandomValues(new Uint32Array(F*=2));x<F;)y=R[x]*131072+(R[x+1]>>>11),y>=9e15?(C=crypto.getRandomValues(new Uint32Array(2)),R[x]=C[0],R[x+1]=C[1]):(Q.push(y%1e14),x+=2);x=F/2}else if(crypto.randomBytes){for(R=crypto.randomBytes(F*=7);x<F;)y=(R[x]&31)*281474976710656+R[x+1]*1099511627776+R[x+2]*4294967296+R[x+3]*16777216+(R[x+4]<<16)+(R[x+5]<<8)+R[x+6],y>=9e15?crypto.randomBytes(7).copy(R,x):(Q.push(y%1e14),x+=7);x=F/7}else throw nt=!1,Error(s+"crypto unavailable");if(!nt)for(;x<F;)y=B(),y<9e15&&(Q[x++]=y%1e14);for(F=Q[--x],E%=h,F&&E&&(y=G[h-E],Q[x]=i(F/y)*y);Q[x]===0;Q.pop(),x--);if(x<0)Q=[S=0];else{for(S=-1;Q[0]===0;Q.splice(0,1),S-=h);for(x=1,y=Q[0];y>=10;y/=10,x++);x<h&&(S-=h-x)}return v.e=S,v.c=Q,v}}(),U.sum=function(){for(var l=1,B=arguments,E=new U(B[0]);l<B.length;)E=E.plus(B[l++]);return E},Ae=function(){var l="0123456789";function B(E,R,C,S){for(var F,y=[0],x,Q=0,v=E.length;Q<v;){for(x=y.length;x--;y[x]*=R);for(y[0]+=S.indexOf(E.charAt(Q++)),F=0;F<y.length;F++)y[F]>C-1&&(y[F+1]==null&&(y[F+1]=0),y[F+1]+=y[F]/C|0,y[F]%=C)}return y.reverse()}return function(E,R,C,S,F){var y,x,Q,v,N,D,J,re,Ee=E.indexOf("."),me=ce,oe=de;for(Ee>=0&&(v=et,et=0,E=E.replace(".",""),re=new U(R),D=re.pow(E.length-Ee),et=v,re.c=B(Se(ee(D.c),D.e,"0"),10,C,l),re.e=re.c.length),J=B(E,R,C,F?(y=dt,l):(y=l,dt)),Q=v=J.length;J[--v]==0;J.pop());if(!J[0])return y.charAt(0);if(Ee<0?--Q:(D.c=J,D.e=Q,D.s=S,D=Z(D,re,me,oe,C),J=D.c,N=D.r,Q=D.e),x=Q+me+1,Ee=J[x],v=C/2,N=N||x<0||J[x+1]!=null,N=oe<4?(Ee!=null||N)&&(oe==0||oe==(D.s<0?3:2)):Ee>v||Ee==v&&(oe==4||N||oe==6&&J[x-1]&1||oe==(D.s<0?8:7)),x<1||!J[0])E=N?Se(y.charAt(1),-me,y.charAt(0)):y.charAt(0);else{if(J.length=x,N)for(--C;++J[--x]>C;)J[x]=0,x||(++Q,J=[1].concat(J));for(v=J.length;!J[--v];);for(Ee=0,E="";Ee<=v;E+=y.charAt(J[Ee++]));E=Se(E,Q,y.charAt(0))}return E}}(),Z=function(){function l(R,C,S){var F,y,x,Q,v=0,N=R.length,D=C%T,J=C/T|0;for(R=R.slice();N--;)x=R[N]%T,Q=R[N]/T|0,F=J*x+Q*D,y=D*x+F%T*T+v,v=(y/S|0)+(F/T|0)+J*Q,R[N]=y%S;return v&&(R=[v].concat(R)),R}function B(R,C,S,F){var y,x;if(S!=F)x=S>F?1:-1;else for(y=x=0;y<S;y++)if(R[y]!=C[y]){x=R[y]>C[y]?1:-1;break}return x}function E(R,C,S,F){for(var y=0;S--;)R[S]-=y,y=R[S]<C[S]?1:0,R[S]=y*F+R[S]-C[S];for(;!R[0]&&R.length>1;R.splice(0,1));}return function(R,C,S,F,y){var x,Q,v,N,D,J,re,Ee,me,oe,z,Qe,vt,Dt,Ht,tt,ne,qe=R.s==C.s?1:-1,Ge=R.c,be=C.c;if(!Ge||!Ge[0]||!be||!be[0])return new U(!R.s||!C.s||(Ge?be&&Ge[0]==be[0]:!be)?NaN:Ge&&Ge[0]==0||!be?qe*0:qe/0);for(Ee=new U(qe),me=Ee.c=[],Q=R.e-C.e,qe=S+Q+1,y||(y=u,Q=L(R.e/h)-L(C.e/h),qe=qe/h|0),v=0;be[v]==(Ge[v]||0);v++);if(be[v]>(Ge[v]||0)&&Q--,qe<0)me.push(1),N=!0;else{for(Dt=Ge.length,tt=be.length,v=0,qe+=2,D=i(y/(be[0]+1)),D>1&&(be=l(be,D,y),Ge=l(Ge,D,y),tt=be.length,Dt=Ge.length),vt=tt,oe=Ge.slice(0,tt),z=oe.length;z<tt;oe[z++]=0);ne=be.slice(),ne=[0].concat(ne),Ht=be[0],be[1]>=y/2&&Ht++;do{if(D=0,x=B(be,oe,tt,z),x<0){if(Qe=oe[0],tt!=z&&(Qe=Qe*y+(oe[1]||0)),D=i(Qe/Ht),D>1)for(D>=y&&(D=y-1),J=l(be,D,y),re=J.length,z=oe.length;B(J,oe,re,z)==1;)D--,E(J,tt<re?ne:be,re,y),re=J.length,x=1;else D==0&&(x=D=1),J=be.slice(),re=J.length;if(re<z&&(J=[0].concat(J)),E(oe,J,z,y),z=oe.length,x==-1)for(;B(be,oe,tt,z)<1;)D++,E(oe,tt<z?ne:be,z,y),z=oe.length}else x===0&&(D++,oe=[0]);me[v++]=D,oe[0]?oe[z++]=Ge[vt]||0:(oe=[Ge[vt]],z=1)}while((vt++<Dt||oe[0]!=null)&&qe--);N=oe[0]!=null,me[0]||me.splice(0,1)}if(y==u){for(v=1,qe=me[0];qe>=10;qe/=10,v++);He(Ee,S+(Ee.e=v+Q*h-1)+1,F,N)}else Ee.e=Q,Ee.r=+N;return Ee}}();function I(l,B,E,R){var C,S,F,y,x;if(E==null?E=de:te(E,0,8),!l.c)return l.toString();if(C=l.c[0],F=l.e,B==null)x=ee(l.c),x=R==1||R==2&&(F<=ve||F>=Ne)?Ie(x,F):Se(x,F,"0");else if(l=He(new U(l),B,E),S=l.e,x=ee(l.c),y=x.length,R==1||R==2&&(B<=S||S<=ve)){for(;y<B;x+="0",y++);x=Ie(x,S)}else if(B-=F,x=Se(x,S,"0"),S+1>y){if(--B>0)for(x+=".";B--;x+="0");}else if(B+=S-y,B>0)for(S+1==y&&(x+=".");B--;x+="0");return l.s<0&&C?"-"+x:x}function wt(l,B){for(var E,R=1,C=new U(l[0]);R<l.length;R++)if(E=new U(l[R]),E.s)B.call(C,E)&&(C=E);else{C=E;break}return C}function gt(l,B,E){for(var R=1,C=B.length;!B[--C];B.pop());for(C=B[0];C>=10;C/=10,R++);return(E=R+E*h-1)>Ue?l.c=l.e=null:E<$e?l.c=[l.e=0]:(l.e=E,l.c=B),l}he=function(){var l=/^(-?)0([xbo])(?=\w[\w.]*$)/i,B=/^([^.]+)\.$/,E=/^\.([^.]+)$/,R=/^-?(Infinity|NaN)$/,C=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(S,F,y,x){var Q,v=y?F:F.replace(C,"");if(R.test(v))S.s=isNaN(v)?null:v<0?-1:1;else{if(!y&&(v=v.replace(l,function(N,D,J){return Q=(J=J.toLowerCase())=="x"?16:J=="b"?2:8,!x||x==Q?D:N}),x&&(Q=x,v=v.replace(B,"$1").replace(E,"0.$1")),F!=v))return new U(v,Q);if(U.DEBUG)throw Error(s+"Not a"+(x?" base "+x:"")+" number: "+F);S.s=null}S.c=S.e=null}}();function He(l,B,E,R){var C,S,F,y,x,Q,v,N=l.c,D=G;if(N){e:{for(C=1,y=N[0];y>=10;y/=10,C++);if(S=B-C,S<0)S+=h,F=B,x=N[Q=0],v=x/D[C-F-1]%10|0;else if(Q=n((S+1)/h),Q>=N.length)if(R){for(;N.length<=Q;N.push(0));x=v=0,C=1,S%=h,F=S-h+1}else break e;else{for(x=y=N[Q],C=1;y>=10;y/=10,C++);S%=h,F=S-h+C,v=F<0?0:x/D[C-F-1]%10|0}if(R=R||B<0||N[Q+1]!=null||(F<0?x:x%D[C-F-1]),R=E<4?(v||R)&&(E==0||E==(l.s<0?3:2)):v>5||v==5&&(E==4||R||E==6&&(S>0?F>0?x/D[C-F]:0:N[Q-1])%10&1||E==(l.s<0?8:7)),B<1||!N[0])return N.length=0,R?(B-=l.e+1,N[0]=D[(h-B%h)%h],l.e=-B||0):N[0]=l.e=0,l;if(S==0?(N.length=Q,y=1,Q--):(N.length=Q+1,y=D[h-S],N[Q]=F>0?i(x/D[C-F]%D[F])*y:0),R)for(;;)if(Q==0){for(S=1,F=N[0];F>=10;F/=10,S++);for(F=N[0]+=y,y=1;F>=10;F/=10,y++);S!=y&&(l.e++,N[0]==u&&(N[0]=1));break}else{if(N[Q]+=y,N[Q]!=u)break;N[Q--]=0,y=1}for(S=N.length;N[--S]===0;N.pop());}l.e>Ue?l.c=l.e=null:l.e<$e&&(l.c=[l.e=0])}return l}function $(l){var B,E=l.e;return E===null?l.toString():(B=ee(l.c),B=E<=ve||E>=Ne?Ie(B,E):Se(B,E,"0"),l.s<0?"-"+B:B)}return q.absoluteValue=q.abs=function(){var l=new U(this);return l.s<0&&(l.s=1),l},q.comparedTo=function(l,B){return le(this,new U(l,B))},q.decimalPlaces=q.dp=function(l,B){var E,R,C,S=this;if(l!=null)return te(l,0,V),B==null?B=de:te(B,0,8),He(new U(S),l+S.e+1,B);if(!(E=S.c))return null;if(R=((C=E.length-1)-L(this.e/h))*h,C=E[C])for(;C%10==0;C/=10,R--);return R<0&&(R=0),R},q.dividedBy=q.div=function(l,B){return Z(this,new U(l,B),ce,de)},q.dividedToIntegerBy=q.idiv=function(l,B){return Z(this,new U(l,B),0,1)},q.exponentiatedBy=q.pow=function(l,B){var E,R,C,S,F,y,x,Q,v,N=this;if(l=new U(l),l.c&&!l.isInteger())throw Error(s+"Exponent not an integer: "+$(l));if(B!=null&&(B=new U(B)),y=l.e>14,!N.c||!N.c[0]||N.c[0]==1&&!N.e&&N.c.length==1||!l.c||!l.c[0])return v=new U(Math.pow(+$(N),y?2-xe(l):+$(l))),B?v.mod(B):v;if(x=l.s<0,B){if(B.c?!B.c[0]:!B.s)return new U(NaN);R=!x&&N.isInteger()&&B.isInteger(),R&&(N=N.mod(B))}else{if(l.e>9&&(N.e>0||N.e<-1||(N.e==0?N.c[0]>1||y&&N.c[1]>=24e7:N.c[0]<8e13||y&&N.c[0]<=9999975e7)))return S=N.s<0&&xe(l)?-0:0,N.e>-1&&(S=1/S),new U(x?1/S:S);et&&(S=n(et/h+2))}for(y?(E=new U(.5),x&&(l.s=1),Q=xe(l)):(C=Math.abs(+$(l)),Q=C%2),v=new U(Be);;){if(Q){if(v=v.times(N),!v.c)break;S?v.c.length>S&&(v.c.length=S):R&&(v=v.mod(B))}if(C){if(C=i(C/2),C===0)break;Q=C%2}else if(l=l.times(E),He(l,l.e+1,1),l.e>14)Q=xe(l);else{if(C=+$(l),C===0)break;Q=C%2}N=N.times(N),S?N.c&&N.c.length>S&&(N.c.length=S):R&&(N=N.mod(B))}return R?v:(x&&(v=Be.div(v)),B?v.mod(B):S?He(v,et,de,F):v)},q.integerValue=function(l){var B=new U(this);return l==null?l=de:te(l,0,8),He(B,B.e+1,l)},q.isEqualTo=q.eq=function(l,B){return le(this,new U(l,B))===0},q.isFinite=function(){return!!this.c},q.isGreaterThan=q.gt=function(l,B){return le(this,new U(l,B))>0},q.isGreaterThanOrEqualTo=q.gte=function(l,B){return(B=le(this,new U(l,B)))===1||B===0},q.isInteger=function(){return!!this.c&&L(this.e/h)>this.c.length-2},q.isLessThan=q.lt=function(l,B){return le(this,new U(l,B))<0},q.isLessThanOrEqualTo=q.lte=function(l,B){return(B=le(this,new U(l,B)))===-1||B===0},q.isNaN=function(){return!this.s},q.isNegative=function(){return this.s<0},q.isPositive=function(){return this.s>0},q.isZero=function(){return!!this.c&&this.c[0]==0},q.minus=function(l,B){var E,R,C,S,F=this,y=F.s;if(l=new U(l,B),B=l.s,!y||!B)return new U(NaN);if(y!=B)return l.s=-B,F.plus(l);var x=F.e/h,Q=l.e/h,v=F.c,N=l.c;if(!x||!Q){if(!v||!N)return v?(l.s=-B,l):new U(N?F:NaN);if(!v[0]||!N[0])return N[0]?(l.s=-B,l):new U(v[0]?F:de==3?-0:0)}if(x=L(x),Q=L(Q),v=v.slice(),y=x-Q){for((S=y<0)?(y=-y,C=v):(Q=x,C=N),C.reverse(),B=y;B--;C.push(0));C.reverse()}else for(R=(S=(y=v.length)<(B=N.length))?y:B,y=B=0;B<R;B++)if(v[B]!=N[B]){S=v[B]<N[B];break}if(S&&(C=v,v=N,N=C,l.s=-l.s),B=(R=N.length)-(E=v.length),B>0)for(;B--;v[E++]=0);for(B=u-1;R>y;){if(v[--R]<N[R]){for(E=R;E&&!v[--E];v[E]=B);--v[E],v[R]+=u}v[R]-=N[R]}for(;v[0]==0;v.splice(0,1),--Q);return v[0]?gt(l,v,Q):(l.s=de==3?-1:1,l.c=[l.e=0],l)},q.modulo=q.mod=function(l,B){var E,R,C=this;return l=new U(l,B),!C.c||!l.s||l.c&&!l.c[0]?new U(NaN):!l.c||C.c&&!C.c[0]?new U(C):(Re==9?(R=l.s,l.s=1,E=Z(C,l,0,3),l.s=R,E.s*=R):E=Z(C,l,0,Re),l=C.minus(E.times(l)),!l.c[0]&&Re==1&&(l.s=C.s),l)},q.multipliedBy=q.times=function(l,B){var E,R,C,S,F,y,x,Q,v,N,D,J,re,Ee,me,oe=this,z=oe.c,Qe=(l=new U(l,B)).c;if(!z||!Qe||!z[0]||!Qe[0])return!oe.s||!l.s||z&&!z[0]&&!Qe||Qe&&!Qe[0]&&!z?l.c=l.e=l.s=null:(l.s*=oe.s,!z||!Qe?l.c=l.e=null:(l.c=[0],l.e=0)),l;for(R=L(oe.e/h)+L(l.e/h),l.s*=oe.s,x=z.length,N=Qe.length,x<N&&(re=z,z=Qe,Qe=re,C=x,x=N,N=C),C=x+N,re=[];C--;re.push(0));for(Ee=u,me=T,C=N;--C>=0;){for(E=0,D=Qe[C]%me,J=Qe[C]/me|0,F=x,S=C+F;S>C;)Q=z[--F]%me,v=z[F]/me|0,y=J*Q+v*D,Q=D*Q+y%me*me+re[S]+E,E=(Q/Ee|0)+(y/me|0)+J*v,re[S--]=Q%Ee;re[S]=E}return E?++R:re.splice(0,1),gt(l,re,R)},q.negated=function(){var l=new U(this);return l.s=-l.s||null,l},q.plus=function(l,B){var E,R=this,C=R.s;if(l=new U(l,B),B=l.s,!C||!B)return new U(NaN);if(C!=B)return l.s=-B,R.minus(l);var S=R.e/h,F=l.e/h,y=R.c,x=l.c;if(!S||!F){if(!y||!x)return new U(C/0);if(!y[0]||!x[0])return x[0]?l:new U(y[0]?R:C*0)}if(S=L(S),F=L(F),y=y.slice(),C=S-F){for(C>0?(F=S,E=x):(C=-C,E=y),E.reverse();C--;E.push(0));E.reverse()}for(C=y.length,B=x.length,C-B<0&&(E=x,x=y,y=E,B=C),C=0;B;)C=(y[--B]=y[B]+x[B]+C)/u|0,y[B]=u===y[B]?0:y[B]%u;return C&&(y=[C].concat(y),++F),gt(l,y,F)},q.precision=q.sd=function(l,B){var E,R,C,S=this;if(l!=null&&l!==!!l)return te(l,1,V),B==null?B=de:te(B,0,8),He(new U(S),l,B);if(!(E=S.c))return null;if(C=E.length-1,R=C*h+1,C=E[C]){for(;C%10==0;C/=10,R--);for(C=E[0];C>=10;C/=10,R++);}return l&&S.e+1>R&&(R=S.e+1),R},q.shiftedBy=function(l){return te(l,-w,w),this.times("1e"+l)},q.squareRoot=q.sqrt=function(){var l,B,E,R,C,S=this,F=S.c,y=S.s,x=S.e,Q=ce+4,v=new U("0.5");if(y!==1||!F||!F[0])return new U(!y||y<0&&(!F||F[0])?NaN:F?S:1/0);if(y=Math.sqrt(+$(S)),y==0||y==1/0?(B=ee(F),(B.length+x)%2==0&&(B+="0"),y=Math.sqrt(+B),x=L((x+1)/2)-(x<0||x%2),y==1/0?B="5e"+x:(B=y.toExponential(),B=B.slice(0,B.indexOf("e")+1)+x),E=new U(B)):E=new U(y+""),E.c[0]){for(x=E.e,y=x+Q,y<3&&(y=0);;)if(C=E,E=v.times(C.plus(Z(S,C,Q,1))),ee(C.c).slice(0,y)===(B=ee(E.c)).slice(0,y))if(E.e<x&&--y,B=B.slice(y-3,y+1),B=="9999"||!R&&B=="4999"){if(!R&&(He(C,C.e+ce+2,0),C.times(C).eq(S))){E=C;break}Q+=4,y+=4,R=1}else{(!+B||!+B.slice(1)&&B.charAt(0)=="5")&&(He(E,E.e+ce+2,1),l=!E.times(E).eq(S));break}}return He(E,E.e+ce+1,de,l)},q.toExponential=function(l,B){return l!=null&&(te(l,0,V),l++),I(this,l,B,1)},q.toFixed=function(l,B){return l!=null&&(te(l,0,V),l=l+this.e+1),I(this,l,B)},q.toFormat=function(l,B,E){var R,C=this;if(E==null)l!=null&&B&&typeof B=="object"?(E=B,B=null):l&&typeof l=="object"?(E=l,l=B=null):E=Ut;else if(typeof E!="object")throw Error(s+"Argument not an object: "+E);if(R=C.toFixed(l,B),C.c){var S,F=R.split("."),y=+E.groupSize,x=+E.secondaryGroupSize,Q=E.groupSeparator||"",v=F[0],N=F[1],D=C.s<0,J=D?v.slice(1):v,re=J.length;if(x&&(S=y,y=x,x=S,re-=S),y>0&&re>0){for(S=re%y||y,v=J.substr(0,S);S<re;S+=y)v+=Q+J.substr(S,y);x>0&&(v+=Q+J.slice(S)),D&&(v="-"+v)}R=N?v+(E.decimalSeparator||"")+((x=+E.fractionGroupSize)?N.replace(new RegExp("\\d{"+x+"}\\B","g"),"$&"+(E.fractionGroupSeparator||"")):N):v}return(E.prefix||"")+R+(E.suffix||"")},q.toFraction=function(l){var B,E,R,C,S,F,y,x,Q,v,N,D,J=this,re=J.c;if(l!=null&&(y=new U(l),!y.isInteger()&&(y.c||y.s!==1)||y.lt(Be)))throw Error(s+"Argument "+(y.isInteger()?"out of range: ":"not an integer: ")+$(y));if(!re)return new U(J);for(B=new U(Be),Q=E=new U(Be),R=x=new U(Be),D=ee(re),S=B.e=D.length-J.e-1,B.c[0]=G[(F=S%h)<0?h+F:F],l=!l||y.comparedTo(B)>0?S>0?B:Q:y,F=Ue,Ue=1/0,y=new U(D),x.c[0]=0;v=Z(y,B,0,1),C=E.plus(v.times(R)),C.comparedTo(l)!=1;)E=R,R=C,Q=x.plus(v.times(C=Q)),x=C,B=y.minus(v.times(C=B)),y=C;return C=Z(l.minus(E),R,0,1),x=x.plus(C.times(Q)),E=E.plus(C.times(R)),x.s=Q.s=J.s,S=S*2,N=Z(Q,R,S,de).minus(J).abs().comparedTo(Z(x,E,S,de).minus(J).abs())<1?[Q,R]:[x,E],Ue=F,N},q.toNumber=function(){return+$(this)},q.toPrecision=function(l,B){return l!=null&&te(l,1,V),I(this,l,B,2)},q.toString=function(l){var B,E=this,R=E.s,C=E.e;return C===null?R?(B="Infinity",R<0&&(B="-"+B)):B="NaN":(l==null?B=C<=ve||C>=Ne?Ie(ee(E.c),C):Se(ee(E.c),C,"0"):l===10&&jt?(E=He(new U(E),ce+C+1,de),B=Se(ee(E.c),E.e,"0")):(te(l,2,dt.length,"Base"),B=Ae(Se(ee(E.c),C,"0"),10,l,R,!0)),R<0&&E.c[0]&&(B="-"+B)),B},q.valueOf=q.toJSON=function(){return $(this)},q._isBigNumber=!0,X!=null&&U.set(X),U}function L(X){var Z=X|0;return X>0||X===Z?Z:Z-1}function ee(X){for(var Z,Ae,he=1,q=X.length,Be=X[0]+"";he<q;){for(Z=X[he++]+"",Ae=h-Z.length;Ae--;Z="0"+Z);Be+=Z}for(q=Be.length;Be.charCodeAt(--q)===48;);return Be.slice(0,q+1||1)}function le(X,Z){var Ae,he,q=X.c,Be=Z.c,ce=X.s,de=Z.s,ve=X.e,Ne=Z.e;if(!ce||!de)return null;if(Ae=q&&!q[0],he=Be&&!Be[0],Ae||he)return Ae?he?0:-de:ce;if(ce!=de)return ce;if(Ae=ce<0,he=ve==Ne,!q||!Be)return he?0:!q^Ae?1:-1;if(!he)return ve>Ne^Ae?1:-1;for(de=(ve=q.length)<(Ne=Be.length)?ve:Ne,ce=0;ce<de;ce++)if(q[ce]!=Be[ce])return q[ce]>Be[ce]^Ae?1:-1;return ve==Ne?0:ve>Ne^Ae?1:-1}function te(X,Z,Ae,he){if(X<Z||X>Ae||X!==i(X))throw Error(s+(he||"Argument")+(typeof X=="number"?X<Z||X>Ae?" out of range: ":" not an integer: ":" not a primitive number: ")+String(X))}function xe(X){var Z=X.c.length-1;return L(X.e/h)==Z&&X.c[Z]%2!=0}function Ie(X,Z){return(X.length>1?X.charAt(0)+"."+X.slice(1):X)+(Z<0?"e":"e+")+Z}function Se(X,Z,Ae){var he,q;if(Z<0){for(q=Ae+".";++Z;q+=Ae);X=q+X}else if(he=X.length,++Z>he){for(q=Ae,Z-=he;--Z;q+=Ae);X+=q}else Z<he&&(X=X.slice(0,Z)+"."+X.slice(Z));return X}o=P(),o.default=o.BigNumber=o,typeof define=="function"&&define.amd?define(function(){return o}):typeof Tr!="undefined"&&Tr.exports?Tr.exports=o:(t||(t=typeof self!="undefined"&&self?self:window),t.BigNumber=o)})(Ag)});var lg=H((u0,ug)=>{ug.exports=function(o,r,n){var i=new o.Uint8Array(n),s=r.pushInt,p=r.pushInt32,u=r.pushInt32Neg,h=r.pushInt64,w=r.pushInt64Neg,G=r.pushFloat,T=r.pushFloatSingle,V=r.pushFloatDouble,P=r.pushTrue,L=r.pushFalse,ee=r.pushUndefined,le=r.pushNull,te=r.pushInfinity,xe=r.pushInfinityNeg,Ie=r.pushNaN,Se=r.pushNaNNeg,X=r.pushArrayStart,Z=r.pushArrayStartFixed,Ae=r.pushArrayStartFixed32,he=r.pushArrayStartFixed64,q=r.pushObjectStart,Be=r.pushObjectStartFixed,ce=r.pushObjectStartFixed32,de=r.pushObjectStartFixed64,ve=r.pushByteString,Ne=r.pushByteStringStart,$e=r.pushUtf8String,Ue=r.pushUtf8StringStart,nt=r.pushSimpleUnassigned,Re=r.pushTagStart,et=r.pushTagStart4,Ut=r.pushTagStart8,dt=r.pushTagUnassigned,jt=r.pushBreak,U=o.Math.pow,I=0,wt=0,gt=0;function He(_){for(_=_|0,I=0,wt=_;(I|0)<(wt|0)&&(gt=QA[i[I]&255](i[I]|0)|0,!((gt|0)>0)););return gt|0}function $(_){return _=_|0,((I|0)+(_|0)|0)<(wt|0)?0:1}function l(_){return _=_|0,i[_|0]<<8|i[_+1|0]|0}function B(_){return _=_|0,i[_|0]<<24|i[_+1|0]<<16|i[_+2|0]<<8|i[_+3|0]|0}function E(_){return _=_|0,s(_|0),I=I+1|0,0}function R(_){return _=_|0,$(1)|0?1:(s(i[I+1|0]|0),I=I+2|0,0)}function C(_){return _=_|0,$(2)|0?1:(s(l(I+1|0)|0),I=I+3|0,0)}function S(_){return _=_|0,$(4)|0?1:(p(l(I+1|0)|0,l(I+3|0)|0),I=I+5|0,0)}function F(_){return _=_|0,$(8)|0?1:(h(l(I+1|0)|0,l(I+3|0)|0,l(I+5|0)|0,l(I+7|0)|0),I=I+9|0,0)}function y(_){return _=_|0,s(-1-(_-32|0)|0),I=I+1|0,0}function x(_){return _=_|0,$(1)|0?1:(s(-1-(i[I+1|0]|0)|0),I=I+2|0,0)}function Q(_){_=_|0;var ae=0;return $(2)|0?1:(ae=l(I+1|0)|0,s(-1-(ae|0)|0),I=I+3|0,0)}function v(_){return _=_|0,$(4)|0?1:(u(l(I+1|0)|0,l(I+3|0)|0),I=I+5|0,0)}function N(_){return _=_|0,$(8)|0?1:(w(l(I+1|0)|0,l(I+3|0)|0,l(I+5|0)|0,l(I+7|0)|0),I=I+9|0,0)}function D(_){_=_|0;var ae=0,ue=0,se=0;return se=_-64|0,$(se|0)|0?1:(ae=I+1|0,ue=(I+1|0)+(se|0)|0,ve(ae|0,ue|0),I=ue|0,0)}function J(_){_=_|0;var ae=0,ue=0,se=0;return $(1)|0||(se=i[I+1|0]|0,ae=I+2|0,ue=(I+2|0)+(se|0)|0,$(se+1|0)|0)?1:(ve(ae|0,ue|0),I=ue|0,0)}function re(_){_=_|0;var ae=0,ue=0,se=0;return $(2)|0||(se=l(I+1|0)|0,ae=I+3|0,ue=(I+3|0)+(se|0)|0,$(se+2|0)|0)?1:(ve(ae|0,ue|0),I=ue|0,0)}function Ee(_){_=_|0;var ae=0,ue=0,se=0;return $(4)|0||(se=B(I+1|0)|0,ae=I+5|0,ue=(I+5|0)+(se|0)|0,$(se+4|0)|0)?1:(ve(ae|0,ue|0),I=ue|0,0)}function me(_){return _=_|0,1}function oe(_){return _=_|0,Ne(),I=I+1|0,0}function z(_){_=_|0;var ae=0,ue=0,se=0;return se=_-96|0,$(se|0)|0?1:(ae=I+1|0,ue=(I+1|0)+(se|0)|0,$e(ae|0,ue|0),I=ue|0,0)}function Qe(_){_=_|0;var ae=0,ue=0,se=0;return $(1)|0||(se=i[I+1|0]|0,ae=I+2|0,ue=(I+2|0)+(se|0)|0,$(se+1|0)|0)?1:($e(ae|0,ue|0),I=ue|0,0)}function vt(_){_=_|0;var ae=0,ue=0,se=0;return $(2)|0||(se=l(I+1|0)|0,ae=I+3|0,ue=(I+3|0)+(se|0)|0,$(se+2|0)|0)?1:($e(ae|0,ue|0),I=ue|0,0)}function Dt(_){_=_|0;var ae=0,ue=0,se=0;return $(4)|0||(se=B(I+1|0)|0,ae=I+5|0,ue=(I+5|0)+(se|0)|0,$(se+4|0)|0)?1:($e(ae|0,ue|0),I=ue|0,0)}function Ht(_){return _=_|0,1}function tt(_){return _=_|0,Ue(),I=I+1|0,0}function ne(_){return _=_|0,Z(_-128|0),I=I+1|0,0}function qe(_){return _=_|0,$(1)|0?1:(Z(i[I+1|0]|0),I=I+2|0,0)}function Ge(_){return _=_|0,$(2)|0?1:(Z(l(I+1|0)|0),I=I+3|0,0)}function be(_){return _=_|0,$(4)|0?1:(Ae(l(I+1|0)|0,l(I+3|0)|0),I=I+5|0,0)}function Fo(_){return _=_|0,$(8)|0?1:(he(l(I+1|0)|0,l(I+3|0)|0,l(I+5|0)|0,l(I+7|0)|0),I=I+9|0,0)}function To(_){return _=_|0,X(),I=I+1|0,0}function ye(_){_=_|0;var ae=0;return ae=_-160|0,$(ae|0)|0?1:(Be(ae|0),I=I+1|0,0)}function Mo(_){return _=_|0,$(1)|0?1:(Be(i[I+1|0]|0),I=I+2|0,0)}function cA(_){return _=_|0,$(2)|0?1:(Be(l(I+1|0)|0),I=I+3|0,0)}function dA(_){return _=_|0,$(4)|0?1:(ce(l(I+1|0)|0,l(I+3|0)|0),I=I+5|0,0)}function fA(_){return _=_|0,$(8)|0?1:(de(l(I+1|0)|0,l(I+3|0)|0,l(I+5|0)|0,l(I+7|0)|0),I=I+9|0,0)}function hA(_){return _=_|0,q(),I=I+1|0,0}function uo(_){return _=_|0,Re(_-192|0|0),I=I+1|0,0}function th(_){return _=_|0,Re(_|0),I=I+1|0,0}function oh(_){return _=_|0,Re(_|0),I=I+1|0,0}function rh(_){return _=_|0,Re(_|0),I=I+1|0,0}function nh(_){return _=_|0,Re(_|0),I=I+1|0,0}function We(_){return _=_|0,Re(_-192|0|0),I=I+1|0,0}function ih(_){return _=_|0,Re(_|0),I=I+1|0,0}function sh(_){return _=_|0,Re(_|0),I=I+1|0,0}function ah(_){return _=_|0,Re(_|0),I=I+1|0,0}function BA(_){return _=_|0,$(1)|0?1:(Re(i[I+1|0]|0),I=I+2|0,0)}function EA(_){return _=_|0,$(2)|0?1:(Re(l(I+1|0)|0),I=I+3|0,0)}function bA(_){return _=_|0,$(4)|0?1:(et(l(I+1|0)|0,l(I+3|0)|0),I=I+5|0,0)}function yA(_){return _=_|0,$(8)|0?1:(Ut(l(I+1|0)|0,l(I+3|0)|0,l(I+5|0)|0,l(I+7|0)|0),I=I+9|0,0)}function ke(_){return _=_|0,nt((_|0)-224|0),I=I+1|0,0}function _A(_){return _=_|0,L(),I=I+1|0,0}function IA(_){return _=_|0,P(),I=I+1|0,0}function mA(_){return _=_|0,le(),I=I+1|0,0}function CA(_){return _=_|0,ee(),I=I+1|0,0}function xA(_){return _=_|0,$(1)|0?1:(nt(i[I+1|0]|0),I=I+2|0,0)}function SA(_){_=_|0;var ae=0,ue=0,se=1,pr=0,Oo=0,gh=0;return $(2)|0?1:(ae=i[I+1|0]|0,ue=i[I+2|0]|0,(ae|0)&128&&(se=-1),pr=+(((ae|0)&124)>>2),Oo=+(((ae|0)&3)<<8|ue),+pr==0?G(+(+se*5960464477539063e-23*+Oo)):+pr==31?+se==1?+Oo>0?Ie():te():+Oo>0?Se():xe():G(+(+se*U(2,+(+pr-25))*+(1024+Oo))),I=I+3|0,0)}function wA(_){return _=_|0,$(4)|0?1:(T(i[I+1|0]|0,i[I+2|0]|0,i[I+3|0]|0,i[I+4|0]|0),I=I+5|0,0)}function vA(_){return _=_|0,$(8)|0?1:(V(i[I+1|0]|0,i[I+2|0]|0,i[I+3|0]|0,i[I+4|0]|0,i[I+5|0]|0,i[I+6|0]|0,i[I+7|0]|0,i[I+8|0]|0),I=I+9|0,0)}function Ce(_){return _=_|0,1}function RA(_){return _=_|0,jt(),I=I+1|0,0}var QA=[E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,R,C,S,F,Ce,Ce,Ce,Ce,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,x,Q,v,N,Ce,Ce,Ce,Ce,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,J,re,Ee,me,Ce,Ce,Ce,oe,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,Qe,vt,Dt,Ht,Ce,Ce,Ce,tt,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,qe,Ge,be,Fo,Ce,Ce,Ce,To,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,Mo,cA,dA,fA,Ce,Ce,Ce,hA,uo,uo,uo,uo,uo,uo,We,We,We,We,We,We,We,We,We,We,We,We,We,We,We,We,We,We,BA,EA,bA,yA,Ce,Ce,Ce,Ce,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,_A,IA,mA,CA,xA,SA,wA,vA,Ce,Ce,Ce,RA];return{parse:He}}});var Jo=H(ut=>{"use strict";var pi=Lo().BigNumber;ut.MT={POS_INT:0,NEG_INT:1,BYTE_STRING:2,UTF8_STRING:3,ARRAY:4,MAP:5,TAG:6,SIMPLE_FLOAT:7};ut.TAG={DATE_STRING:0,DATE_EPOCH:1,POS_BIGINT:2,NEG_BIGINT:3,DECIMAL_FRAC:4,BIGFLOAT:5,BASE64URL_EXPECTED:21,BASE64_EXPECTED:22,BASE16_EXPECTED:23,CBOR:24,URI:32,BASE64URL:33,BASE64:34,REGEXP:35,MIME:36};ut.NUMBYTES={ZERO:0,ONE:24,TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31};ut.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23};ut.SYMS={NULL:Symbol("null"),UNDEFINED:Symbol("undef"),PARENT:Symbol("parent"),BREAK:Symbol("break"),STREAM:Symbol("stream")};ut.SHIFT32=Math.pow(2,32);ut.SHIFT16=Math.pow(2,16);ut.MAX_SAFE_HIGH=2097151;ut.NEG_ONE=new pi(-1);ut.TEN=new pi(10);ut.TWO=new pi(2);ut.PARENT={ARRAY:0,OBJECT:1,MAP:2,TAG:3,BYTE_STRING:4,UTF8_STRING:5}});var Mr=H(bt=>{"use strict";var{Buffer:Ac}=require("buffer"),cg=Lo().BigNumber,dg=Jo(),fg=dg.SHIFT32,uc=dg.SHIFT16,lc=2097151;bt.parseHalf=function(o){var r,n,i;return i=o[0]&128?-1:1,r=(o[0]&124)>>2,n=(o[0]&3)<<8|o[1],r?r===31?i*(n?0/0:1/0):i*Math.pow(2,r-25)*(1024+n):i*5960464477539063e-23*n};function cc(t){return t<16?"0"+t.toString(16):t.toString(16)}bt.arrayBufferToBignumber=function(t){let o=t.byteLength,r="";for(let n=0;n<o;n++)r+=cc(t[n]);return new cg(r,16)};bt.buildMap=t=>{let o=new Map,r=Object.keys(t),n=r.length;for(let i=0;i<n;i++)o.set(r[i],t[r[i]]);return o};bt.buildInt32=(t,o)=>t*uc+o;bt.buildInt64=(t,o,r,n)=>{let i=bt.buildInt32(t,o),s=bt.buildInt32(r,n);return i>lc?new cg(i).times(fg).plus(s):i*fg+s};bt.writeHalf=function(o,r){let n=Ac.allocUnsafe(4);n.writeFloatBE(r,0);let i=n.readUInt32BE(0);if((i&8191)!==0)return!1;var s=i>>16&32768;let p=i>>23&255,u=i&8388607;if(p>=113&&p<=142)s+=(p-112<<10)+(u>>13);else if(p>=103&&p<113){if(u&(1<<126-p)-1)return!1;s+=u+8388608>>126-p}else return!1;return o.writeUInt16BE(s,0),!0};bt.keySorter=function(t,o){var r=t[0].byteLength,n=o[0].byteLength;return r>n?1:n>r?-1:t[0].compare(o[0])};bt.isNegativeZero=t=>t===0&&1/t<0;bt.nextPowerOf2=t=>{let o=0;if(t&&!(t&t-1))return t;for(;t!==0;)t>>=1,o+=1;return 1<<o}});var li=H((d0,hg)=>{"use strict";var Ai=Jo(),dc=Ai.MT,Or=Ai.SIMPLE,ui=Ai.SYMS,Ko=class{constructor(o){if(typeof o!="number")throw new Error("Invalid Simple type: "+typeof o);if(o<0||o>255||(o|0)!==o)throw new Error("value must be a small positive integer: "+o);this.value=o}toString(){return"simple("+this.value+")"}inspect(){return"simple("+this.value+")"}encodeCBOR(o){return o._pushInt(this.value,dc.SIMPLE_FLOAT)}static isSimple(o){return o instanceof Ko}static decode(o,r){switch(r==null&&(r=!0),o){case Or.FALSE:return!1;case Or.TRUE:return!0;case Or.NULL:return r?null:ui.NULL;case Or.UNDEFINED:return r?void 0:ui.UNDEFINED;case-1:if(!r)throw new Error("Invalid BREAK");return ui.BREAK;default:return new Ko(o)}}};hg.exports=Ko});var ci=H((f0,Bg)=>{"use strict";var Zo=class{constructor(o,r,n){if(this.tag=o,this.value=r,this.err=n,typeof this.tag!="number")throw new Error("Invalid tag type ("+typeof this.tag+")");if(this.tag<0||(this.tag|0)!==this.tag)throw new Error("Tag must be a positive integer: "+this.tag)}toString(){return`${this.tag}(${JSON.stringify(this.value)})`}encodeCBOR(o){return o._pushTag(this.tag),o.pushAny(this.value)}convert(o){var r,n;if(n=o!=null?o[this.tag]:void 0,typeof n!="function"&&(n=Zo["_tag"+this.tag],typeof n!="function"))return this;try{return n.call(Zo,this.value)}catch(i){return r=i,this.err=r,this}}};Bg.exports=Zo});var di=H((h0,yg)=>{"use strict";var{URL:fc,URLSearchParams:hc,format:Bc}=require("url"),Eg="http://localhost",bg=class extends fc{constructor(o="",r=Eg){super(o,r);this.path=this.pathname+this.search,this.auth=this.username&&this.password?this.username+":"+this.password:null,this.query=this.search&&this.search.startsWith("?")?this.search.slice(1):null}format(){return this.toString()}};yg.exports={URLWithLegacySupport:bg,URLSearchParams:hc,format:Bc,defaultBase:Eg}});var mg=H((B0,Ig)=>{"use strict";var{URLWithLegacySupport:_g,format:Ec}=di();Ig.exports=(t,o={},r={},n)=>{let i=o.protocol?o.protocol.replace(":",""):"http";i=(r[i]||n||i)+":";let s;try{s=new _g(t)}catch{s={}}let p=Object.assign({},o,{protocol:i||s.protocol,host:o.host||s.host});return new _g(t,Ec(p)).toString()}});var fi=H((E0,Cg)=>{"use strict";var{URLWithLegacySupport:bc,format:yc,URLSearchParams:_c,defaultBase:Ic}=di(),mc=mg();Cg.exports={URL:bc,URLSearchParams:_c,format:yc,relative:mc,defaultBase:Ic}});var hi=H((b0,Sg)=>{"use strict";var{Buffer:Co}=require("buffer"),xg=Pn(),Cc=Lo().BigNumber,xc=lg(),rt=Mr(),_e=Jo(),Sc=li(),wc=ci(),{URL:vc}=fi(),so=class{constructor(o){o=o||{},!o.size||o.size<65536?o.size=65536:o.size=rt.nextPowerOf2(o.size),this._heap=new ArrayBuffer(o.size),this._heap8=new Uint8Array(this._heap),this._buffer=Co.from(this._heap),this._reset(),this._knownTags=Object.assign({0:r=>new Date(r),1:r=>new Date(r*1e3),2:r=>rt.arrayBufferToBignumber(r),3:r=>_e.NEG_ONE.minus(rt.arrayBufferToBignumber(r)),4:r=>_e.TEN.pow(r[0]).times(r[1]),5:r=>_e.TWO.pow(r[0]).times(r[1]),32:r=>new vc(r),35:r=>new RegExp(r)},o.tags),this.parser=xc(global,{log:console.log.bind(console),pushInt:this.pushInt.bind(this),pushInt32:this.pushInt32.bind(this),pushInt32Neg:this.pushInt32Neg.bind(this),pushInt64:this.pushInt64.bind(this),pushInt64Neg:this.pushInt64Neg.bind(this),pushFloat:this.pushFloat.bind(this),pushFloatSingle:this.pushFloatSingle.bind(this),pushFloatDouble:this.pushFloatDouble.bind(this),pushTrue:this.pushTrue.bind(this),pushFalse:this.pushFalse.bind(this),pushUndefined:this.pushUndefined.bind(this),pushNull:this.pushNull.bind(this),pushInfinity:this.pushInfinity.bind(this),pushInfinityNeg:this.pushInfinityNeg.bind(this),pushNaN:this.pushNaN.bind(this),pushNaNNeg:this.pushNaNNeg.bind(this),pushArrayStart:this.pushArrayStart.bind(this),pushArrayStartFixed:this.pushArrayStartFixed.bind(this),pushArrayStartFixed32:this.pushArrayStartFixed32.bind(this),pushArrayStartFixed64:this.pushArrayStartFixed64.bind(this),pushObjectStart:this.pushObjectStart.bind(this),pushObjectStartFixed:this.pushObjectStartFixed.bind(this),pushObjectStartFixed32:this.pushObjectStartFixed32.bind(this),pushObjectStartFixed64:this.pushObjectStartFixed64.bind(this),pushByteString:this.pushByteString.bind(this),pushByteStringStart:this.pushByteStringStart.bind(this),pushUtf8String:this.pushUtf8String.bind(this),pushUtf8StringStart:this.pushUtf8StringStart.bind(this),pushSimpleUnassigned:this.pushSimpleUnassigned.bind(this),pushTagUnassigned:this.pushTagUnassigned.bind(this),pushTagStart:this.pushTagStart.bind(this),pushTagStart4:this.pushTagStart4.bind(this),pushTagStart8:this.pushTagStart8.bind(this),pushBreak:this.pushBreak.bind(this)},this._heap)}get _depth(){return this._parents.length}get _currentParent(){return this._parents[this._depth-1]}get _ref(){return this._currentParent.ref}_closeParent(){var o=this._parents.pop();if(o.length>0)throw new Error(`Missing ${o.length} elements`);switch(o.type){case _e.PARENT.TAG:this._push(this.createTag(o.ref[0],o.ref[1]));break;case _e.PARENT.BYTE_STRING:this._push(this.createByteString(o.ref,o.length));break;case _e.PARENT.UTF8_STRING:this._push(this.createUtf8String(o.ref,o.length));break;case _e.PARENT.MAP:if(o.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createMap(o.ref,o.length));break;case _e.PARENT.OBJECT:if(o.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createObject(o.ref,o.length));break;case _e.PARENT.ARRAY:this._push(this.createArray(o.ref,o.length));break;default:break}this._currentParent&&this._currentParent.type===_e.PARENT.TAG&&this._dec()}_dec(){let o=this._currentParent;o.length<0||(o.length--,o.length===0&&this._closeParent())}_push(o,r){let n=this._currentParent;switch(n.values++,n.type){case _e.PARENT.ARRAY:case _e.PARENT.BYTE_STRING:case _e.PARENT.UTF8_STRING:n.length>-1?this._ref[this._ref.length-n.length]=o:this._ref.push(o),this._dec();break;case _e.PARENT.OBJECT:n.tmpKey!=null?(this._ref[n.tmpKey]=o,n.tmpKey=null,this._dec()):(n.tmpKey=o,typeof n.tmpKey!="string"&&(n.type=_e.PARENT.MAP,n.ref=rt.buildMap(n.ref)));break;case _e.PARENT.MAP:n.tmpKey!=null?(this._ref.set(n.tmpKey,o),n.tmpKey=null,this._dec()):n.tmpKey=o;break;case _e.PARENT.TAG:this._ref.push(o),r||this._dec();break;default:throw new Error("Unknown parent type")}}_createParent(o,r,n){this._parents[this._depth]={type:r,length:n,ref:o,values:0,tmpKey:null}}_reset(){this._res=[],this._parents=[{type:_e.PARENT.ARRAY,length:-1,ref:this._res,values:0,tmpKey:null}]}createTag(o,r){let n=this._knownTags[o];return n?n(r):new wc(o,r)}createMap(o,r){return o}createObject(o,r){return o}createArray(o,r){return o}createByteString(o,r){return Co.concat(o)}createByteStringFromHeap(o,r){return o===r?Co.alloc(0):Co.from(this._heap.slice(o,r))}createInt(o){return o}createInt32(o,r){return rt.buildInt32(o,r)}createInt64(o,r,n,i){return rt.buildInt64(o,r,n,i)}createFloat(o){return o}createFloatSingle(o,r,n,i){return xg.read([o,r,n,i],0,!1,23,4)}createFloatDouble(o,r,n,i,s,p,u,h){return xg.read([o,r,n,i,s,p,u,h],0,!1,52,8)}createInt32Neg(o,r){return-1-rt.buildInt32(o,r)}createInt64Neg(o,r,n,i){let s=rt.buildInt32(o,r),p=rt.buildInt32(n,i);return s>_e.MAX_SAFE_HIGH?_e.NEG_ONE.minus(new Cc(s).times(_e.SHIFT32).plus(p)):-1-(s*_e.SHIFT32+p)}createTrue(){return!0}createFalse(){return!1}createNull(){return null}createUndefined(){}createInfinity(){return 1/0}createInfinityNeg(){return-1/0}createNaN(){return NaN}createNaNNeg(){return NaN}createUtf8String(o,r){return o.join("")}createUtf8StringFromHeap(o,r){return o===r?"":this._buffer.toString("utf8",o,r)}createSimpleUnassigned(o){return new Sc(o)}pushInt(o){this._push(this.createInt(o))}pushInt32(o,r){this._push(this.createInt32(o,r))}pushInt64(o,r,n,i){this._push(this.createInt64(o,r,n,i))}pushFloat(o){this._push(this.createFloat(o))}pushFloatSingle(o,r,n,i){this._push(this.createFloatSingle(o,r,n,i))}pushFloatDouble(o,r,n,i,s,p,u,h){this._push(this.createFloatDouble(o,r,n,i,s,p,u,h))}pushInt32Neg(o,r){this._push(this.createInt32Neg(o,r))}pushInt64Neg(o,r,n,i){this._push(this.createInt64Neg(o,r,n,i))}pushTrue(){this._push(this.createTrue())}pushFalse(){this._push(this.createFalse())}pushNull(){this._push(this.createNull())}pushUndefined(){this._push(this.createUndefined())}pushInfinity(){this._push(this.createInfinity())}pushInfinityNeg(){this._push(this.createInfinityNeg())}pushNaN(){this._push(this.createNaN())}pushNaNNeg(){this._push(this.createNaNNeg())}pushArrayStart(){this._createParent([],_e.PARENT.ARRAY,-1)}pushArrayStartFixed(o){this._createArrayStartFixed(o)}pushArrayStartFixed32(o,r){let n=rt.buildInt32(o,r);this._createArrayStartFixed(n)}pushArrayStartFixed64(o,r,n,i){let s=rt.buildInt64(o,r,n,i);this._createArrayStartFixed(s)}pushObjectStart(){this._createObjectStartFixed(-1)}pushObjectStartFixed(o){this._createObjectStartFixed(o)}pushObjectStartFixed32(o,r){let n=rt.buildInt32(o,r);this._createObjectStartFixed(n)}pushObjectStartFixed64(o,r,n,i){let s=rt.buildInt64(o,r,n,i);this._createObjectStartFixed(s)}pushByteStringStart(){this._parents[this._depth]={type:_e.PARENT.BYTE_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushByteString(o,r){this._push(this.createByteStringFromHeap(o,r))}pushUtf8StringStart(){this._parents[this._depth]={type:_e.PARENT.UTF8_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushUtf8String(o,r){this._push(this.createUtf8StringFromHeap(o,r))}pushSimpleUnassigned(o){this._push(this.createSimpleUnassigned(o))}pushTagStart(o){this._parents[this._depth]={type:_e.PARENT.TAG,length:1,ref:[o]}}pushTagStart4(o,r){this.pushTagStart(rt.buildInt32(o,r))}pushTagStart8(o,r,n,i){this.pushTagStart(rt.buildInt64(o,r,n,i))}pushTagUnassigned(o){this._push(this.createTag(o))}pushBreak(){if(this._currentParent.length>-1)throw new Error("Unexpected break");this._closeParent()}_createObjectStartFixed(o){if(o===0){this._push(this.createObject({}));return}this._createParent({},_e.PARENT.OBJECT,o)}_createArrayStartFixed(o){if(o===0){this._push(this.createArray([]));return}this._createParent(new Array(o),_e.PARENT.ARRAY,o)}_decode(o){if(o.byteLength===0)throw new Error("Input too short");this._reset(),this._heap8.set(o);let r=this.parser.parse(o.byteLength);if(this._depth>1){for(;this._currentParent.length===0;)this._closeParent();if(this._depth>1)throw new Error("Undeterminated nesting")}if(r>0)throw new Error("Failed to parse");if(this._res.length===0)throw new Error("No valid result")}decodeFirst(o){return this._decode(o),this._res[0]}decodeAll(o){return this._decode(o),this._res}static decode(o,r){return typeof o=="string"&&(o=Co.from(o,r||"hex")),new so({size:o.length}).decodeFirst(o)}static decodeAll(o,r){return typeof o=="string"&&(o=Co.from(o,r||"hex")),new so({size:o.length}).decodeAll(o)}};so.decodeFirst=so.decode;Sg.exports=so});var Rg=H((y0,vg)=>{"use strict";var{Buffer:Bi}=require("buffer"),Rc=hi(),Qc=Mr(),Nr=class extends Rc{createTag(o,r){return`${o}(${r})`}createInt(o){return super.createInt(o).toString()}createInt32(o,r){return super.createInt32(o,r).toString()}createInt64(o,r,n,i){return super.createInt64(o,r,n,i).toString()}createInt32Neg(o,r){return super.createInt32Neg(o,r).toString()}createInt64Neg(o,r,n,i){return super.createInt64Neg(o,r,n,i).toString()}createTrue(){return"true"}createFalse(){return"false"}createFloat(o){let r=super.createFloat(o);return Qc.isNegativeZero(o)?"-0_1":`${r}_1`}createFloatSingle(o,r,n,i){return`${super.createFloatSingle(o,r,n,i)}_2`}createFloatDouble(o,r,n,i,s,p,u,h){return`${super.createFloatDouble(o,r,n,i,s,p,u,h)}_3`}createByteString(o,r){let n=o.join(", ");return r===-1?`(_ ${n})`:`h'${n}`}createByteStringFromHeap(o,r){return`h'${Bi.from(super.createByteStringFromHeap(o,r)).toString("hex")}'`}createInfinity(){return"Infinity_1"}createInfinityNeg(){return"-Infinity_1"}createNaN(){return"NaN_1"}createNaNNeg(){return"-NaN_1"}createNull(){return"null"}createUndefined(){return"undefined"}createSimpleUnassigned(o){return`simple(${o})`}createArray(o,r){let n=super.createArray(o,r);return r===-1?`[_ ${n.join(", ")}]`:`[${n.join(", ")}]`}createMap(o,r){let n=super.createMap(o),i=Array.from(n.keys()).reduce(wg(n),"");return r===-1?`{_ ${i}}`:`{${i}}`}createObject(o,r){let n=super.createObject(o),i=Object.keys(n).reduce(wg(n),"");return r===-1?`{_ ${i}}`:`{${i}}`}createUtf8String(o,r){let n=o.join(", ");return r===-1?`(_ ${n})`:`"${n}"`}createUtf8StringFromHeap(o,r){return`"${Bi.from(super.createUtf8StringFromHeap(o,r)).toString("utf8")}"`}static diagnose(o,r){return typeof o=="string"&&(o=Bi.from(o,r||"hex")),new Nr().decodeFirst(o)}};vg.exports=Nr;function wg(t){return(o,r)=>o?`${o}, ${r}: ${t[r]}`:`${r}: ${t[r]}`}});var Og=H((_0,Mg)=>{"use strict";var{Buffer:Mt}=require("buffer"),{URL:Fc}=fi(),Ei=Lo().BigNumber,bi=Mr(),je=Jo(),mt=je.MT,Gr=je.NUMBYTES,Qg=je.SHIFT32,Fg=je.SYMS,xo=je.TAG,Tc=je.MT.SIMPLE_FLOAT<<5|je.NUMBYTES.TWO,Mc=je.MT.SIMPLE_FLOAT<<5|je.NUMBYTES.FOUR,Oc=je.MT.SIMPLE_FLOAT<<5|je.NUMBYTES.EIGHT,Nc=je.MT.SIMPLE_FLOAT<<5|je.SIMPLE.TRUE,Gc=je.MT.SIMPLE_FLOAT<<5|je.SIMPLE.FALSE,Pc=je.MT.SIMPLE_FLOAT<<5|je.SIMPLE.UNDEFINED,Tg=je.MT.SIMPLE_FLOAT<<5|je.SIMPLE.NULL,kc=new Ei("0x20000000000000"),Uc=Mt.from("f97e00","hex"),jc=Mt.from("f9fc00","hex"),Dc=Mt.from("f97c00","hex");function Hc(t){return{}.toString.call(t).slice(8,-1)}var Xo=class{constructor(o){o=o||{},this.streaming=typeof o.stream=="function",this.onData=o.stream,this.semanticTypes=[[Fc,this._pushUrl],[Ei,this._pushBigNumber]];let r=o.genTypes||[],n=r.length;for(let i=0;i<n;i++)this.addSemanticType(r[i][0],r[i][1]);this._reset()}addSemanticType(o,r){let n=this.semanticTypes.length;for(let i=0;i<n;i++)if(this.semanticTypes[i][0]===o){let p=this.semanticTypes[i][1];return this.semanticTypes[i][1]=r,p}return this.semanticTypes.push([o,r]),null}push(o){return o&&(this.result[this.offset]=o,this.resultMethod[this.offset]=0,this.resultLength[this.offset]=o.length,this.offset++,this.streaming&&this.onData(this.finalize())),!0}pushWrite(o,r,n){return this.result[this.offset]=o,this.resultMethod[this.offset]=r,this.resultLength[this.offset]=n,this.offset++,this.streaming&&this.onData(this.finalize()),!0}_pushUInt8(o){return this.pushWrite(o,1,1)}_pushUInt16BE(o){return this.pushWrite(o,2,2)}_pushUInt32BE(o){return this.pushWrite(o,3,4)}_pushDoubleBE(o){return this.pushWrite(o,4,8)}_pushNaN(){return this.push(Uc)}_pushInfinity(o){let r=o<0?jc:Dc;return this.push(r)}_pushFloat(o){let r=Mt.allocUnsafe(2);if(bi.writeHalf(r,o)&&bi.parseHalf(r)===o)return this._pushUInt8(Tc)&&this.push(r);let n=Mt.allocUnsafe(4);return n.writeFloatBE(o,0),n.readFloatBE(0)===o?this._pushUInt8(Mc)&&this.push(n):this._pushUInt8(Oc)&&this._pushDoubleBE(o)}_pushInt(o,r,n){let i=r<<5;return o<24?this._pushUInt8(i|o):o<=255?this._pushUInt8(i|Gr.ONE)&&this._pushUInt8(o):o<=65535?this._pushUInt8(i|Gr.TWO)&&this._pushUInt16BE(o):o<=4294967295?this._pushUInt8(i|Gr.FOUR)&&this._pushUInt32BE(o):o<=Number.MAX_SAFE_INTEGER?this._pushUInt8(i|Gr.EIGHT)&&this._pushUInt32BE(Math.floor(o/Qg))&&this._pushUInt32BE(o%Qg):r===mt.NEG_INT?this._pushFloat(n):this._pushFloat(o)}_pushIntNum(o){return o<0?this._pushInt(-o-1,mt.NEG_INT,o):this._pushInt(o,mt.POS_INT)}_pushNumber(o){switch(!1){case o===o:return this._pushNaN(o);case isFinite(o):return this._pushInfinity(o);case o%1!==0:return this._pushIntNum(o);default:return this._pushFloat(o)}}_pushString(o){let r=Mt.byteLength(o,"utf8");return this._pushInt(r,mt.UTF8_STRING)&&this.pushWrite(o,5,r)}_pushBoolean(o){return this._pushUInt8(o?Nc:Gc)}_pushUndefined(o){return this._pushUInt8(Pc)}_pushArray(o,r){let n=r.length;if(!o._pushInt(n,mt.ARRAY))return!1;for(let i=0;i<n;i++)if(!o.pushAny(r[i]))return!1;return!0}_pushTag(o){return this._pushInt(o,mt.TAG)}_pushDate(o,r){return o._pushTag(xo.DATE_EPOCH)&&o.pushAny(Math.round(r/1e3))}_pushBuffer(o,r){return o._pushInt(r.length,mt.BYTE_STRING)&&o.push(r)}_pushNoFilter(o,r){return o._pushBuffer(o,r.slice())}_pushRegexp(o,r){return o._pushTag(xo.REGEXP)&&o.pushAny(r.source)}_pushSet(o,r){if(!o._pushInt(r.size,mt.ARRAY))return!1;for(let n of r)if(!o.pushAny(n))return!1;return!0}_pushUrl(o,r){return o._pushTag(xo.URI)&&o.pushAny(r.format())}_pushBigint(o){let r=xo.POS_BIGINT;o.isNegative()&&(o=o.negated().minus(1),r=xo.NEG_BIGINT);let n=o.toString(16);n.length%2&&(n="0"+n);let i=Mt.from(n,"hex");return this._pushTag(r)&&this._pushBuffer(this,i)}_pushBigNumber(o,r){if(r.isNaN())return o._pushNaN();if(!r.isFinite())return o._pushInfinity(r.isNegative()?-1/0:1/0);if(r.isInteger())return o._pushBigint(r);if(!(o._pushTag(xo.DECIMAL_FRAC)&&o._pushInt(2,mt.ARRAY)))return!1;let n=r.decimalPlaces(),i=r.multipliedBy(new Ei(10).pow(n));return o._pushIntNum(-n)?i.abs().isLessThan(kc)?o._pushIntNum(i.toNumber()):o._pushBigint(i):!1}_pushMap(o,r){return o._pushInt(r.size,mt.MAP)?this._pushRawMap(r.size,Array.from(r)):!1}_pushObject(o){if(!o)return this._pushUInt8(Tg);for(var r=this.semanticTypes.length,n=0;n<r;n++)if(o instanceof this.semanticTypes[n][0])return this.semanticTypes[n][1].call(o,this,o);var i=o.encodeCBOR;if(typeof i=="function")return i.call(o,this);var s=Object.keys(o),p=s.length;return this._pushInt(p,mt.MAP)?this._pushRawMap(p,s.map(u=>[u,o[u]])):!1}_pushRawMap(o,r){r=r.map(function(i){return i[0]=Xo.encode(i[0]),i}).sort(bi.keySorter);for(var n=0;n<o;n++)if(!this.push(r[n][0])||!this.pushAny(r[n][1]))return!1;return!0}write(o){return this.pushAny(o)}pushAny(o){var r=Hc(o);switch(r){case"Number":return this._pushNumber(o);case"String":return this._pushString(o);case"Boolean":return this._pushBoolean(o);case"Object":return this._pushObject(o);case"Array":return this._pushArray(this,o);case"Uint8Array":return this._pushBuffer(this,Mt.isBuffer(o)?o:Mt.from(o));case"Null":return this._pushUInt8(Tg);case"Undefined":return this._pushUndefined(o);case"Map":return this._pushMap(this,o);case"Set":return this._pushSet(this,o);case"URL":return this._pushUrl(this,o);case"BigNumber":return this._pushBigNumber(this,o);case"Date":return this._pushDate(this,o);case"RegExp":return this._pushRegexp(this,o);case"Symbol":switch(o){case Fg.NULL:return this._pushObject(null);case Fg.UNDEFINED:return this._pushUndefined(void 0);default:throw new Error("Unknown symbol: "+o.toString())}default:throw new Error("Unknown type: "+typeof o+", "+(o?o.toString():""))}}finalize(){if(this.offset===0)return null;for(var o=this.result,r=this.resultLength,n=this.resultMethod,i=this.offset,s=0,p=0;p<i;p++)s+=r[p];var u=Mt.allocUnsafe(s),h=0,w=0;for(p=0;p<i;p++){switch(w=r[p],n[p]){case 0:o[p].copy(u,h);break;case 1:u.writeUInt8(o[p],h,!0);break;case 2:u.writeUInt16BE(o[p],h,!0);break;case 3:u.writeUInt32BE(o[p],h,!0);break;case 4:u.writeDoubleBE(o[p],h,!0);break;case 5:u.write(o[p],h,w,"utf8");break;default:throw new Error("unkown method")}h+=w}var G=u;return this._reset(),G}_reset(){this.result=[],this.resultMethod=[],this.resultLength=[],this.offset=0}static encode(o){let r=new Xo;if(!r.pushAny(o))throw new Error("Failed to encode input");return r.finalize()}};Mg.exports=Xo});var yi=H(De=>{"use strict";De.Diagnose=Rg();De.Decoder=hi();De.Encoder=Og();De.Simple=li();De.Tagged=ci();De.decodeAll=De.Decoder.decodeAll;De.decodeFirst=De.Decoder.decodeFirst;De.diagnose=De.Diagnose.diagnose;De.encode=De.Encoder.encode;De.decode=De.Decoder.decode;De.leveldb={decode:De.Decoder.decodeAll,encode:De.Encoder.encode,buffer:!0,name:"cbor"}});var Vt=H(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.compare=Ot.fromHex=Ot.toHex=Ot.concat=void 0;function qc(...t){let o=new Uint8Array(t.reduce((n,i)=>n+i.byteLength,0)),r=0;for(let n of t)o.set(new Uint8Array(n),r),r+=n.byteLength;return o.buffer}Ot.concat=qc;function Wc(t){return[...new Uint8Array(t)].map(o=>o.toString(16).padStart(2,"0")).join("")}Ot.toHex=Wc;var Vc=/^([0-9A-F]{2})*$/i.compile();function Yc(t){if(!Vc.test(t))throw new Error("Invalid hexadecimal string.");let o=[...t].reduce((r,n,i)=>(r[i/2|0]=(r[i/2|0]||"")+n,r),[]).map(r=>Number.parseInt(r,16));return new Uint8Array(o).buffer}Ot.fromHex=Yc;function zc(t,o){if(t.byteLength!==o.byteLength)return t.byteLength-o.byteLength;let r=new Uint8Array(t),n=new Uint8Array(o);for(let i=0;i<r.length;i++)if(r[i]!==n[i])return r[i]-n[i];return 0}Ot.compare=zc});var er=H(Nt=>{"use strict";var Lc=Nt&&Nt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.requestIdOf=Nt.hashValue=Nt.hash=void 0;var Ng=mo(),Jc=Lc(yi()),Kc=No(),Pr=Vt();function Kt(t){return Kc.sha256.create().update(new Uint8Array(t)).arrayBuffer()}Nt.hash=Kt;function $o(t){if(t instanceof Jc.default.Tagged)return $o(t.value);if(typeof t=="string")return Gg(t);if(typeof t=="number")return Kt(Ng.lebEncode(t));if(t instanceof ArrayBuffer||ArrayBuffer.isView(t))return Kt(t);if(Array.isArray(t)){let o=t.map($o);return Kt(Pr.concat(...o))}else{if(t&&typeof t=="object"&&t._isPrincipal)return Kt(t.toUint8Array());if(typeof t=="object"&&t!==null&&typeof t.toHash=="function")return $o(t.toHash());if(typeof t=="bigint")return Kt(Ng.lebEncode(t))}throw Object.assign(new Error(`Attempt to hash a value of unsupported type: ${t}`),{value:t})}Nt.hashValue=$o;var Gg=t=>{let o=new TextEncoder().encode(t);return Kt(o)};function Zc(t){let n=Object.entries(t).filter(([,p])=>p!==void 0).map(([p,u])=>{let h=Gg(p),w=$o(u);return[h,w]}).sort(([p],[u])=>Pr.compare(p,u)),i=Pr.concat(...n.map(p=>Pr.concat(...p)));return Kt(i)}Nt.requestIdOf=Zc});var _i=H(Gt=>{"use strict";var Xc=Gt&&Gt.__rest||function(t,o){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&o.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)o.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.createIdentityDescriptor=Gt.AnonymousIdentity=Gt.SignIdentity=void 0;var Pg=Ft(),$c=er(),kg=Vt(),ed=new TextEncoder().encode(`
|
|
14
|
-
ic-request`),Ug=class{getPrincipal(){return this._principal||(this._principal=Pg.Principal.selfAuthenticating(new Uint8Array(this.getPublicKey().toDer()))),this._principal}async transformRequest(o){let{body:r}=o,n=Xc(o,["body"]),i=await $c.requestIdOf(r);return Object.assign(Object.assign({},n),{body:{content:r,sender_pubkey:this.getPublicKey().toDer(),sender_sig:await this.sign(kg.concat(ed,i))}})}};Gt.SignIdentity=Ug;var jg=class{getPrincipal(){return Pg.Principal.anonymous()}async transformRequest(o){return Object.assign(Object.assign({},o),{body:{content:o.body}})}};Gt.AnonymousIdentity=jg;function td(t){return"getPublicKey"in t?{type:"PublicKeyIdentity",publicKey:kg.toHex(t.getPublicKey().toDer())}:{type:"AnonymousIdentity"}}Gt.createIdentityDescriptor=td});var Ci=H(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});var od=9007199254740992;function Yt(t,...o){let r=new Uint8Array(t.byteLength+o.reduce((i,s)=>i+s.byteLength,0));r.set(new Uint8Array(t),0);let n=t.byteLength;for(let i of o)r.set(new Uint8Array(i),n),n+=i.byteLength;return r.buffer}function Ct(t,o,r){r=r.replace(/[^0-9a-fA-F]/g,"");let n=2**(o-24);r=r.slice(-n*2).padStart(n*2,"0");let i=[(t<<5)+o].concat(r.match(/../g).map(s=>parseInt(s,16)));return new Uint8Array(i).buffer}function kr(t,o){if(o<24)return new Uint8Array([(t<<5)+o]).buffer;{let r=o<=255?24:o<=65535?25:o<=4294967295?26:27;return Ct(t,r,o.toString(16))}}function Dg(t){let o=[];for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);n<128?o.push(n):n<2048?o.push(192|n>>6,128|n&63):n<55296||n>=57344?o.push(224|n>>12,128|n>>6&63,128|n&63):(r++,n=(n&1023)<<10|t.charCodeAt(r)&1023,o.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|n&63))}return Yt(new Uint8Array(kr(3,t.length)),new Uint8Array(o))}function rd(t,o){if(t==14277111)return Yt(new Uint8Array([217,217,247]),o);if(t<24)return Yt(new Uint8Array([(6<<5)+t]),o);{let r=t<=255?24:t<=65535?25:t<=4294967295?26:27,n=2**(r-24),i=t.toString(16).slice(-n*2).padStart(n*2,"0"),s=[(6<<5)+r].concat(i.match(/../g).map(p=>parseInt(p,16)));return new Uint8Array(s).buffer}}we.tagged=rd;function tr(t){return new Uint8Array(t).buffer}we.raw=tr;function Ii(t){if(isNaN(t))throw new RangeError("Invalid number.");t=Math.min(Math.max(0,t),23);let o=[(0<<5)+t];return new Uint8Array(o).buffer}we.uSmall=Ii;function Hg(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,t),255),t=t.toString(16),Ct(0,24,t)}we.u8=Hg;function qg(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,t),65535),t=t.toString(16),Ct(0,25,t)}we.u16=qg;function Wg(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,t),4294967295),t=t.toString(16),Ct(0,26,t)}we.u32=Wg;function mi(t,o){if(typeof t=="string"&&o==16){if(t.match(/[^0-9a-fA-F]/))throw new RangeError("Invalid number.");return Ct(0,27,t)}if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,t),od),t=t.toString(16),Ct(0,27,t)}we.u64=mi;function Vg(t){if(isNaN(t))throw new RangeError("Invalid number.");if(t===0)return Ii(0);t=Math.min(Math.max(0,-t),24)-1;let o=[(1<<5)+t];return new Uint8Array(o).buffer}we.iSmall=Vg;function Yg(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,-t-1),255),t=t.toString(16),Ct(1,24,t)}we.i8=Yg;function zg(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,-t-1),65535),t=t.toString(16),Ct(1,25,t)}we.i16=zg;function Lg(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,-t-1),4294967295),t=t.toString(16),Ct(1,26,t)}we.i32=Lg;function Jg(t,o){if(typeof t=="string"&&o==16){if(t.startsWith("-")?t=t.slice(1):t="0",t.match(/[^0-9a-fA-F]/)||t.length>16)throw new RangeError("Invalid number.");let r=!1,n=t.split("").reduceRight((i,s)=>{if(r)return s+i;let p=parseInt(s,16)-1;return p>=0?(r=!0,p.toString(16)+i):"f"+i},"");return r?Ct(1,27,n):mi(0)}if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,-t-1),9007199254740992),t=t.toString(16),Ct(1,27,t)}we.i64=Jg;function nd(t){return t>=0?t<24?Ii(t):t<=255?Hg(t):t<=65535?qg(t):t<=4294967295?Wg(t):mi(t):t>=-24?Vg(t):t>=-255?Yg(t):t>=-65535?zg(t):t>=-4294967295?Lg(t):Jg(t)}we.number=nd;function id(t){return Yt(kr(2,t.byteLength),t)}we.bytes=id;function sd(t){return Dg(t)}we.string=sd;function ad(t){return Yt(kr(4,t.length),...t)}we.array=ad;function gd(t,o=!1){t instanceof Map||(t=new Map(Object.entries(t)));let r=Array.from(t.entries());return o&&(r=r.sort(([n],[i])=>n.localeCompare(i))),Yt(kr(5,t.size),...r.map(([n,i])=>Yt(Dg(n),i)))}we.map=gd;function pd(t){let o=new Float32Array([t]);return Yt(new Uint8Array([(7<<5)+26]),new Uint8Array(o.buffer))}we.singleFloat=pd;function Ad(t){let o=new Float64Array([t]);return Yt(new Uint8Array([(7<<5)+27]),new Uint8Array(o.buffer))}we.doubleFloat=Ad;function ud(t){return t?Kg():Zg()}we.bool=ud;function Kg(){return tr(new Uint8Array([(7<<5)+21]))}we.true_=Kg;function Zg(){return tr(new Uint8Array([(7<<5)+20]))}we.false_=Zg;function ld(){return tr(new Uint8Array([(7<<5)+22]))}we.null_=ld;function cd(){return tr(new Uint8Array([(7<<5)+23]))}we.undefined_=cd});var $g=H(Zt=>{"use strict";var dd=Zt&&Zt.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(o[r]=t[r]);return o.default=t,o};Object.defineProperty(Zt,"__esModule",{value:!0});var xt=dd(Ci()),fd=[ArrayBuffer,Uint8Array,Uint16Array,Uint32Array,Int8Array,Int16Array,Int32Array,Float32Array,Float64Array],xi=class{constructor(o,r=!1){this._serializer=o,this._stable=r,this.name="jsonDefault",this.priority=-100}match(o){return["undefined","boolean","number","string","object"].indexOf(typeof o)!=-1}encode(o){switch(typeof o){case"undefined":return xt.undefined_();case"boolean":return xt.bool(o);case"number":return Math.floor(o)===o?xt.number(o):xt.doubleFloat(o);case"string":return xt.string(o);case"object":if(o===null)return xt.null_();if(Array.isArray(o))return xt.array(o.map(r=>this._serializer.serializeValue(r)));if(fd.find(r=>o instanceof r))return xt.bytes(o.buffer);if(Object.getOwnPropertyNames(o).indexOf("toJSON")!==-1)return this.encode(o.toJSON());if(o instanceof Map){let r=new Map;for(let[n,i]of o.entries())r.set(n,this._serializer.serializeValue(i));return xt.map(r,this._stable)}else{let r=new Map;for(let[n,i]of Object.entries(o))r.set(n,this._serializer.serializeValue(i));return xt.map(r,this._stable)}default:throw new Error("Invalid value.")}}};Zt.JsonDefaultCborEncoder=xi;var Si=class{constructor(){this.name="cborEncoder",this.priority=-90}match(o){return typeof o=="object"&&typeof o.toCBOR=="function"}encode(o){return o.toCBOR()}};Zt.ToCborEncoder=Si;var wi=class{constructor(){this._encoders=new Set}static withDefaultEncoders(o=!1){let r=new this;return r.addEncoder(new xi(r,o)),r.addEncoder(new Si),r}removeEncoder(o){for(let r of this._encoders.values())r.name==o&&this._encoders.delete(r)}addEncoder(o){this._encoders.add(o)}getEncoderFor(o){let r=null;for(let n of this._encoders)(!r||n.priority>r.priority)&&n.match(o)&&(r=n);if(r===null)throw new Error("Could not find an encoder for value.");return r}serializeValue(o){return this.getEncoderFor(o).encode(o)}serialize(o){return this.serializeValue(o)}};Zt.CborSerializer=wi;var Xg=class extends wi{serialize(o){return xt.raw(new Uint8Array([...new Uint8Array([217,217,247]),...new Uint8Array(super.serializeValue(o))]))}};Zt.SelfDescribeCborSerializer=Xg});var Ur=H(ao=>{"use strict";function hd(t){for(var o in t)ao.hasOwnProperty(o)||(ao[o]=t[o])}var Bd=ao&&ao.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(o[r]=t[r]);return o.default=t,o};Object.defineProperty(ao,"__esModule",{value:!0});hd($g());var Ed=Bd(Ci());ao.value=Ed});var Dr=H(Ze=>{"use strict";var bd=Ze&&Ze.__createBinding||(Object.create?function(t,o,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,n){n===void 0&&(n=r),t[n]=o[r]}),yd=Ze&&Ze.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),_d=Ze&&Ze.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&bd(o,t,r);return yd(o,t),o},Id=Ze&&Ze.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.decode=Ze.encode=Ze.CborTag=void 0;var md=Id(yi()),So=_d(Ur()),Cd=Ur(),vi=Vt(),ep=class{get name(){return"Principal"}get priority(){return 0}match(o){return o&&o._isPrincipal===!0}encode(o){return So.value.bytes(o.toUint8Array())}},tp=class{get name(){return"Buffer"}get priority(){return 1}match(o){return o instanceof ArrayBuffer||ArrayBuffer.isView(o)}encode(o){return So.value.bytes(new Uint8Array(o))}},op=class{get name(){return"BigInt"}get priority(){return 1}match(o){return typeof o=="bigint"}encode(o){return o>BigInt(0)?So.value.tagged(2,So.value.bytes(vi.fromHex(o.toString(16)))):So.value.tagged(3,So.value.bytes(vi.fromHex((BigInt("-1")*o).toString(16))))}},jr=Cd.SelfDescribeCborSerializer.withDefaultEncoders(!0);jr.addEncoder(new ep);jr.addEncoder(new tp);jr.addEncoder(new op);var rp;(function(t){t[t.Uint64LittleEndian=71]="Uint64LittleEndian",t[t.Semantic=55799]="Semantic"})(rp=Ze.CborTag||(Ze.CborTag={}));function xd(t){return jr.serialize(t)}Ze.encode=xd;function np(t){let o=t.byteLength,r=BigInt(0);for(let n=0;n<o;n++)r=r*BigInt(256)+BigInt(t[n]);return r}var ip=class extends md.default.Decoder{createByteString(o){return vi.concat(...o)}createByteStringFromHeap(o,r){return o===r?new ArrayBuffer(0):new Uint8Array(this._heap.slice(o,r))}};function Sd(t){let o=new Uint8Array(t);return new ip({size:o.byteLength,tags:{2:n=>np(n),3:n=>-np(n),[rp.Semantic]:n=>n}}).decodeFirst(o)}Ze.decode=Sd});var or=H(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.makeNonce=go.SubmitRequestType=void 0;var wd;(function(t){t.Call="call"})(wd=go.SubmitRequestType||(go.SubmitRequestType={}));function vd(){let t=new ArrayBuffer(16),o=new DataView(t),r=BigInt(+Date.now())*BigInt(1e5)+BigInt(Math.floor(Math.random()*1e5));return o.setBigUint64(0,r),o.setBigUint64(1,r>>BigInt(64)),t}go.makeNonce=vd});var Hr=H(st=>{"use strict";var Rd=st&&st.__createBinding||(Object.create?function(t,o,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,n){n===void 0&&(n=r),t[n]=o[r]}),Qd=st&&st.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),Fd=st&&st.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Rd(o,t,r);return Qd(o,t),o};Object.defineProperty(st,"__esModule",{value:!0});st.makeExpiryTransform=st.makeNonceTransform=st.Expiry=void 0;var Td=mo(),Md=Fd(Ur()),Od=or(),Nd=BigInt(1e6),Gd=BigInt(60*1e3),Ri=class{constructor(o){this._value=(BigInt(Date.now())+BigInt(o)-Gd)*Nd}toCBOR(){return Md.value.u64(this._value.toString(16),16)}toHash(){return Td.lebEncode(this._value)}};st.Expiry=Ri;function Pd(t=Od.makeNonce){return async o=>{o.endpoint==="call"&&(o.body.nonce=t())}}st.makeNonceTransform=Pd;function kd(t){return async o=>{o.body.ingress_expiry=new Ri(t)}}st.makeExpiryTransform=kd});var ap=H(Xe=>{"use strict";var sp=Xe&&Xe.__createBinding||(Object.create?function(t,o,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,n){n===void 0&&(n=r),t[n]=o[r]}),Ud=Xe&&Xe.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),jd=Xe&&Xe.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&sp(o,t,r);return Ud(o,t),o},Dd=Xe&&Xe.__exportStar||function(t,o){for(var r in t)r!=="default"&&!o.hasOwnProperty(r)&&sp(o,t,r)};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.HttpAgent=Xe.RequestStatusResponseStatus=void 0;var po=Ft(),Hd=Ir(),qd=_i(),wo=jd(Dr()),Wd=er(),Vd=Vt(),Qi=Hr(),Yd=or();Dd(Hr(),Xe);var zd=or();Object.defineProperty(Xe,"makeNonce",{enumerable:!0,get:function(){return zd.makeNonce}});var Ld;(function(t){t.Received="received",t.Processing="processing",t.Replied="replied",t.Rejected="rejected",t.Unknown="unknown",t.Done="done"})(Ld=Xe.RequestStatusResponseStatus||(Xe.RequestStatusResponseStatus={}));var Fi=5*60*1e3,Jd="308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100814c0e6ec71fab583b08bd81373c255c3c371b2e84863c98a4f1e08b74235d14fb5d9c0cd546d9685f913a0c0b2cc5341583bf4b4392e467db96d65b9bb4cb717112f8472e0d5a4d14505ffd7484b01291091c5f87b98883463f98091a0baaae",Kd="ic0.app",Zd=".ic0.app",qr=class extends Hd.AgentError{constructor(o){super(o);this.message=o}};function Xd(){let t;if(typeof window!="undefined")if(window.fetch)t=window.fetch.bind(window);else throw new qr("Fetch implementation was not available. You appear to be in a browser context, but window.fetch was not present.");else if(typeof global!="undefined")if(global.fetch)t=global.fetch;else throw new qr("Fetch implementation was not available. You appear to be in a Node.js context, but global.fetch was not available.");else typeof self!="undefined"&&self.fetch&&(t=self.fetch);if(t)return t;throw new qr("Fetch implementation was not available. Please provide fetch to the HttpAgent constructor, or ensure it is available in the window or global context.")}var Wr=class{constructor(o={}){if(this.rootKey=Vd.fromHex(Jd),this._pipeline=[],this._rootKeyFetched=!1,o.source){if(!(o.source instanceof Wr))throw new Error("An Agent's source can only be another HttpAgent");this._pipeline=[...o.source._pipeline],this._identity=o.source._identity,this._fetch=o.source._fetch,this._host=o.source._host,this._credentials=o.source._credentials}else this._fetch=o.fetch||Xd()||fetch.bind(global);if(o.host!==void 0)!o.host.match(/^[a-z]+:/)&&typeof window!="undefined"?this._host=new URL(window.location.protocol+"//"+o.host):this._host=new URL(o.host);else if(o.source!==void 0)this._host=o.source._host;else{let r=typeof window!="undefined"?window.location:void 0;if(!r)throw new Error("Must specify a host to connect to.");this._host=new URL(r+"")}if(this._host.hostname.endsWith(Zd)&&(this._host.hostname=Kd),o.credentials){let{name:r,password:n}=o.credentials;this._credentials=`${r}${n?":"+n:""}`}this._identity=Promise.resolve(o.identity||new qd.AnonymousIdentity)}addTransform(o,r=o.priority||0){let n=this._pipeline.findIndex(i=>(i.priority||0)<r);this._pipeline.splice(n>=0?n:this._pipeline.length,0,Object.assign(o,{priority:r}))}async getPrincipal(){return(await this._identity).getPrincipal()}async call(o,r,n){let i=await(n!==void 0?await n:await this._identity),s=po.Principal.from(o),p=r.effectiveCanisterId?po.Principal.from(r.effectiveCanisterId):s,u=i.getPrincipal()||po.Principal.anonymous(),h={request_type:Yd.SubmitRequestType.Call,canister_id:s,method_name:r.methodName,arg:r.arg,sender:u,ingress_expiry:new Qi.Expiry(Fi)},w=await this._transform({request:{body:null,method:"POST",headers:Object.assign({"Content-Type":"application/cbor"},this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{})},endpoint:"call",body:h});w=await i.transformRequest(w);let G=wo.encode(w.body),[T,V]=await Promise.all([this._fetch(""+new URL(`/api/v2/canister/${p.toText()}/call`,this._host),Object.assign(Object.assign({},w.request),{body:G})),Wd.requestIdOf(h)]);if(!T.ok)throw new Error(`Server returned an error:
|
|
12
|
+
<span dir=ltr>`+t+"</span>"};goog.i18n.bidi.enforceLtrInText=function(t){return goog.i18n.bidi.Format.LRE+t+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(t){return t.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(t){return t.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1\u05F4").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1\u05F3")};goog.i18n.bidi.wordSeparatorRe_=/\s+/;goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/;goog.i18n.bidi.rtlDetectionThreshold_=.4;goog.i18n.bidi.estimateDirection=function(t,o){var r=0,i=0,n=!1;for(t=goog.i18n.bidi.stripHtmlIfNeeded_(t,o).split(goog.i18n.bidi.wordSeparatorRe_),o=0;o<t.length;o++){var s=t[o];goog.i18n.bidi.startsWithRtl(s)?(r++,i++):goog.i18n.bidi.isRequiredLtrRe_.test(s)?n=!0:goog.i18n.bidi.hasAnyLtr(s)?i++:goog.i18n.bidi.hasNumeralsRe_.test(s)&&(n=!0)}return i==0?n?goog.i18n.bidi.Dir.LTR:goog.i18n.bidi.Dir.NEUTRAL:r/i>goog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR};goog.i18n.bidi.detectRtlDirectionality=function(t,o){return goog.i18n.bidi.estimateDirection(t,o)==goog.i18n.bidi.Dir.RTL};goog.i18n.bidi.setElementDirAndAlign=function(t,o){t&&(o=goog.i18n.bidi.toDir(o))&&(t.style.textAlign=o==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,t.dir=o==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")};goog.i18n.bidi.setElementDirByTextDirectionality=function(t,o){switch(goog.i18n.bidi.estimateDirection(o)){case goog.i18n.bidi.Dir.LTR:t.dir="ltr";break;case goog.i18n.bidi.Dir.RTL:t.dir="rtl";break;default:t.removeAttribute("dir")}};goog.i18n.bidi.DirectionalString=function(){};goog.html.TrustedResourceUrl=function(){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_="",this.trustedURL_=null,this.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0;goog.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()};goog.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString=!0;goog.html.TrustedResourceUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR};goog.html.TrustedResourceUrl.prototype.cloneWithParams=function(t,o){var r=goog.html.TrustedResourceUrl.unwrap(this);r=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(r);var i=r[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(r[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",r[2]||"",t)+goog.html.TrustedResourceUrl.stringifyParams_("#",i,o))};goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"});goog.html.TrustedResourceUrl.unwrap=function(t){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t).toString()};goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(t){return t instanceof goog.html.TrustedResourceUrl&&t.constructor===goog.html.TrustedResourceUrl&&t.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?t.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+t+"' of type "+goog.typeOf(t)),"type_error:TrustedResourceUrl")};goog.html.TrustedResourceUrl.unwrapTrustedURL=function(t){return t.trustedURL_?t.trustedURL_:goog.html.TrustedResourceUrl.unwrap(t)};goog.html.TrustedResourceUrl.format=function(t,o){var r=goog.string.Const.unwrap(t);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(r))throw Error("Invalid TrustedResourceUrl format: "+r);return t=r.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,function(i,n){if(!Object.prototype.hasOwnProperty.call(o,n))throw Error('Found marker, "'+n+'", in format string, "'+r+'", but no valid label mapping found in args: '+JSON.stringify(o));return i=o[n],i instanceof goog.string.Const?goog.string.Const.unwrap(i):encodeURIComponent(String(i))}),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)};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(t,o,r,i){return goog.html.TrustedResourceUrl.format(t,o).cloneWithParams(r,i)};goog.html.TrustedResourceUrl.fromConstant=function(t){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(t))};goog.html.TrustedResourceUrl.fromConstants=function(t){for(var o="",r=0;r<t.length;r++)o+=goog.string.Const.unwrap(t[r]);return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(o)};goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse=function(t){var o=new goog.html.TrustedResourceUrl;return o.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScriptURL(t):t,goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY&&(o.trustedURL_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createURL(t)),o};goog.html.TrustedResourceUrl.stringifyParams_=function(t,o,r){if(r==null)return o;if(goog.isString(r))return r?t+encodeURIComponent(r):"";for(var i in r){var n=r[i];n=goog.isArray(n)?n:[n];for(var s=0;s<n.length;s++){var p=n[s];p!=null&&(o||(o=t),o+=(o.length>t.length?"&":"")+encodeURIComponent(i)+"="+encodeURIComponent(String(p)))}}return o};goog.string.internal={};goog.string.internal.startsWith=function(t,o){return t.lastIndexOf(o,0)==0};goog.string.internal.endsWith=function(t,o){var r=t.length-o.length;return 0<=r&&t.indexOf(o,r)==r};goog.string.internal.caseInsensitiveStartsWith=function(t,o){return goog.string.internal.caseInsensitiveCompare(o,t.substr(0,o.length))==0};goog.string.internal.caseInsensitiveEndsWith=function(t,o){return goog.string.internal.caseInsensitiveCompare(o,t.substr(t.length-o.length,o.length))==0};goog.string.internal.caseInsensitiveEquals=function(t,o){return t.toLowerCase()==o.toLowerCase()};goog.string.internal.isEmptyOrWhitespace=function(t){return/^[\s\xa0]*$/.test(t)};goog.string.internal.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};goog.string.internal.caseInsensitiveCompare=function(t,o){return t=String(t).toLowerCase(),o=String(o).toLowerCase(),t<o?-1:t==o?0:1};goog.string.internal.newLineToBr=function(t,o){return t.replace(/(\r\n|\r|\n)/g,o?"<br />":"<br>")};goog.string.internal.htmlEscape=function(t,o){if(o)t=t.replace(goog.string.internal.AMP_RE_,"&").replace(goog.string.internal.LT_RE_,"<").replace(goog.string.internal.GT_RE_,">").replace(goog.string.internal.QUOT_RE_,""").replace(goog.string.internal.SINGLE_QUOTE_RE_,"'").replace(goog.string.internal.NULL_RE_,"�");else{if(!goog.string.internal.ALL_RE_.test(t))return t;t.indexOf("&")!=-1&&(t=t.replace(goog.string.internal.AMP_RE_,"&")),t.indexOf("<")!=-1&&(t=t.replace(goog.string.internal.LT_RE_,"<")),t.indexOf(">")!=-1&&(t=t.replace(goog.string.internal.GT_RE_,">")),t.indexOf('"')!=-1&&(t=t.replace(goog.string.internal.QUOT_RE_,""")),t.indexOf("'")!=-1&&(t=t.replace(goog.string.internal.SINGLE_QUOTE_RE_,"'")),t.indexOf("\0")!=-1&&(t=t.replace(goog.string.internal.NULL_RE_,"�"))}return t};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(t,o){return goog.string.internal.newLineToBr(t.replace(/ /g,"  "),o)};goog.string.internal.contains=function(t,o){return t.indexOf(o)!=-1};goog.string.internal.caseInsensitiveContains=function(t,o){return goog.string.internal.contains(t.toLowerCase(),o.toLowerCase())};goog.string.internal.compareVersions=function(t,o){var r=0;t=goog.string.internal.trim(String(t)).split("."),o=goog.string.internal.trim(String(o)).split(".");for(var i=Math.max(t.length,o.length),n=0;r==0&&n<i;n++){var s=t[n]||"",p=o[n]||"";do{if(s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],p=/(\d*)(\D*)(.*)/.exec(p)||["","","",""],s[0].length==0&&p[0].length==0)break;r=s[1].length==0?0:parseInt(s[1],10);var u=p[1].length==0?0:parseInt(p[1],10);r=goog.string.internal.compareElements_(r,u)||goog.string.internal.compareElements_(s[2].length==0,p[2].length==0)||goog.string.internal.compareElements_(s[2],p[2]),s=s[3],p=p[3]}while(r==0)}return r};goog.string.internal.compareElements_=function(t,o){return t<o?-1:t>o?1:0};goog.html.SafeUrl=function(){this.privateDoNotAccessOrElseSafeUrlWrappedValue_="",this.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};goog.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez";goog.html.SafeUrl.prototype.implementsGoogStringTypedString=!0;goog.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()};goog.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0;goog.html.SafeUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR};goog.DEBUG&&(goog.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeUrlWrappedValue_+"}"});goog.html.SafeUrl.unwrap=function(t){return goog.html.SafeUrl.unwrapTrustedURL(t).toString()};goog.html.SafeUrl.unwrapTrustedURL=function(t){return t instanceof goog.html.SafeUrl&&t.constructor===goog.html.SafeUrl&&t.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?t.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+t+"' of type "+goog.typeOf(t)),"type_error:SafeUrl")};goog.html.SafeUrl.fromConstant=function(t){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(t))};goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime))(?:;\w+=(?:\w+|"[\w;=]+"))*$/i;goog.html.SafeUrl.isSafeMimeType=function(t){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(t)};goog.html.SafeUrl.fromBlob=function(t){return t=goog.html.SAFE_MIME_TYPE_PATTERN_.test(t.type)?goog.fs.url.createObjectUrl(t):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.DATA_URL_PATTERN_=/^data:([^,]*);base64,[a-z0-9+\/]+=*$/i;goog.html.SafeUrl.fromDataUrl=function(t){t=t.replace(/(%0A|%0D)/g,"");var o=t.match(goog.html.DATA_URL_PATTERN_);return o=o&&goog.html.SAFE_MIME_TYPE_PATTERN_.test(o[1]),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o?t:goog.html.SafeUrl.INNOCUOUS_STRING)};goog.html.SafeUrl.fromTelUrl=function(t){return goog.string.internal.caseInsensitiveStartsWith(t,"tel:")||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i;goog.html.SafeUrl.fromSipUrl=function(t){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(t))||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeUrl.fromFacebookMessengerUrl=function(t){return goog.string.internal.caseInsensitiveStartsWith(t,"fb-messenger://share")||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeUrl.fromWhatsAppUrl=function(t){return goog.string.internal.caseInsensitiveStartsWith(t,"whatsapp://send")||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeUrl.fromSmsUrl=function(t){return goog.string.internal.caseInsensitiveStartsWith(t,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(t)||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeUrl.isSmsUrlBodyValid_=function(t){var o=t.indexOf("#");if(0<o&&(t=t.substring(0,o)),o=t.match(/[?&]body=/gi),!o)return!0;if(1<o.length)return!1;if(t=t.match(/[?&]body=([^&]*)/)[1],!t)return!0;try{decodeURIComponent(t)}catch{return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(t)};goog.html.SafeUrl.fromSshUrl=function(t){return goog.string.internal.caseInsensitiveStartsWith(t,"ssh://")||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeUrl.sanitizeChromeExtensionUrl=function(t,o){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//,t,o)};goog.html.SafeUrl.sanitizeFirefoxExtensionUrl=function(t,o){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^moz-extension:\/\/([^\/]+)\//,t,o)};goog.html.SafeUrl.sanitizeEdgeExtensionUrl=function(t,o){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^ms-browser-extension:\/\/([^\/]+)\//,t,o)};goog.html.SafeUrl.sanitizeExtensionUrl_=function(t,o,r){return(t=t.exec(o))?(t=t[1],(r instanceof goog.string.Const?[goog.string.Const.unwrap(r)]:r.map(function(i){return goog.string.Const.unwrap(i)})).indexOf(t)==-1&&(o=goog.html.SafeUrl.INNOCUOUS_STRING)):o=goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)};goog.html.SafeUrl.fromTrustedResourceUrl=function(t){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(t))};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(t){return t instanceof goog.html.SafeUrl?t:(t=typeof t=="object"&&t.implementsGoogStringTypedString?t.getTypedStringValue():String(t),goog.html.SAFE_URL_PATTERN_.test(t)||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t))};goog.html.SafeUrl.sanitizeAssertUnchanged=function(t,o){return t instanceof goog.html.SafeUrl?t:(t=typeof t=="object"&&t.implementsGoogStringTypedString?t.getTypedStringValue():String(t),o&&/^data:/i.test(t)&&(o=goog.html.SafeUrl.fromDataUrl(t),o.getTypedStringValue()==t)?o:(goog.asserts.assert(goog.html.SAFE_URL_PATTERN_.test(t),"%s does not match the safe URL pattern",t)||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)))};goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse=function(t){var o=new goog.html.SafeUrl;return o.privateDoNotAccessOrElseSafeUrlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createURL(t):t,o};goog.html.SafeUrl.ABOUT_BLANK=goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank");goog.html.SafeStyle=function(){this.privateDoNotAccessOrElseSafeStyleWrappedValue_="",this.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};goog.html.SafeStyle.prototype.implementsGoogStringTypedString=!0;goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};goog.html.SafeStyle.fromConstant=function(t){return t=goog.string.Const.unwrap(t),t.length===0?goog.html.SafeStyle.EMPTY:(goog.asserts.assert(goog.string.internal.endsWith(t,";"),"Last character of style string is not ';': "+t),goog.asserts.assert(goog.string.internal.contains(t,":"),`Style string must contain at least one ':', to specify a "name: value" pair: `+t),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t))};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(t){return t instanceof goog.html.SafeStyle&&t.constructor===goog.html.SafeStyle&&t.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?t.privateDoNotAccessOrElseSafeStyleWrappedValue_:(goog.asserts.fail("expected object of type SafeStyle, got '"+t+"' of type "+goog.typeOf(t)),"type_error:SafeStyle")};goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse=function(t){return new goog.html.SafeStyle().initSecurityPrivateDoNotAccessOrElse_(t)};goog.html.SafeStyle.prototype.initSecurityPrivateDoNotAccessOrElse_=function(t){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_=t,this};goog.html.SafeStyle.EMPTY=goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse("");goog.html.SafeStyle.INNOCUOUS_STRING="zClosurez";goog.html.SafeStyle.create=function(t){var o="",r;for(r in t){if(!/^[-_a-zA-Z0-9]+$/.test(r))throw Error("Name allows only [-_a-zA-Z0-9], got: "+r);var i=t[r];i!=null&&(i=goog.isArray(i)?goog.array.map(i,goog.html.SafeStyle.sanitizePropertyValue_).join(" "):goog.html.SafeStyle.sanitizePropertyValue_(i),o+=r+":"+i+";")}return o?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(o):goog.html.SafeStyle.EMPTY};goog.html.SafeStyle.sanitizePropertyValue_=function(t){if(t instanceof goog.html.SafeUrl)return'url("'+goog.html.SafeUrl.unwrap(t).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(t=t instanceof goog.string.Const?goog.string.Const.unwrap(t):goog.html.SafeStyle.sanitizePropertyValueString_(String(t)),/[{;}]/.test(t))throw new goog.asserts.AssertionError("Value does not allow [{;}], got: %s.",[t]);return t};goog.html.SafeStyle.sanitizePropertyValueString_=function(t){var o=t.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(o)){if(goog.html.SafeStyle.COMMENT_RE_.test(t))return goog.asserts.fail("String value disallows comments, got: "+t),goog.html.SafeStyle.INNOCUOUS_STRING;if(!goog.html.SafeStyle.hasBalancedQuotes_(t))return goog.asserts.fail("String value requires balanced quotes, got: "+t),goog.html.SafeStyle.INNOCUOUS_STRING;if(!goog.html.SafeStyle.hasBalancedSquareBrackets_(t))return goog.asserts.fail("String value requires balanced square brackets and one identifier per pair of brackets, got: "+t),goog.html.SafeStyle.INNOCUOUS_STRING}else return goog.asserts.fail("String value allows only "+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+" and simple functions, got: "+t),goog.html.SafeStyle.INNOCUOUS_STRING;return goog.html.SafeStyle.sanitizeUrl_(t)};goog.html.SafeStyle.hasBalancedQuotes_=function(t){for(var o=!0,r=!0,i=0;i<t.length;i++){var n=t.charAt(i);n=="'"&&r?o=!o:n=='"'&&o&&(r=!r)}return o&&r};goog.html.SafeStyle.hasBalancedSquareBrackets_=function(t){for(var o=!0,r=/^[-_a-zA-Z0-9]$/,i=0;i<t.length;i++){var n=t.charAt(i);if(n=="]"){if(o)return!1;o=!0}else if(n=="["){if(!o)return!1;o=!1}else if(!o&&!r.test(n))return!1}return o};goog.html.SafeStyle.VALUE_ALLOWED_CHARS_=`[-,."'%_!# a-zA-Z0-9\\[\\]]`;goog.html.SafeStyle.VALUE_RE_=new RegExp("^"+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+"+$");goog.html.SafeStyle.URL_RE_=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g;goog.html.SafeStyle.FUNCTIONS_RE_=/\b(hsl|hsla|rgb|rgba|matrix|calc|minmax|fit-content|repeat|(rotate|scale|translate)(X|Y|Z|3d)?)\([-+*/0-9a-z.%\[\], ]+\)/g;goog.html.SafeStyle.COMMENT_RE_=/\/\*/;goog.html.SafeStyle.sanitizeUrl_=function(t){return t.replace(goog.html.SafeStyle.URL_RE_,function(o,r,i,n){var s="";return i=i.replace(/^(['"])(.*)\1$/,function(p,u,h){return s=u,h}),o=goog.html.SafeUrl.sanitize(i).getTypedStringValue(),r+s+o+s+n})};goog.html.SafeStyle.concat=function(t){var o="",r=function(i){goog.isArray(i)?goog.array.forEach(i,r):o+=goog.html.SafeStyle.unwrap(i)};return goog.array.forEach(arguments,r),o?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(o):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(t,o){if(goog.string.internal.contains(t,"<"))throw Error("Selector does not allow '<', got: "+t);var r=t.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: "+t);if(!goog.html.SafeStyleSheet.hasBalancedBrackets_(r))throw Error("() and [] in selector must be balanced, got: "+t);return o instanceof goog.html.SafeStyle||(o=goog.html.SafeStyle.create(o)),t=t+"{"+goog.html.SafeStyle.unwrap(o).replace(/</g,"\\3C ")+"}",goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeStyleSheet.hasBalancedBrackets_=function(t){for(var o={"(":")","[":"]"},r=[],i=0;i<t.length;i++){var n=t[i];if(o[n])r.push(o[n]);else if(goog.object.contains(o,n)&&r.pop()!=n)return!1}return r.length==0};goog.html.SafeStyleSheet.concat=function(t){var o="",r=function(i){goog.isArray(i)?goog.array.forEach(i,r):o+=goog.html.SafeStyleSheet.unwrap(i)};return goog.array.forEach(arguments,r),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(o)};goog.html.SafeStyleSheet.fromConstant=function(t){return t=goog.string.Const.unwrap(t),t.length===0?goog.html.SafeStyleSheet.EMPTY:(goog.asserts.assert(!goog.string.internal.contains(t,"<"),"Forbidden '<' character in style sheet string: "+t),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t))};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(t){return t instanceof goog.html.SafeStyleSheet&&t.constructor===goog.html.SafeStyleSheet&&t.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?t.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:(goog.asserts.fail("expected object of type SafeStyleSheet, got '"+t+"' of type "+goog.typeOf(t)),"type_error:SafeStyleSheet")};goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse=function(t){return new goog.html.SafeStyleSheet().initSecurityPrivateDoNotAccessOrElse_(t)};goog.html.SafeStyleSheet.prototype.initSecurityPrivateDoNotAccessOrElse_=function(t){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=t,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 t=goog.labs.userAgent.util.getNavigator_();return t&&(t=t.userAgent)?t:""};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(t){goog.labs.userAgent.util.userAgent_=t||goog.labs.userAgent.util.getNativeUserAgentString_()};goog.labs.userAgent.util.getUserAgent=function(){return goog.labs.userAgent.util.userAgent_};goog.labs.userAgent.util.matchUserAgent=function(t){var o=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.contains(o,t)};goog.labs.userAgent.util.matchUserAgentIgnoreCase=function(t){var o=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.caseInsensitiveContains(o,t)};goog.labs.userAgent.util.extractVersionTuples=function(t){for(var o=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,r=[],i;i=o.exec(t);)r.push([i[1],i[2],i[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 t(n){return n=goog.array.find(n,i),r[n]||""}var o=goog.labs.userAgent.util.getUserAgent();if(goog.labs.userAgent.browser.isIE())return goog.labs.userAgent.browser.getIEVersion_(o);o=goog.labs.userAgent.util.extractVersionTuples(o);var r={};goog.array.forEach(o,function(n){r[n[0]]=n[1]});var i=goog.partial(goog.object.containsKey,r);return goog.labs.userAgent.browser.isOpera()?t(["Version","Opera"]):goog.labs.userAgent.browser.isEdge()?t(["Edge"]):goog.labs.userAgent.browser.isEdgeChromium()?t(["Edg"]):goog.labs.userAgent.browser.isChrome()?t(["Chrome","CriOS"]):(o=o[2])&&o[1]||""};goog.labs.userAgent.browser.isVersionOrHigher=function(t){return 0<=goog.string.internal.compareVersions(goog.labs.userAgent.browser.getVersion(),t)};goog.labs.userAgent.browser.getIEVersion_=function(t){var o=/rv: *([\d\.]*)/.exec(t);if(o&&o[1])return o[1];o="";var r=/MSIE +([\d\.]+)/.exec(t);if(r&&r[1])if(t=/Trident\/(\d.\d)/.exec(t),r[1]=="7.0")if(t&&t[1])switch(t[1]){case"4.0":o="8.0";break;case"5.0":o="9.0";break;case"6.0":o="10.0";break;case"7.0":o="11.0"}else o="7.0";else o=r[1];return o};goog.html.SafeHtml=function(){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_="",this.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_,this.dir_=null};goog.html.SafeHtml.prototype.implementsGoogI18nBidiDirectionalString=!0;goog.html.SafeHtml.prototype.getDirection=function(){return this.dir_};goog.html.SafeHtml.prototype.implementsGoogStringTypedString=!0;goog.html.SafeHtml.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()};goog.DEBUG&&(goog.html.SafeHtml.prototype.toString=function(){return"SafeHtml{"+this.privateDoNotAccessOrElseSafeHtmlWrappedValue_+"}"});goog.html.SafeHtml.unwrap=function(t){return goog.html.SafeHtml.unwrapTrustedHTML(t).toString()};goog.html.SafeHtml.unwrapTrustedHTML=function(t){return t instanceof goog.html.SafeHtml&&t.constructor===goog.html.SafeHtml&&t.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?t.privateDoNotAccessOrElseSafeHtmlWrappedValue_:(goog.asserts.fail("expected object of type SafeHtml, got '"+t+"' of type "+goog.typeOf(t)),"type_error:SafeHtml")};goog.html.SafeHtml.htmlEscape=function(t){if(t instanceof goog.html.SafeHtml)return t;var o=typeof t=="object",r=null;return o&&t.implementsGoogI18nBidiDirectionalString&&(r=t.getDirection()),t=o&&t.implementsGoogStringTypedString?t.getTypedStringValue():String(t),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(t),r)};goog.html.SafeHtml.htmlEscapePreservingNewlines=function(t){return t instanceof goog.html.SafeHtml?t:(t=goog.html.SafeHtml.htmlEscape(t),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(goog.html.SafeHtml.unwrap(t)),t.getDirection()))};goog.html.SafeHtml.htmlEscapePreservingNewlinesAndSpaces=function(t){return t instanceof goog.html.SafeHtml?t:(t=goog.html.SafeHtml.htmlEscape(t),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(goog.html.SafeHtml.unwrap(t)),t.getDirection()))};goog.html.SafeHtml.from=goog.html.SafeHtml.htmlEscape;goog.html.SafeHtml.VALID_NAMES_IN_TAG_=/^[a-zA-Z0-9-]+$/;goog.html.SafeHtml.URL_ATTRIBUTES_={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0};goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0};goog.html.SafeHtml.create=function(t,o,r){return goog.html.SafeHtml.verifyTagName(String(t)),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(t),o,r)};goog.html.SafeHtml.verifyTagName=function(t){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(t))throw Error("Invalid tag name <"+t+">.");if(t.toUpperCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error("Tag name <"+t+"> is not allowed for SafeHtml.")};goog.html.SafeHtml.createIframe=function(t,o,r,i){t&&goog.html.TrustedResourceUrl.unwrap(t);var n={};return n.src=t||null,n.srcdoc=o&&goog.html.SafeHtml.unwrap(o),t=goog.html.SafeHtml.combineAttributes(n,{sandbox:""},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",t,i)};goog.html.SafeHtml.createSandboxIframe=function(t,o,r,i){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error("The browser does not support sandboxed iframes.");var n={};return n.src=t?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(t)):null,n.srcdoc=o||null,n.sandbox="",t=goog.html.SafeHtml.combineAttributes(n,{},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",t,i)};goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype};goog.html.SafeHtml.createScriptSrc=function(t,o){return goog.html.TrustedResourceUrl.unwrap(t),t=goog.html.SafeHtml.combineAttributes({src:t},{},o),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",t)};goog.html.SafeHtml.createScript=function(t,o){for(var r in o){var i=r.toLowerCase();if(i=="language"||i=="src"||i=="text"||i=="type")throw Error('Cannot set "'+i+'" attribute')}for(r="",t=goog.array.concat(t),i=0;i<t.length;i++)r+=goog.html.SafeScript.unwrap(t[i]);return t=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",o,t)};goog.html.SafeHtml.createStyle=function(t,o){o=goog.html.SafeHtml.combineAttributes({type:"text/css"},{},o);var r="";t=goog.array.concat(t);for(var i=0;i<t.length;i++)r+=goog.html.SafeStyleSheet.unwrap(t[i]);return t=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style",o,t)};goog.html.SafeHtml.createMetaRefresh=function(t,o){return t=goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(t)),(goog.labs.userAgent.browser.isIE()||goog.labs.userAgent.browser.isEdge())&&goog.string.internal.contains(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta",{"http-equiv":"refresh",content:(o||0)+"; url="+t})};goog.html.SafeHtml.getAttrNameAndValue_=function(t,o,r){if(r instanceof goog.string.Const)r=goog.string.Const.unwrap(r);else if(o.toLowerCase()=="style")r=goog.html.SafeHtml.getStyleValue_(r);else{if(/^on/i.test(o))throw Error('Attribute "'+o+'" requires goog.string.Const value, "'+r+'" given.');if(o.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(goog.isString(r))r=goog.html.SafeUrl.sanitize(r).getTypedStringValue();else throw Error('Attribute "'+o+'" on tag "'+t+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+r+'" given.')}return r.implementsGoogStringTypedString&&(r=r.getTypedStringValue()),goog.asserts.assert(goog.isString(r)||goog.isNumber(r),"String or number value expected, got "+typeof r+" with value: "+r),o+'="'+goog.string.internal.htmlEscape(String(r))+'"'};goog.html.SafeHtml.getStyleValue_=function(t){if(!goog.isObject(t))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof t+" given: "+t);return t instanceof goog.html.SafeStyle||(t=goog.html.SafeStyle.create(t)),goog.html.SafeStyle.unwrap(t)};goog.html.SafeHtml.createWithDir=function(t,o,r,i){return o=goog.html.SafeHtml.create(o,r,i),o.dir_=t,o};goog.html.SafeHtml.join=function(t,o){t=goog.html.SafeHtml.htmlEscape(t);var r=t.getDirection(),i=[],n=function(s){goog.isArray(s)?goog.array.forEach(s,n):(s=goog.html.SafeHtml.htmlEscape(s),i.push(goog.html.SafeHtml.unwrap(s)),s=s.getDirection(),r==goog.i18n.bidi.Dir.NEUTRAL?r=s:s!=goog.i18n.bidi.Dir.NEUTRAL&&r!=s&&(r=null))};return goog.array.forEach(o,n),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(i.join(goog.html.SafeHtml.unwrap(t)),r)};goog.html.SafeHtml.concat=function(t){return goog.html.SafeHtml.join(goog.html.SafeHtml.EMPTY,Array.prototype.slice.call(arguments))};goog.html.SafeHtml.concatWithDir=function(t,o){var r=goog.html.SafeHtml.concat(goog.array.slice(arguments,1));return r.dir_=t,r};goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse=function(t,o){return new goog.html.SafeHtml().initSecurityPrivateDoNotAccessOrElse_(t,o)};goog.html.SafeHtml.prototype.initSecurityPrivateDoNotAccessOrElse_=function(t,o){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createHTML(t):t,this.dir_=o,this};goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse=function(t,o,r){var i=null,n="<"+t+goog.html.SafeHtml.stringifyAttributes(t,o);return goog.isDefAndNotNull(r)?goog.isArray(r)||(r=[r]):r=[],goog.dom.tags.isVoidTag(t.toLowerCase())?(goog.asserts.assert(!r.length,"Void tag <"+t+"> does not allow content."),n+=">"):(i=goog.html.SafeHtml.concat(r),n+=">"+goog.html.SafeHtml.unwrap(i)+"</"+t+">",i=i.getDirection()),(t=o&&o.dir)&&(i=/^(ltr|rtl|auto)$/i.test(t)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(n,i)};goog.html.SafeHtml.stringifyAttributes=function(t,o){var r="";if(o)for(var i in o){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(i))throw Error('Invalid attribute name "'+i+'".');var n=o[i];goog.isDefAndNotNull(n)&&(r+=" "+goog.html.SafeHtml.getAttrNameAndValue_(t,i,n))}return r};goog.html.SafeHtml.combineAttributes=function(t,o,r){var i={},n;for(n in t)goog.asserts.assert(n.toLowerCase()==n,"Must be lower case"),i[n]=t[n];for(n in o)goog.asserts.assert(n.toLowerCase()==n,"Must be lower case"),i[n]=o[n];for(n in r){var s=n.toLowerCase();if(s in t)throw Error('Cannot override "'+s+'" attribute, got "'+n+'" with value "'+r[n]+'"');s in o&&delete i[s],i[n]=r[n]}return i};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(t,o,r){return goog.asserts.assertString(goog.string.Const.unwrap(t),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(t)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(o,r||null)};goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(t,o){return goog.asserts.assertString(goog.string.Const.unwrap(t),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(t)),"must provide non-empty justification"),goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(o)};goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(t,o){return goog.asserts.assertString(goog.string.Const.unwrap(t),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(t)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(o)};goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(t,o){return goog.asserts.assertString(goog.string.Const.unwrap(t),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(t)),"must provide non-empty justification"),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(o)};goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(t,o){return goog.asserts.assertString(goog.string.Const.unwrap(t),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(t)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)};goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(t,o){return goog.asserts.assertString(goog.string.Const.unwrap(t),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(t)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(o)};goog.dom.safe={};goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"};goog.dom.safe.insertAdjacentHtml=function(t,o,r){t.insertAdjacentHTML(o,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=="undefined")return!1;var t=document.createElement("div"),o=document.createElement("div");return o.appendChild(document.createElement("div")),t.appendChild(o),goog.DEBUG&&!t.firstChild?!1:(o=t.firstChild.firstChild,t.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(goog.html.SafeHtml.EMPTY),!o.parentElement)});goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(t,o){if(goog.dom.safe.isInnerHtmlCleanupRecursive_())for(;t.lastChild;)t.removeChild(t.lastChild);t.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(o)};goog.dom.safe.setInnerHtml=function(t,o){if(goog.asserts.ENABLE_ASSERTS){var r=t.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 "+t.tagName+".")}goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(t,o)};goog.dom.safe.setOuterHtml=function(t,o){t.outerHTML=goog.html.SafeHtml.unwrapTrustedHTML(o)};goog.dom.safe.setFormElementAction=function(t,o){o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),goog.dom.asserts.assertIsHTMLFormElement(t).action=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setButtonFormAction=function(t,o){o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),goog.dom.asserts.assertIsHTMLButtonElement(t).formAction=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setInputFormAction=function(t,o){o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),goog.dom.asserts.assertIsHTMLInputElement(t).formAction=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setStyle=function(t,o){t.style.cssText=goog.html.SafeStyle.unwrap(o)};goog.dom.safe.documentWrite=function(t,o){t.write(goog.html.SafeHtml.unwrapTrustedHTML(o))};goog.dom.safe.setAnchorHref=function(t,o){goog.dom.asserts.assertIsHTMLAnchorElement(t),o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),t.href=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setImageSrc=function(t,o){if(goog.dom.asserts.assertIsHTMLImageElement(t),!(o instanceof goog.html.SafeUrl)){var r=/^data:image\//i.test(o);o=goog.html.SafeUrl.sanitizeAssertUnchanged(o,r)}t.src=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setAudioSrc=function(t,o){if(goog.dom.asserts.assertIsHTMLAudioElement(t),!(o instanceof goog.html.SafeUrl)){var r=/^data:audio\//i.test(o);o=goog.html.SafeUrl.sanitizeAssertUnchanged(o,r)}t.src=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setVideoSrc=function(t,o){if(goog.dom.asserts.assertIsHTMLVideoElement(t),!(o instanceof goog.html.SafeUrl)){var r=/^data:video\//i.test(o);o=goog.html.SafeUrl.sanitizeAssertUnchanged(o,r)}t.src=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setEmbedSrc=function(t,o){goog.dom.asserts.assertIsHTMLEmbedElement(t),t.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(o)};goog.dom.safe.setFrameSrc=function(t,o){goog.dom.asserts.assertIsHTMLFrameElement(t),t.src=goog.html.TrustedResourceUrl.unwrapTrustedURL(o)};goog.dom.safe.setIframeSrc=function(t,o){goog.dom.asserts.assertIsHTMLIFrameElement(t),t.src=goog.html.TrustedResourceUrl.unwrapTrustedURL(o)};goog.dom.safe.setIframeSrcdoc=function(t,o){goog.dom.asserts.assertIsHTMLIFrameElement(t),t.srcdoc=goog.html.SafeHtml.unwrapTrustedHTML(o)};goog.dom.safe.setLinkHrefAndRel=function(t,o,r){goog.dom.asserts.assertIsHTMLLinkElement(t),t.rel=r,goog.string.internal.caseInsensitiveContains(r,"stylesheet")?(goog.asserts.assert(o instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),t.href=goog.html.TrustedResourceUrl.unwrapTrustedURL(o)):t.href=o instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrapTrustedURL(o):o instanceof goog.html.SafeUrl?goog.html.SafeUrl.unwrapTrustedURL(o):goog.html.SafeUrl.unwrapTrustedURL(goog.html.SafeUrl.sanitizeAssertUnchanged(o))};goog.dom.safe.setObjectData=function(t,o){goog.dom.asserts.assertIsHTMLObjectElement(t),t.data=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(o)};goog.dom.safe.setScriptSrc=function(t,o){goog.dom.asserts.assertIsHTMLScriptElement(t),t.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(o),(o=goog.getScriptNonce())&&t.setAttribute("nonce",o)};goog.dom.safe.setScriptContent=function(t,o){goog.dom.asserts.assertIsHTMLScriptElement(t),t.text=goog.html.SafeScript.unwrapTrustedScript(o),(o=goog.getScriptNonce())&&t.setAttribute("nonce",o)};goog.dom.safe.setLocationHref=function(t,o){goog.dom.asserts.assertIsLocation(t),o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),t.href=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.assignLocation=function(t,o){goog.dom.asserts.assertIsLocation(t),o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),t.assign(goog.html.SafeUrl.unwrapTrustedURL(o))};goog.dom.safe.replaceLocation=function(t,o){goog.dom.asserts.assertIsLocation(t),o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),t.replace(goog.html.SafeUrl.unwrapTrustedURL(o))};goog.dom.safe.openInWindow=function(t,o,r,i,n){return t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),(o||goog.global).open(goog.html.SafeUrl.unwrapTrustedURL(t),r?goog.string.Const.unwrap(r):"",i,n)};goog.dom.safe.parseFromStringHtml=function(t,o){return goog.dom.safe.parseFromString(t,o,"text/html")};goog.dom.safe.parseFromString=function(t,o,r){return t.parseFromString(goog.html.SafeHtml.unwrapTrustedHTML(o),r)};goog.dom.safe.createImageFromBlob=function(t){if(!/^image\/.*/g.test(t.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var o=goog.global.URL.createObjectURL(t);return t=new goog.global.Image,t.onload=function(){goog.global.URL.revokeObjectURL(o)},goog.dom.safe.setImageSrc(t,goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Image blob URL."),o)),t};goog.string.DETECT_DOUBLE_ESCAPING=!1;goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1;goog.string.Unicode={NBSP:"\xA0"};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(t,o){for(var r=t.split("%s"),i="",n=Array.prototype.slice.call(arguments,1);n.length&&1<r.length;)i+=r.shift()+n.shift();return i+r.join("%s")};goog.string.collapseWhitespace=function(t){return t.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};goog.string.isEmptyOrWhitespace=goog.string.internal.isEmptyOrWhitespace;goog.string.isEmptyString=function(t){return t.length==0};goog.string.isEmpty=goog.string.isEmptyOrWhitespace;goog.string.isEmptyOrWhitespaceSafe=function(t){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(t))};goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe;goog.string.isBreakingWhitespace=function(t){return!/[^\t\n\r ]/.test(t)};goog.string.isAlpha=function(t){return!/[^a-zA-Z]/.test(t)};goog.string.isNumeric=function(t){return!/[^0-9]/.test(t)};goog.string.isAlphaNumeric=function(t){return!/[^a-zA-Z0-9]/.test(t)};goog.string.isSpace=function(t){return t==" "};goog.string.isUnicodeChar=function(t){return t.length==1&&" "<=t&&"~">=t||"\x80"<=t&&"\uFFFD">=t};goog.string.stripNewlines=function(t){return t.replace(/(\r\n|\r|\n)+/g," ")};goog.string.canonicalizeNewlines=function(t){return t.replace(/(\r\n|\r|\n)/g,`
|
|
13
|
+
`)};goog.string.normalizeWhitespace=function(t){return t.replace(/\xa0|\s/g," ")};goog.string.normalizeSpaces=function(t){return t.replace(/\xa0|[ \t]+/g," ")};goog.string.collapseBreakingSpaces=function(t){return t.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};goog.string.trim=goog.string.internal.trim;goog.string.trimLeft=function(t){return t.replace(/^[\s\xa0]+/,"")};goog.string.trimRight=function(t){return t.replace(/[\s\xa0]+$/,"")};goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare;goog.string.numberAwareCompare_=function(t,o,r){if(t==o)return 0;if(!t)return-1;if(!o)return 1;for(var i=t.toLowerCase().match(r),n=o.toLowerCase().match(r),s=Math.min(i.length,n.length),p=0;p<s;p++){r=i[p];var u=n[p];if(r!=u)return t=parseInt(r,10),!isNaN(t)&&(o=parseInt(u,10),!isNaN(o)&&t-o)?t-o:r<u?-1:1}return i.length!=n.length?i.length-n.length:t<o?-1:1};goog.string.intAwareCompare=function(t,o){return goog.string.numberAwareCompare_(t,o,/\d+|\D+/g)};goog.string.floatAwareCompare=function(t,o){return goog.string.numberAwareCompare_(t,o,/\d+|\.\d+|\D+/g)};goog.string.numerateCompare=goog.string.floatAwareCompare;goog.string.urlEncode=function(t){return encodeURIComponent(String(t))};goog.string.urlDecode=function(t){return decodeURIComponent(t.replace(/\+/g," "))};goog.string.newLineToBr=goog.string.internal.newLineToBr;goog.string.htmlEscape=function(t,o){return t=goog.string.internal.htmlEscape(t,o),goog.string.DETECT_DOUBLE_ESCAPING&&(t=t.replace(goog.string.E_RE_,"e")),t};goog.string.E_RE_=/e/g;goog.string.unescapeEntities=function(t){return goog.string.contains(t,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(t):goog.string.unescapePureXmlEntities_(t):t};goog.string.unescapeEntitiesWithDocument=function(t,o){return goog.string.contains(t,"&")?goog.string.unescapeEntitiesUsingDom_(t,o):t};goog.string.unescapeEntitiesUsingDom_=function(t,o){var r={"&":"&","<":"<",">":">",""":'"'},i=o?o.createElement("div"):goog.global.document.createElement("div");return t.replace(goog.string.HTML_ENTITY_PATTERN_,function(n,s){var p=r[n];return p||(s.charAt(0)=="#"&&(s=Number("0"+s.substr(1)),isNaN(s)||(p=String.fromCharCode(s))),p||(goog.dom.safe.setInnerHtml(i,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),n+" ")),p=i.firstChild.nodeValue.slice(0,-1)),r[n]=p)})};goog.string.unescapePureXmlEntities_=function(t){return t.replace(/&([^;]+);/g,function(o,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))?o:String.fromCharCode(r)}})};goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g;goog.string.whitespaceEscape=function(t,o){return goog.string.newLineToBr(t.replace(/ /g,"  "),o)};goog.string.preserveSpaces=function(t){return t.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)};goog.string.stripQuotes=function(t,o){for(var r=o.length,i=0;i<r;i++){var n=r==1?o:o.charAt(i);if(t.charAt(0)==n&&t.charAt(t.length-1)==n)return t.substring(1,t.length-1)}return t};goog.string.truncate=function(t,o,r){return r&&(t=goog.string.unescapeEntities(t)),t.length>o&&(t=t.substring(0,o-3)+"..."),r&&(t=goog.string.htmlEscape(t)),t};goog.string.truncateMiddle=function(t,o,r,i){if(r&&(t=goog.string.unescapeEntities(t)),i&&t.length>o){i>o&&(i=o);var n=t.length-i;t=t.substring(0,o-i)+"..."+t.substring(n)}else t.length>o&&(i=Math.floor(o/2),n=t.length-i,t=t.substring(0,i+o%2)+"..."+t.substring(n));return r&&(t=goog.string.htmlEscape(t)),t};goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"};goog.string.jsEscapeCache_={"'":"\\'"};goog.string.quote=function(t){t=String(t);for(var o=['"'],r=0;r<t.length;r++){var i=t.charAt(r),n=i.charCodeAt(0);o[r+1]=goog.string.specialEscapeChars_[i]||(31<n&&127>n?i:goog.string.escapeChar(i))}return o.push('"'),o.join("")};goog.string.escapeString=function(t){for(var o=[],r=0;r<t.length;r++)o[r]=goog.string.escapeChar(t.charAt(r));return o.join("")};goog.string.escapeChar=function(t){if(t in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[t];if(t in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[t]=goog.string.specialEscapeChars_[t];var o=t.charCodeAt(0);if(31<o&&127>o)var r=t;else 256>o?(r="\\x",(16>o||256<o)&&(r+="0")):(r="\\u",4096>o&&(r+="0")),r+=o.toString(16).toUpperCase();return goog.string.jsEscapeCache_[t]=r};goog.string.contains=goog.string.internal.contains;goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains;goog.string.countOf=function(t,o){return t&&o?t.split(o).length-1:0};goog.string.removeAt=function(t,o,r){var i=t;return 0<=o&&o<t.length&&0<r&&(i=t.substr(0,o)+t.substr(o+r,t.length-o-r)),i};goog.string.remove=function(t,o){return t.replace(o,"")};goog.string.removeAll=function(t,o){return o=new RegExp(goog.string.regExpEscape(o),"g"),t.replace(o,"")};goog.string.replaceAll=function(t,o,r){return o=new RegExp(goog.string.regExpEscape(o),"g"),t.replace(o,r.replace(/\$/g,"$$$$"))};goog.string.regExpEscape=function(t){return String(t).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};goog.string.repeat=String.prototype.repeat?function(t,o){return t.repeat(o)}:function(t,o){return Array(o+1).join(t)};goog.string.padNumber=function(t,o,r){return t=goog.isDef(r)?t.toFixed(r):String(t),r=t.indexOf("."),r==-1&&(r=t.length),goog.string.repeat("0",Math.max(0,o-r))+t};goog.string.makeSafe=function(t){return t==null?"":String(t)};goog.string.buildString=function(t){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(t){for(var o=0,r=0;r<t.length;++r)o=31*o+t.charCodeAt(r)>>>0;return o};goog.string.uniqueStringCounter_=2147483648*Math.random()|0;goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++};goog.string.toNumber=function(t){var o=Number(t);return o==0&&goog.string.isEmptyOrWhitespace(t)?NaN:o};goog.string.isLowerCamelCase=function(t){return/^[a-z]+([A-Z][a-z]*)*$/.test(t)};goog.string.isUpperCamelCase=function(t){return/^([A-Z][a-z]*)+$/.test(t)};goog.string.toCamelCase=function(t){return String(t).replace(/\-([a-z])/g,function(o,r){return r.toUpperCase()})};goog.string.toSelectorCase=function(t){return String(t).replace(/([A-Z])/g,"-$1").toLowerCase()};goog.string.toTitleCase=function(t,o){return o=goog.isString(o)?goog.string.regExpEscape(o):"\\s",t.replace(new RegExp("(^"+(o?"|["+o+"]+":"")+")([a-z])","g"),function(r,i,n){return i+n.toUpperCase()})};goog.string.capitalize=function(t){return String(t.charAt(0)).toUpperCase()+String(t.substr(1)).toLowerCase()};goog.string.parseInt=function(t){return isFinite(t)&&(t=String(t)),goog.isString(t)?/^\s*-?0x/i.test(t)?parseInt(t,16):parseInt(t,10):NaN};goog.string.splitLimit=function(t,o,r){t=t.split(o);for(var i=[];0<r&&t.length;)i.push(t.shift()),r--;return t.length&&i.push(t.join(o)),i};goog.string.lastComponent=function(t,o){if(o)typeof o=="string"&&(o=[o]);else return t;for(var r=-1,i=0;i<o.length;i++)if(o[i]!=""){var n=t.lastIndexOf(o[i]);n>r&&(r=n)}return r==-1?t:t.slice(r+1)};goog.string.editDistance=function(t,o){var r=[],i=[];if(t==o)return 0;if(!t.length||!o.length)return Math.max(t.length,o.length);for(var n=0;n<o.length+1;n++)r[n]=n;for(n=0;n<t.length;n++){i[0]=n+1;for(var s=0;s<o.length;s++)i[s+1]=Math.min(i[s]+1,r[s+1]+1,r[s]+Number(t[n]!=o[s]));for(s=0;s<r.length;s++)r[s]=i[s]}return i[o.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 t=goog.labs.userAgent.util.getUserAgent();if(t){t=goog.labs.userAgent.util.extractVersionTuples(t);var o=goog.labs.userAgent.engine.getEngineTuple_(t);if(o)return o[0]=="Gecko"?goog.labs.userAgent.engine.getVersionForKey_(t,"Firefox"):o[1];t=t[0];var r;if(t&&(r=t[2])&&(r=/Trident\/([^\s;]+)/.exec(r)))return r[1]}return""};goog.labs.userAgent.engine.getEngineTuple_=function(t){if(!goog.labs.userAgent.engine.isEdge())return t[1];for(var o=0;o<t.length;o++){var r=t[o];if(r[0]=="Edge")return r}};goog.labs.userAgent.engine.isVersionOrHigher=function(t){return 0<=goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(),t)};goog.labs.userAgent.engine.getVersionForKey_=function(t,o){return(t=goog.array.find(t,function(r){return o==r[0]}))&&t[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.isGo2Phone=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("GAFP")};goog.labs.userAgent.platform.getVersion=function(){var t=goog.labs.userAgent.util.getUserAgent(),o="";return goog.labs.userAgent.platform.isWindows()?(o=/Windows (?:NT|Phone) ([0-9.]+)/,o=(t=o.exec(t))?t[1]:"0.0"):goog.labs.userAgent.platform.isIos()?(o=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,o=(t=o.exec(t))&&t[1].replace(/_/g,".")):goog.labs.userAgent.platform.isMacintosh()?(o=/Mac OS X ([0-9_.]+)/,o=(t=o.exec(t))?t[1].replace(/_/g,"."):"10"):goog.labs.userAgent.platform.isKaiOS()?(o=/(?:KaiOS)\/(\S+)/i,o=(t=o.exec(t))&&t[1]):goog.labs.userAgent.platform.isAndroid()?(o=/Android\s+([^\);]+)(\)|;)/,o=(t=o.exec(t))&&t[1]):goog.labs.userAgent.platform.isChromeOS()&&(o=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,o=(t=o.exec(t))&&t[1]),o||""};goog.labs.userAgent.platform.isVersionOrHigher=function(t){return 0<=goog.string.compareVersions(goog.labs.userAgent.platform.getVersion(),t)};goog.reflect={};goog.reflect.object=function(t,o){return o};goog.reflect.objectProperty=function(t,o){return t};goog.reflect.sinkValue=function(t){return goog.reflect.sinkValue[" "](t),t};goog.reflect.sinkValue[" "]=goog.nullFunction;goog.reflect.canAccessProperty=function(t,o){try{return goog.reflect.sinkValue(t[o]),!0}catch{}return!1};goog.reflect.cache=function(t,o,r,i){return i=i?i(o):o,Object.prototype.hasOwnProperty.call(t,i)?t[i]:t[i]=r(o)};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 t=goog.userAgent.getNavigatorTyped();return t&&t.platform||""};goog.userAgent.PLATFORM=goog.userAgent.determinePlatform_();goog.userAgent.ASSUME_MAC=!1;goog.userAgent.ASSUME_WINDOWS=!1;goog.userAgent.ASSUME_LINUX=!1;goog.userAgent.ASSUME_X11=!1;goog.userAgent.ASSUME_ANDROID=!1;goog.userAgent.ASSUME_IPHONE=!1;goog.userAgent.ASSUME_IPAD=!1;goog.userAgent.ASSUME_IPOD=!1;goog.userAgent.ASSUME_KAIOS=!1;goog.userAgent.ASSUME_GO2PHONE=!1;goog.userAgent.PLATFORM_KNOWN_=goog.userAgent.ASSUME_MAC||goog.userAgent.ASSUME_WINDOWS||goog.userAgent.ASSUME_LINUX||goog.userAgent.ASSUME_X11||goog.userAgent.ASSUME_ANDROID||goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD;goog.userAgent.MAC=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_MAC:goog.labs.userAgent.platform.isMacintosh();goog.userAgent.WINDOWS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_WINDOWS:goog.labs.userAgent.platform.isWindows();goog.userAgent.isLegacyLinux_=function(){return goog.labs.userAgent.platform.isLinux()||goog.labs.userAgent.platform.isChromeOS()};goog.userAgent.LINUX=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_LINUX:goog.userAgent.isLegacyLinux_();goog.userAgent.isX11_=function(){var t=goog.userAgent.getNavigatorTyped();return!!t&&goog.string.contains(t.appVersion||"","X11")};goog.userAgent.X11=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_X11:goog.userAgent.isX11_();goog.userAgent.ANDROID=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_ANDROID:goog.labs.userAgent.platform.isAndroid();goog.userAgent.IPHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE:goog.labs.userAgent.platform.isIphone();goog.userAgent.IPAD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad();goog.userAgent.IPOD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIpod();goog.userAgent.IOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIos();goog.userAgent.KAIOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_KAIOS:goog.labs.userAgent.platform.isKaiOS();goog.userAgent.GO2PHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_GO2PHONE:goog.labs.userAgent.platform.isGo2Phone();goog.userAgent.determineVersion_=function(){var t="",o=goog.userAgent.getVersionRegexResult_();return o&&(t=o?o[1]:""),goog.userAgent.IE&&(o=goog.userAgent.getDocumentMode_(),o!=null&&o>parseFloat(t))?String(o):t};goog.userAgent.getVersionRegexResult_=function(){var t=goog.userAgent.getUserAgentString();if(goog.userAgent.GECKO)return/rv:([^\);]+)(\)|;)/.exec(t);if(goog.userAgent.EDGE)return/Edge\/([\d\.]+)/.exec(t);if(goog.userAgent.IE)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t);if(goog.userAgent.WEBKIT)return/WebKit\/(\S+)/.exec(t);if(goog.userAgent.OPERA)return/(?:Version)[ \/]?(\S+)/.exec(t)};goog.userAgent.getDocumentMode_=function(){var t=goog.global.document;return t?t.documentMode:void 0};goog.userAgent.VERSION=goog.userAgent.determineVersion_();goog.userAgent.compare=function(t,o){return goog.string.compareVersions(t,o)};goog.userAgent.isVersionOrHigherCache_={};goog.userAgent.isVersionOrHigher=function(t){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,t,function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,t)})};goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher;goog.userAgent.isDocumentModeOrHigher=function(t){return Number(goog.userAgent.DOCUMENT_MODE)>=t};goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher;goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE)return goog.userAgent.getDocumentMode_()}();goog.userAgent.product={};goog.userAgent.product.ASSUME_FIREFOX=!1;goog.userAgent.product.ASSUME_IPHONE=!1;goog.userAgent.product.ASSUME_IPAD=!1;goog.userAgent.product.ASSUME_ANDROID=!1;goog.userAgent.product.ASSUME_CHROME=!1;goog.userAgent.product.ASSUME_SAFARI=!1;goog.userAgent.product.PRODUCT_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_OPERA||goog.userAgent.product.ASSUME_FIREFOX||goog.userAgent.product.ASSUME_IPHONE||goog.userAgent.product.ASSUME_IPAD||goog.userAgent.product.ASSUME_ANDROID||goog.userAgent.product.ASSUME_CHROME||goog.userAgent.product.ASSUME_SAFARI;goog.userAgent.product.OPERA=goog.userAgent.OPERA;goog.userAgent.product.IE=goog.userAgent.IE;goog.userAgent.product.EDGE=goog.userAgent.EDGE;goog.userAgent.product.FIREFOX=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_FIREFOX:goog.labs.userAgent.browser.isFirefox();goog.userAgent.product.isIphoneOrIpod_=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpod()};goog.userAgent.product.IPHONE=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPHONE:goog.userAgent.product.isIphoneOrIpod_();goog.userAgent.product.IPAD=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad();goog.userAgent.product.ANDROID=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_ANDROID:goog.labs.userAgent.browser.isAndroidBrowser();goog.userAgent.product.CHROME=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_CHROME:goog.labs.userAgent.browser.isChrome();goog.userAgent.product.isSafariDesktop_=function(){return goog.labs.userAgent.browser.isSafari()&&!goog.labs.userAgent.platform.isIos()};goog.userAgent.product.SAFARI=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_SAFARI:goog.userAgent.product.isSafariDesktop_();goog.crypt.base64={};goog.crypt.base64.DEFAULT_ALPHABET_COMMON_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";goog.crypt.base64.ENCODED_VALS=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"+/=";goog.crypt.base64.ENCODED_VALS_WEBSAFE=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"-_.";goog.crypt.base64.Alphabet={DEFAULT:0,NO_PADDING:1,WEBSAFE:2,WEBSAFE_DOT_PADDING:3,WEBSAFE_NO_PADDING:4};goog.crypt.base64.paddingChars_="=.";goog.crypt.base64.isPadding_=function(t){return goog.string.contains(goog.crypt.base64.paddingChars_,t)};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(t,o){goog.asserts.assert(goog.isArrayLike(t),"encodeByteArray takes an array as a parameter"),o===void 0&&(o=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),o=goog.crypt.base64.byteToCharMaps_[o];for(var r=[],i=0;i<t.length;i+=3){var n=t[i],s=i+1<t.length,p=s?t[i+1]:0,u=i+2<t.length,h=u?t[i+2]:0,w=n>>2;n=(n&3)<<4|p>>4,p=(p&15)<<2|h>>6,h&=63,u||(h=64,s||(p=64)),r.push(o[w],o[n],o[p]||"",o[h]||"")}return r.join("")};goog.crypt.base64.encodeString=function(t,o){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!o?goog.global.btoa(t):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(t),o)};goog.crypt.base64.decodeString=function(t,o){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!o)return goog.global.atob(t);var r="";return goog.crypt.base64.decodeStringInternal_(t,function(i){r+=String.fromCharCode(i)}),r};goog.crypt.base64.decodeStringToByteArray=function(t,o){var r=[];return goog.crypt.base64.decodeStringInternal_(t,function(i){r.push(i)}),r};goog.crypt.base64.decodeStringToUint8Array=function(t){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var o=t.length,r=3*o/4;r%3?r=Math.floor(r):goog.crypt.base64.isPadding_(t[o-1])&&(r=goog.crypt.base64.isPadding_(t[o-2])?r-2:r-1);var i=new Uint8Array(r),n=0;return goog.crypt.base64.decodeStringInternal_(t,function(s){i[n++]=s}),i.subarray(0,n)};goog.crypt.base64.decodeStringInternal_=function(t,o){function r(h){for(;i<t.length;){var w=t.charAt(i++),G=goog.crypt.base64.charToByteMap_[w];if(G!=null)return G;if(!goog.string.isEmptyOrWhitespace(w))throw Error("Unknown base64 encoding at char: "+w)}return h}goog.crypt.base64.init_();for(var i=0;;){var n=r(-1),s=r(0),p=r(64),u=r(64);if(u===64&&n===-1)break;o(n<<2|s>>4),p!=64&&(o(s<<4&240|p>>2),u!=64&&o(p<<6&192|u))}};goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var t=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),o=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var i=t.concat(o[r].split(""));goog.crypt.base64.byteToCharMaps_[r]=i;for(var n=0;n<i.length;n++){var s=i[n],p=goog.crypt.base64.charToByteMap_[s];p===void 0?goog.crypt.base64.charToByteMap_[s]=n:goog.asserts.assert(p===n)}}}};jspb.utils={};jspb.utils.split64Low=0;jspb.utils.split64High=0;jspb.utils.splitUint64=function(t){var o=t>>>0;t=Math.floor((t-o)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=o,jspb.utils.split64High=t};jspb.utils.splitInt64=function(t){var o=0>t;t=Math.abs(t);var r=t>>>0;t=Math.floor((t-r)/jspb.BinaryConstants.TWO_TO_32),t>>>=0,o&&(t=~t>>>0,r=(~r>>>0)+1,4294967295<r&&(r=0,t++,4294967295<t&&(t=0))),jspb.utils.split64Low=r,jspb.utils.split64High=t};jspb.utils.splitZigzag64=function(t){var o=0>t;t=2*Math.abs(t),jspb.utils.splitUint64(t),t=jspb.utils.split64Low;var r=jspb.utils.split64High;o&&(t==0?r==0?r=t=4294967295:(r--,t=4294967295):t--),jspb.utils.split64Low=t,jspb.utils.split64High=r};jspb.utils.splitFloat32=function(t){var o=0>t?1:0;if(t=o?-t:t,t===0)0<1/t?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(t))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(t>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(o<<31|2139095040)>>>0;else if(t<jspb.BinaryConstants.FLOAT32_MIN)t=Math.round(t/Math.pow(2,-149)),jspb.utils.split64High=0,jspb.utils.split64Low=(o<<31|t)>>>0;else{var r=Math.floor(Math.log(t)/Math.LN2);t*=Math.pow(2,-r),t=Math.round(t*jspb.BinaryConstants.TWO_TO_23),16777216<=t&&++r,jspb.utils.split64High=0,jspb.utils.split64Low=(o<<31|r+127<<23|t&8388607)>>>0}};jspb.utils.splitFloat64=function(t){var o=0>t?1:0;if(t=o?-t:t,t===0)jspb.utils.split64High=0<1/t?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(t))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(t>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(o<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(t<jspb.BinaryConstants.FLOAT64_MIN){var r=t/Math.pow(2,-1074);t=r/jspb.BinaryConstants.TWO_TO_32,jspb.utils.split64High=(o<<31|t)>>>0,jspb.utils.split64Low=r>>>0}else{r=t;var i=0;if(2<=r)for(;2<=r&&1023>i;)i++,r/=2;else for(;1>r&&-1022<i;)r*=2,i--;r=t*Math.pow(2,-i),t=r*jspb.BinaryConstants.TWO_TO_20&1048575,r=r*jspb.BinaryConstants.TWO_TO_52>>>0,jspb.utils.split64High=(o<<31|i+1023<<20|t)>>>0,jspb.utils.split64Low=r}};jspb.utils.splitHash64=function(t){var o=t.charCodeAt(0),r=t.charCodeAt(1),i=t.charCodeAt(2),n=t.charCodeAt(3),s=t.charCodeAt(4),p=t.charCodeAt(5),u=t.charCodeAt(6);t=t.charCodeAt(7),jspb.utils.split64Low=o+(r<<8)+(i<<16)+(n<<24)>>>0,jspb.utils.split64High=s+(p<<8)+(u<<16)+(t<<24)>>>0};jspb.utils.joinUint64=function(t,o){return o*jspb.BinaryConstants.TWO_TO_32+(t>>>0)};jspb.utils.joinInt64=function(t,o){var r=o&2147483648;return r&&(t=~t+1>>>0,o=~o>>>0,t==0&&(o=o+1>>>0)),t=jspb.utils.joinUint64(t,o),r?-t:t};jspb.utils.toZigzag64=function(t,o,r){var i=o>>31;return r(t<<1^i,(o<<1|t>>>31)^i)};jspb.utils.joinZigzag64=function(t,o){return jspb.utils.fromZigzag64(t,o,jspb.utils.joinInt64)};jspb.utils.fromZigzag64=function(t,o,r){var i=-(t&1);return r((t>>>1|o<<31)^i,o>>>1^i)};jspb.utils.joinFloat32=function(t,o){o=2*(t>>31)+1;var r=t>>>23&255;return t&=8388607,r==255?t?NaN:1/0*o:r==0?o*Math.pow(2,-149)*t:o*Math.pow(2,r-150)*(t+Math.pow(2,23))};jspb.utils.joinFloat64=function(t,o){var r=2*(o>>31)+1,i=o>>>20&2047;return t=jspb.BinaryConstants.TWO_TO_32*(o&1048575)+t,i==2047?t?NaN:1/0*r:i==0?r*Math.pow(2,-1074)*t:r*Math.pow(2,i-1075)*(t+jspb.BinaryConstants.TWO_TO_52)};jspb.utils.joinHash64=function(t,o){return String.fromCharCode(t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255,o>>>0&255,o>>>8&255,o>>>16&255,o>>>24&255)};jspb.utils.DIGITS="0123456789abcdef".split("");jspb.utils.ZERO_CHAR_CODE_=48;jspb.utils.A_CHAR_CODE_=97;jspb.utils.joinUnsignedDecimalString=function(t,o){function r(n,s){return n=n?String(n):"",s?"0000000".slice(n.length)+n:n}if(2097151>=o)return""+jspb.utils.joinUint64(t,o);var i=(t>>>24|o<<8)>>>0&16777215;return o=o>>16&65535,t=(t&16777215)+6777216*i+6710656*o,i+=8147497*o,o*=2,1e7<=t&&(i+=Math.floor(t/1e7),t%=1e7),1e7<=i&&(o+=Math.floor(i/1e7),i%=1e7),r(o,0)+r(i,o)+r(t,1)};jspb.utils.joinSignedDecimalString=function(t,o){var r=o&2147483648;return r&&(t=~t+1>>>0,o=~o+(t==0?1:0)>>>0),t=jspb.utils.joinUnsignedDecimalString(t,o),r?"-"+t:t};jspb.utils.hash64ToDecimalString=function(t,o){jspb.utils.splitHash64(t),t=jspb.utils.split64Low;var r=jspb.utils.split64High;return o?jspb.utils.joinSignedDecimalString(t,r):jspb.utils.joinUnsignedDecimalString(t,r)};jspb.utils.hash64ArrayToDecimalStrings=function(t,o){for(var r=Array(t.length),i=0;i<t.length;i++)r[i]=jspb.utils.hash64ToDecimalString(t[i],o);return r};jspb.utils.decimalStringToHash64=function(t){function o(p,u){for(var h=0;8>h&&(p!==1||0<u);h++)u=p*n[h]+u,n[h]=u&255,u>>>=8}function r(){for(var p=0;8>p;p++)n[p]=~n[p]&255}goog.asserts.assert(0<t.length);var i=!1;t[0]==="-"&&(i=!0,t=t.slice(1));for(var n=[0,0,0,0,0,0,0,0],s=0;s<t.length;s++)o(10,t.charCodeAt(s)-jspb.utils.ZERO_CHAR_CODE_);return i&&(r(),o(1,1)),goog.crypt.byteArrayToString(n)};jspb.utils.splitDecimalString=function(t){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(t))};jspb.utils.toHexDigit_=function(t){return String.fromCharCode(10>t?jspb.utils.ZERO_CHAR_CODE_+t:jspb.utils.A_CHAR_CODE_-10+t)};jspb.utils.fromHexCharCode_=function(t){return t>=jspb.utils.A_CHAR_CODE_?t-jspb.utils.A_CHAR_CODE_+10:t-jspb.utils.ZERO_CHAR_CODE_};jspb.utils.hash64ToHexString=function(t){var o=Array(18);o[0]="0",o[1]="x";for(var r=0;8>r;r++){var i=t.charCodeAt(7-r);o[2*r+2]=jspb.utils.toHexDigit_(i>>4),o[2*r+3]=jspb.utils.toHexDigit_(i&15)}return o.join("")};jspb.utils.hexStringToHash64=function(t){t=t.toLowerCase(),goog.asserts.assert(t.length==18),goog.asserts.assert(t[0]=="0"),goog.asserts.assert(t[1]=="x");for(var o="",r=0;8>r;r++){var i=jspb.utils.fromHexCharCode_(t.charCodeAt(2*r+2)),n=jspb.utils.fromHexCharCode_(t.charCodeAt(2*r+3));o=String.fromCharCode(16*i+n)+o}return o};jspb.utils.hash64ToNumber=function(t,o){jspb.utils.splitHash64(t),t=jspb.utils.split64Low;var r=jspb.utils.split64High;return o?jspb.utils.joinInt64(t,r):jspb.utils.joinUint64(t,r)};jspb.utils.numberToHash64=function(t){return jspb.utils.splitInt64(t),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.utils.countVarints=function(t,o,r){for(var i=0,n=o;n<r;n++)i+=t[n]>>7;return r-o-i};jspb.utils.countVarintFields=function(t,o,r,i){var n=0;if(i=8*i+jspb.BinaryConstants.WireType.VARINT,128>i)for(;o<r&&t[o++]==i;)for(n++;;){var s=t[o++];if((s&128)==0)break}else for(;o<r;){for(s=i;128<s;){if(t[o]!=(s&127|128))return n;o++,s>>=7}if(t[o++]!=s)break;for(n++;s=t[o++],(s&128)!=0;);}return n};jspb.utils.countFixedFields_=function(t,o,r,i,n){var s=0;if(128>i)for(;o<r&&t[o++]==i;)s++,o+=n;else for(;o<r;){for(var p=i;128<p;){if(t[o++]!=(p&127|128))return s;p>>=7}if(t[o++]!=p)break;s++,o+=n}return s};jspb.utils.countFixed32Fields=function(t,o,r,i){return jspb.utils.countFixedFields_(t,o,r,8*i+jspb.BinaryConstants.WireType.FIXED32,4)};jspb.utils.countFixed64Fields=function(t,o,r,i){return jspb.utils.countFixedFields_(t,o,r,8*i+jspb.BinaryConstants.WireType.FIXED64,8)};jspb.utils.countDelimitedFields=function(t,o,r,i){var n=0;for(i=8*i+jspb.BinaryConstants.WireType.DELIMITED;o<r;){for(var s=i;128<s;){if(t[o++]!=(s&127|128))return n;s>>=7}if(t[o++]!=s)break;n++;for(var p=0,u=1;s=t[o++],p+=(s&127)*u,u*=128,(s&128)!=0;);o+=p}return n};jspb.utils.debugBytesToTextFormat=function(t){var o='"';if(t){t=jspb.utils.byteSourceToUint8Array(t);for(var r=0;r<t.length;r++)o+="\\x",16>t[r]&&(o+="0"),o+=t[r].toString(16)}return o+'"'};jspb.utils.debugScalarToTextFormat=function(t){return typeof t=="string"?goog.string.quote(t):t.toString()};jspb.utils.stringToByteArray=function(t){for(var o=new Uint8Array(t.length),r=0;r<t.length;r++){var i=t.charCodeAt(r);if(255<i)throw Error("Conversion error: string contains codepoint outside of byte range");o[r]=i}return o};jspb.utils.byteSourceToUint8Array=function(t){return t.constructor===Uint8Array?t:t.constructor===ArrayBuffer||typeof Buffer!="undefined"&&t.constructor===Buffer||t.constructor===Array?new Uint8Array(t):t.constructor===String?goog.crypt.base64.decodeStringToUint8Array(t):(goog.asserts.fail("Type not convertible to Uint8Array."),new Uint8Array(0))};jspb.BinaryDecoder=function(t,o,r){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1,t&&this.setBlock(t,o,r)};jspb.BinaryDecoder.instanceCache_=[];jspb.BinaryDecoder.alloc=function(t,o,r){if(jspb.BinaryDecoder.instanceCache_.length){var i=jspb.BinaryDecoder.instanceCache_.pop();return t&&i.setBlock(t,o,r),i}return new jspb.BinaryDecoder(t,o,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(t,o,r){this.bytes_=jspb.utils.byteSourceToUint8Array(t),this.start_=o!==void 0?o: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(t){this.end_=t};jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_};jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_};jspb.BinaryDecoder.prototype.setCursor=function(t){this.cursor_=t};jspb.BinaryDecoder.prototype.advance=function(t){this.cursor_+=t,goog.asserts.assert(this.cursor_<=this.end_)};jspb.BinaryDecoder.prototype.atEnd=function(){return this.cursor_==this.end_};jspb.BinaryDecoder.prototype.pastEnd=function(){return this.cursor_>this.end_};jspb.BinaryDecoder.prototype.getError=function(){return this.error_||0>this.cursor_||this.cursor_>this.end_};jspb.BinaryDecoder.prototype.readSplitVarint64=function(t){for(var o=128,r=0,i=0,n=0;4>n&&128<=o;n++)o=this.bytes_[this.cursor_++],r|=(o&127)<<7*n;if(128<=o&&(o=this.bytes_[this.cursor_++],r|=(o&127)<<28,i|=(o&127)>>4),128<=o)for(n=0;5>n&&128<=o;n++)o=this.bytes_[this.cursor_++],i|=(o&127)<<7*n+3;if(128>o)return t(r>>>0,i>>>0);goog.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0};jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(t){return this.readSplitVarint64(function(o,r){return jspb.utils.fromZigzag64(o,r,t)})};jspb.BinaryDecoder.prototype.readSplitFixed64=function(t){var o=this.bytes_,r=this.cursor_;this.cursor_+=8;for(var i=0,n=0,s=r+7;s>=r;s--)i=i<<8|o[s],n=n<<8|o[s+4];return t(i,n)};jspb.BinaryDecoder.prototype.skipVarint=function(){for(;this.bytes_[this.cursor_]&128;)this.cursor_++;this.cursor_++};jspb.BinaryDecoder.prototype.unskipVarint=function(t){for(;128<t;)this.cursor_--,t>>>=7;this.cursor_--};jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var t=this.bytes_,o=t[this.cursor_+0],r=o&127;return 128>o?(this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),r):(o=t[this.cursor_+1],r|=(o&127)<<7,128>o?(this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),r):(o=t[this.cursor_+2],r|=(o&127)<<14,128>o?(this.cursor_+=3,goog.asserts.assert(this.cursor_<=this.end_),r):(o=t[this.cursor_+3],r|=(o&127)<<21,128>o?(this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),r):(o=t[this.cursor_+4],r|=(o&15)<<28,128>o?(this.cursor_+=5,goog.asserts.assert(this.cursor_<=this.end_),r>>>0):(this.cursor_+=5,128<=t[this.cursor_++]&&128<=t[this.cursor_++]&&128<=t[this.cursor_++]&&128<=t[this.cursor_++]&&128<=t[this.cursor_++]&&goog.asserts.assert(!1),goog.asserts.assert(this.cursor_<=this.end_),r)))))};jspb.BinaryDecoder.prototype.readSignedVarint32=jspb.BinaryDecoder.prototype.readUnsignedVarint32;jspb.BinaryDecoder.prototype.readUnsignedVarint32String=function(){return this.readUnsignedVarint32().toString()};jspb.BinaryDecoder.prototype.readSignedVarint32String=function(){return this.readSignedVarint32().toString()};jspb.BinaryDecoder.prototype.readZigzagVarint32=function(){var t=this.readUnsignedVarint32();return t>>>1^-(t&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 t=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),t};jspb.BinaryDecoder.prototype.readUint16=function(){var t=this.bytes_[this.cursor_+0],o=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),t<<0|o<<8};jspb.BinaryDecoder.prototype.readUint32=function(){var t=this.bytes_[this.cursor_+0],o=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],i=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),(t<<0|o<<8|r<<16|i<<24)>>>0};jspb.BinaryDecoder.prototype.readUint64=function(){var t=this.readUint32(),o=this.readUint32();return jspb.utils.joinUint64(t,o)};jspb.BinaryDecoder.prototype.readUint64String=function(){var t=this.readUint32(),o=this.readUint32();return jspb.utils.joinUnsignedDecimalString(t,o)};jspb.BinaryDecoder.prototype.readInt8=function(){var t=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),t<<24>>24};jspb.BinaryDecoder.prototype.readInt16=function(){var t=this.bytes_[this.cursor_+0],o=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),(t<<0|o<<8)<<16>>16};jspb.BinaryDecoder.prototype.readInt32=function(){var t=this.bytes_[this.cursor_+0],o=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],i=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),t<<0|o<<8|r<<16|i<<24};jspb.BinaryDecoder.prototype.readInt64=function(){var t=this.readUint32(),o=this.readUint32();return jspb.utils.joinInt64(t,o)};jspb.BinaryDecoder.prototype.readInt64String=function(){var t=this.readUint32(),o=this.readUint32();return jspb.utils.joinSignedDecimalString(t,o)};jspb.BinaryDecoder.prototype.readFloat=function(){var t=this.readUint32();return jspb.utils.joinFloat32(t,0)};jspb.BinaryDecoder.prototype.readDouble=function(){var t=this.readUint32(),o=this.readUint32();return jspb.utils.joinFloat64(t,o)};jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]};jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()};jspb.BinaryDecoder.prototype.readString=function(t){var o=this.bytes_,r=this.cursor_;t=r+t;for(var i=[],n="";r<t;){var s=o[r++];if(128>s)i.push(s);else{if(192>s)continue;if(224>s){var p=o[r++];i.push((s&31)<<6|p&63)}else if(240>s){p=o[r++];var u=o[r++];i.push((s&15)<<12|(p&63)<<6|u&63)}else if(248>s){p=o[r++],u=o[r++];var h=o[r++];s=(s&7)<<18|(p&63)<<12|(u&63)<<6|h&63,s-=65536,i.push((s>>10&1023)+55296,(s&1023)+56320)}}8192<=i.length&&(n+=String.fromCharCode.apply(null,i),i.length=0)}return n+=goog.crypt.byteArrayToString(i),this.cursor_=r,n};jspb.BinaryDecoder.prototype.readStringWithLength=function(){var t=this.readUnsignedVarint32();return this.readString(t)};jspb.BinaryDecoder.prototype.readBytes=function(t){if(0>t||this.cursor_+t>this.bytes_.length)return this.error_=!0,goog.asserts.fail("Invalid byte length!"),new Uint8Array(0);var o=this.bytes_.subarray(this.cursor_,this.cursor_+t);return this.cursor_+=t,goog.asserts.assert(this.cursor_<=this.end_),o};jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)};jspb.BinaryDecoder.prototype.readFixedHash64=function(){var t=this.bytes_,o=this.cursor_,r=t[o+0],i=t[o+1],n=t[o+2],s=t[o+3],p=t[o+4],u=t[o+5],h=t[o+6];return t=t[o+7],this.cursor_+=8,String.fromCharCode(r,i,n,s,p,u,h,t)};jspb.BinaryReader=function(t,o,r){this.decoder_=jspb.BinaryDecoder.alloc(t,o,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(t,o,r){if(jspb.BinaryReader.instanceCache_.length){var i=jspb.BinaryReader.instanceCache_.pop();return t&&i.decoder_.setBlock(t,o,r),i}return new jspb.BinaryReader(t,o,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_};jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_};jspb.BinaryReader.prototype.isDelimited=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED};jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP};jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()};jspb.BinaryReader.prototype.setBlock=function(t,o,r){this.decoder_.setBlock(t,o,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(t){this.decoder_.advance(t)};jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return goog.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var t=this.decoder_.readUnsignedVarint32(),o=t>>>3;return t&=7,t!=jspb.BinaryConstants.WireType.VARINT&&t!=jspb.BinaryConstants.WireType.FIXED32&&t!=jspb.BinaryConstants.WireType.FIXED64&&t!=jspb.BinaryConstants.WireType.DELIMITED&&t!=jspb.BinaryConstants.WireType.START_GROUP&&t!=jspb.BinaryConstants.WireType.END_GROUP?(goog.asserts.fail("Invalid wire type: %s (at position %s)",t,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=o,this.nextWireType_=t,!0)};jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)};jspb.BinaryReader.prototype.skipMatchingFields=function(){var t=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==t;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()};jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(goog.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()};jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)goog.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var t=this.decoder_.readUnsignedVarint32();this.decoder_.advance(t)}};jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(goog.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)};jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(goog.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)};jspb.BinaryReader.prototype.skipGroup=function(){var t=this.nextField_;do{if(!this.nextField()){goog.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=t&&(goog.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:goog.asserts.fail("Invalid wire encoding for field.")}};jspb.BinaryReader.prototype.registerReadCallback=function(t,o){this.readCallbacks_===null&&(this.readCallbacks_={}),goog.asserts.assert(!this.readCallbacks_[t]),this.readCallbacks_[t]=o};jspb.BinaryReader.prototype.runReadCallback=function(t){return goog.asserts.assert(this.readCallbacks_!==null),t=this.readCallbacks_[t],goog.asserts.assert(t),t(this)};jspb.BinaryReader.prototype.readAny=function(t){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(t);var o=jspb.BinaryConstants.FieldType;switch(t){case o.DOUBLE:return this.readDouble();case o.FLOAT:return this.readFloat();case o.INT64:return this.readInt64();case o.UINT64:return this.readUint64();case o.INT32:return this.readInt32();case o.FIXED64:return this.readFixed64();case o.FIXED32:return this.readFixed32();case o.BOOL:return this.readBool();case o.STRING:return this.readString();case o.GROUP:goog.asserts.fail("Group field type not supported in readAny()");case o.MESSAGE:goog.asserts.fail("Message field type not supported in readAny()");case o.BYTES:return this.readBytes();case o.UINT32:return this.readUint32();case o.ENUM:return this.readEnum();case o.SFIXED32:return this.readSfixed32();case o.SFIXED64:return this.readSfixed64();case o.SINT32:return this.readSint32();case o.SINT64:return this.readSint64();case o.FHASH64:return this.readFixedHash64();case o.VHASH64:return this.readVarintHash64();default:goog.asserts.fail("Invalid field type in readAny()")}return 0};jspb.BinaryReader.prototype.readMessage=function(t,o){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var r=this.decoder_.getEnd(),i=this.decoder_.readUnsignedVarint32();i=this.decoder_.getCursor()+i,this.decoder_.setEnd(i),o(t,this),this.decoder_.setCursor(i),this.decoder_.setEnd(r)};jspb.BinaryReader.prototype.readGroup=function(t,o,r){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),goog.asserts.assert(this.nextField_==t),r(o,this),this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(goog.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)};jspb.BinaryReader.prototype.getFieldDecoder=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var t=this.decoder_.readUnsignedVarint32(),o=this.decoder_.getCursor(),r=o+t;return t=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),o,t),this.decoder_.setCursor(r),t};jspb.BinaryReader.prototype.readInt32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()};jspb.BinaryReader.prototype.readInt32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()};jspb.BinaryReader.prototype.readInt64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()};jspb.BinaryReader.prototype.readInt64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()};jspb.BinaryReader.prototype.readUint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()};jspb.BinaryReader.prototype.readUint32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()};jspb.BinaryReader.prototype.readUint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()};jspb.BinaryReader.prototype.readUint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()};jspb.BinaryReader.prototype.readSint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()};jspb.BinaryReader.prototype.readSint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()};jspb.BinaryReader.prototype.readSint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()};jspb.BinaryReader.prototype.readFixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()};jspb.BinaryReader.prototype.readFixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()};jspb.BinaryReader.prototype.readFixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()};jspb.BinaryReader.prototype.readSfixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()};jspb.BinaryReader.prototype.readSfixed32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()};jspb.BinaryReader.prototype.readSfixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()};jspb.BinaryReader.prototype.readSfixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()};jspb.BinaryReader.prototype.readFloat=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()};jspb.BinaryReader.prototype.readDouble=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()};jspb.BinaryReader.prototype.readBool=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()};jspb.BinaryReader.prototype.readEnum=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()};jspb.BinaryReader.prototype.readString=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var t=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(t)};jspb.BinaryReader.prototype.readBytes=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var t=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(t)};jspb.BinaryReader.prototype.readVarintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()};jspb.BinaryReader.prototype.readSintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()};jspb.BinaryReader.prototype.readSplitVarint64=function(t){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(t)};jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(t){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(function(o,r){return jspb.utils.fromZigzag64(o,r,t)})};jspb.BinaryReader.prototype.readFixedHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()};jspb.BinaryReader.prototype.readSplitFixed64=function(t){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(t)};jspb.BinaryReader.prototype.readPackedField_=function(t){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();o=this.decoder_.getCursor()+o;for(var r=[];this.decoder_.getCursor()<o;)r.push(t.call(this.decoder_));return r};jspb.BinaryReader.prototype.readPackedInt32=function(){return this.readPackedField_(this.decoder_.readSignedVarint32)};jspb.BinaryReader.prototype.readPackedInt32String=function(){return this.readPackedField_(this.decoder_.readSignedVarint32String)};jspb.BinaryReader.prototype.readPackedInt64=function(){return this.readPackedField_(this.decoder_.readSignedVarint64)};jspb.BinaryReader.prototype.readPackedInt64String=function(){return this.readPackedField_(this.decoder_.readSignedVarint64String)};jspb.BinaryReader.prototype.readPackedUint32=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32)};jspb.BinaryReader.prototype.readPackedUint32String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32String)};jspb.BinaryReader.prototype.readPackedUint64=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64)};jspb.BinaryReader.prototype.readPackedUint64String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64String)};jspb.BinaryReader.prototype.readPackedSint32=function(){return this.readPackedField_(this.decoder_.readZigzagVarint32)};jspb.BinaryReader.prototype.readPackedSint64=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64)};jspb.BinaryReader.prototype.readPackedSint64String=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64String)};jspb.BinaryReader.prototype.readPackedFixed32=function(){return this.readPackedField_(this.decoder_.readUint32)};jspb.BinaryReader.prototype.readPackedFixed64=function(){return this.readPackedField_(this.decoder_.readUint64)};jspb.BinaryReader.prototype.readPackedFixed64String=function(){return this.readPackedField_(this.decoder_.readUint64String)};jspb.BinaryReader.prototype.readPackedSfixed32=function(){return this.readPackedField_(this.decoder_.readInt32)};jspb.BinaryReader.prototype.readPackedSfixed64=function(){return this.readPackedField_(this.decoder_.readInt64)};jspb.BinaryReader.prototype.readPackedSfixed64String=function(){return this.readPackedField_(this.decoder_.readInt64String)};jspb.BinaryReader.prototype.readPackedFloat=function(){return this.readPackedField_(this.decoder_.readFloat)};jspb.BinaryReader.prototype.readPackedDouble=function(){return this.readPackedField_(this.decoder_.readDouble)};jspb.BinaryReader.prototype.readPackedBool=function(){return this.readPackedField_(this.decoder_.readBool)};jspb.BinaryReader.prototype.readPackedEnum=function(){return this.readPackedField_(this.decoder_.readEnum)};jspb.BinaryReader.prototype.readPackedVarintHash64=function(){return this.readPackedField_(this.decoder_.readVarintHash64)};jspb.BinaryReader.prototype.readPackedFixedHash64=function(){return this.readPackedField_(this.decoder_.readFixedHash64)};jspb.BinaryEncoder=function(){this.buffer_=[]};jspb.BinaryEncoder.prototype.length=function(){return this.buffer_.length};jspb.BinaryEncoder.prototype.end=function(){var t=this.buffer_;return this.buffer_=[],t};jspb.BinaryEncoder.prototype.writeSplitVarint64=function(t,o){for(goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32);0<o||127<t;)this.buffer_.push(t&127|128),t=(t>>>7|o<<25)>>>0,o>>>=7;this.buffer_.push(t)};jspb.BinaryEncoder.prototype.writeSplitFixed64=function(t,o){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),this.writeUint32(t),this.writeUint32(o)};jspb.BinaryEncoder.prototype.writeUnsignedVarint32=function(t){for(goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32);127<t;)this.buffer_.push(t&127|128),t>>>=7;this.buffer_.push(t)};jspb.BinaryEncoder.prototype.writeSignedVarint32=function(t){if(goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),0<=t)this.writeUnsignedVarint32(t);else{for(var o=0;9>o;o++)this.buffer_.push(t&127|128),t>>=7;this.buffer_.push(1)}};jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitInt64(t),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeSignedVarint64=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(t),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeZigzagVarint32=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeUnsignedVarint32((t<<1^t>>31)>>>0)};jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitZigzag64(t),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeZigzagVarint64String=function(t){this.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(t))};jspb.BinaryEncoder.prototype.writeZigzagVarintHash64=function(t){var o=this;jspb.utils.splitHash64(t),jspb.utils.toZigzag64(jspb.utils.split64Low,jspb.utils.split64High,function(r,i){o.writeSplitVarint64(r>>>0,i>>>0)})};jspb.BinaryEncoder.prototype.writeUint8=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=t&&256>t),this.buffer_.push(t>>>0&255)};jspb.BinaryEncoder.prototype.writeUint16=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=t&&65536>t),this.buffer_.push(t>>>0&255),this.buffer_.push(t>>>8&255)};jspb.BinaryEncoder.prototype.writeUint32=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.buffer_.push(t>>>0&255),this.buffer_.push(t>>>8&255),this.buffer_.push(t>>>16&255),this.buffer_.push(t>>>24&255)};jspb.BinaryEncoder.prototype.writeUint64=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitUint64(t),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeInt8=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(-128<=t&&128>t),this.buffer_.push(t>>>0&255)};jspb.BinaryEncoder.prototype.writeInt16=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(-32768<=t&&32768>t),this.buffer_.push(t>>>0&255),this.buffer_.push(t>>>8&255)};jspb.BinaryEncoder.prototype.writeInt32=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.buffer_.push(t>>>0&255),this.buffer_.push(t>>>8&255),this.buffer_.push(t>>>16&255),this.buffer_.push(t>>>24&255)};jspb.BinaryEncoder.prototype.writeInt64=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(t),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeInt64String=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(+t>=-jspb.BinaryConstants.TWO_TO_63&&+t<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(t)),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeFloat=function(t){goog.asserts.assert(t===1/0||t===-1/0||isNaN(t)||t>=-jspb.BinaryConstants.FLOAT32_MAX&&t<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(t),this.writeUint32(jspb.utils.split64Low)};jspb.BinaryEncoder.prototype.writeDouble=function(t){goog.asserts.assert(t===1/0||t===-1/0||isNaN(t)||t>=-jspb.BinaryConstants.FLOAT64_MAX&&t<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(t),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeBool=function(t){goog.asserts.assert(typeof t=="boolean"||typeof t=="number"),this.buffer_.push(t?1:0)};jspb.BinaryEncoder.prototype.writeEnum=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32(t)};jspb.BinaryEncoder.prototype.writeBytes=function(t){this.buffer_.push.apply(this.buffer_,t)};jspb.BinaryEncoder.prototype.writeVarintHash64=function(t){jspb.utils.splitHash64(t),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeFixedHash64=function(t){jspb.utils.splitHash64(t),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeString=function(t){for(var o=this.buffer_.length,r=0;r<t.length;r++){var i=t.charCodeAt(r);if(128>i)this.buffer_.push(i);else if(2048>i)this.buffer_.push(i>>6|192),this.buffer_.push(i&63|128);else if(65536>i)if(55296<=i&&56319>=i&&r+1<t.length){var n=t.charCodeAt(r+1);56320<=n&&57343>=n&&(i=1024*(i-55296)+n-56320+65536,this.buffer_.push(i>>18|240),this.buffer_.push(i>>12&63|128),this.buffer_.push(i>>6&63|128),this.buffer_.push(i&63|128),r++)}else this.buffer_.push(i>>12|224),this.buffer_.push(i>>6&63|128),this.buffer_.push(i&63|128)}return this.buffer_.length-o};jspb.arith={};jspb.arith.UInt64=function(t,o){this.lo=t,this.hi=o};jspb.arith.UInt64.prototype.cmp=function(t){return this.hi<t.hi||this.hi==t.hi&&this.lo<t.lo?-1:this.hi==t.hi&&this.lo==t.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(t){return new jspb.arith.UInt64((this.lo+t.lo&4294967295)>>>0>>>0,((this.hi+t.hi&4294967295)>>>0)+(4294967296<=this.lo+t.lo?1:0)>>>0)};jspb.arith.UInt64.prototype.sub=function(t){return new jspb.arith.UInt64((this.lo-t.lo&4294967295)>>>0>>>0,((this.hi-t.hi&4294967295)>>>0)-(0>this.lo-t.lo?1:0)>>>0)};jspb.arith.UInt64.mul32x32=function(t,o){var r=t&65535;t>>>=16;var i=o&65535,n=o>>>16;for(o=r*i+65536*(r*n&65535)+65536*(t*i&65535),r=t*n+(r*n>>>16)+(t*i>>>16);4294967296<=o;)o-=4294967296,r+=1;return new jspb.arith.UInt64(o>>>0,r>>>0)};jspb.arith.UInt64.prototype.mul=function(t){var o=jspb.arith.UInt64.mul32x32(this.lo,t);return t=jspb.arith.UInt64.mul32x32(this.hi,t),t.hi=t.lo,t.lo=0,o.add(t)};jspb.arith.UInt64.prototype.div=function(t){if(t==0)return[];var o=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(this.lo,this.hi);t=new jspb.arith.UInt64(t,0);for(var i=new jspb.arith.UInt64(1,0);!t.msb();)t=t.leftShift(),i=i.leftShift();for(;!i.zero();)0>=t.cmp(r)&&(o=o.add(i),r=r.sub(t)),t=t.rightShift(),i=i.rightShift();return[o,r]};jspb.arith.UInt64.prototype.toString=function(){for(var t="",o=this;!o.zero();){o=o.div(10);var r=o[0];t=o[1].lo+t,o=r}return t==""&&(t="0"),t};jspb.arith.UInt64.fromString=function(t){for(var o=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(0,0),i=0;i<t.length;i++){if("0">t[i]||"9"<t[i])return null;var n=parseInt(t[i],10);r.lo=n,o=o.mul(10).add(r)}return o};jspb.arith.UInt64.prototype.clone=function(){return new jspb.arith.UInt64(this.lo,this.hi)};jspb.arith.Int64=function(t,o){this.lo=t,this.hi=o};jspb.arith.Int64.prototype.add=function(t){return new jspb.arith.Int64((this.lo+t.lo&4294967295)>>>0>>>0,((this.hi+t.hi&4294967295)>>>0)+(4294967296<=this.lo+t.lo?1:0)>>>0)};jspb.arith.Int64.prototype.sub=function(t){return new jspb.arith.Int64((this.lo-t.lo&4294967295)>>>0>>>0,((this.hi-t.hi&4294967295)>>>0)-(0>this.lo-t.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 t=(this.hi&2147483648)!=0,o=new jspb.arith.UInt64(this.lo,this.hi);return t&&(o=new jspb.arith.UInt64(0,0).sub(o)),(t?"-":"")+o.toString()};jspb.arith.Int64.fromString=function(t){var o=0<t.length&&t[0]=="-";return o&&(t=t.substring(1)),t=jspb.arith.UInt64.fromString(t),t===null?null:(o&&(t=new jspb.arith.UInt64(0,0).sub(t)),new jspb.arith.Int64(t.lo,t.hi))};jspb.BinaryWriter=function(){this.blocks_=[],this.totalLength_=0,this.encoder_=new jspb.BinaryEncoder,this.bookmarks_=[]};jspb.BinaryWriter.prototype.appendUint8Array_=function(t){var o=this.encoder_.end();this.blocks_.push(o),this.blocks_.push(t),this.totalLength_+=o.length+t.length};jspb.BinaryWriter.prototype.beginDelimited_=function(t){return this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),t=this.encoder_.end(),this.blocks_.push(t),this.totalLength_+=t.length,t.push(this.totalLength_),t};jspb.BinaryWriter.prototype.endDelimited_=function(t){var o=t.pop();for(o=this.totalLength_+this.encoder_.length()-o,goog.asserts.assert(0<=o);127<o;)t.push(o&127|128),o>>>=7,this.totalLength_++;t.push(o),this.totalLength_++};jspb.BinaryWriter.prototype.writeSerializedMessage=function(t,o,r){this.appendUint8Array_(t.subarray(o,r))};jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(t,o,r){t!=null&&o!=null&&r!=null&&this.writeSerializedMessage(t,o,r)};jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]};jspb.BinaryWriter.prototype.getResultBuffer=function(){goog.asserts.assert(this.bookmarks_.length==0);for(var t=new Uint8Array(this.totalLength_+this.encoder_.length()),o=this.blocks_,r=o.length,i=0,n=0;n<r;n++){var s=o[n];t.set(s,i),i+=s.length}return o=this.encoder_.end(),t.set(o,i),i+=o.length,goog.asserts.assert(i==t.length),this.blocks_=[t],t};jspb.BinaryWriter.prototype.getResultBase64String=function(t){return goog.crypt.base64.encodeByteArray(this.getResultBuffer(),t)};jspb.BinaryWriter.prototype.beginSubMessage=function(t){this.bookmarks_.push(this.beginDelimited_(t))};jspb.BinaryWriter.prototype.endSubMessage=function(){goog.asserts.assert(0<=this.bookmarks_.length),this.endDelimited_(this.bookmarks_.pop())};jspb.BinaryWriter.prototype.writeFieldHeader_=function(t,o){goog.asserts.assert(1<=t&&t==Math.floor(t)),this.encoder_.writeUnsignedVarint32(8*t+o)};jspb.BinaryWriter.prototype.writeAny=function(t,o,r){var i=jspb.BinaryConstants.FieldType;switch(t){case i.DOUBLE:this.writeDouble(o,r);break;case i.FLOAT:this.writeFloat(o,r);break;case i.INT64:this.writeInt64(o,r);break;case i.UINT64:this.writeUint64(o,r);break;case i.INT32:this.writeInt32(o,r);break;case i.FIXED64:this.writeFixed64(o,r);break;case i.FIXED32:this.writeFixed32(o,r);break;case i.BOOL:this.writeBool(o,r);break;case i.STRING:this.writeString(o,r);break;case i.GROUP:goog.asserts.fail("Group field type not supported in writeAny()");break;case i.MESSAGE:goog.asserts.fail("Message field type not supported in writeAny()");break;case i.BYTES:this.writeBytes(o,r);break;case i.UINT32:this.writeUint32(o,r);break;case i.ENUM:this.writeEnum(o,r);break;case i.SFIXED32:this.writeSfixed32(o,r);break;case i.SFIXED64:this.writeSfixed64(o,r);break;case i.SINT32:this.writeSint32(o,r);break;case i.SINT64:this.writeSint64(o,r);break;case i.FHASH64:this.writeFixedHash64(o,r);break;case i.VHASH64:this.writeVarintHash64(o,r);break;default:goog.asserts.fail("Invalid field type in writeAny()")}};jspb.BinaryWriter.prototype.writeUnsignedVarint32_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(o))};jspb.BinaryWriter.prototype.writeSignedVarint32_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(o))};jspb.BinaryWriter.prototype.writeUnsignedVarint64_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint64(o))};jspb.BinaryWriter.prototype.writeSignedVarint64_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint64(o))};jspb.BinaryWriter.prototype.writeZigzagVarint32_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(o))};jspb.BinaryWriter.prototype.writeZigzagVarint64_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64(o))};jspb.BinaryWriter.prototype.writeZigzagVarint64String_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64String(o))};jspb.BinaryWriter.prototype.writeZigzagVarintHash64_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarintHash64(o))};jspb.BinaryWriter.prototype.writeInt32=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(t,o))};jspb.BinaryWriter.prototype.writeInt32String=function(t,o){o!=null&&(o=parseInt(o,10),goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(t,o))};jspb.BinaryWriter.prototype.writeInt64=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),this.writeSignedVarint64_(t,o))};jspb.BinaryWriter.prototype.writeInt64String=function(t,o){o!=null&&(o=jspb.arith.Int64.fromString(o),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(o.lo,o.hi))};jspb.BinaryWriter.prototype.writeUint32=function(t,o){o!=null&&(goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(t,o))};jspb.BinaryWriter.prototype.writeUint32String=function(t,o){o!=null&&(o=parseInt(o,10),goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(t,o))};jspb.BinaryWriter.prototype.writeUint64=function(t,o){o!=null&&(goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_64),this.writeUnsignedVarint64_(t,o))};jspb.BinaryWriter.prototype.writeUint64String=function(t,o){o!=null&&(o=jspb.arith.UInt64.fromString(o),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(o.lo,o.hi))};jspb.BinaryWriter.prototype.writeSint32=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeZigzagVarint32_(t,o))};jspb.BinaryWriter.prototype.writeSint64=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),this.writeZigzagVarint64_(t,o))};jspb.BinaryWriter.prototype.writeSintHash64=function(t,o){o!=null&&this.writeZigzagVarintHash64_(t,o)};jspb.BinaryWriter.prototype.writeSint64String=function(t,o){o!=null&&this.writeZigzagVarint64String_(t,o)};jspb.BinaryWriter.prototype.writeFixed32=function(t,o){o!=null&&(goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeUint32(o))};jspb.BinaryWriter.prototype.writeFixed64=function(t,o){o!=null&&(goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_64),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeUint64(o))};jspb.BinaryWriter.prototype.writeFixed64String=function(t,o){o!=null&&(o=jspb.arith.UInt64.fromString(o),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(o.lo,o.hi))};jspb.BinaryWriter.prototype.writeSfixed32=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeInt32(o))};jspb.BinaryWriter.prototype.writeSfixed64=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeInt64(o))};jspb.BinaryWriter.prototype.writeSfixed64String=function(t,o){o!=null&&(o=jspb.arith.Int64.fromString(o),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(o.lo,o.hi))};jspb.BinaryWriter.prototype.writeFloat=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeFloat(o))};jspb.BinaryWriter.prototype.writeDouble=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeDouble(o))};jspb.BinaryWriter.prototype.writeBool=function(t,o){o!=null&&(goog.asserts.assert(typeof o=="boolean"||typeof o=="number"),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeBool(o))};jspb.BinaryWriter.prototype.writeEnum=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(o))};jspb.BinaryWriter.prototype.writeString=function(t,o){o!=null&&(t=this.beginDelimited_(t),this.encoder_.writeString(o),this.endDelimited_(t))};jspb.BinaryWriter.prototype.writeBytes=function(t,o){o!=null&&(o=jspb.utils.byteSourceToUint8Array(o),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(o.length),this.appendUint8Array_(o))};jspb.BinaryWriter.prototype.writeMessage=function(t,o,r){o!=null&&(t=this.beginDelimited_(t),r(o,this),this.endDelimited_(t))};jspb.BinaryWriter.prototype.writeMessageSet=function(t,o,r){o!=null&&(this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.START_GROUP),this.writeFieldHeader_(2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t),t=this.beginDelimited_(3),r(o,this),this.endDelimited_(t),this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.END_GROUP))};jspb.BinaryWriter.prototype.writeGroup=function(t,o,r){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.START_GROUP),r(o,this),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.END_GROUP))};jspb.BinaryWriter.prototype.writeFixedHash64=function(t,o){o!=null&&(goog.asserts.assert(o.length==8),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeFixedHash64(o))};jspb.BinaryWriter.prototype.writeVarintHash64=function(t,o){o!=null&&(goog.asserts.assert(o.length==8),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeVarintHash64(o))};jspb.BinaryWriter.prototype.writeSplitFixed64=function(t,o,r){this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(o,r)};jspb.BinaryWriter.prototype.writeSplitVarint64=function(t,o,r){this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(o,r)};jspb.BinaryWriter.prototype.writeSplitZigzagVarint64=function(t,o,r){this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT);var i=this.encoder_;jspb.utils.toZigzag64(o,r,function(n,s){i.writeSplitVarint64(n>>>0,s>>>0)})};jspb.BinaryWriter.prototype.writeRepeatedInt32=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeSignedVarint32_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedInt32String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeInt32String(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedInt64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeSignedVarint64_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSplitFixed64=function(t,o,r,i){if(o!=null)for(var n=0;n<o.length;n++)this.writeSplitFixed64(t,r(o[n]),i(o[n]))};jspb.BinaryWriter.prototype.writeRepeatedSplitVarint64=function(t,o,r,i){if(o!=null)for(var n=0;n<o.length;n++)this.writeSplitVarint64(t,r(o[n]),i(o[n]))};jspb.BinaryWriter.prototype.writeRepeatedSplitZigzagVarint64=function(t,o,r,i){if(o!=null)for(var n=0;n<o.length;n++)this.writeSplitZigzagVarint64(t,r(o[n]),i(o[n]))};jspb.BinaryWriter.prototype.writeRepeatedInt64String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeInt64String(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedUint32=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeUnsignedVarint32_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedUint32String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeUint32String(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedUint64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeUnsignedVarint64_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedUint64String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeUint64String(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSint32=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeZigzagVarint32_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSint64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeZigzagVarint64_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSint64String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeZigzagVarint64String_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSintHash64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeZigzagVarintHash64_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedFixed32=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeFixed32(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedFixed64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeFixed64(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedFixed64String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeFixed64String(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSfixed32=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeSfixed32(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSfixed64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeSfixed64(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSfixed64String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeSfixed64String(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedFloat=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeFloat(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedDouble=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeDouble(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedBool=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeBool(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedEnum=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeEnum(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedString=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeString(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedBytes=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeBytes(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedMessage=function(t,o,r){if(o!=null)for(var i=0;i<o.length;i++){var n=this.beginDelimited_(t);r(o[i],this),this.endDelimited_(n)}};jspb.BinaryWriter.prototype.writeRepeatedGroup=function(t,o,r){if(o!=null)for(var i=0;i<o.length;i++)this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.START_GROUP),r(o[i],this),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.END_GROUP)};jspb.BinaryWriter.prototype.writeRepeatedFixedHash64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeFixedHash64(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedVarintHash64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeVarintHash64(t,o[r])};jspb.BinaryWriter.prototype.writePackedInt32=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeSignedVarint32(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedInt32String=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeSignedVarint32(parseInt(o[r],10));this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedInt64=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeSignedVarint64(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSplitFixed64=function(t,o,r,i){if(o!=null){t=this.beginDelimited_(t);for(var n=0;n<o.length;n++)this.encoder_.writeSplitFixed64(r(o[n]),i(o[n]));this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSplitVarint64=function(t,o,r,i){if(o!=null){t=this.beginDelimited_(t);for(var n=0;n<o.length;n++)this.encoder_.writeSplitVarint64(r(o[n]),i(o[n]));this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSplitZigzagVarint64=function(t,o,r,i){if(o!=null){t=this.beginDelimited_(t);for(var n=this.encoder_,s=0;s<o.length;s++)jspb.utils.toZigzag64(r(o[s]),i(o[s]),function(p,u){n.writeSplitVarint64(p>>>0,u>>>0)});this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedInt64String=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++){var i=jspb.arith.Int64.fromString(o[r]);this.encoder_.writeSplitVarint64(i.lo,i.hi)}this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedUint32=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeUnsignedVarint32(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedUint32String=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeUnsignedVarint32(parseInt(o[r],10));this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedUint64=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeUnsignedVarint64(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedUint64String=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++){var i=jspb.arith.UInt64.fromString(o[r]);this.encoder_.writeSplitVarint64(i.lo,i.hi)}this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSint32=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeZigzagVarint32(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSint64=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeZigzagVarint64(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSint64String=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(o[r]));this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSintHash64=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeZigzagVarintHash64(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedFixed32=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*o.length),t=0;t<o.length;t++)this.encoder_.writeUint32(o[t])};jspb.BinaryWriter.prototype.writePackedFixed64=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*o.length),t=0;t<o.length;t++)this.encoder_.writeUint64(o[t])};jspb.BinaryWriter.prototype.writePackedFixed64String=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*o.length),t=0;t<o.length;t++){var r=jspb.arith.UInt64.fromString(o[t]);this.encoder_.writeSplitFixed64(r.lo,r.hi)}};jspb.BinaryWriter.prototype.writePackedSfixed32=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*o.length),t=0;t<o.length;t++)this.encoder_.writeInt32(o[t])};jspb.BinaryWriter.prototype.writePackedSfixed64=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*o.length),t=0;t<o.length;t++)this.encoder_.writeInt64(o[t])};jspb.BinaryWriter.prototype.writePackedSfixed64String=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*o.length),t=0;t<o.length;t++)this.encoder_.writeInt64String(o[t])};jspb.BinaryWriter.prototype.writePackedFloat=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*o.length),t=0;t<o.length;t++)this.encoder_.writeFloat(o[t])};jspb.BinaryWriter.prototype.writePackedDouble=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*o.length),t=0;t<o.length;t++)this.encoder_.writeDouble(o[t])};jspb.BinaryWriter.prototype.writePackedBool=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(o.length),t=0;t<o.length;t++)this.encoder_.writeBool(o[t])};jspb.BinaryWriter.prototype.writePackedEnum=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeEnum(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedFixedHash64=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*o.length),t=0;t<o.length;t++)this.encoder_.writeFixedHash64(o[t])};jspb.BinaryWriter.prototype.writePackedVarintHash64=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeVarintHash64(o[r]);this.endDelimited_(t)}};jspb.Map=function(t,o){this.arr_=t,this.valueCtor_=o,this.map_={},this.arrClean=!0,0<this.arr_.length&&this.loadFromArray_()};jspb.Map.prototype.loadFromArray_=function(){for(var t=0;t<this.arr_.length;t++){var o=this.arr_[t],r=o[0];this.map_[r.toString()]=new jspb.Map.Entry_(r,o[1])}this.arrClean=!0};jspb.Map.prototype.toArray=function(){if(this.arrClean){if(this.valueCtor_){var t=this.map_,o;for(o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var r=t[o].valueWrapper;r&&r.toArray()}}}else{for(this.arr_.length=0,t=this.stringKeys_(),t.sort(),o=0;o<t.length;o++){var i=this.map_[t[o]];(r=i.valueWrapper)&&r.toArray(),this.arr_.push([i.key,i.value])}this.arrClean=!0}return this.arr_};jspb.Map.prototype.toObject=function(t,o){for(var r=this.toArray(),i=[],n=0;n<r.length;n++){var s=this.map_[r[n][0].toString()];this.wrapEntry_(s);var p=s.valueWrapper;p?(goog.asserts.assert(o),i.push([s.key,o(t,p)])):i.push([s.key,s.value])}return i};jspb.Map.fromObject=function(t,o,r){o=new jspb.Map([],o);for(var i=0;i<t.length;i++){var n=t[i][0],s=r(t[i][1]);o.set(n,s)}return o};jspb.Map.ArrayIteratorIterable_=function(t){this.idx_=0,this.arr_=t};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!="undefined"&&(jspb.Map.ArrayIteratorIterable_.prototype[Symbol.iterator]=function(){return this});jspb.Map.prototype.getLength=function(){return this.stringKeys_().length};jspb.Map.prototype.clear=function(){this.map_={},this.arrClean=!1};jspb.Map.prototype.del=function(t){t=t.toString();var o=this.map_.hasOwnProperty(t);return delete this.map_[t],this.arrClean=!1,o};jspb.Map.prototype.getEntryList=function(){var t=[],o=this.stringKeys_();o.sort();for(var r=0;r<o.length;r++){var i=this.map_[o[r]];t.push([i.key,i.value])}return t};jspb.Map.prototype.entries=function(){var t=[],o=this.stringKeys_();o.sort();for(var r=0;r<o.length;r++){var i=this.map_[o[r]];t.push([i.key,this.wrapEntry_(i)])}return new jspb.Map.ArrayIteratorIterable_(t)};jspb.Map.prototype.keys=function(){var t=[],o=this.stringKeys_();o.sort();for(var r=0;r<o.length;r++)t.push(this.map_[o[r]].key);return new jspb.Map.ArrayIteratorIterable_(t)};jspb.Map.prototype.values=function(){var t=[],o=this.stringKeys_();o.sort();for(var r=0;r<o.length;r++)t.push(this.wrapEntry_(this.map_[o[r]]));return new jspb.Map.ArrayIteratorIterable_(t)};jspb.Map.prototype.forEach=function(t,o){var r=this.stringKeys_();r.sort();for(var i=0;i<r.length;i++){var n=this.map_[r[i]];t.call(o,this.wrapEntry_(n),n.key,this)}};jspb.Map.prototype.set=function(t,o){var r=new jspb.Map.Entry_(t);return this.valueCtor_?(r.valueWrapper=o,r.value=o.toArray()):r.value=o,this.map_[t.toString()]=r,this.arrClean=!1,this};jspb.Map.prototype.wrapEntry_=function(t){return this.valueCtor_?(t.valueWrapper||(t.valueWrapper=new this.valueCtor_(t.value)),t.valueWrapper):t.value};jspb.Map.prototype.get=function(t){if(t=this.map_[t.toString()])return this.wrapEntry_(t)};jspb.Map.prototype.has=function(t){return t.toString()in this.map_};jspb.Map.prototype.serializeBinary=function(t,o,r,i,n){var s=this.stringKeys_();s.sort();for(var p=0;p<s.length;p++){var u=this.map_[s[p]];o.beginSubMessage(t),r.call(o,1,u.key),this.valueCtor_?i.call(o,2,this.wrapEntry_(u),n):i.call(o,2,u.value),o.endSubMessage()}};jspb.Map.deserializeBinary=function(t,o,r,i,n,s,p){for(;o.nextField()&&!o.isEndGroup();){var u=o.getFieldNumber();u==1?s=r.call(o):u==2&&(t.valueCtor_?(goog.asserts.assert(n),p||(p=new t.valueCtor_),i.call(o,p,n)):p=i.call(o))}goog.asserts.assert(s!=null),goog.asserts.assert(p!=null),t.set(s,p)};jspb.Map.prototype.stringKeys_=function(){var t=this.map_,o=[],r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&o.push(r);return o};jspb.Map.Entry_=function(t,o){this.key=t,this.value=o,this.valueWrapper=void 0};jspb.ExtensionFieldInfo=function(t,o,r,i,n){this.fieldIndex=t,this.fieldName=o,this.ctor=r,this.toObjectFn=i,this.isRepeated=n};jspb.ExtensionFieldBinaryInfo=function(t,o,r,i,n,s){this.fieldInfo=t,this.binaryReaderFn=o,this.binaryWriterFn=r,this.binaryMessageSerializeFn=i,this.binaryMessageDeserializeFn=n,this.isPacked=s};jspb.ExtensionFieldInfo.prototype.isMessageType=function(){return!!this.ctor};jspb.Message=function(){};jspb.Message.GENERATE_TO_OBJECT=!0;jspb.Message.GENERATE_FROM_OBJECT=!goog.DISALLOW_TEST_ONLY_CODE;jspb.Message.GENERATE_TO_STRING=!0;jspb.Message.ASSUME_LOCAL_ARRAYS=!1;jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS=!0;jspb.Message.SUPPORTS_UINT8ARRAY_=typeof Uint8Array=="function";jspb.Message.prototype.getJsPbMessageId=function(){return this.messageId_};jspb.Message.getIndex_=function(t,o){return o+t.arrayIndexOffset_};jspb.Message.hiddenES6Property_=function(){};jspb.Message.getFieldNumber_=function(t,o){return o-t.arrayIndexOffset_};jspb.Message.initialize=function(t,o,r,i,n,s){if(t.wrappers_=null,o||(o=r?[r]:[]),t.messageId_=r?String(r):void 0,t.arrayIndexOffset_=r===0?-1:0,t.array=o,jspb.Message.initPivotAndExtensionObject_(t,i),t.convertedPrimitiveFields_={},jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS||(t.repeatedFields=n),n)for(o=0;o<n.length;o++)r=n[o],r<t.pivot_?(r=jspb.Message.getIndex_(t,r),t.array[r]=t.array[r]||jspb.Message.EMPTY_LIST_SENTINEL_):(jspb.Message.maybeInitEmptyExtensionObject_(t),t.extensionObject_[r]=t.extensionObject_[r]||jspb.Message.EMPTY_LIST_SENTINEL_);if(s&&s.length)for(o=0;o<s.length;o++)jspb.Message.computeOneofCase(t,s[o])};jspb.Message.EMPTY_LIST_SENTINEL_=goog.DEBUG&&Object.freeze?Object.freeze([]):[];jspb.Message.isArray_=function(t){return jspb.Message.ASSUME_LOCAL_ARRAYS?t instanceof Array:Array.isArray(t)};jspb.Message.isExtensionObject_=function(t){return t!==null&&typeof t=="object"&&!jspb.Message.isArray_(t)&&!(jspb.Message.SUPPORTS_UINT8ARRAY_&&t instanceof Uint8Array)};jspb.Message.initPivotAndExtensionObject_=function(t,o){var r=t.array.length,i=-1;if(r&&(i=r-1,r=t.array[i],jspb.Message.isExtensionObject_(r))){t.pivot_=jspb.Message.getFieldNumber_(t,i),t.extensionObject_=r;return}-1<o?(t.pivot_=Math.max(o,jspb.Message.getFieldNumber_(t,i+1)),t.extensionObject_=null):t.pivot_=Number.MAX_VALUE};jspb.Message.maybeInitEmptyExtensionObject_=function(t){var o=jspb.Message.getIndex_(t,t.pivot_);t.array[o]||(t.extensionObject_=t.array[o]={})};jspb.Message.toObjectList=function(t,o,r){for(var i=[],n=0;n<t.length;n++)i[n]=o.call(t[n],r,t[n]);return i};jspb.Message.toObjectExtension=function(t,o,r,i,n){for(var s in r){var p=r[s],u=i.call(t,p);if(u!=null){for(var h in p.fieldName)if(p.fieldName.hasOwnProperty(h))break;o[h]=p.toObjectFn?p.isRepeated?jspb.Message.toObjectList(u,p.toObjectFn,n):p.toObjectFn(n,u):u}}};jspb.Message.serializeBinaryExtensions=function(t,o,r,i){for(var n in r){var s=r[n],p=s.fieldInfo;if(!s.binaryWriterFn)throw Error("Message extension present that was generated without binary serialization support");var u=i.call(t,p);if(u!=null)if(p.isMessageType())if(s.binaryMessageSerializeFn)s.binaryWriterFn.call(o,p.fieldIndex,u,s.binaryMessageSerializeFn);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else s.binaryWriterFn.call(o,p.fieldIndex,u)}};jspb.Message.readBinaryExtension=function(t,o,r,i,n){var s=r[o.getFieldNumber()];if(s){if(r=s.fieldInfo,!s.binaryReaderFn)throw Error("Deserializing extension whose generated code does not support binary format");if(r.isMessageType()){var p=new r.ctor;s.binaryReaderFn.call(o,p,s.binaryMessageDeserializeFn)}else p=s.binaryReaderFn.call(o);r.isRepeated&&!s.isPacked?(o=i.call(t,r))?o.push(p):n.call(t,r,[p]):n.call(t,r,p)}else o.skipField()};jspb.Message.getField=function(t,o){if(o<t.pivot_){o=jspb.Message.getIndex_(t,o);var r=t.array[o];return r===jspb.Message.EMPTY_LIST_SENTINEL_?t.array[o]=[]:r}if(t.extensionObject_)return r=t.extensionObject_[o],r===jspb.Message.EMPTY_LIST_SENTINEL_?t.extensionObject_[o]=[]:r};jspb.Message.getRepeatedField=function(t,o){return jspb.Message.getField(t,o)};jspb.Message.getOptionalFloatingPointField=function(t,o){return t=jspb.Message.getField(t,o),t==null?t:+t};jspb.Message.getBooleanField=function(t,o){return t=jspb.Message.getField(t,o),t==null?t:!!t};jspb.Message.getRepeatedFloatingPointField=function(t,o){var r=jspb.Message.getRepeatedField(t,o);if(t.convertedPrimitiveFields_||(t.convertedPrimitiveFields_={}),!t.convertedPrimitiveFields_[o]){for(var i=0;i<r.length;i++)r[i]=+r[i];t.convertedPrimitiveFields_[o]=!0}return r};jspb.Message.getRepeatedBooleanField=function(t,o){var r=jspb.Message.getRepeatedField(t,o);if(t.convertedPrimitiveFields_||(t.convertedPrimitiveFields_={}),!t.convertedPrimitiveFields_[o]){for(var i=0;i<r.length;i++)r[i]=!!r[i];t.convertedPrimitiveFields_[o]=!0}return r};jspb.Message.bytesAsB64=function(t){return t==null||typeof t=="string"?t:jspb.Message.SUPPORTS_UINT8ARRAY_&&t instanceof Uint8Array?goog.crypt.base64.encodeByteArray(t):(goog.asserts.fail("Cannot coerce to b64 string: "+goog.typeOf(t)),null)};jspb.Message.bytesAsU8=function(t){return t==null||t instanceof Uint8Array?t:typeof t=="string"?goog.crypt.base64.decodeStringToUint8Array(t):(goog.asserts.fail("Cannot coerce to Uint8Array: "+goog.typeOf(t)),null)};jspb.Message.bytesListAsB64=function(t){return jspb.Message.assertConsistentTypes_(t),t.length&&typeof t[0]!="string"?goog.array.map(t,jspb.Message.bytesAsB64):t};jspb.Message.bytesListAsU8=function(t){return jspb.Message.assertConsistentTypes_(t),!t.length||t[0]instanceof Uint8Array?t:goog.array.map(t,jspb.Message.bytesAsU8)};jspb.Message.assertConsistentTypes_=function(t){if(goog.DEBUG&&t&&1<t.length){var o=goog.typeOf(t[0]);goog.array.forEach(t,function(r){goog.typeOf(r)!=o&&goog.asserts.fail("Inconsistent type in JSPB repeated field array. Got "+goog.typeOf(r)+" expected "+o)})}};jspb.Message.getFieldWithDefault=function(t,o,r){return t=jspb.Message.getField(t,o),t??r};jspb.Message.getBooleanFieldWithDefault=function(t,o,r){return t=jspb.Message.getBooleanField(t,o),t??r};jspb.Message.getFloatingPointFieldWithDefault=function(t,o,r){return t=jspb.Message.getOptionalFloatingPointField(t,o),t??r};jspb.Message.getFieldProto3=jspb.Message.getFieldWithDefault;jspb.Message.getMapField=function(t,o,r,i){if(t.wrappers_||(t.wrappers_={}),o in t.wrappers_)return t.wrappers_[o];var n=jspb.Message.getField(t,o);if(!n){if(r)return;n=[],jspb.Message.setField(t,o,n)}return t.wrappers_[o]=new jspb.Map(n,i)};jspb.Message.setField=function(t,o,r){return goog.asserts.assertInstanceof(t,jspb.Message),o<t.pivot_?t.array[jspb.Message.getIndex_(t,o)]=r:(jspb.Message.maybeInitEmptyExtensionObject_(t),t.extensionObject_[o]=r),t};jspb.Message.setProto3IntField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,0)};jspb.Message.setProto3FloatField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,0)};jspb.Message.setProto3BooleanField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,!1)};jspb.Message.setProto3StringField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,"")};jspb.Message.setProto3BytesField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,"")};jspb.Message.setProto3EnumField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,0)};jspb.Message.setProto3StringIntField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,"0")};jspb.Message.setFieldIgnoringDefault_=function(t,o,r,i){return goog.asserts.assertInstanceof(t,jspb.Message),r!==i?jspb.Message.setField(t,o,r):o<t.pivot_?t.array[jspb.Message.getIndex_(t,o)]=null:(jspb.Message.maybeInitEmptyExtensionObject_(t),delete t.extensionObject_[o]),t};jspb.Message.addToRepeatedField=function(t,o,r,i){return goog.asserts.assertInstanceof(t,jspb.Message),o=jspb.Message.getRepeatedField(t,o),i!=null?o.splice(i,0,r):o.push(r),t};jspb.Message.setOneofField=function(t,o,r,i){return goog.asserts.assertInstanceof(t,jspb.Message),(r=jspb.Message.computeOneofCase(t,r))&&r!==o&&i!==void 0&&(t.wrappers_&&r in t.wrappers_&&(t.wrappers_[r]=void 0),jspb.Message.setField(t,r,void 0)),jspb.Message.setField(t,o,i)};jspb.Message.computeOneofCase=function(t,o){for(var r,i,n=0;n<o.length;n++){var s=o[n],p=jspb.Message.getField(t,s);p!=null&&(r=s,i=p,jspb.Message.setField(t,s,void 0))}return r?(jspb.Message.setField(t,r,i),r):0};jspb.Message.getWrapperField=function(t,o,r,i){if(t.wrappers_||(t.wrappers_={}),!t.wrappers_[r]){var n=jspb.Message.getField(t,r);(i||n)&&(t.wrappers_[r]=new o(n))}return t.wrappers_[r]};jspb.Message.getRepeatedWrapperField=function(t,o,r){return jspb.Message.wrapRepeatedField_(t,o,r),o=t.wrappers_[r],o==jspb.Message.EMPTY_LIST_SENTINEL_&&(o=t.wrappers_[r]=[]),o};jspb.Message.wrapRepeatedField_=function(t,o,r){if(t.wrappers_||(t.wrappers_={}),!t.wrappers_[r]){for(var i=jspb.Message.getRepeatedField(t,r),n=[],s=0;s<i.length;s++)n[s]=new o(i[s]);t.wrappers_[r]=n}};jspb.Message.setWrapperField=function(t,o,r){goog.asserts.assertInstanceof(t,jspb.Message),t.wrappers_||(t.wrappers_={});var i=r&&r.toArray();return t.wrappers_[o]=r,jspb.Message.setField(t,o,i)};jspb.Message.setOneofWrapperField=function(t,o,r,i){goog.asserts.assertInstanceof(t,jspb.Message),t.wrappers_||(t.wrappers_={});var n=i&&i.toArray();return t.wrappers_[o]=i,jspb.Message.setOneofField(t,o,r,n)};jspb.Message.setRepeatedWrapperField=function(t,o,r){goog.asserts.assertInstanceof(t,jspb.Message),t.wrappers_||(t.wrappers_={}),r=r||[];for(var i=[],n=0;n<r.length;n++)i[n]=r[n].toArray();return t.wrappers_[o]=r,jspb.Message.setField(t,o,i)};jspb.Message.addToRepeatedWrapperField=function(t,o,r,i,n){jspb.Message.wrapRepeatedField_(t,i,o);var s=t.wrappers_[o];return s||(s=t.wrappers_[o]=[]),r=r||new i,t=jspb.Message.getRepeatedField(t,o),n!=null?(s.splice(n,0,r),t.splice(n,0,r.toArray())):(s.push(r),t.push(r.toArray())),r};jspb.Message.toMap=function(t,o,r,i){for(var n={},s=0;s<t.length;s++)n[o.call(t[s])]=r?r.call(t[s],i,t[s]):t[s];return n};jspb.Message.prototype.syncMapFields_=function(){if(this.wrappers_)for(var t in this.wrappers_){var o=this.wrappers_[t];if(Array.isArray(o))for(var r=0;r<o.length;r++)o[r]&&o[r].toArray();else o&&o.toArray()}};jspb.Message.prototype.toArray=function(){return this.syncMapFields_(),this.array};jspb.Message.GENERATE_TO_STRING&&(jspb.Message.prototype.toString=function(){return this.syncMapFields_(),this.array.toString()});jspb.Message.prototype.getExtension=function(t){if(this.extensionObject_){this.wrappers_||(this.wrappers_={});var o=t.fieldIndex;if(t.isRepeated){if(t.isMessageType())return this.wrappers_[o]||(this.wrappers_[o]=goog.array.map(this.extensionObject_[o]||[],function(r){return new t.ctor(r)})),this.wrappers_[o]}else if(t.isMessageType())return!this.wrappers_[o]&&this.extensionObject_[o]&&(this.wrappers_[o]=new t.ctor(this.extensionObject_[o])),this.wrappers_[o];return this.extensionObject_[o]}};jspb.Message.prototype.setExtension=function(t,o){this.wrappers_||(this.wrappers_={}),jspb.Message.maybeInitEmptyExtensionObject_(this);var r=t.fieldIndex;return t.isRepeated?(o=o||[],t.isMessageType()?(this.wrappers_[r]=o,this.extensionObject_[r]=goog.array.map(o,function(i){return i.toArray()})):this.extensionObject_[r]=o):t.isMessageType()?(this.wrappers_[r]=o,this.extensionObject_[r]=o&&o.toArray()):this.extensionObject_[r]=o,this};jspb.Message.difference=function(t,o){if(!(t instanceof o.constructor))throw Error("Messages have different types.");var r=t.toArray();o=o.toArray();var i=[],n=0,s=r.length>o.length?r.length:o.length;for(t.getJsPbMessageId()&&(i[0]=t.getJsPbMessageId(),n=1);n<s;n++)jspb.Message.compareFields(r[n],o[n])||(i[n]=o[n]);return new t.constructor(i)};jspb.Message.equals=function(t,o){return t==o||!(!t||!o)&&t instanceof o.constructor&&jspb.Message.compareFields(t.toArray(),o.toArray())};jspb.Message.compareExtensions=function(t,o){t=t||{},o=o||{};var r={},i;for(i in t)r[i]=0;for(i in o)r[i]=0;for(i in r)if(!jspb.Message.compareFields(t[i],o[i]))return!1;return!0};jspb.Message.compareFields=function(t,o){if(t==o)return!0;if(!goog.isObject(t)||!goog.isObject(o))return typeof t=="number"&&isNaN(t)||typeof o=="number"&&isNaN(o)?String(t)==String(o):!1;if(t.constructor!=o.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&t.constructor===Uint8Array){if(t.length!=o.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!=o[r])return!1;return!0}if(t.constructor===Array){var i=void 0,n=void 0,s=Math.max(t.length,o.length);for(r=0;r<s;r++){var p=t[r],u=o[r];if(p&&p.constructor==Object&&(goog.asserts.assert(i===void 0),goog.asserts.assert(r===t.length-1),i=p,p=void 0),u&&u.constructor==Object&&(goog.asserts.assert(n===void 0),goog.asserts.assert(r===o.length-1),n=u,u=void 0),!jspb.Message.compareFields(p,u))return!1}return i||n?(i=i||{},n=n||{},jspb.Message.compareExtensions(i,n)):!0}if(t.constructor===Object)return jspb.Message.compareExtensions(t,o);throw Error("Invalid type in JSPB array")};jspb.Message.prototype.cloneMessage=function(){return jspb.Message.cloneMessage(this)};jspb.Message.prototype.clone=function(){return jspb.Message.cloneMessage(this)};jspb.Message.clone=function(t){return jspb.Message.cloneMessage(t)};jspb.Message.cloneMessage=function(t){return new t.constructor(jspb.Message.clone_(t.toArray()))};jspb.Message.copyInto=function(t,o){goog.asserts.assertInstanceof(t,jspb.Message),goog.asserts.assertInstanceof(o,jspb.Message),goog.asserts.assert(t.constructor==o.constructor,"Copy source and target message should have the same type."),t=jspb.Message.clone(t);for(var r=o.toArray(),i=t.toArray(),n=r.length=0;n<i.length;n++)r[n]=i[n];o.wrappers_=t.wrappers_,o.extensionObject_=t.extensionObject_};jspb.Message.clone_=function(t){if(Array.isArray(t)){for(var o=Array(t.length),r=0;r<t.length;r++){var i=t[r];i!=null&&(o[r]=typeof i=="object"?jspb.Message.clone_(goog.asserts.assert(i)):i)}return o}if(jspb.Message.SUPPORTS_UINT8ARRAY_&&t instanceof Uint8Array)return new Uint8Array(t);o={};for(r in t)i=t[r],i!=null&&(o[r]=typeof i=="object"?jspb.Message.clone_(goog.asserts.assert(i)):i);return o};jspb.Message.registerMessageType=function(t,o){o.messageId=t};jspb.Message.messageSetExtensions={};jspb.Message.messageSetExtensionsBinary={};jspb.Export={};typeof exports=="object"&&(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)});var ns=H(is=>{var g=Ar(),j=g,ge=function(){return this?this:typeof window!="undefined"?window:typeof ge!="undefined"?ge:typeof self!="undefined"?self:Function("return this")()}.call(null);j.exportSymbol("proto.google.protobuf.DescriptorProto",null,ge);j.exportSymbol("proto.google.protobuf.DescriptorProto.ExtensionRange",null,ge);j.exportSymbol("proto.google.protobuf.DescriptorProto.ReservedRange",null,ge);j.exportSymbol("proto.google.protobuf.EnumDescriptorProto",null,ge);j.exportSymbol("proto.google.protobuf.EnumDescriptorProto.EnumReservedRange",null,ge);j.exportSymbol("proto.google.protobuf.EnumOptions",null,ge);j.exportSymbol("proto.google.protobuf.EnumValueDescriptorProto",null,ge);j.exportSymbol("proto.google.protobuf.EnumValueOptions",null,ge);j.exportSymbol("proto.google.protobuf.ExtensionRangeOptions",null,ge);j.exportSymbol("proto.google.protobuf.FieldDescriptorProto",null,ge);j.exportSymbol("proto.google.protobuf.FieldDescriptorProto.Label",null,ge);j.exportSymbol("proto.google.protobuf.FieldDescriptorProto.Type",null,ge);j.exportSymbol("proto.google.protobuf.FieldOptions",null,ge);j.exportSymbol("proto.google.protobuf.FieldOptions.CType",null,ge);j.exportSymbol("proto.google.protobuf.FieldOptions.JSType",null,ge);j.exportSymbol("proto.google.protobuf.FileDescriptorProto",null,ge);j.exportSymbol("proto.google.protobuf.FileDescriptorSet",null,ge);j.exportSymbol("proto.google.protobuf.FileOptions",null,ge);j.exportSymbol("proto.google.protobuf.FileOptions.OptimizeMode",null,ge);j.exportSymbol("proto.google.protobuf.GeneratedCodeInfo",null,ge);j.exportSymbol("proto.google.protobuf.GeneratedCodeInfo.Annotation",null,ge);j.exportSymbol("proto.google.protobuf.MessageOptions",null,ge);j.exportSymbol("proto.google.protobuf.MethodDescriptorProto",null,ge);j.exportSymbol("proto.google.protobuf.MethodOptions",null,ge);j.exportSymbol("proto.google.protobuf.MethodOptions.IdempotencyLevel",null,ge);j.exportSymbol("proto.google.protobuf.OneofDescriptorProto",null,ge);j.exportSymbol("proto.google.protobuf.OneofOptions",null,ge);j.exportSymbol("proto.google.protobuf.ServiceDescriptorProto",null,ge);j.exportSymbol("proto.google.protobuf.ServiceOptions",null,ge);j.exportSymbol("proto.google.protobuf.SourceCodeInfo",null,ge);j.exportSymbol("proto.google.protobuf.SourceCodeInfo.Location",null,ge);j.exportSymbol("proto.google.protobuf.UninterpretedOption",null,ge);j.exportSymbol("proto.google.protobuf.UninterpretedOption.NamePart",null,ge);proto.google.protobuf.FileDescriptorSet=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.FileDescriptorSet.repeatedFields_,null)};j.inherits(proto.google.protobuf.FileDescriptorSet,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.FileDescriptorSet.displayName="proto.google.protobuf.FileDescriptorSet");proto.google.protobuf.FileDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.FileDescriptorProto.repeatedFields_,null)};j.inherits(proto.google.protobuf.FileDescriptorProto,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.FileDescriptorProto.displayName="proto.google.protobuf.FileDescriptorProto");proto.google.protobuf.DescriptorProto=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.DescriptorProto.repeatedFields_,null)};j.inherits(proto.google.protobuf.DescriptorProto,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.DescriptorProto.displayName="proto.google.protobuf.DescriptorProto");proto.google.protobuf.DescriptorProto.ExtensionRange=function(t){g.Message.initialize(this,t,0,-1,null,null)};j.inherits(proto.google.protobuf.DescriptorProto.ExtensionRange,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.DescriptorProto.ExtensionRange.displayName="proto.google.protobuf.DescriptorProto.ExtensionRange");proto.google.protobuf.DescriptorProto.ReservedRange=function(t){g.Message.initialize(this,t,0,-1,null,null)};j.inherits(proto.google.protobuf.DescriptorProto.ReservedRange,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.DescriptorProto.ReservedRange.displayName="proto.google.protobuf.DescriptorProto.ReservedRange");proto.google.protobuf.ExtensionRangeOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.ExtensionRangeOptions.repeatedFields_,null)};j.inherits(proto.google.protobuf.ExtensionRangeOptions,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.ExtensionRangeOptions.displayName="proto.google.protobuf.ExtensionRangeOptions");proto.google.protobuf.ExtensionRangeOptions.extensions={};proto.google.protobuf.ExtensionRangeOptions.extensionsBinary={};proto.google.protobuf.FieldDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,null,null)};j.inherits(proto.google.protobuf.FieldDescriptorProto,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.FieldDescriptorProto.displayName="proto.google.protobuf.FieldDescriptorProto");proto.google.protobuf.OneofDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,null,null)};j.inherits(proto.google.protobuf.OneofDescriptorProto,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.OneofDescriptorProto.displayName="proto.google.protobuf.OneofDescriptorProto");proto.google.protobuf.EnumDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.EnumDescriptorProto.repeatedFields_,null)};j.inherits(proto.google.protobuf.EnumDescriptorProto,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumDescriptorProto.displayName="proto.google.protobuf.EnumDescriptorProto");proto.google.protobuf.EnumDescriptorProto.EnumReservedRange=function(t){g.Message.initialize(this,t,0,-1,null,null)};j.inherits(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.displayName="proto.google.protobuf.EnumDescriptorProto.EnumReservedRange");proto.google.protobuf.EnumValueDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,null,null)};j.inherits(proto.google.protobuf.EnumValueDescriptorProto,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumValueDescriptorProto.displayName="proto.google.protobuf.EnumValueDescriptorProto");proto.google.protobuf.ServiceDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.ServiceDescriptorProto.repeatedFields_,null)};j.inherits(proto.google.protobuf.ServiceDescriptorProto,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.ServiceDescriptorProto.displayName="proto.google.protobuf.ServiceDescriptorProto");proto.google.protobuf.MethodDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,null,null)};j.inherits(proto.google.protobuf.MethodDescriptorProto,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.MethodDescriptorProto.displayName="proto.google.protobuf.MethodDescriptorProto");proto.google.protobuf.FileOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.FileOptions.repeatedFields_,null)};j.inherits(proto.google.protobuf.FileOptions,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.FileOptions.displayName="proto.google.protobuf.FileOptions");proto.google.protobuf.FileOptions.extensions={};proto.google.protobuf.FileOptions.extensionsBinary={};proto.google.protobuf.MessageOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.MessageOptions.repeatedFields_,null)};j.inherits(proto.google.protobuf.MessageOptions,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.MessageOptions.displayName="proto.google.protobuf.MessageOptions");proto.google.protobuf.MessageOptions.extensions={};proto.google.protobuf.MessageOptions.extensionsBinary={};proto.google.protobuf.FieldOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.FieldOptions.repeatedFields_,null)};j.inherits(proto.google.protobuf.FieldOptions,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.FieldOptions.displayName="proto.google.protobuf.FieldOptions");proto.google.protobuf.FieldOptions.extensions={};proto.google.protobuf.FieldOptions.extensionsBinary={};proto.google.protobuf.OneofOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.OneofOptions.repeatedFields_,null)};j.inherits(proto.google.protobuf.OneofOptions,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.OneofOptions.displayName="proto.google.protobuf.OneofOptions");proto.google.protobuf.OneofOptions.extensions={};proto.google.protobuf.OneofOptions.extensionsBinary={};proto.google.protobuf.EnumOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.EnumOptions.repeatedFields_,null)};j.inherits(proto.google.protobuf.EnumOptions,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumOptions.displayName="proto.google.protobuf.EnumOptions");proto.google.protobuf.EnumOptions.extensions={};proto.google.protobuf.EnumOptions.extensionsBinary={};proto.google.protobuf.EnumValueOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.EnumValueOptions.repeatedFields_,null)};j.inherits(proto.google.protobuf.EnumValueOptions,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumValueOptions.displayName="proto.google.protobuf.EnumValueOptions");proto.google.protobuf.EnumValueOptions.extensions={};proto.google.protobuf.EnumValueOptions.extensionsBinary={};proto.google.protobuf.ServiceOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.ServiceOptions.repeatedFields_,null)};j.inherits(proto.google.protobuf.ServiceOptions,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.ServiceOptions.displayName="proto.google.protobuf.ServiceOptions");proto.google.protobuf.ServiceOptions.extensions={};proto.google.protobuf.ServiceOptions.extensionsBinary={};proto.google.protobuf.MethodOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.MethodOptions.repeatedFields_,null)};j.inherits(proto.google.protobuf.MethodOptions,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.MethodOptions.displayName="proto.google.protobuf.MethodOptions");proto.google.protobuf.MethodOptions.extensions={};proto.google.protobuf.MethodOptions.extensionsBinary={};proto.google.protobuf.UninterpretedOption=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.UninterpretedOption.repeatedFields_,null)};j.inherits(proto.google.protobuf.UninterpretedOption,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.UninterpretedOption.displayName="proto.google.protobuf.UninterpretedOption");proto.google.protobuf.UninterpretedOption.NamePart=function(t){g.Message.initialize(this,t,0,-1,null,null)};j.inherits(proto.google.protobuf.UninterpretedOption.NamePart,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.UninterpretedOption.NamePart.displayName="proto.google.protobuf.UninterpretedOption.NamePart");proto.google.protobuf.SourceCodeInfo=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.SourceCodeInfo.repeatedFields_,null)};j.inherits(proto.google.protobuf.SourceCodeInfo,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.SourceCodeInfo.displayName="proto.google.protobuf.SourceCodeInfo");proto.google.protobuf.SourceCodeInfo.Location=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.SourceCodeInfo.Location.repeatedFields_,null)};j.inherits(proto.google.protobuf.SourceCodeInfo.Location,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.SourceCodeInfo.Location.displayName="proto.google.protobuf.SourceCodeInfo.Location");proto.google.protobuf.GeneratedCodeInfo=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.GeneratedCodeInfo.repeatedFields_,null)};j.inherits(proto.google.protobuf.GeneratedCodeInfo,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.GeneratedCodeInfo.displayName="proto.google.protobuf.GeneratedCodeInfo");proto.google.protobuf.GeneratedCodeInfo.Annotation=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.GeneratedCodeInfo.Annotation.repeatedFields_,null)};j.inherits(proto.google.protobuf.GeneratedCodeInfo.Annotation,g.Message);j.DEBUG&&!COMPILED&&(proto.google.protobuf.GeneratedCodeInfo.Annotation.displayName="proto.google.protobuf.GeneratedCodeInfo.Annotation");proto.google.protobuf.FileDescriptorSet.repeatedFields_=[1];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FileDescriptorSet.prototype.toObject=function(t){return proto.google.protobuf.FileDescriptorSet.toObject(t,this)},proto.google.protobuf.FileDescriptorSet.toObject=function(t,o){var r,i={fileList:g.Message.toObjectList(o.getFileList(),proto.google.protobuf.FileDescriptorProto.toObject,t)};return t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.FileDescriptorSet.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.FileDescriptorSet;return proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader(r,o)};proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new proto.google.protobuf.FileDescriptorProto;o.readMessage(i,proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader),t.addFile(i);break;default:o.skipField();break}}return t};proto.google.protobuf.FileDescriptorSet.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getFileList(),r.length>0&&o.writeRepeatedMessage(1,r,proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter)};proto.google.protobuf.FileDescriptorSet.prototype.getFileList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.FileDescriptorProto,1)};proto.google.protobuf.FileDescriptorSet.prototype.setFileList=function(t){return g.Message.setRepeatedWrapperField(this,1,t)};proto.google.protobuf.FileDescriptorSet.prototype.addFile=function(t,o){return g.Message.addToRepeatedWrapperField(this,1,t,proto.google.protobuf.FileDescriptorProto,o)};proto.google.protobuf.FileDescriptorSet.prototype.clearFileList=function(){return this.setFileList([])};proto.google.protobuf.FileDescriptorProto.repeatedFields_=[3,10,11,4,5,6,7];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FileDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.FileDescriptorProto.toObject(t,this)},proto.google.protobuf.FileDescriptorProto.toObject=function(t,o){var r,i={name:(r=g.Message.getField(o,1))==null?void 0:r,pb_package:(r=g.Message.getField(o,2))==null?void 0:r,dependencyList:(r=g.Message.getRepeatedField(o,3))==null?void 0:r,publicDependencyList:(r=g.Message.getRepeatedField(o,10))==null?void 0:r,weakDependencyList:(r=g.Message.getRepeatedField(o,11))==null?void 0:r,messageTypeList:g.Message.toObjectList(o.getMessageTypeList(),proto.google.protobuf.DescriptorProto.toObject,t),enumTypeList:g.Message.toObjectList(o.getEnumTypeList(),proto.google.protobuf.EnumDescriptorProto.toObject,t),serviceList:g.Message.toObjectList(o.getServiceList(),proto.google.protobuf.ServiceDescriptorProto.toObject,t),extensionList:g.Message.toObjectList(o.getExtensionList(),proto.google.protobuf.FieldDescriptorProto.toObject,t),options:(r=o.getOptions())&&proto.google.protobuf.FileOptions.toObject(t,r),sourceCodeInfo:(r=o.getSourceCodeInfo())&&proto.google.protobuf.SourceCodeInfo.toObject(t,r),syntax:(r=g.Message.getField(o,12))==null?void 0:r};return t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.FileDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.FileDescriptorProto;return proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var s=o.readString();t.setName(s);break;case 2:var s=o.readString();t.setPackage(s);break;case 3:var s=o.readString();t.addDependency(s);break;case 10:for(var n=o.isDelimited()?o.readPackedInt32():[o.readInt32()],i=0;i<n.length;i++)t.addPublicDependency(n[i]);break;case 11:for(var n=o.isDelimited()?o.readPackedInt32():[o.readInt32()],i=0;i<n.length;i++)t.addWeakDependency(n[i]);break;case 4:var s=new proto.google.protobuf.DescriptorProto;o.readMessage(s,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader),t.addMessageType(s);break;case 5:var s=new proto.google.protobuf.EnumDescriptorProto;o.readMessage(s,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader),t.addEnumType(s);break;case 6:var s=new proto.google.protobuf.ServiceDescriptorProto;o.readMessage(s,proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader),t.addService(s);break;case 7:var s=new proto.google.protobuf.FieldDescriptorProto;o.readMessage(s,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader),t.addExtension$(s);break;case 8:var s=new proto.google.protobuf.FileOptions;o.readMessage(s,proto.google.protobuf.FileOptions.deserializeBinaryFromReader),t.setOptions(s);break;case 9:var s=new proto.google.protobuf.SourceCodeInfo;o.readMessage(s,proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader),t.setSourceCodeInfo(s);break;case 12:var s=o.readString();t.setSyntax(s);break;default:o.skipField();break}}return t};proto.google.protobuf.FileDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=g.Message.getField(t,2),r!=null&&o.writeString(2,r),r=t.getDependencyList(),r.length>0&&o.writeRepeatedString(3,r),r=t.getPublicDependencyList(),r.length>0&&o.writeRepeatedInt32(10,r),r=t.getWeakDependencyList(),r.length>0&&o.writeRepeatedInt32(11,r),r=t.getMessageTypeList(),r.length>0&&o.writeRepeatedMessage(4,r,proto.google.protobuf.DescriptorProto.serializeBinaryToWriter),r=t.getEnumTypeList(),r.length>0&&o.writeRepeatedMessage(5,r,proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter),r=t.getServiceList(),r.length>0&&o.writeRepeatedMessage(6,r,proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter),r=t.getExtensionList(),r.length>0&&o.writeRepeatedMessage(7,r,proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter),r=t.getOptions(),r!=null&&o.writeMessage(8,r,proto.google.protobuf.FileOptions.serializeBinaryToWriter),r=t.getSourceCodeInfo(),r!=null&&o.writeMessage(9,r,proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter),r=g.Message.getField(t,12),r!=null&&o.writeString(12,r)};proto.google.protobuf.FileDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.FileDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.FileDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.FileDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.FileDescriptorProto.prototype.getPackage=function(){return g.Message.getFieldWithDefault(this,2,"")};proto.google.protobuf.FileDescriptorProto.prototype.setPackage=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.FileDescriptorProto.prototype.clearPackage=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.FileDescriptorProto.prototype.hasPackage=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.FileDescriptorProto.prototype.getDependencyList=function(){return g.Message.getRepeatedField(this,3)};proto.google.protobuf.FileDescriptorProto.prototype.setDependencyList=function(t){return g.Message.setField(this,3,t||[])};proto.google.protobuf.FileDescriptorProto.prototype.addDependency=function(t,o){return g.Message.addToRepeatedField(this,3,t,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearDependencyList=function(){return this.setDependencyList([])};proto.google.protobuf.FileDescriptorProto.prototype.getPublicDependencyList=function(){return g.Message.getRepeatedField(this,10)};proto.google.protobuf.FileDescriptorProto.prototype.setPublicDependencyList=function(t){return g.Message.setField(this,10,t||[])};proto.google.protobuf.FileDescriptorProto.prototype.addPublicDependency=function(t,o){return g.Message.addToRepeatedField(this,10,t,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearPublicDependencyList=function(){return this.setPublicDependencyList([])};proto.google.protobuf.FileDescriptorProto.prototype.getWeakDependencyList=function(){return g.Message.getRepeatedField(this,11)};proto.google.protobuf.FileDescriptorProto.prototype.setWeakDependencyList=function(t){return g.Message.setField(this,11,t||[])};proto.google.protobuf.FileDescriptorProto.prototype.addWeakDependency=function(t,o){return g.Message.addToRepeatedField(this,11,t,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearWeakDependencyList=function(){return this.setWeakDependencyList([])};proto.google.protobuf.FileDescriptorProto.prototype.getMessageTypeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto,4)};proto.google.protobuf.FileDescriptorProto.prototype.setMessageTypeList=function(t){return g.Message.setRepeatedWrapperField(this,4,t)};proto.google.protobuf.FileDescriptorProto.prototype.addMessageType=function(t,o){return g.Message.addToRepeatedWrapperField(this,4,t,proto.google.protobuf.DescriptorProto,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearMessageTypeList=function(){return this.setMessageTypeList([])};proto.google.protobuf.FileDescriptorProto.prototype.getEnumTypeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumDescriptorProto,5)};proto.google.protobuf.FileDescriptorProto.prototype.setEnumTypeList=function(t){return g.Message.setRepeatedWrapperField(this,5,t)};proto.google.protobuf.FileDescriptorProto.prototype.addEnumType=function(t,o){return g.Message.addToRepeatedWrapperField(this,5,t,proto.google.protobuf.EnumDescriptorProto,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearEnumTypeList=function(){return this.setEnumTypeList([])};proto.google.protobuf.FileDescriptorProto.prototype.getServiceList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.ServiceDescriptorProto,6)};proto.google.protobuf.FileDescriptorProto.prototype.setServiceList=function(t){return g.Message.setRepeatedWrapperField(this,6,t)};proto.google.protobuf.FileDescriptorProto.prototype.addService=function(t,o){return g.Message.addToRepeatedWrapperField(this,6,t,proto.google.protobuf.ServiceDescriptorProto,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearServiceList=function(){return this.setServiceList([])};proto.google.protobuf.FileDescriptorProto.prototype.getExtensionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.FieldDescriptorProto,7)};proto.google.protobuf.FileDescriptorProto.prototype.setExtensionList=function(t){return g.Message.setRepeatedWrapperField(this,7,t)};proto.google.protobuf.FileDescriptorProto.prototype.addExtension$=function(t,o){return g.Message.addToRepeatedWrapperField(this,7,t,proto.google.protobuf.FieldDescriptorProto,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearExtensionList=function(){return this.setExtensionList([])};proto.google.protobuf.FileDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.FileOptions,8)};proto.google.protobuf.FileDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,8,t)};proto.google.protobuf.FileDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.FileDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,8)!=null};proto.google.protobuf.FileDescriptorProto.prototype.getSourceCodeInfo=function(){return g.Message.getWrapperField(this,proto.google.protobuf.SourceCodeInfo,9)};proto.google.protobuf.FileDescriptorProto.prototype.setSourceCodeInfo=function(t){return g.Message.setWrapperField(this,9,t)};proto.google.protobuf.FileDescriptorProto.prototype.clearSourceCodeInfo=function(){return this.setSourceCodeInfo(void 0)};proto.google.protobuf.FileDescriptorProto.prototype.hasSourceCodeInfo=function(){return g.Message.getField(this,9)!=null};proto.google.protobuf.FileDescriptorProto.prototype.getSyntax=function(){return g.Message.getFieldWithDefault(this,12,"")};proto.google.protobuf.FileDescriptorProto.prototype.setSyntax=function(t){return g.Message.setField(this,12,t)};proto.google.protobuf.FileDescriptorProto.prototype.clearSyntax=function(){return g.Message.setField(this,12,void 0)};proto.google.protobuf.FileDescriptorProto.prototype.hasSyntax=function(){return g.Message.getField(this,12)!=null};proto.google.protobuf.DescriptorProto.repeatedFields_=[2,6,3,4,5,8,9,10];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.DescriptorProto.toObject(t,this)},proto.google.protobuf.DescriptorProto.toObject=function(t,o){var r,i={name:(r=g.Message.getField(o,1))==null?void 0:r,fieldList:g.Message.toObjectList(o.getFieldList(),proto.google.protobuf.FieldDescriptorProto.toObject,t),extensionList:g.Message.toObjectList(o.getExtensionList(),proto.google.protobuf.FieldDescriptorProto.toObject,t),nestedTypeList:g.Message.toObjectList(o.getNestedTypeList(),proto.google.protobuf.DescriptorProto.toObject,t),enumTypeList:g.Message.toObjectList(o.getEnumTypeList(),proto.google.protobuf.EnumDescriptorProto.toObject,t),extensionRangeList:g.Message.toObjectList(o.getExtensionRangeList(),proto.google.protobuf.DescriptorProto.ExtensionRange.toObject,t),oneofDeclList:g.Message.toObjectList(o.getOneofDeclList(),proto.google.protobuf.OneofDescriptorProto.toObject,t),options:(r=o.getOptions())&&proto.google.protobuf.MessageOptions.toObject(t,r),reservedRangeList:g.Message.toObjectList(o.getReservedRangeList(),proto.google.protobuf.DescriptorProto.ReservedRange.toObject,t),reservedNameList:(r=g.Message.getRepeatedField(o,10))==null?void 0:r};return t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.DescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.DescriptorProto;return proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readString();t.setName(i);break;case 2:var i=new proto.google.protobuf.FieldDescriptorProto;o.readMessage(i,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader),t.addField(i);break;case 6:var i=new proto.google.protobuf.FieldDescriptorProto;o.readMessage(i,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader),t.addExtension$(i);break;case 3:var i=new proto.google.protobuf.DescriptorProto;o.readMessage(i,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader),t.addNestedType(i);break;case 4:var i=new proto.google.protobuf.EnumDescriptorProto;o.readMessage(i,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader),t.addEnumType(i);break;case 5:var i=new proto.google.protobuf.DescriptorProto.ExtensionRange;o.readMessage(i,proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader),t.addExtensionRange(i);break;case 8:var i=new proto.google.protobuf.OneofDescriptorProto;o.readMessage(i,proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader),t.addOneofDecl(i);break;case 7:var i=new proto.google.protobuf.MessageOptions;o.readMessage(i,proto.google.protobuf.MessageOptions.deserializeBinaryFromReader),t.setOptions(i);break;case 9:var i=new proto.google.protobuf.DescriptorProto.ReservedRange;o.readMessage(i,proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader),t.addReservedRange(i);break;case 10:var i=o.readString();t.addReservedName(i);break;default:o.skipField();break}}return t};proto.google.protobuf.DescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.DescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.DescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=t.getFieldList(),r.length>0&&o.writeRepeatedMessage(2,r,proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter),r=t.getExtensionList(),r.length>0&&o.writeRepeatedMessage(6,r,proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter),r=t.getNestedTypeList(),r.length>0&&o.writeRepeatedMessage(3,r,proto.google.protobuf.DescriptorProto.serializeBinaryToWriter),r=t.getEnumTypeList(),r.length>0&&o.writeRepeatedMessage(4,r,proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter),r=t.getExtensionRangeList(),r.length>0&&o.writeRepeatedMessage(5,r,proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter),r=t.getOneofDeclList(),r.length>0&&o.writeRepeatedMessage(8,r,proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter),r=t.getOptions(),r!=null&&o.writeMessage(7,r,proto.google.protobuf.MessageOptions.serializeBinaryToWriter),r=t.getReservedRangeList(),r.length>0&&o.writeRepeatedMessage(9,r,proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter),r=t.getReservedNameList(),r.length>0&&o.writeRepeatedString(10,r)};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.toObject=function(t){return proto.google.protobuf.DescriptorProto.ExtensionRange.toObject(t,this)},proto.google.protobuf.DescriptorProto.ExtensionRange.toObject=function(t,o){var r,i={start:(r=g.Message.getField(o,1))==null?void 0:r,end:(r=g.Message.getField(o,2))==null?void 0:r,options:(r=o.getOptions())&&proto.google.protobuf.ExtensionRangeOptions.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.DescriptorProto.ExtensionRange;return proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader(r,o)};proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readInt32();t.setStart(i);break;case 2:var i=o.readInt32();t.setEnd(i);break;case 3:var i=new proto.google.protobuf.ExtensionRangeOptions;o.readMessage(i,proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader),t.setOptions(i);break;default:o.skipField();break}}return t};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeInt32(1,r),r=g.Message.getField(t,2),r!=null&&o.writeInt32(2,r),r=t.getOptions(),r!=null&&o.writeMessage(3,r,proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getStart=function(){return g.Message.getFieldWithDefault(this,1,0)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setStart=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearStart=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasStart=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getEnd=function(){return g.Message.getFieldWithDefault(this,2,0)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setEnd=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearEnd=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasEnd=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.ExtensionRangeOptions,3)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setOptions=function(t){return g.Message.setWrapperField(this,3,t)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasOptions=function(){return g.Message.getField(this,3)!=null};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DescriptorProto.ReservedRange.prototype.toObject=function(t){return proto.google.protobuf.DescriptorProto.ReservedRange.toObject(t,this)},proto.google.protobuf.DescriptorProto.ReservedRange.toObject=function(t,o){var r,i={start:(r=g.Message.getField(o,1))==null?void 0:r,end:(r=g.Message.getField(o,2))==null?void 0:r};return t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.DescriptorProto.ReservedRange;return proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader(r,o)};proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readInt32();t.setStart(i);break;case 2:var i=o.readInt32();t.setEnd(i);break;default:o.skipField();break}}return t};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeInt32(1,r),r=g.Message.getField(t,2),r!=null&&o.writeInt32(2,r)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getStart=function(){return g.Message.getFieldWithDefault(this,1,0)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setStart=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearStart=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasStart=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getEnd=function(){return g.Message.getFieldWithDefault(this,2,0)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setEnd=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearEnd=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasEnd=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.DescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.DescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.DescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.DescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.DescriptorProto.prototype.getFieldList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.FieldDescriptorProto,2)};proto.google.protobuf.DescriptorProto.prototype.setFieldList=function(t){return g.Message.setRepeatedWrapperField(this,2,t)};proto.google.protobuf.DescriptorProto.prototype.addField=function(t,o){return g.Message.addToRepeatedWrapperField(this,2,t,proto.google.protobuf.FieldDescriptorProto,o)};proto.google.protobuf.DescriptorProto.prototype.clearFieldList=function(){return this.setFieldList([])};proto.google.protobuf.DescriptorProto.prototype.getExtensionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.FieldDescriptorProto,6)};proto.google.protobuf.DescriptorProto.prototype.setExtensionList=function(t){return g.Message.setRepeatedWrapperField(this,6,t)};proto.google.protobuf.DescriptorProto.prototype.addExtension$=function(t,o){return g.Message.addToRepeatedWrapperField(this,6,t,proto.google.protobuf.FieldDescriptorProto,o)};proto.google.protobuf.DescriptorProto.prototype.clearExtensionList=function(){return this.setExtensionList([])};proto.google.protobuf.DescriptorProto.prototype.getNestedTypeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto,3)};proto.google.protobuf.DescriptorProto.prototype.setNestedTypeList=function(t){return g.Message.setRepeatedWrapperField(this,3,t)};proto.google.protobuf.DescriptorProto.prototype.addNestedType=function(t,o){return g.Message.addToRepeatedWrapperField(this,3,t,proto.google.protobuf.DescriptorProto,o)};proto.google.protobuf.DescriptorProto.prototype.clearNestedTypeList=function(){return this.setNestedTypeList([])};proto.google.protobuf.DescriptorProto.prototype.getEnumTypeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumDescriptorProto,4)};proto.google.protobuf.DescriptorProto.prototype.setEnumTypeList=function(t){return g.Message.setRepeatedWrapperField(this,4,t)};proto.google.protobuf.DescriptorProto.prototype.addEnumType=function(t,o){return g.Message.addToRepeatedWrapperField(this,4,t,proto.google.protobuf.EnumDescriptorProto,o)};proto.google.protobuf.DescriptorProto.prototype.clearEnumTypeList=function(){return this.setEnumTypeList([])};proto.google.protobuf.DescriptorProto.prototype.getExtensionRangeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto.ExtensionRange,5)};proto.google.protobuf.DescriptorProto.prototype.setExtensionRangeList=function(t){return g.Message.setRepeatedWrapperField(this,5,t)};proto.google.protobuf.DescriptorProto.prototype.addExtensionRange=function(t,o){return g.Message.addToRepeatedWrapperField(this,5,t,proto.google.protobuf.DescriptorProto.ExtensionRange,o)};proto.google.protobuf.DescriptorProto.prototype.clearExtensionRangeList=function(){return this.setExtensionRangeList([])};proto.google.protobuf.DescriptorProto.prototype.getOneofDeclList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.OneofDescriptorProto,8)};proto.google.protobuf.DescriptorProto.prototype.setOneofDeclList=function(t){return g.Message.setRepeatedWrapperField(this,8,t)};proto.google.protobuf.DescriptorProto.prototype.addOneofDecl=function(t,o){return g.Message.addToRepeatedWrapperField(this,8,t,proto.google.protobuf.OneofDescriptorProto,o)};proto.google.protobuf.DescriptorProto.prototype.clearOneofDeclList=function(){return this.setOneofDeclList([])};proto.google.protobuf.DescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.MessageOptions,7)};proto.google.protobuf.DescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,7,t)};proto.google.protobuf.DescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.DescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,7)!=null};proto.google.protobuf.DescriptorProto.prototype.getReservedRangeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto.ReservedRange,9)};proto.google.protobuf.DescriptorProto.prototype.setReservedRangeList=function(t){return g.Message.setRepeatedWrapperField(this,9,t)};proto.google.protobuf.DescriptorProto.prototype.addReservedRange=function(t,o){return g.Message.addToRepeatedWrapperField(this,9,t,proto.google.protobuf.DescriptorProto.ReservedRange,o)};proto.google.protobuf.DescriptorProto.prototype.clearReservedRangeList=function(){return this.setReservedRangeList([])};proto.google.protobuf.DescriptorProto.prototype.getReservedNameList=function(){return g.Message.getRepeatedField(this,10)};proto.google.protobuf.DescriptorProto.prototype.setReservedNameList=function(t){return g.Message.setField(this,10,t||[])};proto.google.protobuf.DescriptorProto.prototype.addReservedName=function(t,o){return g.Message.addToRepeatedField(this,10,t,o)};proto.google.protobuf.DescriptorProto.prototype.clearReservedNameList=function(){return this.setReservedNameList([])};proto.google.protobuf.ExtensionRangeOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ExtensionRangeOptions.prototype.toObject=function(t){return proto.google.protobuf.ExtensionRangeOptions.toObject(t,this)},proto.google.protobuf.ExtensionRangeOptions.toObject=function(t,o){var r,i={uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,i,proto.google.protobuf.ExtensionRangeOptions.extensions,proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension,t),t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.ExtensionRangeOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.ExtensionRangeOptions;return proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 999:var i=new proto.google.protobuf.UninterpretedOption;o.readMessage(i,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(i);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.ExtensionRangeOptions.extensionsBinary,proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension,proto.google.protobuf.ExtensionRangeOptions.prototype.setExtension);break}}return t};proto.google.protobuf.ExtensionRangeOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.ExtensionRangeOptions.extensionsBinary,proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension)};proto.google.protobuf.ExtensionRangeOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.ExtensionRangeOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.ExtensionRangeOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.ExtensionRangeOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FieldDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.FieldDescriptorProto.toObject(t,this)},proto.google.protobuf.FieldDescriptorProto.toObject=function(t,o){var r,i={name:(r=g.Message.getField(o,1))==null?void 0:r,number:(r=g.Message.getField(o,3))==null?void 0:r,label:(r=g.Message.getField(o,4))==null?void 0:r,type:(r=g.Message.getField(o,5))==null?void 0:r,typeName:(r=g.Message.getField(o,6))==null?void 0:r,extendee:(r=g.Message.getField(o,2))==null?void 0:r,defaultValue:(r=g.Message.getField(o,7))==null?void 0:r,oneofIndex:(r=g.Message.getField(o,9))==null?void 0:r,jsonName:(r=g.Message.getField(o,10))==null?void 0:r,options:(r=o.getOptions())&&proto.google.protobuf.FieldOptions.toObject(t,r),proto3Optional:(r=g.Message.getBooleanField(o,17))==null?void 0:r};return t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.FieldDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.FieldDescriptorProto;return proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readString();t.setName(i);break;case 3:var i=o.readInt32();t.setNumber(i);break;case 4:var i=o.readEnum();t.setLabel(i);break;case 5:var i=o.readEnum();t.setType(i);break;case 6:var i=o.readString();t.setTypeName(i);break;case 2:var i=o.readString();t.setExtendee(i);break;case 7:var i=o.readString();t.setDefaultValue(i);break;case 9:var i=o.readInt32();t.setOneofIndex(i);break;case 10:var i=o.readString();t.setJsonName(i);break;case 8:var i=new proto.google.protobuf.FieldOptions;o.readMessage(i,proto.google.protobuf.FieldOptions.deserializeBinaryFromReader),t.setOptions(i);break;case 17:var i=o.readBool();t.setProto3Optional(i);break;default:o.skipField();break}}return t};proto.google.protobuf.FieldDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=g.Message.getField(t,3),r!=null&&o.writeInt32(3,r),r=g.Message.getField(t,4),r!=null&&o.writeEnum(4,r),r=g.Message.getField(t,5),r!=null&&o.writeEnum(5,r),r=g.Message.getField(t,6),r!=null&&o.writeString(6,r),r=g.Message.getField(t,2),r!=null&&o.writeString(2,r),r=g.Message.getField(t,7),r!=null&&o.writeString(7,r),r=g.Message.getField(t,9),r!=null&&o.writeInt32(9,r),r=g.Message.getField(t,10),r!=null&&o.writeString(10,r),r=t.getOptions(),r!=null&&o.writeMessage(8,r,proto.google.protobuf.FieldOptions.serializeBinaryToWriter),r=g.Message.getField(t,17),r!=null&&o.writeBool(17,r)};proto.google.protobuf.FieldDescriptorProto.Type={TYPE_DOUBLE:1,TYPE_FLOAT:2,TYPE_INT64:3,TYPE_UINT64:4,TYPE_INT32:5,TYPE_FIXED64:6,TYPE_FIXED32:7,TYPE_BOOL:8,TYPE_STRING:9,TYPE_GROUP:10,TYPE_MESSAGE:11,TYPE_BYTES:12,TYPE_UINT32:13,TYPE_ENUM:14,TYPE_SFIXED32:15,TYPE_SFIXED64:16,TYPE_SINT32:17,TYPE_SINT64:18};proto.google.protobuf.FieldDescriptorProto.Label={LABEL_OPTIONAL:1,LABEL_REQUIRED:2,LABEL_REPEATED:3};proto.google.protobuf.FieldDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.FieldDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getNumber=function(){return g.Message.getFieldWithDefault(this,3,0)};proto.google.protobuf.FieldDescriptorProto.prototype.setNumber=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearNumber=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasNumber=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getLabel=function(){return g.Message.getFieldWithDefault(this,4,1)};proto.google.protobuf.FieldDescriptorProto.prototype.setLabel=function(t){return g.Message.setField(this,4,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearLabel=function(){return g.Message.setField(this,4,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasLabel=function(){return g.Message.getField(this,4)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getType=function(){return g.Message.getFieldWithDefault(this,5,1)};proto.google.protobuf.FieldDescriptorProto.prototype.setType=function(t){return g.Message.setField(this,5,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearType=function(){return g.Message.setField(this,5,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasType=function(){return g.Message.getField(this,5)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getTypeName=function(){return g.Message.getFieldWithDefault(this,6,"")};proto.google.protobuf.FieldDescriptorProto.prototype.setTypeName=function(t){return g.Message.setField(this,6,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearTypeName=function(){return g.Message.setField(this,6,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasTypeName=function(){return g.Message.getField(this,6)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getExtendee=function(){return g.Message.getFieldWithDefault(this,2,"")};proto.google.protobuf.FieldDescriptorProto.prototype.setExtendee=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearExtendee=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasExtendee=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getDefaultValue=function(){return g.Message.getFieldWithDefault(this,7,"")};proto.google.protobuf.FieldDescriptorProto.prototype.setDefaultValue=function(t){return g.Message.setField(this,7,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearDefaultValue=function(){return g.Message.setField(this,7,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasDefaultValue=function(){return g.Message.getField(this,7)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getOneofIndex=function(){return g.Message.getFieldWithDefault(this,9,0)};proto.google.protobuf.FieldDescriptorProto.prototype.setOneofIndex=function(t){return g.Message.setField(this,9,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearOneofIndex=function(){return g.Message.setField(this,9,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasOneofIndex=function(){return g.Message.getField(this,9)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getJsonName=function(){return g.Message.getFieldWithDefault(this,10,"")};proto.google.protobuf.FieldDescriptorProto.prototype.setJsonName=function(t){return g.Message.setField(this,10,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearJsonName=function(){return g.Message.setField(this,10,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasJsonName=function(){return g.Message.getField(this,10)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.FieldOptions,8)};proto.google.protobuf.FieldDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,8,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,8)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getProto3Optional=function(){return g.Message.getBooleanFieldWithDefault(this,17,!1)};proto.google.protobuf.FieldDescriptorProto.prototype.setProto3Optional=function(t){return g.Message.setField(this,17,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearProto3Optional=function(){return g.Message.setField(this,17,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasProto3Optional=function(){return g.Message.getField(this,17)!=null};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.OneofDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.OneofDescriptorProto.toObject(t,this)},proto.google.protobuf.OneofDescriptorProto.toObject=function(t,o){var r,i={name:(r=g.Message.getField(o,1))==null?void 0:r,options:(r=o.getOptions())&&proto.google.protobuf.OneofOptions.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.OneofDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.OneofDescriptorProto;return proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readString();t.setName(i);break;case 2:var i=new proto.google.protobuf.OneofOptions;o.readMessage(i,proto.google.protobuf.OneofOptions.deserializeBinaryFromReader),t.setOptions(i);break;default:o.skipField();break}}return t};proto.google.protobuf.OneofDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=t.getOptions(),r!=null&&o.writeMessage(2,r,proto.google.protobuf.OneofOptions.serializeBinaryToWriter)};proto.google.protobuf.OneofDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.OneofDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.OneofDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.OneofDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.OneofDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.OneofOptions,2)};proto.google.protobuf.OneofDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,2,t)};proto.google.protobuf.OneofDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.OneofDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.EnumDescriptorProto.repeatedFields_=[2,4,5];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.EnumDescriptorProto.toObject(t,this)},proto.google.protobuf.EnumDescriptorProto.toObject=function(t,o){var r,i={name:(r=g.Message.getField(o,1))==null?void 0:r,valueList:g.Message.toObjectList(o.getValueList(),proto.google.protobuf.EnumValueDescriptorProto.toObject,t),options:(r=o.getOptions())&&proto.google.protobuf.EnumOptions.toObject(t,r),reservedRangeList:g.Message.toObjectList(o.getReservedRangeList(),proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject,t),reservedNameList:(r=g.Message.getRepeatedField(o,5))==null?void 0:r};return t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.EnumDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.EnumDescriptorProto;return proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readString();t.setName(i);break;case 2:var i=new proto.google.protobuf.EnumValueDescriptorProto;o.readMessage(i,proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader),t.addValue(i);break;case 3:var i=new proto.google.protobuf.EnumOptions;o.readMessage(i,proto.google.protobuf.EnumOptions.deserializeBinaryFromReader),t.setOptions(i);break;case 4:var i=new proto.google.protobuf.EnumDescriptorProto.EnumReservedRange;o.readMessage(i,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader),t.addReservedRange(i);break;case 5:var i=o.readString();t.addReservedName(i);break;default:o.skipField();break}}return t};proto.google.protobuf.EnumDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=t.getValueList(),r.length>0&&o.writeRepeatedMessage(2,r,proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter),r=t.getOptions(),r!=null&&o.writeMessage(3,r,proto.google.protobuf.EnumOptions.serializeBinaryToWriter),r=t.getReservedRangeList(),r.length>0&&o.writeRepeatedMessage(4,r,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter),r=t.getReservedNameList(),r.length>0&&o.writeRepeatedString(5,r)};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.toObject=function(t){return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(t,this)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject=function(t,o){var r,i={start:(r=g.Message.getField(o,1))==null?void 0:r,end:(r=g.Message.getField(o,2))==null?void 0:r};return t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.EnumDescriptorProto.EnumReservedRange;return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader(r,o)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readInt32();t.setStart(i);break;case 2:var i=o.readInt32();t.setEnd(i);break;default:o.skipField();break}}return t};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeInt32(1,r),r=g.Message.getField(t,2),r!=null&&o.writeInt32(2,r)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.getStart=function(){return g.Message.getFieldWithDefault(this,1,0)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.setStart=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.clearStart=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.hasStart=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.getEnd=function(){return g.Message.getFieldWithDefault(this,2,0)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.setEnd=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.clearEnd=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.hasEnd=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.EnumDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.EnumDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.EnumDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.EnumDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.EnumDescriptorProto.prototype.getValueList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumValueDescriptorProto,2)};proto.google.protobuf.EnumDescriptorProto.prototype.setValueList=function(t){return g.Message.setRepeatedWrapperField(this,2,t)};proto.google.protobuf.EnumDescriptorProto.prototype.addValue=function(t,o){return g.Message.addToRepeatedWrapperField(this,2,t,proto.google.protobuf.EnumValueDescriptorProto,o)};proto.google.protobuf.EnumDescriptorProto.prototype.clearValueList=function(){return this.setValueList([])};proto.google.protobuf.EnumDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.EnumOptions,3)};proto.google.protobuf.EnumDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,3,t)};proto.google.protobuf.EnumDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.EnumDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.EnumDescriptorProto.prototype.getReservedRangeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,4)};proto.google.protobuf.EnumDescriptorProto.prototype.setReservedRangeList=function(t){return g.Message.setRepeatedWrapperField(this,4,t)};proto.google.protobuf.EnumDescriptorProto.prototype.addReservedRange=function(t,o){return g.Message.addToRepeatedWrapperField(this,4,t,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,o)};proto.google.protobuf.EnumDescriptorProto.prototype.clearReservedRangeList=function(){return this.setReservedRangeList([])};proto.google.protobuf.EnumDescriptorProto.prototype.getReservedNameList=function(){return g.Message.getRepeatedField(this,5)};proto.google.protobuf.EnumDescriptorProto.prototype.setReservedNameList=function(t){return g.Message.setField(this,5,t||[])};proto.google.protobuf.EnumDescriptorProto.prototype.addReservedName=function(t,o){return g.Message.addToRepeatedField(this,5,t,o)};proto.google.protobuf.EnumDescriptorProto.prototype.clearReservedNameList=function(){return this.setReservedNameList([])};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumValueDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.EnumValueDescriptorProto.toObject(t,this)},proto.google.protobuf.EnumValueDescriptorProto.toObject=function(t,o){var r,i={name:(r=g.Message.getField(o,1))==null?void 0:r,number:(r=g.Message.getField(o,2))==null?void 0:r,options:(r=o.getOptions())&&proto.google.protobuf.EnumValueOptions.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.EnumValueDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.EnumValueDescriptorProto;return proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readString();t.setName(i);break;case 2:var i=o.readInt32();t.setNumber(i);break;case 3:var i=new proto.google.protobuf.EnumValueOptions;o.readMessage(i,proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader),t.setOptions(i);break;default:o.skipField();break}}return t};proto.google.protobuf.EnumValueDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=g.Message.getField(t,2),r!=null&&o.writeInt32(2,r),r=t.getOptions(),r!=null&&o.writeMessage(3,r,proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter)};proto.google.protobuf.EnumValueDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.EnumValueDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.EnumValueDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.EnumValueDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.EnumValueDescriptorProto.prototype.getNumber=function(){return g.Message.getFieldWithDefault(this,2,0)};proto.google.protobuf.EnumValueDescriptorProto.prototype.setNumber=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.EnumValueDescriptorProto.prototype.clearNumber=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.EnumValueDescriptorProto.prototype.hasNumber=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.EnumValueDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.EnumValueOptions,3)};proto.google.protobuf.EnumValueDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,3,t)};proto.google.protobuf.EnumValueDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.EnumValueDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.ServiceDescriptorProto.repeatedFields_=[2];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ServiceDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.ServiceDescriptorProto.toObject(t,this)},proto.google.protobuf.ServiceDescriptorProto.toObject=function(t,o){var r,i={name:(r=g.Message.getField(o,1))==null?void 0:r,methodList:g.Message.toObjectList(o.getMethodList(),proto.google.protobuf.MethodDescriptorProto.toObject,t),options:(r=o.getOptions())&&proto.google.protobuf.ServiceOptions.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.ServiceDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.ServiceDescriptorProto;return proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readString();t.setName(i);break;case 2:var i=new proto.google.protobuf.MethodDescriptorProto;o.readMessage(i,proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader),t.addMethod(i);break;case 3:var i=new proto.google.protobuf.ServiceOptions;o.readMessage(i,proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader),t.setOptions(i);break;default:o.skipField();break}}return t};proto.google.protobuf.ServiceDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=t.getMethodList(),r.length>0&&o.writeRepeatedMessage(2,r,proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter),r=t.getOptions(),r!=null&&o.writeMessage(3,r,proto.google.protobuf.ServiceOptions.serializeBinaryToWriter)};proto.google.protobuf.ServiceDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.ServiceDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.ServiceDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.ServiceDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.ServiceDescriptorProto.prototype.getMethodList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.MethodDescriptorProto,2)};proto.google.protobuf.ServiceDescriptorProto.prototype.setMethodList=function(t){return g.Message.setRepeatedWrapperField(this,2,t)};proto.google.protobuf.ServiceDescriptorProto.prototype.addMethod=function(t,o){return g.Message.addToRepeatedWrapperField(this,2,t,proto.google.protobuf.MethodDescriptorProto,o)};proto.google.protobuf.ServiceDescriptorProto.prototype.clearMethodList=function(){return this.setMethodList([])};proto.google.protobuf.ServiceDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.ServiceOptions,3)};proto.google.protobuf.ServiceDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,3,t)};proto.google.protobuf.ServiceDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.ServiceDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,3)!=null};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.MethodDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.MethodDescriptorProto.toObject(t,this)},proto.google.protobuf.MethodDescriptorProto.toObject=function(t,o){var r,i={name:(r=g.Message.getField(o,1))==null?void 0:r,inputType:(r=g.Message.getField(o,2))==null?void 0:r,outputType:(r=g.Message.getField(o,3))==null?void 0:r,options:(r=o.getOptions())&&proto.google.protobuf.MethodOptions.toObject(t,r),clientStreaming:g.Message.getBooleanFieldWithDefault(o,5,!1),serverStreaming:g.Message.getBooleanFieldWithDefault(o,6,!1)};return t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.MethodDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.MethodDescriptorProto;return proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readString();t.setName(i);break;case 2:var i=o.readString();t.setInputType(i);break;case 3:var i=o.readString();t.setOutputType(i);break;case 4:var i=new proto.google.protobuf.MethodOptions;o.readMessage(i,proto.google.protobuf.MethodOptions.deserializeBinaryFromReader),t.setOptions(i);break;case 5:var i=o.readBool();t.setClientStreaming(i);break;case 6:var i=o.readBool();t.setServerStreaming(i);break;default:o.skipField();break}}return t};proto.google.protobuf.MethodDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=g.Message.getField(t,2),r!=null&&o.writeString(2,r),r=g.Message.getField(t,3),r!=null&&o.writeString(3,r),r=t.getOptions(),r!=null&&o.writeMessage(4,r,proto.google.protobuf.MethodOptions.serializeBinaryToWriter),r=g.Message.getField(t,5),r!=null&&o.writeBool(5,r),r=g.Message.getField(t,6),r!=null&&o.writeBool(6,r)};proto.google.protobuf.MethodDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.MethodDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.MethodDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.MethodDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.MethodDescriptorProto.prototype.getInputType=function(){return g.Message.getFieldWithDefault(this,2,"")};proto.google.protobuf.MethodDescriptorProto.prototype.setInputType=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.MethodDescriptorProto.prototype.clearInputType=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.MethodDescriptorProto.prototype.hasInputType=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.MethodDescriptorProto.prototype.getOutputType=function(){return g.Message.getFieldWithDefault(this,3,"")};proto.google.protobuf.MethodDescriptorProto.prototype.setOutputType=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.MethodDescriptorProto.prototype.clearOutputType=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.MethodDescriptorProto.prototype.hasOutputType=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.MethodDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.MethodOptions,4)};proto.google.protobuf.MethodDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,4,t)};proto.google.protobuf.MethodDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.MethodDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,4)!=null};proto.google.protobuf.MethodDescriptorProto.prototype.getClientStreaming=function(){return g.Message.getBooleanFieldWithDefault(this,5,!1)};proto.google.protobuf.MethodDescriptorProto.prototype.setClientStreaming=function(t){return g.Message.setField(this,5,t)};proto.google.protobuf.MethodDescriptorProto.prototype.clearClientStreaming=function(){return g.Message.setField(this,5,void 0)};proto.google.protobuf.MethodDescriptorProto.prototype.hasClientStreaming=function(){return g.Message.getField(this,5)!=null};proto.google.protobuf.MethodDescriptorProto.prototype.getServerStreaming=function(){return g.Message.getBooleanFieldWithDefault(this,6,!1)};proto.google.protobuf.MethodDescriptorProto.prototype.setServerStreaming=function(t){return g.Message.setField(this,6,t)};proto.google.protobuf.MethodDescriptorProto.prototype.clearServerStreaming=function(){return g.Message.setField(this,6,void 0)};proto.google.protobuf.MethodDescriptorProto.prototype.hasServerStreaming=function(){return g.Message.getField(this,6)!=null};proto.google.protobuf.FileOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FileOptions.prototype.toObject=function(t){return proto.google.protobuf.FileOptions.toObject(t,this)},proto.google.protobuf.FileOptions.toObject=function(t,o){var r,i={javaPackage:(r=g.Message.getField(o,1))==null?void 0:r,javaOuterClassname:(r=g.Message.getField(o,8))==null?void 0:r,javaMultipleFiles:g.Message.getBooleanFieldWithDefault(o,10,!1),javaGenerateEqualsAndHash:(r=g.Message.getBooleanField(o,20))==null?void 0:r,javaStringCheckUtf8:g.Message.getBooleanFieldWithDefault(o,27,!1),optimizeFor:g.Message.getFieldWithDefault(o,9,1),goPackage:(r=g.Message.getField(o,11))==null?void 0:r,ccGenericServices:g.Message.getBooleanFieldWithDefault(o,16,!1),javaGenericServices:g.Message.getBooleanFieldWithDefault(o,17,!1),pyGenericServices:g.Message.getBooleanFieldWithDefault(o,18,!1),phpGenericServices:g.Message.getBooleanFieldWithDefault(o,42,!1),deprecated:g.Message.getBooleanFieldWithDefault(o,23,!1),ccEnableArenas:g.Message.getBooleanFieldWithDefault(o,31,!0),objcClassPrefix:(r=g.Message.getField(o,36))==null?void 0:r,csharpNamespace:(r=g.Message.getField(o,37))==null?void 0:r,swiftPrefix:(r=g.Message.getField(o,39))==null?void 0:r,phpClassPrefix:(r=g.Message.getField(o,40))==null?void 0:r,phpNamespace:(r=g.Message.getField(o,41))==null?void 0:r,phpMetadataNamespace:(r=g.Message.getField(o,44))==null?void 0:r,rubyPackage:(r=g.Message.getField(o,45))==null?void 0:r,uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,i,proto.google.protobuf.FileOptions.extensions,proto.google.protobuf.FileOptions.prototype.getExtension,t),t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.FileOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.FileOptions;return proto.google.protobuf.FileOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.FileOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readString();t.setJavaPackage(i);break;case 8:var i=o.readString();t.setJavaOuterClassname(i);break;case 10:var i=o.readBool();t.setJavaMultipleFiles(i);break;case 20:var i=o.readBool();t.setJavaGenerateEqualsAndHash(i);break;case 27:var i=o.readBool();t.setJavaStringCheckUtf8(i);break;case 9:var i=o.readEnum();t.setOptimizeFor(i);break;case 11:var i=o.readString();t.setGoPackage(i);break;case 16:var i=o.readBool();t.setCcGenericServices(i);break;case 17:var i=o.readBool();t.setJavaGenericServices(i);break;case 18:var i=o.readBool();t.setPyGenericServices(i);break;case 42:var i=o.readBool();t.setPhpGenericServices(i);break;case 23:var i=o.readBool();t.setDeprecated(i);break;case 31:var i=o.readBool();t.setCcEnableArenas(i);break;case 36:var i=o.readString();t.setObjcClassPrefix(i);break;case 37:var i=o.readString();t.setCsharpNamespace(i);break;case 39:var i=o.readString();t.setSwiftPrefix(i);break;case 40:var i=o.readString();t.setPhpClassPrefix(i);break;case 41:var i=o.readString();t.setPhpNamespace(i);break;case 44:var i=o.readString();t.setPhpMetadataNamespace(i);break;case 45:var i=o.readString();t.setRubyPackage(i);break;case 999:var i=new proto.google.protobuf.UninterpretedOption;o.readMessage(i,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(i);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.FileOptions.extensionsBinary,proto.google.protobuf.FileOptions.prototype.getExtension,proto.google.protobuf.FileOptions.prototype.setExtension);break}}return t};proto.google.protobuf.FileOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.FileOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.FileOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=g.Message.getField(t,8),r!=null&&o.writeString(8,r),r=g.Message.getField(t,10),r!=null&&o.writeBool(10,r),r=g.Message.getField(t,20),r!=null&&o.writeBool(20,r),r=g.Message.getField(t,27),r!=null&&o.writeBool(27,r),r=g.Message.getField(t,9),r!=null&&o.writeEnum(9,r),r=g.Message.getField(t,11),r!=null&&o.writeString(11,r),r=g.Message.getField(t,16),r!=null&&o.writeBool(16,r),r=g.Message.getField(t,17),r!=null&&o.writeBool(17,r),r=g.Message.getField(t,18),r!=null&&o.writeBool(18,r),r=g.Message.getField(t,42),r!=null&&o.writeBool(42,r),r=g.Message.getField(t,23),r!=null&&o.writeBool(23,r),r=g.Message.getField(t,31),r!=null&&o.writeBool(31,r),r=g.Message.getField(t,36),r!=null&&o.writeString(36,r),r=g.Message.getField(t,37),r!=null&&o.writeString(37,r),r=g.Message.getField(t,39),r!=null&&o.writeString(39,r),r=g.Message.getField(t,40),r!=null&&o.writeString(40,r),r=g.Message.getField(t,41),r!=null&&o.writeString(41,r),r=g.Message.getField(t,44),r!=null&&o.writeString(44,r),r=g.Message.getField(t,45),r!=null&&o.writeString(45,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.FileOptions.extensionsBinary,proto.google.protobuf.FileOptions.prototype.getExtension)};proto.google.protobuf.FileOptions.OptimizeMode={SPEED:1,CODE_SIZE:2,LITE_RUNTIME:3};proto.google.protobuf.FileOptions.prototype.getJavaPackage=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.FileOptions.prototype.setJavaPackage=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.FileOptions.prototype.clearJavaPackage=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.FileOptions.prototype.hasJavaPackage=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.FileOptions.prototype.getJavaOuterClassname=function(){return g.Message.getFieldWithDefault(this,8,"")};proto.google.protobuf.FileOptions.prototype.setJavaOuterClassname=function(t){return g.Message.setField(this,8,t)};proto.google.protobuf.FileOptions.prototype.clearJavaOuterClassname=function(){return g.Message.setField(this,8,void 0)};proto.google.protobuf.FileOptions.prototype.hasJavaOuterClassname=function(){return g.Message.getField(this,8)!=null};proto.google.protobuf.FileOptions.prototype.getJavaMultipleFiles=function(){return g.Message.getBooleanFieldWithDefault(this,10,!1)};proto.google.protobuf.FileOptions.prototype.setJavaMultipleFiles=function(t){return g.Message.setField(this,10,t)};proto.google.protobuf.FileOptions.prototype.clearJavaMultipleFiles=function(){return g.Message.setField(this,10,void 0)};proto.google.protobuf.FileOptions.prototype.hasJavaMultipleFiles=function(){return g.Message.getField(this,10)!=null};proto.google.protobuf.FileOptions.prototype.getJavaGenerateEqualsAndHash=function(){return g.Message.getBooleanFieldWithDefault(this,20,!1)};proto.google.protobuf.FileOptions.prototype.setJavaGenerateEqualsAndHash=function(t){return g.Message.setField(this,20,t)};proto.google.protobuf.FileOptions.prototype.clearJavaGenerateEqualsAndHash=function(){return g.Message.setField(this,20,void 0)};proto.google.protobuf.FileOptions.prototype.hasJavaGenerateEqualsAndHash=function(){return g.Message.getField(this,20)!=null};proto.google.protobuf.FileOptions.prototype.getJavaStringCheckUtf8=function(){return g.Message.getBooleanFieldWithDefault(this,27,!1)};proto.google.protobuf.FileOptions.prototype.setJavaStringCheckUtf8=function(t){return g.Message.setField(this,27,t)};proto.google.protobuf.FileOptions.prototype.clearJavaStringCheckUtf8=function(){return g.Message.setField(this,27,void 0)};proto.google.protobuf.FileOptions.prototype.hasJavaStringCheckUtf8=function(){return g.Message.getField(this,27)!=null};proto.google.protobuf.FileOptions.prototype.getOptimizeFor=function(){return g.Message.getFieldWithDefault(this,9,1)};proto.google.protobuf.FileOptions.prototype.setOptimizeFor=function(t){return g.Message.setField(this,9,t)};proto.google.protobuf.FileOptions.prototype.clearOptimizeFor=function(){return g.Message.setField(this,9,void 0)};proto.google.protobuf.FileOptions.prototype.hasOptimizeFor=function(){return g.Message.getField(this,9)!=null};proto.google.protobuf.FileOptions.prototype.getGoPackage=function(){return g.Message.getFieldWithDefault(this,11,"")};proto.google.protobuf.FileOptions.prototype.setGoPackage=function(t){return g.Message.setField(this,11,t)};proto.google.protobuf.FileOptions.prototype.clearGoPackage=function(){return g.Message.setField(this,11,void 0)};proto.google.protobuf.FileOptions.prototype.hasGoPackage=function(){return g.Message.getField(this,11)!=null};proto.google.protobuf.FileOptions.prototype.getCcGenericServices=function(){return g.Message.getBooleanFieldWithDefault(this,16,!1)};proto.google.protobuf.FileOptions.prototype.setCcGenericServices=function(t){return g.Message.setField(this,16,t)};proto.google.protobuf.FileOptions.prototype.clearCcGenericServices=function(){return g.Message.setField(this,16,void 0)};proto.google.protobuf.FileOptions.prototype.hasCcGenericServices=function(){return g.Message.getField(this,16)!=null};proto.google.protobuf.FileOptions.prototype.getJavaGenericServices=function(){return g.Message.getBooleanFieldWithDefault(this,17,!1)};proto.google.protobuf.FileOptions.prototype.setJavaGenericServices=function(t){return g.Message.setField(this,17,t)};proto.google.protobuf.FileOptions.prototype.clearJavaGenericServices=function(){return g.Message.setField(this,17,void 0)};proto.google.protobuf.FileOptions.prototype.hasJavaGenericServices=function(){return g.Message.getField(this,17)!=null};proto.google.protobuf.FileOptions.prototype.getPyGenericServices=function(){return g.Message.getBooleanFieldWithDefault(this,18,!1)};proto.google.protobuf.FileOptions.prototype.setPyGenericServices=function(t){return g.Message.setField(this,18,t)};proto.google.protobuf.FileOptions.prototype.clearPyGenericServices=function(){return g.Message.setField(this,18,void 0)};proto.google.protobuf.FileOptions.prototype.hasPyGenericServices=function(){return g.Message.getField(this,18)!=null};proto.google.protobuf.FileOptions.prototype.getPhpGenericServices=function(){return g.Message.getBooleanFieldWithDefault(this,42,!1)};proto.google.protobuf.FileOptions.prototype.setPhpGenericServices=function(t){return g.Message.setField(this,42,t)};proto.google.protobuf.FileOptions.prototype.clearPhpGenericServices=function(){return g.Message.setField(this,42,void 0)};proto.google.protobuf.FileOptions.prototype.hasPhpGenericServices=function(){return g.Message.getField(this,42)!=null};proto.google.protobuf.FileOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,23,!1)};proto.google.protobuf.FileOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,23,t)};proto.google.protobuf.FileOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,23,void 0)};proto.google.protobuf.FileOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,23)!=null};proto.google.protobuf.FileOptions.prototype.getCcEnableArenas=function(){return g.Message.getBooleanFieldWithDefault(this,31,!0)};proto.google.protobuf.FileOptions.prototype.setCcEnableArenas=function(t){return g.Message.setField(this,31,t)};proto.google.protobuf.FileOptions.prototype.clearCcEnableArenas=function(){return g.Message.setField(this,31,void 0)};proto.google.protobuf.FileOptions.prototype.hasCcEnableArenas=function(){return g.Message.getField(this,31)!=null};proto.google.protobuf.FileOptions.prototype.getObjcClassPrefix=function(){return g.Message.getFieldWithDefault(this,36,"")};proto.google.protobuf.FileOptions.prototype.setObjcClassPrefix=function(t){return g.Message.setField(this,36,t)};proto.google.protobuf.FileOptions.prototype.clearObjcClassPrefix=function(){return g.Message.setField(this,36,void 0)};proto.google.protobuf.FileOptions.prototype.hasObjcClassPrefix=function(){return g.Message.getField(this,36)!=null};proto.google.protobuf.FileOptions.prototype.getCsharpNamespace=function(){return g.Message.getFieldWithDefault(this,37,"")};proto.google.protobuf.FileOptions.prototype.setCsharpNamespace=function(t){return g.Message.setField(this,37,t)};proto.google.protobuf.FileOptions.prototype.clearCsharpNamespace=function(){return g.Message.setField(this,37,void 0)};proto.google.protobuf.FileOptions.prototype.hasCsharpNamespace=function(){return g.Message.getField(this,37)!=null};proto.google.protobuf.FileOptions.prototype.getSwiftPrefix=function(){return g.Message.getFieldWithDefault(this,39,"")};proto.google.protobuf.FileOptions.prototype.setSwiftPrefix=function(t){return g.Message.setField(this,39,t)};proto.google.protobuf.FileOptions.prototype.clearSwiftPrefix=function(){return g.Message.setField(this,39,void 0)};proto.google.protobuf.FileOptions.prototype.hasSwiftPrefix=function(){return g.Message.getField(this,39)!=null};proto.google.protobuf.FileOptions.prototype.getPhpClassPrefix=function(){return g.Message.getFieldWithDefault(this,40,"")};proto.google.protobuf.FileOptions.prototype.setPhpClassPrefix=function(t){return g.Message.setField(this,40,t)};proto.google.protobuf.FileOptions.prototype.clearPhpClassPrefix=function(){return g.Message.setField(this,40,void 0)};proto.google.protobuf.FileOptions.prototype.hasPhpClassPrefix=function(){return g.Message.getField(this,40)!=null};proto.google.protobuf.FileOptions.prototype.getPhpNamespace=function(){return g.Message.getFieldWithDefault(this,41,"")};proto.google.protobuf.FileOptions.prototype.setPhpNamespace=function(t){return g.Message.setField(this,41,t)};proto.google.protobuf.FileOptions.prototype.clearPhpNamespace=function(){return g.Message.setField(this,41,void 0)};proto.google.protobuf.FileOptions.prototype.hasPhpNamespace=function(){return g.Message.getField(this,41)!=null};proto.google.protobuf.FileOptions.prototype.getPhpMetadataNamespace=function(){return g.Message.getFieldWithDefault(this,44,"")};proto.google.protobuf.FileOptions.prototype.setPhpMetadataNamespace=function(t){return g.Message.setField(this,44,t)};proto.google.protobuf.FileOptions.prototype.clearPhpMetadataNamespace=function(){return g.Message.setField(this,44,void 0)};proto.google.protobuf.FileOptions.prototype.hasPhpMetadataNamespace=function(){return g.Message.getField(this,44)!=null};proto.google.protobuf.FileOptions.prototype.getRubyPackage=function(){return g.Message.getFieldWithDefault(this,45,"")};proto.google.protobuf.FileOptions.prototype.setRubyPackage=function(t){return g.Message.setField(this,45,t)};proto.google.protobuf.FileOptions.prototype.clearRubyPackage=function(){return g.Message.setField(this,45,void 0)};proto.google.protobuf.FileOptions.prototype.hasRubyPackage=function(){return g.Message.getField(this,45)!=null};proto.google.protobuf.FileOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.FileOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.FileOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.FileOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.MessageOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.MessageOptions.prototype.toObject=function(t){return proto.google.protobuf.MessageOptions.toObject(t,this)},proto.google.protobuf.MessageOptions.toObject=function(t,o){var r,i={messageSetWireFormat:g.Message.getBooleanFieldWithDefault(o,1,!1),noStandardDescriptorAccessor:g.Message.getBooleanFieldWithDefault(o,2,!1),deprecated:g.Message.getBooleanFieldWithDefault(o,3,!1),mapEntry:(r=g.Message.getBooleanField(o,7))==null?void 0:r,uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,i,proto.google.protobuf.MessageOptions.extensions,proto.google.protobuf.MessageOptions.prototype.getExtension,t),t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.MessageOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.MessageOptions;return proto.google.protobuf.MessageOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.MessageOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readBool();t.setMessageSetWireFormat(i);break;case 2:var i=o.readBool();t.setNoStandardDescriptorAccessor(i);break;case 3:var i=o.readBool();t.setDeprecated(i);break;case 7:var i=o.readBool();t.setMapEntry(i);break;case 999:var i=new proto.google.protobuf.UninterpretedOption;o.readMessage(i,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(i);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.MessageOptions.extensionsBinary,proto.google.protobuf.MessageOptions.prototype.getExtension,proto.google.protobuf.MessageOptions.prototype.setExtension);break}}return t};proto.google.protobuf.MessageOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.MessageOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.MessageOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeBool(1,r),r=g.Message.getField(t,2),r!=null&&o.writeBool(2,r),r=g.Message.getField(t,3),r!=null&&o.writeBool(3,r),r=g.Message.getField(t,7),r!=null&&o.writeBool(7,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.MessageOptions.extensionsBinary,proto.google.protobuf.MessageOptions.prototype.getExtension)};proto.google.protobuf.MessageOptions.prototype.getMessageSetWireFormat=function(){return g.Message.getBooleanFieldWithDefault(this,1,!1)};proto.google.protobuf.MessageOptions.prototype.setMessageSetWireFormat=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.MessageOptions.prototype.clearMessageSetWireFormat=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.MessageOptions.prototype.hasMessageSetWireFormat=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.MessageOptions.prototype.getNoStandardDescriptorAccessor=function(){return g.Message.getBooleanFieldWithDefault(this,2,!1)};proto.google.protobuf.MessageOptions.prototype.setNoStandardDescriptorAccessor=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.MessageOptions.prototype.clearNoStandardDescriptorAccessor=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.MessageOptions.prototype.hasNoStandardDescriptorAccessor=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.MessageOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,3,!1)};proto.google.protobuf.MessageOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.MessageOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.MessageOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.MessageOptions.prototype.getMapEntry=function(){return g.Message.getBooleanFieldWithDefault(this,7,!1)};proto.google.protobuf.MessageOptions.prototype.setMapEntry=function(t){return g.Message.setField(this,7,t)};proto.google.protobuf.MessageOptions.prototype.clearMapEntry=function(){return g.Message.setField(this,7,void 0)};proto.google.protobuf.MessageOptions.prototype.hasMapEntry=function(){return g.Message.getField(this,7)!=null};proto.google.protobuf.MessageOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.MessageOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.MessageOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.MessageOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.FieldOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FieldOptions.prototype.toObject=function(t){return proto.google.protobuf.FieldOptions.toObject(t,this)},proto.google.protobuf.FieldOptions.toObject=function(t,o){var r,i={ctype:g.Message.getFieldWithDefault(o,1,0),packed:(r=g.Message.getBooleanField(o,2))==null?void 0:r,jstype:g.Message.getFieldWithDefault(o,6,0),lazy:g.Message.getBooleanFieldWithDefault(o,5,!1),deprecated:g.Message.getBooleanFieldWithDefault(o,3,!1),weak:g.Message.getBooleanFieldWithDefault(o,10,!1),uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,i,proto.google.protobuf.FieldOptions.extensions,proto.google.protobuf.FieldOptions.prototype.getExtension,t),t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.FieldOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.FieldOptions;return proto.google.protobuf.FieldOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.FieldOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readEnum();t.setCtype(i);break;case 2:var i=o.readBool();t.setPacked(i);break;case 6:var i=o.readEnum();t.setJstype(i);break;case 5:var i=o.readBool();t.setLazy(i);break;case 3:var i=o.readBool();t.setDeprecated(i);break;case 10:var i=o.readBool();t.setWeak(i);break;case 999:var i=new proto.google.protobuf.UninterpretedOption;o.readMessage(i,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(i);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.FieldOptions.extensionsBinary,proto.google.protobuf.FieldOptions.prototype.getExtension,proto.google.protobuf.FieldOptions.prototype.setExtension);break}}return t};proto.google.protobuf.FieldOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.FieldOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.FieldOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeEnum(1,r),r=g.Message.getField(t,2),r!=null&&o.writeBool(2,r),r=g.Message.getField(t,6),r!=null&&o.writeEnum(6,r),r=g.Message.getField(t,5),r!=null&&o.writeBool(5,r),r=g.Message.getField(t,3),r!=null&&o.writeBool(3,r),r=g.Message.getField(t,10),r!=null&&o.writeBool(10,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.FieldOptions.extensionsBinary,proto.google.protobuf.FieldOptions.prototype.getExtension)};proto.google.protobuf.FieldOptions.CType={STRING:0,CORD:1,STRING_PIECE:2};proto.google.protobuf.FieldOptions.JSType={JS_NORMAL:0,JS_STRING:1,JS_NUMBER:2};proto.google.protobuf.FieldOptions.prototype.getCtype=function(){return g.Message.getFieldWithDefault(this,1,0)};proto.google.protobuf.FieldOptions.prototype.setCtype=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.FieldOptions.prototype.clearCtype=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.FieldOptions.prototype.hasCtype=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.FieldOptions.prototype.getPacked=function(){return g.Message.getBooleanFieldWithDefault(this,2,!1)};proto.google.protobuf.FieldOptions.prototype.setPacked=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.FieldOptions.prototype.clearPacked=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.FieldOptions.prototype.hasPacked=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.FieldOptions.prototype.getJstype=function(){return g.Message.getFieldWithDefault(this,6,0)};proto.google.protobuf.FieldOptions.prototype.setJstype=function(t){return g.Message.setField(this,6,t)};proto.google.protobuf.FieldOptions.prototype.clearJstype=function(){return g.Message.setField(this,6,void 0)};proto.google.protobuf.FieldOptions.prototype.hasJstype=function(){return g.Message.getField(this,6)!=null};proto.google.protobuf.FieldOptions.prototype.getLazy=function(){return g.Message.getBooleanFieldWithDefault(this,5,!1)};proto.google.protobuf.FieldOptions.prototype.setLazy=function(t){return g.Message.setField(this,5,t)};proto.google.protobuf.FieldOptions.prototype.clearLazy=function(){return g.Message.setField(this,5,void 0)};proto.google.protobuf.FieldOptions.prototype.hasLazy=function(){return g.Message.getField(this,5)!=null};proto.google.protobuf.FieldOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,3,!1)};proto.google.protobuf.FieldOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.FieldOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.FieldOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.FieldOptions.prototype.getWeak=function(){return g.Message.getBooleanFieldWithDefault(this,10,!1)};proto.google.protobuf.FieldOptions.prototype.setWeak=function(t){return g.Message.setField(this,10,t)};proto.google.protobuf.FieldOptions.prototype.clearWeak=function(){return g.Message.setField(this,10,void 0)};proto.google.protobuf.FieldOptions.prototype.hasWeak=function(){return g.Message.getField(this,10)!=null};proto.google.protobuf.FieldOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.FieldOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.FieldOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.FieldOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.OneofOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.OneofOptions.prototype.toObject=function(t){return proto.google.protobuf.OneofOptions.toObject(t,this)},proto.google.protobuf.OneofOptions.toObject=function(t,o){var r,i={uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,i,proto.google.protobuf.OneofOptions.extensions,proto.google.protobuf.OneofOptions.prototype.getExtension,t),t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.OneofOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.OneofOptions;return proto.google.protobuf.OneofOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.OneofOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 999:var i=new proto.google.protobuf.UninterpretedOption;o.readMessage(i,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(i);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.OneofOptions.extensionsBinary,proto.google.protobuf.OneofOptions.prototype.getExtension,proto.google.protobuf.OneofOptions.prototype.setExtension);break}}return t};proto.google.protobuf.OneofOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.OneofOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.OneofOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.OneofOptions.extensionsBinary,proto.google.protobuf.OneofOptions.prototype.getExtension)};proto.google.protobuf.OneofOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.OneofOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.OneofOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.OneofOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.EnumOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumOptions.prototype.toObject=function(t){return proto.google.protobuf.EnumOptions.toObject(t,this)},proto.google.protobuf.EnumOptions.toObject=function(t,o){var r,i={allowAlias:(r=g.Message.getBooleanField(o,2))==null?void 0:r,deprecated:g.Message.getBooleanFieldWithDefault(o,3,!1),uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,i,proto.google.protobuf.EnumOptions.extensions,proto.google.protobuf.EnumOptions.prototype.getExtension,t),t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.EnumOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.EnumOptions;return proto.google.protobuf.EnumOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.EnumOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 2:var i=o.readBool();t.setAllowAlias(i);break;case 3:var i=o.readBool();t.setDeprecated(i);break;case 999:var i=new proto.google.protobuf.UninterpretedOption;o.readMessage(i,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(i);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.EnumOptions.extensionsBinary,proto.google.protobuf.EnumOptions.prototype.getExtension,proto.google.protobuf.EnumOptions.prototype.setExtension);break}}return t};proto.google.protobuf.EnumOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.EnumOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.EnumOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,2),r!=null&&o.writeBool(2,r),r=g.Message.getField(t,3),r!=null&&o.writeBool(3,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.EnumOptions.extensionsBinary,proto.google.protobuf.EnumOptions.prototype.getExtension)};proto.google.protobuf.EnumOptions.prototype.getAllowAlias=function(){return g.Message.getBooleanFieldWithDefault(this,2,!1)};proto.google.protobuf.EnumOptions.prototype.setAllowAlias=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.EnumOptions.prototype.clearAllowAlias=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.EnumOptions.prototype.hasAllowAlias=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.EnumOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,3,!1)};proto.google.protobuf.EnumOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.EnumOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.EnumOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.EnumOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.EnumOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.EnumOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.EnumOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.EnumValueOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumValueOptions.prototype.toObject=function(t){return proto.google.protobuf.EnumValueOptions.toObject(t,this)},proto.google.protobuf.EnumValueOptions.toObject=function(t,o){var r,i={deprecated:g.Message.getBooleanFieldWithDefault(o,1,!1),uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,i,proto.google.protobuf.EnumValueOptions.extensions,proto.google.protobuf.EnumValueOptions.prototype.getExtension,t),t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.EnumValueOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.EnumValueOptions;return proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readBool();t.setDeprecated(i);break;case 999:var i=new proto.google.protobuf.UninterpretedOption;o.readMessage(i,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(i);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.EnumValueOptions.extensionsBinary,proto.google.protobuf.EnumValueOptions.prototype.getExtension,proto.google.protobuf.EnumValueOptions.prototype.setExtension);break}}return t};proto.google.protobuf.EnumValueOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeBool(1,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.EnumValueOptions.extensionsBinary,proto.google.protobuf.EnumValueOptions.prototype.getExtension)};proto.google.protobuf.EnumValueOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,1,!1)};proto.google.protobuf.EnumValueOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.EnumValueOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.EnumValueOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.EnumValueOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.EnumValueOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.EnumValueOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.EnumValueOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.ServiceOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ServiceOptions.prototype.toObject=function(t){return proto.google.protobuf.ServiceOptions.toObject(t,this)},proto.google.protobuf.ServiceOptions.toObject=function(t,o){var r,i={deprecated:g.Message.getBooleanFieldWithDefault(o,33,!1),uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,i,proto.google.protobuf.ServiceOptions.extensions,proto.google.protobuf.ServiceOptions.prototype.getExtension,t),t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.ServiceOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.ServiceOptions;return proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 33:var i=o.readBool();t.setDeprecated(i);break;case 999:var i=new proto.google.protobuf.UninterpretedOption;o.readMessage(i,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(i);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.ServiceOptions.extensionsBinary,proto.google.protobuf.ServiceOptions.prototype.getExtension,proto.google.protobuf.ServiceOptions.prototype.setExtension);break}}return t};proto.google.protobuf.ServiceOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.ServiceOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.ServiceOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,33),r!=null&&o.writeBool(33,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.ServiceOptions.extensionsBinary,proto.google.protobuf.ServiceOptions.prototype.getExtension)};proto.google.protobuf.ServiceOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,33,!1)};proto.google.protobuf.ServiceOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,33,t)};proto.google.protobuf.ServiceOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,33,void 0)};proto.google.protobuf.ServiceOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,33)!=null};proto.google.protobuf.ServiceOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.ServiceOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.ServiceOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.ServiceOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.MethodOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.MethodOptions.prototype.toObject=function(t){return proto.google.protobuf.MethodOptions.toObject(t,this)},proto.google.protobuf.MethodOptions.toObject=function(t,o){var r,i={deprecated:g.Message.getBooleanFieldWithDefault(o,33,!1),idempotencyLevel:g.Message.getFieldWithDefault(o,34,0),uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,i,proto.google.protobuf.MethodOptions.extensions,proto.google.protobuf.MethodOptions.prototype.getExtension,t),t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.MethodOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.MethodOptions;return proto.google.protobuf.MethodOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.MethodOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 33:var i=o.readBool();t.setDeprecated(i);break;case 34:var i=o.readEnum();t.setIdempotencyLevel(i);break;case 999:var i=new proto.google.protobuf.UninterpretedOption;o.readMessage(i,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(i);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.MethodOptions.extensionsBinary,proto.google.protobuf.MethodOptions.prototype.getExtension,proto.google.protobuf.MethodOptions.prototype.setExtension);break}}return t};proto.google.protobuf.MethodOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.MethodOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.MethodOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,33),r!=null&&o.writeBool(33,r),r=g.Message.getField(t,34),r!=null&&o.writeEnum(34,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.MethodOptions.extensionsBinary,proto.google.protobuf.MethodOptions.prototype.getExtension)};proto.google.protobuf.MethodOptions.IdempotencyLevel={IDEMPOTENCY_UNKNOWN:0,NO_SIDE_EFFECTS:1,IDEMPOTENT:2};proto.google.protobuf.MethodOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,33,!1)};proto.google.protobuf.MethodOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,33,t)};proto.google.protobuf.MethodOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,33,void 0)};proto.google.protobuf.MethodOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,33)!=null};proto.google.protobuf.MethodOptions.prototype.getIdempotencyLevel=function(){return g.Message.getFieldWithDefault(this,34,0)};proto.google.protobuf.MethodOptions.prototype.setIdempotencyLevel=function(t){return g.Message.setField(this,34,t)};proto.google.protobuf.MethodOptions.prototype.clearIdempotencyLevel=function(){return g.Message.setField(this,34,void 0)};proto.google.protobuf.MethodOptions.prototype.hasIdempotencyLevel=function(){return g.Message.getField(this,34)!=null};proto.google.protobuf.MethodOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.MethodOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.MethodOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.MethodOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.UninterpretedOption.repeatedFields_=[2];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UninterpretedOption.prototype.toObject=function(t){return proto.google.protobuf.UninterpretedOption.toObject(t,this)},proto.google.protobuf.UninterpretedOption.toObject=function(t,o){var r,i={nameList:g.Message.toObjectList(o.getNameList(),proto.google.protobuf.UninterpretedOption.NamePart.toObject,t),identifierValue:(r=g.Message.getField(o,3))==null?void 0:r,positiveIntValue:(r=g.Message.getField(o,4))==null?void 0:r,negativeIntValue:(r=g.Message.getField(o,5))==null?void 0:r,doubleValue:(r=g.Message.getOptionalFloatingPointField(o,6))==null?void 0:r,stringValue:o.getStringValue_asB64(),aggregateValue:(r=g.Message.getField(o,8))==null?void 0:r};return t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.UninterpretedOption.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.UninterpretedOption;return proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader(r,o)};proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 2:var i=new proto.google.protobuf.UninterpretedOption.NamePart;o.readMessage(i,proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader),t.addName(i);break;case 3:var i=o.readString();t.setIdentifierValue(i);break;case 4:var i=o.readUint64();t.setPositiveIntValue(i);break;case 5:var i=o.readInt64();t.setNegativeIntValue(i);break;case 6:var i=o.readDouble();t.setDoubleValue(i);break;case 7:var i=o.readBytes();t.setStringValue(i);break;case 8:var i=o.readString();t.setAggregateValue(i);break;default:o.skipField();break}}return t};proto.google.protobuf.UninterpretedOption.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getNameList(),r.length>0&&o.writeRepeatedMessage(2,r,proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter),r=g.Message.getField(t,3),r!=null&&o.writeString(3,r),r=g.Message.getField(t,4),r!=null&&o.writeUint64(4,r),r=g.Message.getField(t,5),r!=null&&o.writeInt64(5,r),r=g.Message.getField(t,6),r!=null&&o.writeDouble(6,r),r=g.Message.getField(t,7),r!=null&&o.writeBytes(7,r),r=g.Message.getField(t,8),r!=null&&o.writeString(8,r)};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UninterpretedOption.NamePart.prototype.toObject=function(t){return proto.google.protobuf.UninterpretedOption.NamePart.toObject(t,this)},proto.google.protobuf.UninterpretedOption.NamePart.toObject=function(t,o){var r,i={namePart:(r=g.Message.getField(o,1))==null?void 0:r,isExtension:(r=g.Message.getBooleanField(o,2))==null?void 0:r};return t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.UninterpretedOption.NamePart;return proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader(r,o)};proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readString();t.setNamePart(i);break;case 2:var i=o.readBool();t.setIsExtension(i);break;default:o.skipField();break}}return t};proto.google.protobuf.UninterpretedOption.NamePart.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=g.Message.getField(t,2),r!=null&&o.writeBool(2,r)};proto.google.protobuf.UninterpretedOption.NamePart.prototype.getNamePart=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.UninterpretedOption.NamePart.prototype.setNamePart=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.UninterpretedOption.NamePart.prototype.clearNamePart=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.UninterpretedOption.NamePart.prototype.hasNamePart=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.UninterpretedOption.NamePart.prototype.getIsExtension=function(){return g.Message.getBooleanFieldWithDefault(this,2,!1)};proto.google.protobuf.UninterpretedOption.NamePart.prototype.setIsExtension=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.UninterpretedOption.NamePart.prototype.clearIsExtension=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.UninterpretedOption.NamePart.prototype.hasIsExtension=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.UninterpretedOption.prototype.getNameList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption.NamePart,2)};proto.google.protobuf.UninterpretedOption.prototype.setNameList=function(t){return g.Message.setRepeatedWrapperField(this,2,t)};proto.google.protobuf.UninterpretedOption.prototype.addName=function(t,o){return g.Message.addToRepeatedWrapperField(this,2,t,proto.google.protobuf.UninterpretedOption.NamePart,o)};proto.google.protobuf.UninterpretedOption.prototype.clearNameList=function(){return this.setNameList([])};proto.google.protobuf.UninterpretedOption.prototype.getIdentifierValue=function(){return g.Message.getFieldWithDefault(this,3,"")};proto.google.protobuf.UninterpretedOption.prototype.setIdentifierValue=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.UninterpretedOption.prototype.clearIdentifierValue=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.UninterpretedOption.prototype.hasIdentifierValue=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.UninterpretedOption.prototype.getPositiveIntValue=function(){return g.Message.getFieldWithDefault(this,4,0)};proto.google.protobuf.UninterpretedOption.prototype.setPositiveIntValue=function(t){return g.Message.setField(this,4,t)};proto.google.protobuf.UninterpretedOption.prototype.clearPositiveIntValue=function(){return g.Message.setField(this,4,void 0)};proto.google.protobuf.UninterpretedOption.prototype.hasPositiveIntValue=function(){return g.Message.getField(this,4)!=null};proto.google.protobuf.UninterpretedOption.prototype.getNegativeIntValue=function(){return g.Message.getFieldWithDefault(this,5,0)};proto.google.protobuf.UninterpretedOption.prototype.setNegativeIntValue=function(t){return g.Message.setField(this,5,t)};proto.google.protobuf.UninterpretedOption.prototype.clearNegativeIntValue=function(){return g.Message.setField(this,5,void 0)};proto.google.protobuf.UninterpretedOption.prototype.hasNegativeIntValue=function(){return g.Message.getField(this,5)!=null};proto.google.protobuf.UninterpretedOption.prototype.getDoubleValue=function(){return g.Message.getFloatingPointFieldWithDefault(this,6,0)};proto.google.protobuf.UninterpretedOption.prototype.setDoubleValue=function(t){return g.Message.setField(this,6,t)};proto.google.protobuf.UninterpretedOption.prototype.clearDoubleValue=function(){return g.Message.setField(this,6,void 0)};proto.google.protobuf.UninterpretedOption.prototype.hasDoubleValue=function(){return g.Message.getField(this,6)!=null};proto.google.protobuf.UninterpretedOption.prototype.getStringValue=function(){return g.Message.getFieldWithDefault(this,7,"")};proto.google.protobuf.UninterpretedOption.prototype.getStringValue_asB64=function(){return g.Message.bytesAsB64(this.getStringValue())};proto.google.protobuf.UninterpretedOption.prototype.getStringValue_asU8=function(){return g.Message.bytesAsU8(this.getStringValue())};proto.google.protobuf.UninterpretedOption.prototype.setStringValue=function(t){return g.Message.setField(this,7,t)};proto.google.protobuf.UninterpretedOption.prototype.clearStringValue=function(){return g.Message.setField(this,7,void 0)};proto.google.protobuf.UninterpretedOption.prototype.hasStringValue=function(){return g.Message.getField(this,7)!=null};proto.google.protobuf.UninterpretedOption.prototype.getAggregateValue=function(){return g.Message.getFieldWithDefault(this,8,"")};proto.google.protobuf.UninterpretedOption.prototype.setAggregateValue=function(t){return g.Message.setField(this,8,t)};proto.google.protobuf.UninterpretedOption.prototype.clearAggregateValue=function(){return g.Message.setField(this,8,void 0)};proto.google.protobuf.UninterpretedOption.prototype.hasAggregateValue=function(){return g.Message.getField(this,8)!=null};proto.google.protobuf.SourceCodeInfo.repeatedFields_=[1];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.SourceCodeInfo.prototype.toObject=function(t){return proto.google.protobuf.SourceCodeInfo.toObject(t,this)},proto.google.protobuf.SourceCodeInfo.toObject=function(t,o){var r,i={locationList:g.Message.toObjectList(o.getLocationList(),proto.google.protobuf.SourceCodeInfo.Location.toObject,t)};return t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.SourceCodeInfo.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.SourceCodeInfo;return proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader(r,o)};proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new proto.google.protobuf.SourceCodeInfo.Location;o.readMessage(i,proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader),t.addLocation(i);break;default:o.skipField();break}}return t};proto.google.protobuf.SourceCodeInfo.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getLocationList(),r.length>0&&o.writeRepeatedMessage(1,r,proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter)};proto.google.protobuf.SourceCodeInfo.Location.repeatedFields_=[1,2,6];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.SourceCodeInfo.Location.prototype.toObject=function(t){return proto.google.protobuf.SourceCodeInfo.Location.toObject(t,this)},proto.google.protobuf.SourceCodeInfo.Location.toObject=function(t,o){var r,i={pathList:(r=g.Message.getRepeatedField(o,1))==null?void 0:r,spanList:(r=g.Message.getRepeatedField(o,2))==null?void 0:r,leadingComments:(r=g.Message.getField(o,3))==null?void 0:r,trailingComments:(r=g.Message.getField(o,4))==null?void 0:r,leadingDetachedCommentsList:(r=g.Message.getRepeatedField(o,6))==null?void 0:r};return t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.SourceCodeInfo.Location.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.SourceCodeInfo.Location;return proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader(r,o)};proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:for(var n=o.isDelimited()?o.readPackedInt32():[o.readInt32()],i=0;i<n.length;i++)t.addPath(n[i]);break;case 2:for(var n=o.isDelimited()?o.readPackedInt32():[o.readInt32()],i=0;i<n.length;i++)t.addSpan(n[i]);break;case 3:var s=o.readString();t.setLeadingComments(s);break;case 4:var s=o.readString();t.setTrailingComments(s);break;case 6:var s=o.readString();t.addLeadingDetachedComments(s);break;default:o.skipField();break}}return t};proto.google.protobuf.SourceCodeInfo.Location.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getPathList(),r.length>0&&o.writePackedInt32(1,r),r=t.getSpanList(),r.length>0&&o.writePackedInt32(2,r),r=g.Message.getField(t,3),r!=null&&o.writeString(3,r),r=g.Message.getField(t,4),r!=null&&o.writeString(4,r),r=t.getLeadingDetachedCommentsList(),r.length>0&&o.writeRepeatedString(6,r)};proto.google.protobuf.SourceCodeInfo.Location.prototype.getPathList=function(){return g.Message.getRepeatedField(this,1)};proto.google.protobuf.SourceCodeInfo.Location.prototype.setPathList=function(t){return g.Message.setField(this,1,t||[])};proto.google.protobuf.SourceCodeInfo.Location.prototype.addPath=function(t,o){return g.Message.addToRepeatedField(this,1,t,o)};proto.google.protobuf.SourceCodeInfo.Location.prototype.clearPathList=function(){return this.setPathList([])};proto.google.protobuf.SourceCodeInfo.Location.prototype.getSpanList=function(){return g.Message.getRepeatedField(this,2)};proto.google.protobuf.SourceCodeInfo.Location.prototype.setSpanList=function(t){return g.Message.setField(this,2,t||[])};proto.google.protobuf.SourceCodeInfo.Location.prototype.addSpan=function(t,o){return g.Message.addToRepeatedField(this,2,t,o)};proto.google.protobuf.SourceCodeInfo.Location.prototype.clearSpanList=function(){return this.setSpanList([])};proto.google.protobuf.SourceCodeInfo.Location.prototype.getLeadingComments=function(){return g.Message.getFieldWithDefault(this,3,"")};proto.google.protobuf.SourceCodeInfo.Location.prototype.setLeadingComments=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.SourceCodeInfo.Location.prototype.clearLeadingComments=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.SourceCodeInfo.Location.prototype.hasLeadingComments=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.SourceCodeInfo.Location.prototype.getTrailingComments=function(){return g.Message.getFieldWithDefault(this,4,"")};proto.google.protobuf.SourceCodeInfo.Location.prototype.setTrailingComments=function(t){return g.Message.setField(this,4,t)};proto.google.protobuf.SourceCodeInfo.Location.prototype.clearTrailingComments=function(){return g.Message.setField(this,4,void 0)};proto.google.protobuf.SourceCodeInfo.Location.prototype.hasTrailingComments=function(){return g.Message.getField(this,4)!=null};proto.google.protobuf.SourceCodeInfo.Location.prototype.getLeadingDetachedCommentsList=function(){return g.Message.getRepeatedField(this,6)};proto.google.protobuf.SourceCodeInfo.Location.prototype.setLeadingDetachedCommentsList=function(t){return g.Message.setField(this,6,t||[])};proto.google.protobuf.SourceCodeInfo.Location.prototype.addLeadingDetachedComments=function(t,o){return g.Message.addToRepeatedField(this,6,t,o)};proto.google.protobuf.SourceCodeInfo.Location.prototype.clearLeadingDetachedCommentsList=function(){return this.setLeadingDetachedCommentsList([])};proto.google.protobuf.SourceCodeInfo.prototype.getLocationList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.SourceCodeInfo.Location,1)};proto.google.protobuf.SourceCodeInfo.prototype.setLocationList=function(t){return g.Message.setRepeatedWrapperField(this,1,t)};proto.google.protobuf.SourceCodeInfo.prototype.addLocation=function(t,o){return g.Message.addToRepeatedWrapperField(this,1,t,proto.google.protobuf.SourceCodeInfo.Location,o)};proto.google.protobuf.SourceCodeInfo.prototype.clearLocationList=function(){return this.setLocationList([])};proto.google.protobuf.GeneratedCodeInfo.repeatedFields_=[1];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.GeneratedCodeInfo.prototype.toObject=function(t){return proto.google.protobuf.GeneratedCodeInfo.toObject(t,this)},proto.google.protobuf.GeneratedCodeInfo.toObject=function(t,o){var r,i={annotationList:g.Message.toObjectList(o.getAnnotationList(),proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject,t)};return t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.GeneratedCodeInfo.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.GeneratedCodeInfo;return proto.google.protobuf.GeneratedCodeInfo.deserializeBinaryFromReader(r,o)};proto.google.protobuf.GeneratedCodeInfo.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new proto.google.protobuf.GeneratedCodeInfo.Annotation;o.readMessage(i,proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader),t.addAnnotation(i);break;default:o.skipField();break}}return t};proto.google.protobuf.GeneratedCodeInfo.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.GeneratedCodeInfo.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.GeneratedCodeInfo.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getAnnotationList(),r.length>0&&o.writeRepeatedMessage(1,r,proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter)};proto.google.protobuf.GeneratedCodeInfo.Annotation.repeatedFields_=[1];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.toObject=function(t){return proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject(t,this)},proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject=function(t,o){var r,i={pathList:(r=g.Message.getRepeatedField(o,1))==null?void 0:r,sourceFile:(r=g.Message.getField(o,2))==null?void 0:r,begin:(r=g.Message.getField(o,3))==null?void 0:r,end:(r=g.Message.getField(o,4))==null?void 0:r};return t&&(i.$jspbMessageInstance=o),i});proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.GeneratedCodeInfo.Annotation;return proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader(r,o)};proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:for(var i=o.isDelimited()?o.readPackedInt32():[o.readInt32()],n=0;n<i.length;n++)t.addPath(i[n]);break;case 2:var s=o.readString();t.setSourceFile(s);break;case 3:var s=o.readInt32();t.setBegin(s);break;case 4:var s=o.readInt32();t.setEnd(s);break;default:o.skipField();break}}return t};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getPathList(),r.length>0&&o.writePackedInt32(1,r),r=g.Message.getField(t,2),r!=null&&o.writeString(2,r),r=g.Message.getField(t,3),r!=null&&o.writeInt32(3,r),r=g.Message.getField(t,4),r!=null&&o.writeInt32(4,r)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getPathList=function(){return g.Message.getRepeatedField(this,1)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setPathList=function(t){return g.Message.setField(this,1,t||[])};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.addPath=function(t,o){return g.Message.addToRepeatedField(this,1,t,o)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearPathList=function(){return this.setPathList([])};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getSourceFile=function(){return g.Message.getFieldWithDefault(this,2,"")};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setSourceFile=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearSourceFile=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasSourceFile=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getBegin=function(){return g.Message.getFieldWithDefault(this,3,0)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setBegin=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearBegin=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasBegin=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getEnd=function(){return g.Message.getFieldWithDefault(this,4,0)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setEnd=function(t){return g.Message.setField(this,4,t)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearEnd=function(){return g.Message.setField(this,4,void 0)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasEnd=function(){return g.Message.getField(this,4)!=null};proto.google.protobuf.GeneratedCodeInfo.prototype.getAnnotationList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.GeneratedCodeInfo.Annotation,1)};proto.google.protobuf.GeneratedCodeInfo.prototype.setAnnotationList=function(t){return g.Message.setRepeatedWrapperField(this,1,t)};proto.google.protobuf.GeneratedCodeInfo.prototype.addAnnotation=function(t,o){return g.Message.addToRepeatedWrapperField(this,1,t,proto.google.protobuf.GeneratedCodeInfo.Annotation,o)};proto.google.protobuf.GeneratedCodeInfo.prototype.clearAnnotationList=function(){return this.setAnnotationList([])};j.object.extend(is,proto.google.protobuf)});var as=H(ss=>{var Y=Ar(),Ge=Y,Jt=Function("return this")(),ur=ns();Ge.exportSymbol("proto.ic_base_types.pb.v1.CanisterAuthzInfo",null,Jt);Ge.exportSymbol("proto.ic_base_types.pb.v1.CanisterId",null,Jt);Ge.exportSymbol("proto.ic_base_types.pb.v1.MethodAuthzInfo",null,Jt);Ge.exportSymbol("proto.ic_base_types.pb.v1.NeuronId",null,Jt);Ge.exportSymbol("proto.ic_base_types.pb.v1.PrincipalId",null,Jt);Ge.exportSymbol("proto.ic_base_types.pb.v1.ProposalId",null,Jt);Ge.exportSymbol("proto.ic_base_types.pb.v1.tuiSignedDisplayQ22021",null,Jt);Ge.exportSymbol("proto.ic_base_types.pb.v1.tuiSignedMessage",null,Jt);proto.ic_base_types.pb.v1.PrincipalId=function(t){Y.Message.initialize(this,t,0,-1,null,null)};Ge.inherits(proto.ic_base_types.pb.v1.PrincipalId,Y.Message);Ge.DEBUG&&!COMPILED&&(proto.ic_base_types.pb.v1.PrincipalId.displayName="proto.ic_base_types.pb.v1.PrincipalId");Y.Message.GENERATE_TO_OBJECT&&(proto.ic_base_types.pb.v1.PrincipalId.prototype.toObject=function(t){return proto.ic_base_types.pb.v1.PrincipalId.toObject(t,this)},proto.ic_base_types.pb.v1.PrincipalId.toObject=function(t,o){var r,i={serializedId:o.getSerializedId_asB64()};return t&&(i.$jspbMessageInstance=o),i});proto.ic_base_types.pb.v1.PrincipalId.deserializeBinary=function(t){var o=new Y.BinaryReader(t),r=new proto.ic_base_types.pb.v1.PrincipalId;return proto.ic_base_types.pb.v1.PrincipalId.deserializeBinaryFromReader(r,o)};proto.ic_base_types.pb.v1.PrincipalId.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readBytes();t.setSerializedId(i);break;default:o.skipField();break}}return t};proto.ic_base_types.pb.v1.PrincipalId.prototype.serializeBinary=function(){var t=new Y.BinaryWriter;return proto.ic_base_types.pb.v1.PrincipalId.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_base_types.pb.v1.PrincipalId.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getSerializedId_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_base_types.pb.v1.PrincipalId.prototype.getSerializedId=function(){return Y.Message.getFieldWithDefault(this,1,"")};proto.ic_base_types.pb.v1.PrincipalId.prototype.getSerializedId_asB64=function(){return Y.Message.bytesAsB64(this.getSerializedId())};proto.ic_base_types.pb.v1.PrincipalId.prototype.getSerializedId_asU8=function(){return Y.Message.bytesAsU8(this.getSerializedId())};proto.ic_base_types.pb.v1.PrincipalId.prototype.setSerializedId=function(t){Y.Message.setProto3BytesField(this,1,t)};proto.ic_base_types.pb.v1.CanisterId=function(t){Y.Message.initialize(this,t,0,-1,null,null)};Ge.inherits(proto.ic_base_types.pb.v1.CanisterId,Y.Message);Ge.DEBUG&&!COMPILED&&(proto.ic_base_types.pb.v1.CanisterId.displayName="proto.ic_base_types.pb.v1.CanisterId");Y.Message.GENERATE_TO_OBJECT&&(proto.ic_base_types.pb.v1.CanisterId.prototype.toObject=function(t){return proto.ic_base_types.pb.v1.CanisterId.toObject(t,this)},proto.ic_base_types.pb.v1.CanisterId.toObject=function(t,o){var r,i={serializedId:o.getSerializedId_asB64()};return t&&(i.$jspbMessageInstance=o),i});proto.ic_base_types.pb.v1.CanisterId.deserializeBinary=function(t){var o=new Y.BinaryReader(t),r=new proto.ic_base_types.pb.v1.CanisterId;return proto.ic_base_types.pb.v1.CanisterId.deserializeBinaryFromReader(r,o)};proto.ic_base_types.pb.v1.CanisterId.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readBytes();t.setSerializedId(i);break;default:o.skipField();break}}return t};proto.ic_base_types.pb.v1.CanisterId.prototype.serializeBinary=function(){var t=new Y.BinaryWriter;return proto.ic_base_types.pb.v1.CanisterId.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_base_types.pb.v1.CanisterId.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getSerializedId_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_base_types.pb.v1.CanisterId.prototype.getSerializedId=function(){return Y.Message.getFieldWithDefault(this,1,"")};proto.ic_base_types.pb.v1.CanisterId.prototype.getSerializedId_asB64=function(){return Y.Message.bytesAsB64(this.getSerializedId())};proto.ic_base_types.pb.v1.CanisterId.prototype.getSerializedId_asU8=function(){return Y.Message.bytesAsU8(this.getSerializedId())};proto.ic_base_types.pb.v1.CanisterId.prototype.setSerializedId=function(t){Y.Message.setProto3BytesField(this,1,t)};proto.ic_base_types.pb.v1.NeuronId=function(t){Y.Message.initialize(this,t,0,-1,null,null)};Ge.inherits(proto.ic_base_types.pb.v1.NeuronId,Y.Message);Ge.DEBUG&&!COMPILED&&(proto.ic_base_types.pb.v1.NeuronId.displayName="proto.ic_base_types.pb.v1.NeuronId");Y.Message.GENERATE_TO_OBJECT&&(proto.ic_base_types.pb.v1.NeuronId.prototype.toObject=function(t){return proto.ic_base_types.pb.v1.NeuronId.toObject(t,this)},proto.ic_base_types.pb.v1.NeuronId.toObject=function(t,o){var r,i={id:Y.Message.getFieldWithDefault(o,2,"0")};return t&&(i.$jspbMessageInstance=o),i});proto.ic_base_types.pb.v1.NeuronId.deserializeBinary=function(t){var o=new Y.BinaryReader(t),r=new proto.ic_base_types.pb.v1.NeuronId;return proto.ic_base_types.pb.v1.NeuronId.deserializeBinaryFromReader(r,o)};proto.ic_base_types.pb.v1.NeuronId.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 2:var i=o.readUint64String();t.setId(i);break;default:o.skipField();break}}return t};proto.ic_base_types.pb.v1.NeuronId.prototype.serializeBinary=function(){var t=new Y.BinaryWriter;return proto.ic_base_types.pb.v1.NeuronId.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_base_types.pb.v1.NeuronId.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getId(),parseInt(r,10)!==0&&o.writeUint64String(2,r)};proto.ic_base_types.pb.v1.NeuronId.prototype.getId=function(){return Y.Message.getFieldWithDefault(this,2,"0")};proto.ic_base_types.pb.v1.NeuronId.prototype.setId=function(t){Y.Message.setProto3StringIntField(this,2,t)};proto.ic_base_types.pb.v1.ProposalId=function(t){Y.Message.initialize(this,t,0,-1,null,null)};Ge.inherits(proto.ic_base_types.pb.v1.ProposalId,Y.Message);Ge.DEBUG&&!COMPILED&&(proto.ic_base_types.pb.v1.ProposalId.displayName="proto.ic_base_types.pb.v1.ProposalId");Y.Message.GENERATE_TO_OBJECT&&(proto.ic_base_types.pb.v1.ProposalId.prototype.toObject=function(t){return proto.ic_base_types.pb.v1.ProposalId.toObject(t,this)},proto.ic_base_types.pb.v1.ProposalId.toObject=function(t,o){var r,i={id:Y.Message.getFieldWithDefault(o,1,"0")};return t&&(i.$jspbMessageInstance=o),i});proto.ic_base_types.pb.v1.ProposalId.deserializeBinary=function(t){var o=new Y.BinaryReader(t),r=new proto.ic_base_types.pb.v1.ProposalId;return proto.ic_base_types.pb.v1.ProposalId.deserializeBinaryFromReader(r,o)};proto.ic_base_types.pb.v1.ProposalId.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readUint64String();t.setId(i);break;default:o.skipField();break}}return t};proto.ic_base_types.pb.v1.ProposalId.prototype.serializeBinary=function(){var t=new Y.BinaryWriter;return proto.ic_base_types.pb.v1.ProposalId.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_base_types.pb.v1.ProposalId.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getId(),parseInt(r,10)!==0&&o.writeUint64String(1,r)};proto.ic_base_types.pb.v1.ProposalId.prototype.getId=function(){return Y.Message.getFieldWithDefault(this,1,"0")};proto.ic_base_types.pb.v1.ProposalId.prototype.setId=function(t){Y.Message.setProto3StringIntField(this,1,t)};proto.ic_base_types.pb.v1.MethodAuthzInfo=function(t){Y.Message.initialize(this,t,0,-1,proto.ic_base_types.pb.v1.MethodAuthzInfo.repeatedFields_,null)};Ge.inherits(proto.ic_base_types.pb.v1.MethodAuthzInfo,Y.Message);Ge.DEBUG&&!COMPILED&&(proto.ic_base_types.pb.v1.MethodAuthzInfo.displayName="proto.ic_base_types.pb.v1.MethodAuthzInfo");proto.ic_base_types.pb.v1.MethodAuthzInfo.repeatedFields_=[2];Y.Message.GENERATE_TO_OBJECT&&(proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.toObject=function(t){return proto.ic_base_types.pb.v1.MethodAuthzInfo.toObject(t,this)},proto.ic_base_types.pb.v1.MethodAuthzInfo.toObject=function(t,o){var r,i={methodName:Y.Message.getFieldWithDefault(o,1,""),principalIdsList:o.getPrincipalIdsList_asB64()};return t&&(i.$jspbMessageInstance=o),i});proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinary=function(t){var o=new Y.BinaryReader(t),r=new proto.ic_base_types.pb.v1.MethodAuthzInfo;return proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinaryFromReader(r,o)};proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readString();t.setMethodName(i);break;case 2:var i=o.readBytes();t.addPrincipalIds(i);break;default:o.skipField();break}}return t};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.serializeBinary=function(){var t=new Y.BinaryWriter;return proto.ic_base_types.pb.v1.MethodAuthzInfo.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_base_types.pb.v1.MethodAuthzInfo.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getMethodName(),r.length>0&&o.writeString(1,r),r=t.getPrincipalIdsList_asU8(),r.length>0&&o.writeRepeatedBytes(2,r)};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getMethodName=function(){return Y.Message.getFieldWithDefault(this,1,"")};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.setMethodName=function(t){Y.Message.setProto3StringField(this,1,t)};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getPrincipalIdsList=function(){return Y.Message.getRepeatedField(this,2)};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getPrincipalIdsList_asB64=function(){return Y.Message.bytesListAsB64(this.getPrincipalIdsList())};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getPrincipalIdsList_asU8=function(){return Y.Message.bytesListAsU8(this.getPrincipalIdsList())};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.setPrincipalIdsList=function(t){Y.Message.setField(this,2,t||[])};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.addPrincipalIds=function(t,o){Y.Message.addToRepeatedField(this,2,t,o)};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.clearPrincipalIdsList=function(){this.setPrincipalIdsList([])};proto.ic_base_types.pb.v1.CanisterAuthzInfo=function(t){Y.Message.initialize(this,t,0,-1,proto.ic_base_types.pb.v1.CanisterAuthzInfo.repeatedFields_,null)};Ge.inherits(proto.ic_base_types.pb.v1.CanisterAuthzInfo,Y.Message);Ge.DEBUG&&!COMPILED&&(proto.ic_base_types.pb.v1.CanisterAuthzInfo.displayName="proto.ic_base_types.pb.v1.CanisterAuthzInfo");proto.ic_base_types.pb.v1.CanisterAuthzInfo.repeatedFields_=[1];Y.Message.GENERATE_TO_OBJECT&&(proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.toObject=function(t){return proto.ic_base_types.pb.v1.CanisterAuthzInfo.toObject(t,this)},proto.ic_base_types.pb.v1.CanisterAuthzInfo.toObject=function(t,o){var r,i={methodsAuthzList:Y.Message.toObjectList(o.getMethodsAuthzList(),proto.ic_base_types.pb.v1.MethodAuthzInfo.toObject,t)};return t&&(i.$jspbMessageInstance=o),i});proto.ic_base_types.pb.v1.CanisterAuthzInfo.deserializeBinary=function(t){var o=new Y.BinaryReader(t),r=new proto.ic_base_types.pb.v1.CanisterAuthzInfo;return proto.ic_base_types.pb.v1.CanisterAuthzInfo.deserializeBinaryFromReader(r,o)};proto.ic_base_types.pb.v1.CanisterAuthzInfo.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new proto.ic_base_types.pb.v1.MethodAuthzInfo;o.readMessage(i,proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinaryFromReader),t.addMethodsAuthz(i);break;default:o.skipField();break}}return t};proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.serializeBinary=function(){var t=new Y.BinaryWriter;return proto.ic_base_types.pb.v1.CanisterAuthzInfo.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_base_types.pb.v1.CanisterAuthzInfo.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getMethodsAuthzList(),r.length>0&&o.writeRepeatedMessage(1,r,proto.ic_base_types.pb.v1.MethodAuthzInfo.serializeBinaryToWriter)};proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.getMethodsAuthzList=function(){return Y.Message.getRepeatedWrapperField(this,proto.ic_base_types.pb.v1.MethodAuthzInfo,1)};proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.setMethodsAuthzList=function(t){Y.Message.setRepeatedWrapperField(this,1,t)};proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.addMethodsAuthz=function(t,o){return Y.Message.addToRepeatedWrapperField(this,1,t,proto.ic_base_types.pb.v1.MethodAuthzInfo,o)};proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.clearMethodsAuthzList=function(){this.setMethodsAuthzList([])};proto.ic_base_types.pb.v1.tuiSignedMessage=new Y.ExtensionFieldInfo(2e4,{tuiSignedMessage:0},null,null,0);ur.MessageOptions.extensionsBinary[2e4]=new Y.ExtensionFieldBinaryInfo(proto.ic_base_types.pb.v1.tuiSignedMessage,Y.BinaryReader.prototype.readBool,Y.BinaryWriter.prototype.writeBool,void 0,void 0,!1);ur.MessageOptions.extensions[2e4]=proto.ic_base_types.pb.v1.tuiSignedMessage;proto.ic_base_types.pb.v1.tuiSignedDisplayQ22021=new Y.ExtensionFieldInfo(20001,{tuiSignedDisplayQ22021:0},null,null,0);ur.FieldOptions.extensionsBinary[20001]=new Y.ExtensionFieldBinaryInfo(proto.ic_base_types.pb.v1.tuiSignedDisplayQ22021,Y.BinaryReader.prototype.readBool,Y.BinaryWriter.prototype.writeBool,void 0,void 0,!1);ur.FieldOptions.extensions[20001]=proto.ic_base_types.pb.v1.tuiSignedDisplayQ22021;Ge.object.extend(ss,proto.ic_base_types.pb.v1)});var lr=H(gs=>{var A=Ar(),k=A,ue=Function("return this")(),ke=as();k.exportSymbol("proto.ic_ledger.pb.v1.Account",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.AccountBalanceRequest",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.AccountBalanceResponse",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.AccountIdentifier",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.Block",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.BlockHeight",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.Burn",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.Certification",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.CyclesNotificationResponse",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.EncodedBlock",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.EncodedBlocks",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.GetBlocksRequest",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.GetBlocksResponse",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.Hash",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.ICPTs",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.Memo",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.Mint",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.NotifyRequest",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.NotifyResponse",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.Payment",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.Refund",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.Send",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.SendRequest",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.SendResponse",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.Subaccount",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.TimeStamp",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.TipOfChainRequest",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.TipOfChainResponse",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.ToppedUp",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.Transaction",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.TransactionNotificationRequest",null,ue);k.exportSymbol("proto.ic_ledger.pb.v1.TransactionNotificationResponse",null,ue);proto.ic_ledger.pb.v1.SendRequest=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.SendRequest,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.SendRequest.displayName="proto.ic_ledger.pb.v1.SendRequest");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.SendRequest.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.SendRequest.toObject(t,this)},proto.ic_ledger.pb.v1.SendRequest.toObject=function(t,o){var r,i={memo:(r=o.getMemo())&&proto.ic_ledger.pb.v1.Memo.toObject(t,r),payment:(r=o.getPayment())&&proto.ic_ledger.pb.v1.Payment.toObject(t,r),maxFee:(r=o.getMaxFee())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r),fromSubaccount:(r=o.getFromSubaccount())&&proto.ic_ledger.pb.v1.Subaccount.toObject(t,r),to:(r=o.getTo())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r),createdAt:(r=o.getCreatedAt())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r),createdAtTime:(r=o.getCreatedAtTime())&&proto.ic_ledger.pb.v1.TimeStamp.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.SendRequest.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.SendRequest;return proto.ic_ledger.pb.v1.SendRequest.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.SendRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new proto.ic_ledger.pb.v1.Memo;o.readMessage(i,proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader),t.setMemo(i);break;case 2:var i=new proto.ic_ledger.pb.v1.Payment;o.readMessage(i,proto.ic_ledger.pb.v1.Payment.deserializeBinaryFromReader),t.setPayment(i);break;case 3:var i=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(i,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setMaxFee(i);break;case 4:var i=new proto.ic_ledger.pb.v1.Subaccount;o.readMessage(i,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader),t.setFromSubaccount(i);break;case 5:var i=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(i,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setTo(i);break;case 6:var i=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(i,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setCreatedAt(i);break;case 7:var i=new proto.ic_ledger.pb.v1.TimeStamp;o.readMessage(i,proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader),t.setCreatedAtTime(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.SendRequest.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.SendRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.SendRequest.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getMemo(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter),r=t.getPayment(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.Payment.serializeBinaryToWriter),r=t.getMaxFee(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter),r=t.getFromSubaccount(),r!=null&&o.writeMessage(4,r,proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter),r=t.getTo(),r!=null&&o.writeMessage(5,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter),r=t.getCreatedAt(),r!=null&&o.writeMessage(6,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter),r=t.getCreatedAtTime(),r!=null&&o.writeMessage(7,r,proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.SendRequest.prototype.getMemo=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Memo,1)};proto.ic_ledger.pb.v1.SendRequest.prototype.setMemo=function(t){A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearMemo=function(){this.setMemo(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasMemo=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.SendRequest.prototype.getPayment=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Payment,2)};proto.ic_ledger.pb.v1.SendRequest.prototype.setPayment=function(t){A.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearPayment=function(){this.setPayment(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasPayment=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.SendRequest.prototype.getMaxFee=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,3)};proto.ic_ledger.pb.v1.SendRequest.prototype.setMaxFee=function(t){A.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearMaxFee=function(){this.setMaxFee(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasMaxFee=function(){return A.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.SendRequest.prototype.getFromSubaccount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Subaccount,4)};proto.ic_ledger.pb.v1.SendRequest.prototype.setFromSubaccount=function(t){A.Message.setWrapperField(this,4,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearFromSubaccount=function(){this.setFromSubaccount(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasFromSubaccount=function(){return A.Message.getField(this,4)!=null};proto.ic_ledger.pb.v1.SendRequest.prototype.getTo=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,5)};proto.ic_ledger.pb.v1.SendRequest.prototype.setTo=function(t){A.Message.setWrapperField(this,5,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearTo=function(){this.setTo(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasTo=function(){return A.Message.getField(this,5)!=null};proto.ic_ledger.pb.v1.SendRequest.prototype.getCreatedAt=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,6)};proto.ic_ledger.pb.v1.SendRequest.prototype.setCreatedAt=function(t){A.Message.setWrapperField(this,6,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearCreatedAt=function(){this.setCreatedAt(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasCreatedAt=function(){return A.Message.getField(this,6)!=null};proto.ic_ledger.pb.v1.SendRequest.prototype.getCreatedAtTime=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.TimeStamp,7)};proto.ic_ledger.pb.v1.SendRequest.prototype.setCreatedAtTime=function(t){A.Message.setWrapperField(this,7,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearCreatedAtTime=function(){this.setCreatedAtTime(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasCreatedAtTime=function(){return A.Message.getField(this,7)!=null};proto.ic_ledger.pb.v1.SendResponse=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.SendResponse,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.SendResponse.displayName="proto.ic_ledger.pb.v1.SendResponse");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.SendResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.SendResponse.toObject(t,this)},proto.ic_ledger.pb.v1.SendResponse.toObject=function(t,o){var r,i={resultingHeight:(r=o.getResultingHeight())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.SendResponse.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.SendResponse;return proto.ic_ledger.pb.v1.SendResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.SendResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(i,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setResultingHeight(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.SendResponse.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.SendResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.SendResponse.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getResultingHeight(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.SendResponse.prototype.getResultingHeight=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,1)};proto.ic_ledger.pb.v1.SendResponse.prototype.setResultingHeight=function(t){A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.SendResponse.prototype.clearResultingHeight=function(){this.setResultingHeight(void 0)};proto.ic_ledger.pb.v1.SendResponse.prototype.hasResultingHeight=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.NotifyRequest=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.NotifyRequest,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.NotifyRequest.displayName="proto.ic_ledger.pb.v1.NotifyRequest");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.NotifyRequest.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.NotifyRequest.toObject(t,this)},proto.ic_ledger.pb.v1.NotifyRequest.toObject=function(t,o){var r,i={blockHeight:(r=o.getBlockHeight())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r),maxFee:(r=o.getMaxFee())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r),fromSubaccount:(r=o.getFromSubaccount())&&proto.ic_ledger.pb.v1.Subaccount.toObject(t,r),toCanister:(r=o.getToCanister())&&ke.PrincipalId.toObject(t,r),toSubaccount:(r=o.getToSubaccount())&&proto.ic_ledger.pb.v1.Subaccount.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.NotifyRequest.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.NotifyRequest;return proto.ic_ledger.pb.v1.NotifyRequest.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.NotifyRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(i,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setBlockHeight(i);break;case 2:var i=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(i,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setMaxFee(i);break;case 3:var i=new proto.ic_ledger.pb.v1.Subaccount;o.readMessage(i,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader),t.setFromSubaccount(i);break;case 4:var i=new ke.PrincipalId;o.readMessage(i,ke.PrincipalId.deserializeBinaryFromReader),t.setToCanister(i);break;case 5:var i=new proto.ic_ledger.pb.v1.Subaccount;o.readMessage(i,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader),t.setToSubaccount(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.NotifyRequest.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.NotifyRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.NotifyRequest.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getBlockHeight(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter),r=t.getMaxFee(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter),r=t.getFromSubaccount(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter),r=t.getToCanister(),r!=null&&o.writeMessage(4,r,ke.PrincipalId.serializeBinaryToWriter),r=t.getToSubaccount(),r!=null&&o.writeMessage(5,r,proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.getBlockHeight=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,1)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.setBlockHeight=function(t){A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearBlockHeight=function(){this.setBlockHeight(void 0)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasBlockHeight=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.NotifyRequest.prototype.getMaxFee=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,2)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.setMaxFee=function(t){A.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearMaxFee=function(){this.setMaxFee(void 0)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasMaxFee=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.NotifyRequest.prototype.getFromSubaccount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Subaccount,3)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.setFromSubaccount=function(t){A.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearFromSubaccount=function(){this.setFromSubaccount(void 0)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasFromSubaccount=function(){return A.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.NotifyRequest.prototype.getToCanister=function(){return A.Message.getWrapperField(this,ke.PrincipalId,4)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.setToCanister=function(t){A.Message.setWrapperField(this,4,t)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearToCanister=function(){this.setToCanister(void 0)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasToCanister=function(){return A.Message.getField(this,4)!=null};proto.ic_ledger.pb.v1.NotifyRequest.prototype.getToSubaccount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Subaccount,5)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.setToSubaccount=function(t){A.Message.setWrapperField(this,5,t)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearToSubaccount=function(){this.setToSubaccount(void 0)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasToSubaccount=function(){return A.Message.getField(this,5)!=null};proto.ic_ledger.pb.v1.NotifyResponse=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.NotifyResponse,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.NotifyResponse.displayName="proto.ic_ledger.pb.v1.NotifyResponse");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.NotifyResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.NotifyResponse.toObject(t,this)},proto.ic_ledger.pb.v1.NotifyResponse.toObject=function(t,o){var r,i={};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.NotifyResponse.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.NotifyResponse;return proto.ic_ledger.pb.v1.NotifyResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.NotifyResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.NotifyResponse.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.NotifyResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.NotifyResponse.serializeBinaryToWriter=function(t,o){var r=void 0};proto.ic_ledger.pb.v1.TransactionNotificationRequest=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.TransactionNotificationRequest,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.TransactionNotificationRequest.displayName="proto.ic_ledger.pb.v1.TransactionNotificationRequest");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.TransactionNotificationRequest.toObject(t,this)},proto.ic_ledger.pb.v1.TransactionNotificationRequest.toObject=function(t,o){var r,i={from:(r=o.getFrom())&&ke.PrincipalId.toObject(t,r),fromSubaccount:(r=o.getFromSubaccount())&&proto.ic_ledger.pb.v1.Subaccount.toObject(t,r),to:(r=o.getTo())&&ke.PrincipalId.toObject(t,r),toSubaccount:(r=o.getToSubaccount())&&proto.ic_ledger.pb.v1.Subaccount.toObject(t,r),blockHeight:(r=o.getBlockHeight())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r),amount:(r=o.getAmount())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r),memo:(r=o.getMemo())&&proto.ic_ledger.pb.v1.Memo.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.TransactionNotificationRequest.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.TransactionNotificationRequest;return proto.ic_ledger.pb.v1.TransactionNotificationRequest.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new ke.PrincipalId;o.readMessage(i,ke.PrincipalId.deserializeBinaryFromReader),t.setFrom(i);break;case 2:var i=new proto.ic_ledger.pb.v1.Subaccount;o.readMessage(i,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader),t.setFromSubaccount(i);break;case 3:var i=new ke.PrincipalId;o.readMessage(i,ke.PrincipalId.deserializeBinaryFromReader),t.setTo(i);break;case 4:var i=new proto.ic_ledger.pb.v1.Subaccount;o.readMessage(i,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader),t.setToSubaccount(i);break;case 5:var i=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(i,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setBlockHeight(i);break;case 6:var i=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(i,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setAmount(i);break;case 7:var i=new proto.ic_ledger.pb.v1.Memo;o.readMessage(i,proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader),t.setMemo(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.TransactionNotificationRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.TransactionNotificationRequest.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getFrom(),r!=null&&o.writeMessage(1,r,ke.PrincipalId.serializeBinaryToWriter),r=t.getFromSubaccount(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter),r=t.getTo(),r!=null&&o.writeMessage(3,r,ke.PrincipalId.serializeBinaryToWriter),r=t.getToSubaccount(),r!=null&&o.writeMessage(4,r,proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter),r=t.getBlockHeight(),r!=null&&o.writeMessage(5,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter),r=t.getAmount(),r!=null&&o.writeMessage(6,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter),r=t.getMemo(),r!=null&&o.writeMessage(7,r,proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getFrom=function(){return A.Message.getWrapperField(this,ke.PrincipalId,1)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setFrom=function(t){A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearFrom=function(){this.setFrom(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasFrom=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getFromSubaccount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Subaccount,2)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setFromSubaccount=function(t){A.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearFromSubaccount=function(){this.setFromSubaccount(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasFromSubaccount=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getTo=function(){return A.Message.getWrapperField(this,ke.PrincipalId,3)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setTo=function(t){A.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearTo=function(){this.setTo(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasTo=function(){return A.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getToSubaccount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Subaccount,4)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setToSubaccount=function(t){A.Message.setWrapperField(this,4,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearToSubaccount=function(){this.setToSubaccount(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasToSubaccount=function(){return A.Message.getField(this,4)!=null};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getBlockHeight=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,5)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setBlockHeight=function(t){A.Message.setWrapperField(this,5,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearBlockHeight=function(){this.setBlockHeight(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasBlockHeight=function(){return A.Message.getField(this,5)!=null};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getAmount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,6)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setAmount=function(t){A.Message.setWrapperField(this,6,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearAmount=function(){this.setAmount(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasAmount=function(){return A.Message.getField(this,6)!=null};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getMemo=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Memo,7)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setMemo=function(t){A.Message.setWrapperField(this,7,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearMemo=function(){this.setMemo(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasMemo=function(){return A.Message.getField(this,7)!=null};proto.ic_ledger.pb.v1.TransactionNotificationResponse=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.TransactionNotificationResponse,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.TransactionNotificationResponse.displayName="proto.ic_ledger.pb.v1.TransactionNotificationResponse");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.TransactionNotificationResponse.toObject(t,this)},proto.ic_ledger.pb.v1.TransactionNotificationResponse.toObject=function(t,o){var r,i={response:o.getResponse_asB64()};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.TransactionNotificationResponse.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.TransactionNotificationResponse;return proto.ic_ledger.pb.v1.TransactionNotificationResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.TransactionNotificationResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readBytes();t.setResponse(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.TransactionNotificationResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.TransactionNotificationResponse.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getResponse_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.getResponse=function(){return A.Message.getFieldWithDefault(this,1,"")};proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.getResponse_asB64=function(){return A.Message.bytesAsB64(this.getResponse())};proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.getResponse_asU8=function(){return A.Message.bytesAsU8(this.getResponse())};proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.setResponse=function(t){A.Message.setProto3BytesField(this,1,t)};proto.ic_ledger.pb.v1.CyclesNotificationResponse=function(t){A.Message.initialize(this,t,0,-1,null,proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_)};k.inherits(proto.ic_ledger.pb.v1.CyclesNotificationResponse,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.CyclesNotificationResponse.displayName="proto.ic_ledger.pb.v1.CyclesNotificationResponse");proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_=[[1,2,3]];proto.ic_ledger.pb.v1.CyclesNotificationResponse.ResponseCase={RESPONSE_NOT_SET:0,CREATED_CANISTER_ID:1,REFUND:2,TOPPED_UP:3};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getResponseCase=function(){return A.Message.computeOneofCase(this,proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0])};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.CyclesNotificationResponse.toObject(t,this)},proto.ic_ledger.pb.v1.CyclesNotificationResponse.toObject=function(t,o){var r,i={createdCanisterId:(r=o.getCreatedCanisterId())&&ke.PrincipalId.toObject(t,r),refund:(r=o.getRefund())&&proto.ic_ledger.pb.v1.Refund.toObject(t,r),toppedUp:(r=o.getToppedUp())&&proto.ic_ledger.pb.v1.ToppedUp.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.CyclesNotificationResponse.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.CyclesNotificationResponse;return proto.ic_ledger.pb.v1.CyclesNotificationResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new ke.PrincipalId;o.readMessage(i,ke.PrincipalId.deserializeBinaryFromReader),t.setCreatedCanisterId(i);break;case 2:var i=new proto.ic_ledger.pb.v1.Refund;o.readMessage(i,proto.ic_ledger.pb.v1.Refund.deserializeBinaryFromReader),t.setRefund(i);break;case 3:var i=new proto.ic_ledger.pb.v1.ToppedUp;o.readMessage(i,proto.ic_ledger.pb.v1.ToppedUp.deserializeBinaryFromReader),t.setToppedUp(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.CyclesNotificationResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.CyclesNotificationResponse.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getCreatedCanisterId(),r!=null&&o.writeMessage(1,r,ke.PrincipalId.serializeBinaryToWriter),r=t.getRefund(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.Refund.serializeBinaryToWriter),r=t.getToppedUp(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.ToppedUp.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getCreatedCanisterId=function(){return A.Message.getWrapperField(this,ke.PrincipalId,1)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.setCreatedCanisterId=function(t){A.Message.setOneofWrapperField(this,1,proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.clearCreatedCanisterId=function(){this.setCreatedCanisterId(void 0)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.hasCreatedCanisterId=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getRefund=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Refund,2)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.setRefund=function(t){A.Message.setOneofWrapperField(this,2,proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.clearRefund=function(){this.setRefund(void 0)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.hasRefund=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getToppedUp=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ToppedUp,3)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.setToppedUp=function(t){A.Message.setOneofWrapperField(this,3,proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.clearToppedUp=function(){this.setToppedUp(void 0)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.hasToppedUp=function(){return A.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.AccountBalanceRequest=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.AccountBalanceRequest,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.AccountBalanceRequest.displayName="proto.ic_ledger.pb.v1.AccountBalanceRequest");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.AccountBalanceRequest.toObject(t,this)},proto.ic_ledger.pb.v1.AccountBalanceRequest.toObject=function(t,o){var r,i={account:(r=o.getAccount())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.AccountBalanceRequest.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.AccountBalanceRequest;return proto.ic_ledger.pb.v1.AccountBalanceRequest.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.AccountBalanceRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(i,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setAccount(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.AccountBalanceRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.AccountBalanceRequest.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getAccount(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.getAccount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,1)};proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.setAccount=function(t){A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.clearAccount=function(){this.setAccount(void 0)};proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.hasAccount=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.AccountBalanceResponse=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.AccountBalanceResponse,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.AccountBalanceResponse.displayName="proto.ic_ledger.pb.v1.AccountBalanceResponse");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.AccountBalanceResponse.toObject(t,this)},proto.ic_ledger.pb.v1.AccountBalanceResponse.toObject=function(t,o){var r,i={balance:(r=o.getBalance())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.AccountBalanceResponse.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.AccountBalanceResponse;return proto.ic_ledger.pb.v1.AccountBalanceResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.AccountBalanceResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(i,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setBalance(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.AccountBalanceResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.AccountBalanceResponse.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getBalance(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.getBalance=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,1)};proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.setBalance=function(t){A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.clearBalance=function(){this.setBalance(void 0)};proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.hasBalance=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.TipOfChainRequest=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.TipOfChainRequest,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.TipOfChainRequest.displayName="proto.ic_ledger.pb.v1.TipOfChainRequest");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.TipOfChainRequest.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.TipOfChainRequest.toObject(t,this)},proto.ic_ledger.pb.v1.TipOfChainRequest.toObject=function(t,o){var r,i={};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.TipOfChainRequest.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.TipOfChainRequest;return proto.ic_ledger.pb.v1.TipOfChainRequest.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.TipOfChainRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.TipOfChainRequest.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.TipOfChainRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.TipOfChainRequest.serializeBinaryToWriter=function(t,o){var r=void 0};proto.ic_ledger.pb.v1.TipOfChainResponse=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.TipOfChainResponse,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.TipOfChainResponse.displayName="proto.ic_ledger.pb.v1.TipOfChainResponse");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.TipOfChainResponse.toObject(t,this)},proto.ic_ledger.pb.v1.TipOfChainResponse.toObject=function(t,o){var r,i={certification:(r=o.getCertification())&&proto.ic_ledger.pb.v1.Certification.toObject(t,r),chainLength:(r=o.getChainLength())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.TipOfChainResponse.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.TipOfChainResponse;return proto.ic_ledger.pb.v1.TipOfChainResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.TipOfChainResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new proto.ic_ledger.pb.v1.Certification;o.readMessage(i,proto.ic_ledger.pb.v1.Certification.deserializeBinaryFromReader),t.setCertification(i);break;case 2:var i=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(i,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setChainLength(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.TipOfChainResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.TipOfChainResponse.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getCertification(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.Certification.serializeBinaryToWriter),r=t.getChainLength(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.getCertification=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Certification,1)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.setCertification=function(t){A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.clearCertification=function(){this.setCertification(void 0)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.hasCertification=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.getChainLength=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,2)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.setChainLength=function(t){A.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.clearChainLength=function(){this.setChainLength(void 0)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.hasChainLength=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.EncodedBlock=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.EncodedBlock,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.EncodedBlock.displayName="proto.ic_ledger.pb.v1.EncodedBlock");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.EncodedBlock.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.EncodedBlock.toObject(t,this)},proto.ic_ledger.pb.v1.EncodedBlock.toObject=function(t,o){var r,i={block:o.getBlock_asB64()};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.EncodedBlock;return proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readBytes();t.setBlock(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.EncodedBlock.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.EncodedBlock.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.EncodedBlock.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getBlock_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_ledger.pb.v1.EncodedBlock.prototype.getBlock=function(){return A.Message.getFieldWithDefault(this,1,"")};proto.ic_ledger.pb.v1.EncodedBlock.prototype.getBlock_asB64=function(){return A.Message.bytesAsB64(this.getBlock())};proto.ic_ledger.pb.v1.EncodedBlock.prototype.getBlock_asU8=function(){return A.Message.bytesAsU8(this.getBlock())};proto.ic_ledger.pb.v1.EncodedBlock.prototype.setBlock=function(t){A.Message.setProto3BytesField(this,1,t)};proto.ic_ledger.pb.v1.GetBlocksRequest=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.GetBlocksRequest,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.GetBlocksRequest.displayName="proto.ic_ledger.pb.v1.GetBlocksRequest");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.GetBlocksRequest.toObject(t,this)},proto.ic_ledger.pb.v1.GetBlocksRequest.toObject=function(t,o){var r,i={start:A.Message.getFieldWithDefault(o,1,"0"),length:A.Message.getFieldWithDefault(o,2,"0")};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.GetBlocksRequest.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.GetBlocksRequest;return proto.ic_ledger.pb.v1.GetBlocksRequest.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.GetBlocksRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readUint64String();t.setStart(i);break;case 2:var i=o.readUint64String();t.setLength(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.GetBlocksRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.GetBlocksRequest.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getStart(),parseInt(r,10)!==0&&o.writeUint64String(1,r),r=t.getLength(),parseInt(r,10)!==0&&o.writeUint64String(2,r)};proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.getStart=function(){return A.Message.getFieldWithDefault(this,1,"0")};proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.setStart=function(t){A.Message.setProto3StringIntField(this,1,t)};proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.getLength=function(){return A.Message.getFieldWithDefault(this,2,"0")};proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.setLength=function(t){A.Message.setProto3StringIntField(this,2,t)};proto.ic_ledger.pb.v1.Refund=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Refund,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Refund.displayName="proto.ic_ledger.pb.v1.Refund");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Refund.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Refund.toObject(t,this)},proto.ic_ledger.pb.v1.Refund.toObject=function(t,o){var r,i={refund:(r=o.getRefund())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r),error:A.Message.getFieldWithDefault(o,3,"")};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.Refund.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Refund;return proto.ic_ledger.pb.v1.Refund.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Refund.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 2:var i=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(i,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setRefund(i);break;case 3:var i=o.readString();t.setError(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Refund.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Refund.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Refund.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getRefund(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter),r=t.getError(),r.length>0&&o.writeString(3,r)};proto.ic_ledger.pb.v1.Refund.prototype.getRefund=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,2)};proto.ic_ledger.pb.v1.Refund.prototype.setRefund=function(t){A.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.Refund.prototype.clearRefund=function(){this.setRefund(void 0)};proto.ic_ledger.pb.v1.Refund.prototype.hasRefund=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.Refund.prototype.getError=function(){return A.Message.getFieldWithDefault(this,3,"")};proto.ic_ledger.pb.v1.Refund.prototype.setError=function(t){A.Message.setProto3StringField(this,3,t)};proto.ic_ledger.pb.v1.ToppedUp=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.ToppedUp,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.ToppedUp.displayName="proto.ic_ledger.pb.v1.ToppedUp");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.ToppedUp.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.ToppedUp.toObject(t,this)},proto.ic_ledger.pb.v1.ToppedUp.toObject=function(t,o){var r,i={};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.ToppedUp.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.ToppedUp;return proto.ic_ledger.pb.v1.ToppedUp.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.ToppedUp.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.ToppedUp.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.ToppedUp.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.ToppedUp.serializeBinaryToWriter=function(t,o){var r=void 0};proto.ic_ledger.pb.v1.EncodedBlocks=function(t){A.Message.initialize(this,t,0,-1,proto.ic_ledger.pb.v1.EncodedBlocks.repeatedFields_,null)};k.inherits(proto.ic_ledger.pb.v1.EncodedBlocks,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.EncodedBlocks.displayName="proto.ic_ledger.pb.v1.EncodedBlocks");proto.ic_ledger.pb.v1.EncodedBlocks.repeatedFields_=[1];A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.EncodedBlocks.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.EncodedBlocks.toObject(t,this)},proto.ic_ledger.pb.v1.EncodedBlocks.toObject=function(t,o){var r,i={blocksList:A.Message.toObjectList(o.getBlocksList(),proto.ic_ledger.pb.v1.EncodedBlock.toObject,t)};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.EncodedBlocks;return proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new proto.ic_ledger.pb.v1.EncodedBlock;o.readMessage(i,proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinaryFromReader),t.addBlocks(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.EncodedBlocks.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.EncodedBlocks.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.EncodedBlocks.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getBlocksList(),r.length>0&&o.writeRepeatedMessage(1,r,proto.ic_ledger.pb.v1.EncodedBlock.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.EncodedBlocks.prototype.getBlocksList=function(){return A.Message.getRepeatedWrapperField(this,proto.ic_ledger.pb.v1.EncodedBlock,1)};proto.ic_ledger.pb.v1.EncodedBlocks.prototype.setBlocksList=function(t){A.Message.setRepeatedWrapperField(this,1,t)};proto.ic_ledger.pb.v1.EncodedBlocks.prototype.addBlocks=function(t,o){return A.Message.addToRepeatedWrapperField(this,1,t,proto.ic_ledger.pb.v1.EncodedBlock,o)};proto.ic_ledger.pb.v1.EncodedBlocks.prototype.clearBlocksList=function(){this.setBlocksList([])};proto.ic_ledger.pb.v1.GetBlocksResponse=function(t){A.Message.initialize(this,t,0,-1,null,proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_)};k.inherits(proto.ic_ledger.pb.v1.GetBlocksResponse,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.GetBlocksResponse.displayName="proto.ic_ledger.pb.v1.GetBlocksResponse");proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_=[[1,2]];proto.ic_ledger.pb.v1.GetBlocksResponse.GetBlocksContentCase={GET_BLOCKS_CONTENT_NOT_SET:0,BLOCKS:1,ERROR:2};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.getGetBlocksContentCase=function(){return A.Message.computeOneofCase(this,proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0])};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.GetBlocksResponse.toObject(t,this)},proto.ic_ledger.pb.v1.GetBlocksResponse.toObject=function(t,o){var r,i={blocks:(r=o.getBlocks())&&proto.ic_ledger.pb.v1.EncodedBlocks.toObject(t,r),error:A.Message.getFieldWithDefault(o,2,"")};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.GetBlocksResponse.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.GetBlocksResponse;return proto.ic_ledger.pb.v1.GetBlocksResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.GetBlocksResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new proto.ic_ledger.pb.v1.EncodedBlocks;o.readMessage(i,proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinaryFromReader),t.setBlocks(i);break;case 2:var i=o.readString();t.setError(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.GetBlocksResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.GetBlocksResponse.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getBlocks(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.EncodedBlocks.serializeBinaryToWriter),r=A.Message.getField(t,2),r!=null&&o.writeString(2,r)};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.getBlocks=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.EncodedBlocks,1)};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.setBlocks=function(t){A.Message.setOneofWrapperField(this,1,proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.clearBlocks=function(){this.setBlocks(void 0)};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.hasBlocks=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.getError=function(){return A.Message.getFieldWithDefault(this,2,"")};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.setError=function(t){A.Message.setOneofField(this,2,proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.clearError=function(){A.Message.setOneofField(this,2,proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0],void 0)};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.hasError=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.ICPTs=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.ICPTs,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.ICPTs.displayName="proto.ic_ledger.pb.v1.ICPTs");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.ICPTs.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.ICPTs.toObject(t,this)},proto.ic_ledger.pb.v1.ICPTs.toObject=function(t,o){var r,i={e8s:A.Message.getFieldWithDefault(o,1,"0")};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.ICPTs.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.ICPTs;return proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readUint64String();t.setE8s(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.ICPTs.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getE8s(),parseInt(r,10)!==0&&o.writeUint64String(1,r)};proto.ic_ledger.pb.v1.ICPTs.prototype.getE8s=function(){return A.Message.getFieldWithDefault(this,1,"0")};proto.ic_ledger.pb.v1.ICPTs.prototype.setE8s=function(t){A.Message.setProto3StringIntField(this,1,t)};proto.ic_ledger.pb.v1.Payment=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Payment,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Payment.displayName="proto.ic_ledger.pb.v1.Payment");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Payment.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Payment.toObject(t,this)},proto.ic_ledger.pb.v1.Payment.toObject=function(t,o){var r,i={receiverGets:(r=o.getReceiverGets())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.Payment.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Payment;return proto.ic_ledger.pb.v1.Payment.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Payment.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(i,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setReceiverGets(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Payment.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Payment.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Payment.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getReceiverGets(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Payment.prototype.getReceiverGets=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,1)};proto.ic_ledger.pb.v1.Payment.prototype.setReceiverGets=function(t){A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.Payment.prototype.clearReceiverGets=function(){this.setReceiverGets(void 0)};proto.ic_ledger.pb.v1.Payment.prototype.hasReceiverGets=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.BlockHeight=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.BlockHeight,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.BlockHeight.displayName="proto.ic_ledger.pb.v1.BlockHeight");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.BlockHeight.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.BlockHeight.toObject(t,this)},proto.ic_ledger.pb.v1.BlockHeight.toObject=function(t,o){var r,i={height:A.Message.getFieldWithDefault(o,1,"0")};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.BlockHeight.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.BlockHeight;return proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readUint64String();t.setHeight(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.BlockHeight.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getHeight(),parseInt(r,10)!==0&&o.writeUint64String(1,r)};proto.ic_ledger.pb.v1.BlockHeight.prototype.getHeight=function(){return A.Message.getFieldWithDefault(this,1,"0")};proto.ic_ledger.pb.v1.BlockHeight.prototype.setHeight=function(t){A.Message.setProto3StringIntField(this,1,t)};proto.ic_ledger.pb.v1.Block=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Block,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Block.displayName="proto.ic_ledger.pb.v1.Block");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Block.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Block.toObject(t,this)},proto.ic_ledger.pb.v1.Block.toObject=function(t,o){var r,i={parentHash:(r=o.getParentHash())&&proto.ic_ledger.pb.v1.Hash.toObject(t,r),timestamp:(r=o.getTimestamp())&&proto.ic_ledger.pb.v1.TimeStamp.toObject(t,r),transaction:(r=o.getTransaction())&&proto.ic_ledger.pb.v1.Transaction.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.Block.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Block;return proto.ic_ledger.pb.v1.Block.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Block.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new proto.ic_ledger.pb.v1.Hash;o.readMessage(i,proto.ic_ledger.pb.v1.Hash.deserializeBinaryFromReader),t.setParentHash(i);break;case 2:var i=new proto.ic_ledger.pb.v1.TimeStamp;o.readMessage(i,proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader),t.setTimestamp(i);break;case 3:var i=new proto.ic_ledger.pb.v1.Transaction;o.readMessage(i,proto.ic_ledger.pb.v1.Transaction.deserializeBinaryFromReader),t.setTransaction(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Block.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Block.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Block.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getParentHash(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.Hash.serializeBinaryToWriter),r=t.getTimestamp(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter),r=t.getTransaction(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.Transaction.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Block.prototype.getParentHash=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Hash,1)};proto.ic_ledger.pb.v1.Block.prototype.setParentHash=function(t){A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.Block.prototype.clearParentHash=function(){this.setParentHash(void 0)};proto.ic_ledger.pb.v1.Block.prototype.hasParentHash=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.Block.prototype.getTimestamp=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.TimeStamp,2)};proto.ic_ledger.pb.v1.Block.prototype.setTimestamp=function(t){A.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.Block.prototype.clearTimestamp=function(){this.setTimestamp(void 0)};proto.ic_ledger.pb.v1.Block.prototype.hasTimestamp=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.Block.prototype.getTransaction=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Transaction,3)};proto.ic_ledger.pb.v1.Block.prototype.setTransaction=function(t){A.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.Block.prototype.clearTransaction=function(){this.setTransaction(void 0)};proto.ic_ledger.pb.v1.Block.prototype.hasTransaction=function(){return A.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.Hash=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Hash,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Hash.displayName="proto.ic_ledger.pb.v1.Hash");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Hash.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Hash.toObject(t,this)},proto.ic_ledger.pb.v1.Hash.toObject=function(t,o){var r,i={hash:o.getHash_asB64()};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.Hash.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Hash;return proto.ic_ledger.pb.v1.Hash.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Hash.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readBytes();t.setHash(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Hash.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Hash.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Hash.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getHash_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_ledger.pb.v1.Hash.prototype.getHash=function(){return A.Message.getFieldWithDefault(this,1,"")};proto.ic_ledger.pb.v1.Hash.prototype.getHash_asB64=function(){return A.Message.bytesAsB64(this.getHash())};proto.ic_ledger.pb.v1.Hash.prototype.getHash_asU8=function(){return A.Message.bytesAsU8(this.getHash())};proto.ic_ledger.pb.v1.Hash.prototype.setHash=function(t){A.Message.setProto3BytesField(this,1,t)};proto.ic_ledger.pb.v1.Account=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Account,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Account.displayName="proto.ic_ledger.pb.v1.Account");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Account.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Account.toObject(t,this)},proto.ic_ledger.pb.v1.Account.toObject=function(t,o){var r,i={identifier:(r=o.getIdentifier())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r),balance:(r=o.getBalance())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.Account.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Account;return proto.ic_ledger.pb.v1.Account.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Account.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(i,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setIdentifier(i);break;case 2:var i=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(i,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setBalance(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Account.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Account.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Account.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getIdentifier(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter),r=t.getBalance(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Account.prototype.getIdentifier=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,1)};proto.ic_ledger.pb.v1.Account.prototype.setIdentifier=function(t){A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.Account.prototype.clearIdentifier=function(){this.setIdentifier(void 0)};proto.ic_ledger.pb.v1.Account.prototype.hasIdentifier=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.Account.prototype.getBalance=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,2)};proto.ic_ledger.pb.v1.Account.prototype.setBalance=function(t){A.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.Account.prototype.clearBalance=function(){this.setBalance(void 0)};proto.ic_ledger.pb.v1.Account.prototype.hasBalance=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.Transaction=function(t){A.Message.initialize(this,t,0,-1,null,proto.ic_ledger.pb.v1.Transaction.oneofGroups_)};k.inherits(proto.ic_ledger.pb.v1.Transaction,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Transaction.displayName="proto.ic_ledger.pb.v1.Transaction");proto.ic_ledger.pb.v1.Transaction.oneofGroups_=[[1,2,3]];proto.ic_ledger.pb.v1.Transaction.TransferCase={TRANSFER_NOT_SET:0,BURN:1,MINT:2,SEND:3};proto.ic_ledger.pb.v1.Transaction.prototype.getTransferCase=function(){return A.Message.computeOneofCase(this,proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0])};A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Transaction.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Transaction.toObject(t,this)},proto.ic_ledger.pb.v1.Transaction.toObject=function(t,o){var r,i={burn:(r=o.getBurn())&&proto.ic_ledger.pb.v1.Burn.toObject(t,r),mint:(r=o.getMint())&&proto.ic_ledger.pb.v1.Mint.toObject(t,r),send:(r=o.getSend())&&proto.ic_ledger.pb.v1.Send.toObject(t,r),memo:(r=o.getMemo())&&proto.ic_ledger.pb.v1.Memo.toObject(t,r),createdAt:(r=o.getCreatedAt())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r),createdAtTime:(r=o.getCreatedAtTime())&&proto.ic_ledger.pb.v1.TimeStamp.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.Transaction.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Transaction;return proto.ic_ledger.pb.v1.Transaction.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Transaction.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new proto.ic_ledger.pb.v1.Burn;o.readMessage(i,proto.ic_ledger.pb.v1.Burn.deserializeBinaryFromReader),t.setBurn(i);break;case 2:var i=new proto.ic_ledger.pb.v1.Mint;o.readMessage(i,proto.ic_ledger.pb.v1.Mint.deserializeBinaryFromReader),t.setMint(i);break;case 3:var i=new proto.ic_ledger.pb.v1.Send;o.readMessage(i,proto.ic_ledger.pb.v1.Send.deserializeBinaryFromReader),t.setSend(i);break;case 4:var i=new proto.ic_ledger.pb.v1.Memo;o.readMessage(i,proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader),t.setMemo(i);break;case 5:var i=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(i,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setCreatedAt(i);break;case 6:var i=new proto.ic_ledger.pb.v1.TimeStamp;o.readMessage(i,proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader),t.setCreatedAtTime(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Transaction.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Transaction.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Transaction.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getBurn(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.Burn.serializeBinaryToWriter),r=t.getMint(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.Mint.serializeBinaryToWriter),r=t.getSend(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.Send.serializeBinaryToWriter),r=t.getMemo(),r!=null&&o.writeMessage(4,r,proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter),r=t.getCreatedAt(),r!=null&&o.writeMessage(5,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter),r=t.getCreatedAtTime(),r!=null&&o.writeMessage(6,r,proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Transaction.prototype.getBurn=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Burn,1)};proto.ic_ledger.pb.v1.Transaction.prototype.setBurn=function(t){A.Message.setOneofWrapperField(this,1,proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.Transaction.prototype.clearBurn=function(){this.setBurn(void 0)};proto.ic_ledger.pb.v1.Transaction.prototype.hasBurn=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.Transaction.prototype.getMint=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Mint,2)};proto.ic_ledger.pb.v1.Transaction.prototype.setMint=function(t){A.Message.setOneofWrapperField(this,2,proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.Transaction.prototype.clearMint=function(){this.setMint(void 0)};proto.ic_ledger.pb.v1.Transaction.prototype.hasMint=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.Transaction.prototype.getSend=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Send,3)};proto.ic_ledger.pb.v1.Transaction.prototype.setSend=function(t){A.Message.setOneofWrapperField(this,3,proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.Transaction.prototype.clearSend=function(){this.setSend(void 0)};proto.ic_ledger.pb.v1.Transaction.prototype.hasSend=function(){return A.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.Transaction.prototype.getMemo=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Memo,4)};proto.ic_ledger.pb.v1.Transaction.prototype.setMemo=function(t){A.Message.setWrapperField(this,4,t)};proto.ic_ledger.pb.v1.Transaction.prototype.clearMemo=function(){this.setMemo(void 0)};proto.ic_ledger.pb.v1.Transaction.prototype.hasMemo=function(){return A.Message.getField(this,4)!=null};proto.ic_ledger.pb.v1.Transaction.prototype.getCreatedAt=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,5)};proto.ic_ledger.pb.v1.Transaction.prototype.setCreatedAt=function(t){A.Message.setWrapperField(this,5,t)};proto.ic_ledger.pb.v1.Transaction.prototype.clearCreatedAt=function(){this.setCreatedAt(void 0)};proto.ic_ledger.pb.v1.Transaction.prototype.hasCreatedAt=function(){return A.Message.getField(this,5)!=null};proto.ic_ledger.pb.v1.Transaction.prototype.getCreatedAtTime=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.TimeStamp,6)};proto.ic_ledger.pb.v1.Transaction.prototype.setCreatedAtTime=function(t){A.Message.setWrapperField(this,6,t)};proto.ic_ledger.pb.v1.Transaction.prototype.clearCreatedAtTime=function(){this.setCreatedAtTime(void 0)};proto.ic_ledger.pb.v1.Transaction.prototype.hasCreatedAtTime=function(){return A.Message.getField(this,6)!=null};proto.ic_ledger.pb.v1.Send=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Send,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Send.displayName="proto.ic_ledger.pb.v1.Send");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Send.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Send.toObject(t,this)},proto.ic_ledger.pb.v1.Send.toObject=function(t,o){var r,i={from:(r=o.getFrom())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r),to:(r=o.getTo())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r),amount:(r=o.getAmount())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r),maxFee:(r=o.getMaxFee())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.Send.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Send;return proto.ic_ledger.pb.v1.Send.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Send.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(i,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setFrom(i);break;case 2:var i=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(i,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setTo(i);break;case 3:var i=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(i,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setAmount(i);break;case 4:var i=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(i,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setMaxFee(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Send.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Send.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Send.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getFrom(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter),r=t.getTo(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter),r=t.getAmount(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter),r=t.getMaxFee(),r!=null&&o.writeMessage(4,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Send.prototype.getFrom=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,1)};proto.ic_ledger.pb.v1.Send.prototype.setFrom=function(t){A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.Send.prototype.clearFrom=function(){this.setFrom(void 0)};proto.ic_ledger.pb.v1.Send.prototype.hasFrom=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.Send.prototype.getTo=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,2)};proto.ic_ledger.pb.v1.Send.prototype.setTo=function(t){A.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.Send.prototype.clearTo=function(){this.setTo(void 0)};proto.ic_ledger.pb.v1.Send.prototype.hasTo=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.Send.prototype.getAmount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,3)};proto.ic_ledger.pb.v1.Send.prototype.setAmount=function(t){A.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.Send.prototype.clearAmount=function(){this.setAmount(void 0)};proto.ic_ledger.pb.v1.Send.prototype.hasAmount=function(){return A.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.Send.prototype.getMaxFee=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,4)};proto.ic_ledger.pb.v1.Send.prototype.setMaxFee=function(t){A.Message.setWrapperField(this,4,t)};proto.ic_ledger.pb.v1.Send.prototype.clearMaxFee=function(){this.setMaxFee(void 0)};proto.ic_ledger.pb.v1.Send.prototype.hasMaxFee=function(){return A.Message.getField(this,4)!=null};proto.ic_ledger.pb.v1.Mint=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Mint,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Mint.displayName="proto.ic_ledger.pb.v1.Mint");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Mint.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Mint.toObject(t,this)},proto.ic_ledger.pb.v1.Mint.toObject=function(t,o){var r,i={to:(r=o.getTo())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r),amount:(r=o.getAmount())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.Mint.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Mint;return proto.ic_ledger.pb.v1.Mint.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Mint.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 2:var i=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(i,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setTo(i);break;case 3:var i=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(i,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setAmount(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Mint.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Mint.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Mint.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getTo(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter),r=t.getAmount(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Mint.prototype.getTo=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,2)};proto.ic_ledger.pb.v1.Mint.prototype.setTo=function(t){A.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.Mint.prototype.clearTo=function(){this.setTo(void 0)};proto.ic_ledger.pb.v1.Mint.prototype.hasTo=function(){return A.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.Mint.prototype.getAmount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,3)};proto.ic_ledger.pb.v1.Mint.prototype.setAmount=function(t){A.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.Mint.prototype.clearAmount=function(){this.setAmount(void 0)};proto.ic_ledger.pb.v1.Mint.prototype.hasAmount=function(){return A.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.Burn=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Burn,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Burn.displayName="proto.ic_ledger.pb.v1.Burn");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Burn.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Burn.toObject(t,this)},proto.ic_ledger.pb.v1.Burn.toObject=function(t,o){var r,i={from:(r=o.getFrom())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r),amount:(r=o.getAmount())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r)};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.Burn.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Burn;return proto.ic_ledger.pb.v1.Burn.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Burn.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(i,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setFrom(i);break;case 3:var i=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(i,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setAmount(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Burn.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Burn.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Burn.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getFrom(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter),r=t.getAmount(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Burn.prototype.getFrom=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,1)};proto.ic_ledger.pb.v1.Burn.prototype.setFrom=function(t){A.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.Burn.prototype.clearFrom=function(){this.setFrom(void 0)};proto.ic_ledger.pb.v1.Burn.prototype.hasFrom=function(){return A.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.Burn.prototype.getAmount=function(){return A.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,3)};proto.ic_ledger.pb.v1.Burn.prototype.setAmount=function(t){A.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.Burn.prototype.clearAmount=function(){this.setAmount(void 0)};proto.ic_ledger.pb.v1.Burn.prototype.hasAmount=function(){return A.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.AccountIdentifier=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.AccountIdentifier,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.AccountIdentifier.displayName="proto.ic_ledger.pb.v1.AccountIdentifier");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.AccountIdentifier.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,this)},proto.ic_ledger.pb.v1.AccountIdentifier.toObject=function(t,o){var r,i={hash:o.getHash_asB64()};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.AccountIdentifier;return proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readBytes();t.setHash(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.AccountIdentifier.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getHash_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_ledger.pb.v1.AccountIdentifier.prototype.getHash=function(){return A.Message.getFieldWithDefault(this,1,"")};proto.ic_ledger.pb.v1.AccountIdentifier.prototype.getHash_asB64=function(){return A.Message.bytesAsB64(this.getHash())};proto.ic_ledger.pb.v1.AccountIdentifier.prototype.getHash_asU8=function(){return A.Message.bytesAsU8(this.getHash())};proto.ic_ledger.pb.v1.AccountIdentifier.prototype.setHash=function(t){A.Message.setProto3BytesField(this,1,t)};proto.ic_ledger.pb.v1.Subaccount=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Subaccount,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Subaccount.displayName="proto.ic_ledger.pb.v1.Subaccount");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Subaccount.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Subaccount.toObject(t,this)},proto.ic_ledger.pb.v1.Subaccount.toObject=function(t,o){var r,i={subAccount:o.getSubAccount_asB64()};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.Subaccount.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Subaccount;return proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readBytes();t.setSubAccount(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Subaccount.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getSubAccount_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_ledger.pb.v1.Subaccount.prototype.getSubAccount=function(){return A.Message.getFieldWithDefault(this,1,"")};proto.ic_ledger.pb.v1.Subaccount.prototype.getSubAccount_asB64=function(){return A.Message.bytesAsB64(this.getSubAccount())};proto.ic_ledger.pb.v1.Subaccount.prototype.getSubAccount_asU8=function(){return A.Message.bytesAsU8(this.getSubAccount())};proto.ic_ledger.pb.v1.Subaccount.prototype.setSubAccount=function(t){A.Message.setProto3BytesField(this,1,t)};proto.ic_ledger.pb.v1.Memo=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Memo,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Memo.displayName="proto.ic_ledger.pb.v1.Memo");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Memo.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Memo.toObject(t,this)},proto.ic_ledger.pb.v1.Memo.toObject=function(t,o){var r,i={memo:A.Message.getFieldWithDefault(o,1,"0")};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.Memo.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Memo;return proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readUint64String();t.setMemo(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Memo.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getMemo(),parseInt(r,10)!==0&&o.writeUint64String(1,r)};proto.ic_ledger.pb.v1.Memo.prototype.getMemo=function(){return A.Message.getFieldWithDefault(this,1,"0")};proto.ic_ledger.pb.v1.Memo.prototype.setMemo=function(t){A.Message.setProto3StringIntField(this,1,t)};proto.ic_ledger.pb.v1.TimeStamp=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.TimeStamp,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.TimeStamp.displayName="proto.ic_ledger.pb.v1.TimeStamp");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.TimeStamp.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.TimeStamp.toObject(t,this)},proto.ic_ledger.pb.v1.TimeStamp.toObject=function(t,o){var r,i={timestampNanos:A.Message.getFieldWithDefault(o,1,"0")};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.TimeStamp.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.TimeStamp;return proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readUint64String();t.setTimestampNanos(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.TimeStamp.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getTimestampNanos(),parseInt(r,10)!==0&&o.writeUint64String(1,r)};proto.ic_ledger.pb.v1.TimeStamp.prototype.getTimestampNanos=function(){return A.Message.getFieldWithDefault(this,1,"0")};proto.ic_ledger.pb.v1.TimeStamp.prototype.setTimestampNanos=function(t){A.Message.setProto3StringIntField(this,1,t)};proto.ic_ledger.pb.v1.Certification=function(t){A.Message.initialize(this,t,0,-1,null,null)};k.inherits(proto.ic_ledger.pb.v1.Certification,A.Message);k.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Certification.displayName="proto.ic_ledger.pb.v1.Certification");A.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Certification.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Certification.toObject(t,this)},proto.ic_ledger.pb.v1.Certification.toObject=function(t,o){var r,i={certification:o.getCertification_asB64()};return t&&(i.$jspbMessageInstance=o),i});proto.ic_ledger.pb.v1.Certification.deserializeBinary=function(t){var o=new A.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Certification;return proto.ic_ledger.pb.v1.Certification.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Certification.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var i=o.readBytes();t.setCertification(i);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Certification.prototype.serializeBinary=function(){var t=new A.BinaryWriter;return proto.ic_ledger.pb.v1.Certification.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Certification.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getCertification_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_ledger.pb.v1.Certification.prototype.getCertification=function(){return A.Message.getFieldWithDefault(this,1,"")};proto.ic_ledger.pb.v1.Certification.prototype.getCertification_asB64=function(){return A.Message.bytesAsB64(this.getCertification())};proto.ic_ledger.pb.v1.Certification.prototype.getCertification_asU8=function(){return A.Message.bytesAsU8(this.getCertification())};proto.ic_ledger.pb.v1.Certification.prototype.setCertification=function(t){A.Message.setProto3BytesField(this,1,t)};k.object.extend(gs,proto.ic_ledger.pb.v1)});var ft=H(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});var lo=require("buffer"),kA=lo.Buffer.from&&lo.Buffer.alloc&&lo.Buffer.allocUnsafe&&lo.Buffer.allocUnsafeSlow?lo.Buffer.from:function(t){return new lo.Buffer(t)};gi.default=kA});var ht=H(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.default=function(t,o){var r=function(n,s){return o(n,s)>>>0};return r.signed=o,r.unsigned=r,r.model=t,r}});var As=H(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});var UA=require("buffer"),jA=ft(),DA=ps(jA),HA=ht(),qA=ps(HA);function ps(t){return t&&t.__esModule?t:{default:t}}var WA=(0,qA.default)("crc1",function(t,o){UA.Buffer.isBuffer(t)||(t=(0,DA.default)(t));for(var r=~~o,i=0,n=0;n<t.length;n++){var s=t[n];i+=s}return r+=i%256,r%256});Ai.default=WA});var ls=H((hh,us)=>{"use strict";us.exports=As().default});var ds=H(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});var VA=require("buffer"),YA=ft(),zA=cs(YA),LA=ht(),JA=cs(LA);function cs(t){return t&&t.__esModule?t:{default:t}}var ui=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];typeof Int32Array!="undefined"&&(ui=new Int32Array(ui));var KA=(0,JA.default)("crc-8",function(t,o){VA.Buffer.isBuffer(t)||(t=(0,zA.default)(t));for(var r=~~o,i=0;i<t.length;i++){var n=t[i];r=ui[(r^n)&255]&255}return r});li.default=KA});var hs=H((Eh,fs)=>{"use strict";fs.exports=ds().default});var Es=H(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});var ZA=require("buffer"),XA=ft(),$A=Bs(XA),eu=ht(),tu=Bs(eu);function Bs(t){return t&&t.__esModule?t:{default:t}}var ci=[0,94,188,226,97,63,221,131,194,156,126,32,163,253,31,65,157,195,33,127,252,162,64,30,95,1,227,189,62,96,130,220,35,125,159,193,66,28,254,160,225,191,93,3,128,222,60,98,190,224,2,92,223,129,99,61,124,34,192,158,29,67,161,255,70,24,250,164,39,121,155,197,132,218,56,102,229,187,89,7,219,133,103,57,186,228,6,88,25,71,165,251,120,38,196,154,101,59,217,135,4,90,184,230,167,249,27,69,198,152,122,36,248,166,68,26,153,199,37,123,58,100,134,216,91,5,231,185,140,210,48,110,237,179,81,15,78,16,242,172,47,113,147,205,17,79,173,243,112,46,204,146,211,141,111,49,178,236,14,80,175,241,19,77,206,144,114,44,109,51,209,143,12,82,176,238,50,108,142,208,83,13,239,177,240,174,76,18,145,207,45,115,202,148,118,40,171,245,23,73,8,86,180,234,105,55,213,139,87,9,235,181,54,104,138,212,149,203,41,119,244,170,72,22,233,183,85,11,136,214,52,106,43,117,151,201,74,20,246,168,116,42,200,150,21,75,169,247,182,232,10,84,215,137,107,53];typeof Int32Array!="undefined"&&(ci=new Int32Array(ci));var ou=(0,tu.default)("dallas-1-wire",function(t,o){ZA.Buffer.isBuffer(t)||(t=(0,$A.default)(t));for(var r=~~o,i=0;i<t.length;i++){var n=t[i];r=ci[(r^n)&255]&255}return r});di.default=ou});var ys=H((yh,bs)=>{"use strict";bs.exports=Es().default});var Is=H(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});var ru=require("buffer"),iu=ft(),nu=_s(iu),su=ht(),au=_s(su);function _s(t){return t&&t.__esModule?t:{default:t}}var fi=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];typeof Int32Array!="undefined"&&(fi=new Int32Array(fi));var gu=(0,au.default)("crc-16",function(t,o){ru.Buffer.isBuffer(t)||(t=(0,nu.default)(t));for(var r=~~o,i=0;i<t.length;i++){var n=t[i];r=(fi[(r^n)&255]^r>>8)&65535}return r});hi.default=gu});var Cs=H((Ih,ms)=>{"use strict";ms.exports=Is().default});var Ss=H(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});var pu=require("buffer"),Au=ft(),uu=xs(Au),lu=ht(),cu=xs(lu);function xs(t){return t&&t.__esModule?t:{default:t}}var Bi=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];typeof Int32Array!="undefined"&&(Bi=new Int32Array(Bi));var du=(0,cu.default)("ccitt",function(t,o){pu.Buffer.isBuffer(t)||(t=(0,uu.default)(t));for(var r=typeof o!="undefined"?~~o:65535,i=0;i<t.length;i++){var n=t[i];r=(Bi[(r>>8^n)&255]^r<<8)&65535}return r});Ei.default=du});var vs=H((Ch,ws)=>{"use strict";ws.exports=Ss().default});var Qs=H(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});var fu=require("buffer"),hu=ft(),Bu=Rs(hu),Eu=ht(),bu=Rs(Eu);function Rs(t){return t&&t.__esModule?t:{default:t}}var bi=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];typeof Int32Array!="undefined"&&(bi=new Int32Array(bi));var yu=(0,bu.default)("crc-16-modbus",function(t,o){fu.Buffer.isBuffer(t)||(t=(0,Bu.default)(t));for(var r=typeof o!="undefined"?~~o:65535,i=0;i<t.length;i++){var n=t[i];r=(bi[(r^n)&255]^r>>8)&65535}return r});yi.default=yu});var Ts=H((Sh,Fs)=>{"use strict";Fs.exports=Qs().default});var Os=H(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});var _u=require("buffer"),Iu=ft(),mu=Ms(Iu),Cu=ht(),xu=Ms(Cu);function Ms(t){return t&&t.__esModule?t:{default:t}}var Su=(0,xu.default)("xmodem",function(t,o){_u.Buffer.isBuffer(t)||(t=(0,mu.default)(t));for(var r=typeof o!="undefined"?~~o:0,i=0;i<t.length;i++){var n=t[i],s=r>>>8&255;s^=n&255,s^=s>>>4,r=r<<8&65535,r^=s,s=s<<5&65535,r^=s,s=s<<7&65535,r^=s}return r});_i.default=Su});var Gs=H((vh,Ns)=>{"use strict";Ns.exports=Os().default});var ks=H(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});var wu=require("buffer"),vu=ft(),Ru=Ps(vu),Qu=ht(),Fu=Ps(Qu);function Ps(t){return t&&t.__esModule?t:{default:t}}var Ii=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];typeof Int32Array!="undefined"&&(Ii=new Int32Array(Ii));var Tu=(0,Fu.default)("kermit",function(t,o){wu.Buffer.isBuffer(t)||(t=(0,Ru.default)(t));for(var r=typeof o!="undefined"?~~o:0,i=0;i<t.length;i++){var n=t[i];r=(Ii[(r^n)&255]^r>>8)&65535}return r});mi.default=Tu});var js=H((Qh,Us)=>{"use strict";Us.exports=ks().default});var Hs=H(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});var Mu=require("buffer"),Ou=ft(),Nu=Ds(Ou),Gu=ht(),Pu=Ds(Gu);function Ds(t){return t&&t.__esModule?t:{default:t}}var Ci=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];typeof Int32Array!="undefined"&&(Ci=new Int32Array(Ci));var ku=(0,Pu.default)("crc-24",function(t,o){Mu.Buffer.isBuffer(t)||(t=(0,Nu.default)(t));for(var r=typeof o!="undefined"?~~o:11994318,i=0;i<t.length;i++){var n=t[i];r=(Ci[(r>>16^n)&255]^r<<8)&16777215}return r});xi.default=ku});var Ws=H((Th,qs)=>{"use strict";qs.exports=Hs().default});var Ys=H(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});var Uu=require("buffer"),ju=ft(),Du=Vs(ju),Hu=ht(),qu=Vs(Hu);function Vs(t){return t&&t.__esModule?t:{default:t}}var Si=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array!="undefined"&&(Si=new Int32Array(Si));var Wu=(0,qu.default)("crc-32",function(t,o){Uu.Buffer.isBuffer(t)||(t=(0,Du.default)(t));for(var r=o===0?0:~~o^-1,i=0;i<t.length;i++){var n=t[i];r=Si[(r^n)&255]^r>>>8}return r^-1});wi.default=Wu});var Ls=H((Oh,zs)=>{"use strict";zs.exports=Ys().default});var Ks=H(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});var Vu=require("buffer"),Yu=ft(),zu=Js(Yu),Lu=ht(),Ju=Js(Lu);function Js(t){return t&&t.__esModule?t:{default:t}}var vi=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array!="undefined"&&(vi=new Int32Array(vi));var Ku=(0,Ju.default)("jam",function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;Vu.Buffer.isBuffer(t)||(t=(0,zu.default)(t));for(var r=o===0?0:~~o,i=0;i<t.length;i++){var n=t[i];r=vi[(r^n)&255]^r>>>8}return r});Ri.default=Ku});var Xs=H((Gh,Zs)=>{"use strict";Zs.exports=Ks().default});var ea=H((Ph,$s)=>{"use strict";$s.exports={crc1:ls(),crc8:hs(),crc81wire:ys(),crc16:Cs(),crc16ccitt:vs(),crc16modbus:Ts(),crc16xmodem:Gs(),crc16kermit:js(),crc24:Ws(),crc32:Ls(),crcjam:Xs()}});var la=H(dr=>{"use strict";dr.byteLength=Xu;dr.toByteArray=el;dr.fromByteArray=rl;var Rt=[],Bt=[],Zu=typeof Uint8Array!="undefined"?Uint8Array:Array,Oi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(eo=0,Aa=Oi.length;eo<Aa;++eo)Rt[eo]=Oi[eo],Bt[Oi.charCodeAt(eo)]=eo;var eo,Aa;Bt["-".charCodeAt(0)]=62;Bt["_".charCodeAt(0)]=63;function ua(t){var o=t.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=o);var i=r===o?0:4-r%4;return[r,i]}function Xu(t){var o=ua(t),r=o[0],i=o[1];return(r+i)*3/4-i}function $u(t,o,r){return(o+r)*3/4-r}function el(t){var o,r=ua(t),i=r[0],n=r[1],s=new Zu($u(t,i,n)),p=0,u=n>0?i-4:i,h;for(h=0;h<u;h+=4)o=Bt[t.charCodeAt(h)]<<18|Bt[t.charCodeAt(h+1)]<<12|Bt[t.charCodeAt(h+2)]<<6|Bt[t.charCodeAt(h+3)],s[p++]=o>>16&255,s[p++]=o>>8&255,s[p++]=o&255;return n===2&&(o=Bt[t.charCodeAt(h)]<<2|Bt[t.charCodeAt(h+1)]>>4,s[p++]=o&255),n===1&&(o=Bt[t.charCodeAt(h)]<<10|Bt[t.charCodeAt(h+1)]<<4|Bt[t.charCodeAt(h+2)]>>2,s[p++]=o>>8&255,s[p++]=o&255),s}function tl(t){return Rt[t>>18&63]+Rt[t>>12&63]+Rt[t>>6&63]+Rt[t&63]}function ol(t,o,r){for(var i,n=[],s=o;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(t[s+2]&255),n.push(tl(i));return n.join("")}function rl(t){for(var o,r=t.length,i=r%3,n=[],s=16383,p=0,u=r-i;p<u;p+=s)n.push(ol(t,p,p+s>u?u:p+s));return i===1?(o=t[r-1],n.push(Rt[o>>2]+Rt[o<<4&63]+"==")):i===2&&(o=(t[r-2]<<8)+t[r-1],n.push(Rt[o>>10]+Rt[o>>4&63]+Rt[o<<2&63]+"=")),n.join("")}});var Gi=H(Ni=>{Ni.read=function(t,o,r,i,n){var s,p,u=n*8-i-1,h=(1<<u)-1,w=h>>1,G=-7,T=r?n-1:0,V=r?-1:1,P=t[o+T];for(T+=V,s=P&(1<<-G)-1,P>>=-G,G+=u;G>0;s=s*256+t[o+T],T+=V,G-=8);for(p=s&(1<<-G)-1,s>>=-G,G+=i;G>0;p=p*256+t[o+T],T+=V,G-=8);if(s===0)s=1-w;else{if(s===h)return p?NaN:(P?-1:1)*(1/0);p=p+Math.pow(2,i),s=s-w}return(P?-1:1)*p*Math.pow(2,s-i)};Ni.write=function(t,o,r,i,n,s){var p,u,h,w=s*8-n-1,G=(1<<w)-1,T=G>>1,V=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=i?0:s-1,L=i?1:-1,ee=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(u=isNaN(o)?1:0,p=G):(p=Math.floor(Math.log(o)/Math.LN2),o*(h=Math.pow(2,-p))<1&&(p--,h*=2),p+T>=1?o+=V/h:o+=V*Math.pow(2,1-T),o*h>=2&&(p++,h/=2),p+T>=G?(u=0,p=G):p+T>=1?(u=(o*h-1)*Math.pow(2,n),p=p+T):(u=o*Math.pow(2,T-1)*Math.pow(2,n),p=0));n>=8;t[r+P]=u&255,P+=L,u/=256,n-=8);for(p=p<<n|u,w+=n;w>0;t[r+P]=p&255,P+=L,p/=256,w-=8);t[r+P-L]|=ee*128}});var xa=H(ho=>{"use strict";var Pi=la(),fo=Gi(),ca=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ho.Buffer=O;ho.SlowBuffer=pl;ho.INSPECT_MAX_BYTES=50;var fr=2147483647;ho.kMaxLength=fr;O.TYPED_ARRAY_SUPPORT=il();!O.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function il(){try{var t=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(t,o),t.foo()===42}catch{return!1}}Object.defineProperty(O.prototype,"parent",{enumerable:!0,get:function(){if(!!O.isBuffer(this))return this.buffer}});Object.defineProperty(O.prototype,"offset",{enumerable:!0,get:function(){if(!!O.isBuffer(this))return this.byteOffset}});function qt(t){if(t>fr)throw new RangeError('The value "'+t+'" is invalid for option "size"');var o=new Uint8Array(t);return Object.setPrototypeOf(o,O.prototype),o}function O(t,o,r){if(typeof t=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ki(t)}return da(t,o,r)}O.poolSize=8192;function da(t,o,r){if(typeof t=="string")return sl(t,o);if(ArrayBuffer.isView(t))return al(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Qt(t,ArrayBuffer)||t&&Qt(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Qt(t,SharedArrayBuffer)||t&&Qt(t.buffer,SharedArrayBuffer)))return ji(t,o,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(i!=null&&i!==t)return O.from(i,o,r);var n=gl(t);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return O.from(t[Symbol.toPrimitive]("string"),o,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}O.from=function(t,o,r){return da(t,o,r)};Object.setPrototypeOf(O.prototype,Uint8Array.prototype);Object.setPrototypeOf(O,Uint8Array);function fa(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function nl(t,o,r){return fa(t),t<=0?qt(t):o!==void 0?typeof r=="string"?qt(t).fill(o,r):qt(t).fill(o):qt(t)}O.alloc=function(t,o,r){return nl(t,o,r)};function ki(t){return fa(t),qt(t<0?0:Di(t)|0)}O.allocUnsafe=function(t){return ki(t)};O.allocUnsafeSlow=function(t){return ki(t)};function sl(t,o){if((typeof o!="string"||o==="")&&(o="utf8"),!O.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var r=ha(t,o)|0,i=qt(r),n=i.write(t,o);return n!==r&&(i=i.slice(0,n)),i}function Ui(t){for(var o=t.length<0?0:Di(t.length)|0,r=qt(o),i=0;i<o;i+=1)r[i]=t[i]&255;return r}function al(t){if(Qt(t,Uint8Array)){var o=new Uint8Array(t);return ji(o.buffer,o.byteOffset,o.byteLength)}return Ui(t)}function ji(t,o,r){if(o<0||t.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<o+(r||0))throw new RangeError('"length" is outside of buffer bounds');var i;return o===void 0&&r===void 0?i=new Uint8Array(t):r===void 0?i=new Uint8Array(t,o):i=new Uint8Array(t,o,r),Object.setPrototypeOf(i,O.prototype),i}function gl(t){if(O.isBuffer(t)){var o=Di(t.length)|0,r=qt(o);return r.length===0||t.copy(r,0,0,o),r}if(t.length!==void 0)return typeof t.length!="number"||qi(t.length)?qt(0):Ui(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Ui(t.data)}function Di(t){if(t>=fr)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+fr.toString(16)+" bytes");return t|0}function pl(t){return+t!=t&&(t=0),O.alloc(+t)}O.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==O.prototype};O.compare=function(o,r){if(Qt(o,Uint8Array)&&(o=O.from(o,o.offset,o.byteLength)),Qt(r,Uint8Array)&&(r=O.from(r,r.offset,r.byteLength)),!O.isBuffer(o)||!O.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===r)return 0;for(var i=o.length,n=r.length,s=0,p=Math.min(i,n);s<p;++s)if(o[s]!==r[s]){i=o[s],n=r[s];break}return i<n?-1:n<i?1:0};O.isEncoding=function(o){switch(String(o).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};O.concat=function(o,r){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return O.alloc(0);var i;if(r===void 0)for(r=0,i=0;i<o.length;++i)r+=o[i].length;var n=O.allocUnsafe(r),s=0;for(i=0;i<o.length;++i){var p=o[i];if(Qt(p,Uint8Array))s+p.length>n.length?O.from(p).copy(n,s):Uint8Array.prototype.set.call(n,p,s);else if(O.isBuffer(p))p.copy(n,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=p.length}return n};function ha(t,o){if(O.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Qt(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;for(var n=!1;;)switch(o){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Hi(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ca(t).length;default:if(n)return i?-1:Hi(t).length;o=(""+o).toLowerCase(),n=!0}}O.byteLength=ha;function Al(t,o,r){var i=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,o>>>=0,r<=o))return"";for(t||(t="utf8");;)switch(t){case"hex":return yl(this,o,r);case"utf8":case"utf-8":return ba(this,o,r);case"ascii":return El(this,o,r);case"latin1":case"binary":return bl(this,o,r);case"base64":return hl(this,o,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _l(this,o,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}O.prototype._isBuffer=!0;function to(t,o,r){var i=t[o];t[o]=t[r],t[r]=i}O.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<o;r+=2)to(this,r,r+1);return this};O.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<o;r+=4)to(this,r,r+3),to(this,r+1,r+2);return this};O.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<o;r+=8)to(this,r,r+7),to(this,r+1,r+6),to(this,r+2,r+5),to(this,r+3,r+4);return this};O.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?ba(this,0,o):Al.apply(this,arguments)};O.prototype.toLocaleString=O.prototype.toString;O.prototype.equals=function(o){if(!O.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:O.compare(this,o)===0};O.prototype.inspect=function(){var o="",r=ho.INSPECT_MAX_BYTES;return o=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(o+=" ... "),"<Buffer "+o+">"};ca&&(O.prototype[ca]=O.prototype.inspect);O.prototype.compare=function(o,r,i,n,s){if(Qt(o,Uint8Array)&&(o=O.from(o,o.offset,o.byteLength)),!O.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(r===void 0&&(r=0),i===void 0&&(i=o?o.length:0),n===void 0&&(n=0),s===void 0&&(s=this.length),r<0||i>o.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&r>=i)return 0;if(n>=s)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,n>>>=0,s>>>=0,this===o)return 0;for(var p=s-n,u=i-r,h=Math.min(p,u),w=this.slice(n,s),G=o.slice(r,i),T=0;T<h;++T)if(w[T]!==G[T]){p=w[T],u=G[T];break}return p<u?-1:u<p?1:0};function Ba(t,o,r,i,n){if(t.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,qi(r)&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(n)return-1;r=t.length-1}else if(r<0)if(n)r=0;else return-1;if(typeof o=="string"&&(o=O.from(o,i)),O.isBuffer(o))return o.length===0?-1:Ea(t,o,r,i,n);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(t,o,r):Uint8Array.prototype.lastIndexOf.call(t,o,r):Ea(t,[o],r,i,n);throw new TypeError("val must be string, number or Buffer")}function Ea(t,o,r,i,n){var s=1,p=t.length,u=o.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(t.length<2||o.length<2)return-1;s=2,p/=2,u/=2,r/=2}function h(P,L){return s===1?P[L]:P.readUInt16BE(L*s)}var w;if(n){var G=-1;for(w=r;w<p;w++)if(h(t,w)===h(o,G===-1?0:w-G)){if(G===-1&&(G=w),w-G+1===u)return G*s}else G!==-1&&(w-=w-G),G=-1}else for(r+u>p&&(r=p-u),w=r;w>=0;w--){for(var T=!0,V=0;V<u;V++)if(h(t,w+V)!==h(o,V)){T=!1;break}if(T)return w}return-1}O.prototype.includes=function(o,r,i){return this.indexOf(o,r,i)!==-1};O.prototype.indexOf=function(o,r,i){return Ba(this,o,r,i,!0)};O.prototype.lastIndexOf=function(o,r,i){return Ba(this,o,r,i,!1)};function ul(t,o,r,i){r=Number(r)||0;var n=t.length-r;i?(i=Number(i),i>n&&(i=n)):i=n;var s=o.length;i>s/2&&(i=s/2);for(var p=0;p<i;++p){var u=parseInt(o.substr(p*2,2),16);if(qi(u))return p;t[r+p]=u}return p}function ll(t,o,r,i){return hr(Hi(o,t.length-r),t,r,i)}function cl(t,o,r,i){return hr(Cl(o),t,r,i)}function dl(t,o,r,i){return hr(Ca(o),t,r,i)}function fl(t,o,r,i){return hr(xl(o,t.length-r),t,r,i)}O.prototype.write=function(o,r,i,n){if(r===void 0)n="utf8",i=this.length,r=0;else if(i===void 0&&typeof r=="string")n=r,i=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var s=this.length-r;if((i===void 0||i>s)&&(i=s),o.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return ul(this,o,r,i);case"utf8":case"utf-8":return ll(this,o,r,i);case"ascii":case"latin1":case"binary":return cl(this,o,r,i);case"base64":return dl(this,o,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fl(this,o,r,i);default:if(p)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}};O.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function hl(t,o,r){return o===0&&r===t.length?Pi.fromByteArray(t):Pi.fromByteArray(t.slice(o,r))}function ba(t,o,r){r=Math.min(t.length,r);for(var i=[],n=o;n<r;){var s=t[n],p=null,u=s>239?4:s>223?3:s>191?2:1;if(n+u<=r){var h,w,G,T;switch(u){case 1:s<128&&(p=s);break;case 2:h=t[n+1],(h&192)===128&&(T=(s&31)<<6|h&63,T>127&&(p=T));break;case 3:h=t[n+1],w=t[n+2],(h&192)===128&&(w&192)===128&&(T=(s&15)<<12|(h&63)<<6|w&63,T>2047&&(T<55296||T>57343)&&(p=T));break;case 4:h=t[n+1],w=t[n+2],G=t[n+3],(h&192)===128&&(w&192)===128&&(G&192)===128&&(T=(s&15)<<18|(h&63)<<12|(w&63)<<6|G&63,T>65535&&T<1114112&&(p=T))}}p===null?(p=65533,u=1):p>65535&&(p-=65536,i.push(p>>>10&1023|55296),p=56320|p&1023),i.push(p),n+=u}return Bl(i)}var ya=4096;function Bl(t){var o=t.length;if(o<=ya)return String.fromCharCode.apply(String,t);for(var r="",i=0;i<o;)r+=String.fromCharCode.apply(String,t.slice(i,i+=ya));return r}function El(t,o,r){var i="";r=Math.min(t.length,r);for(var n=o;n<r;++n)i+=String.fromCharCode(t[n]&127);return i}function bl(t,o,r){var i="";r=Math.min(t.length,r);for(var n=o;n<r;++n)i+=String.fromCharCode(t[n]);return i}function yl(t,o,r){var i=t.length;(!o||o<0)&&(o=0),(!r||r<0||r>i)&&(r=i);for(var n="",s=o;s<r;++s)n+=Sl[t[s]];return n}function _l(t,o,r){for(var i=t.slice(o,r),n="",s=0;s<i.length-1;s+=2)n+=String.fromCharCode(i[s]+i[s+1]*256);return n}O.prototype.slice=function(o,r){var i=this.length;o=~~o,r=r===void 0?i:~~r,o<0?(o+=i,o<0&&(o=0)):o>i&&(o=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<o&&(r=o);var n=this.subarray(o,r);return Object.setPrototypeOf(n,O.prototype),n};function Ve(t,o,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+o>r)throw new RangeError("Trying to access beyond buffer length")}O.prototype.readUintLE=O.prototype.readUIntLE=function(o,r,i){o=o>>>0,r=r>>>0,i||Ve(o,r,this.length);for(var n=this[o],s=1,p=0;++p<r&&(s*=256);)n+=this[o+p]*s;return n};O.prototype.readUintBE=O.prototype.readUIntBE=function(o,r,i){o=o>>>0,r=r>>>0,i||Ve(o,r,this.length);for(var n=this[o+--r],s=1;r>0&&(s*=256);)n+=this[o+--r]*s;return n};O.prototype.readUint8=O.prototype.readUInt8=function(o,r){return o=o>>>0,r||Ve(o,1,this.length),this[o]};O.prototype.readUint16LE=O.prototype.readUInt16LE=function(o,r){return o=o>>>0,r||Ve(o,2,this.length),this[o]|this[o+1]<<8};O.prototype.readUint16BE=O.prototype.readUInt16BE=function(o,r){return o=o>>>0,r||Ve(o,2,this.length),this[o]<<8|this[o+1]};O.prototype.readUint32LE=O.prototype.readUInt32LE=function(o,r){return o=o>>>0,r||Ve(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};O.prototype.readUint32BE=O.prototype.readUInt32BE=function(o,r){return o=o>>>0,r||Ve(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};O.prototype.readIntLE=function(o,r,i){o=o>>>0,r=r>>>0,i||Ve(o,r,this.length);for(var n=this[o],s=1,p=0;++p<r&&(s*=256);)n+=this[o+p]*s;return s*=128,n>=s&&(n-=Math.pow(2,8*r)),n};O.prototype.readIntBE=function(o,r,i){o=o>>>0,r=r>>>0,i||Ve(o,r,this.length);for(var n=r,s=1,p=this[o+--n];n>0&&(s*=256);)p+=this[o+--n]*s;return s*=128,p>=s&&(p-=Math.pow(2,8*r)),p};O.prototype.readInt8=function(o,r){return o=o>>>0,r||Ve(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};O.prototype.readInt16LE=function(o,r){o=o>>>0,r||Ve(o,2,this.length);var i=this[o]|this[o+1]<<8;return i&32768?i|4294901760:i};O.prototype.readInt16BE=function(o,r){o=o>>>0,r||Ve(o,2,this.length);var i=this[o+1]|this[o]<<8;return i&32768?i|4294901760:i};O.prototype.readInt32LE=function(o,r){return o=o>>>0,r||Ve(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};O.prototype.readInt32BE=function(o,r){return o=o>>>0,r||Ve(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};O.prototype.readFloatLE=function(o,r){return o=o>>>0,r||Ve(o,4,this.length),fo.read(this,o,!0,23,4)};O.prototype.readFloatBE=function(o,r){return o=o>>>0,r||Ve(o,4,this.length),fo.read(this,o,!1,23,4)};O.prototype.readDoubleLE=function(o,r){return o=o>>>0,r||Ve(o,8,this.length),fo.read(this,o,!0,52,8)};O.prototype.readDoubleBE=function(o,r){return o=o>>>0,r||Ve(o,8,this.length),fo.read(this,o,!1,52,8)};function nt(t,o,r,i,n,s){if(!O.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>n||o<s)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}O.prototype.writeUintLE=O.prototype.writeUIntLE=function(o,r,i,n){if(o=+o,r=r>>>0,i=i>>>0,!n){var s=Math.pow(2,8*i)-1;nt(this,o,r,i,s,0)}var p=1,u=0;for(this[r]=o&255;++u<i&&(p*=256);)this[r+u]=o/p&255;return r+i};O.prototype.writeUintBE=O.prototype.writeUIntBE=function(o,r,i,n){if(o=+o,r=r>>>0,i=i>>>0,!n){var s=Math.pow(2,8*i)-1;nt(this,o,r,i,s,0)}var p=i-1,u=1;for(this[r+p]=o&255;--p>=0&&(u*=256);)this[r+p]=o/u&255;return r+i};O.prototype.writeUint8=O.prototype.writeUInt8=function(o,r,i){return o=+o,r=r>>>0,i||nt(this,o,r,1,255,0),this[r]=o&255,r+1};O.prototype.writeUint16LE=O.prototype.writeUInt16LE=function(o,r,i){return o=+o,r=r>>>0,i||nt(this,o,r,2,65535,0),this[r]=o&255,this[r+1]=o>>>8,r+2};O.prototype.writeUint16BE=O.prototype.writeUInt16BE=function(o,r,i){return o=+o,r=r>>>0,i||nt(this,o,r,2,65535,0),this[r]=o>>>8,this[r+1]=o&255,r+2};O.prototype.writeUint32LE=O.prototype.writeUInt32LE=function(o,r,i){return o=+o,r=r>>>0,i||nt(this,o,r,4,4294967295,0),this[r+3]=o>>>24,this[r+2]=o>>>16,this[r+1]=o>>>8,this[r]=o&255,r+4};O.prototype.writeUint32BE=O.prototype.writeUInt32BE=function(o,r,i){return o=+o,r=r>>>0,i||nt(this,o,r,4,4294967295,0),this[r]=o>>>24,this[r+1]=o>>>16,this[r+2]=o>>>8,this[r+3]=o&255,r+4};O.prototype.writeIntLE=function(o,r,i,n){if(o=+o,r=r>>>0,!n){var s=Math.pow(2,8*i-1);nt(this,o,r,i,s-1,-s)}var p=0,u=1,h=0;for(this[r]=o&255;++p<i&&(u*=256);)o<0&&h===0&&this[r+p-1]!==0&&(h=1),this[r+p]=(o/u>>0)-h&255;return r+i};O.prototype.writeIntBE=function(o,r,i,n){if(o=+o,r=r>>>0,!n){var s=Math.pow(2,8*i-1);nt(this,o,r,i,s-1,-s)}var p=i-1,u=1,h=0;for(this[r+p]=o&255;--p>=0&&(u*=256);)o<0&&h===0&&this[r+p+1]!==0&&(h=1),this[r+p]=(o/u>>0)-h&255;return r+i};O.prototype.writeInt8=function(o,r,i){return o=+o,r=r>>>0,i||nt(this,o,r,1,127,-128),o<0&&(o=255+o+1),this[r]=o&255,r+1};O.prototype.writeInt16LE=function(o,r,i){return o=+o,r=r>>>0,i||nt(this,o,r,2,32767,-32768),this[r]=o&255,this[r+1]=o>>>8,r+2};O.prototype.writeInt16BE=function(o,r,i){return o=+o,r=r>>>0,i||nt(this,o,r,2,32767,-32768),this[r]=o>>>8,this[r+1]=o&255,r+2};O.prototype.writeInt32LE=function(o,r,i){return o=+o,r=r>>>0,i||nt(this,o,r,4,2147483647,-2147483648),this[r]=o&255,this[r+1]=o>>>8,this[r+2]=o>>>16,this[r+3]=o>>>24,r+4};O.prototype.writeInt32BE=function(o,r,i){return o=+o,r=r>>>0,i||nt(this,o,r,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[r]=o>>>24,this[r+1]=o>>>16,this[r+2]=o>>>8,this[r+3]=o&255,r+4};function _a(t,o,r,i,n,s){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ia(t,o,r,i,n){return o=+o,r=r>>>0,n||_a(t,o,r,4,34028234663852886e22,-34028234663852886e22),fo.write(t,o,r,i,23,4),r+4}O.prototype.writeFloatLE=function(o,r,i){return Ia(this,o,r,!0,i)};O.prototype.writeFloatBE=function(o,r,i){return Ia(this,o,r,!1,i)};function ma(t,o,r,i,n){return o=+o,r=r>>>0,n||_a(t,o,r,8,17976931348623157e292,-17976931348623157e292),fo.write(t,o,r,i,52,8),r+8}O.prototype.writeDoubleLE=function(o,r,i){return ma(this,o,r,!0,i)};O.prototype.writeDoubleBE=function(o,r,i){return ma(this,o,r,!1,i)};O.prototype.copy=function(o,r,i,n){if(!O.isBuffer(o))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),r>=o.length&&(r=o.length),r||(r=0),n>0&&n<i&&(n=i),n===i||o.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),o.length-r<n-i&&(n=o.length-r+i);var s=n-i;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,i,n):Uint8Array.prototype.set.call(o,this.subarray(i,n),r),s};O.prototype.fill=function(o,r,i,n){if(typeof o=="string"){if(typeof r=="string"?(n=r,r=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!O.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(o.length===1){var s=o.charCodeAt(0);(n==="utf8"&&s<128||n==="latin1")&&(o=s)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,o||(o=0);var p;if(typeof o=="number")for(p=r;p<i;++p)this[p]=o;else{var u=O.isBuffer(o)?o:O.from(o,n),h=u.length;if(h===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(p=0;p<i-r;++p)this[p+r]=u[p%h]}return this};var Il=/[^+/0-9A-Za-z-_]/g;function ml(t){if(t=t.split("=")[0],t=t.trim().replace(Il,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Hi(t,o){o=o||1/0;for(var r,i=t.length,n=null,s=[],p=0;p<i;++p){if(r=t.charCodeAt(p),r>55295&&r<57344){if(!n){if(r>56319){(o-=3)>-1&&s.push(239,191,189);continue}else if(p+1===i){(o-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(o-=3)>-1&&s.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(o-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((o-=1)<0)break;s.push(r)}else if(r<2048){if((o-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((o-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((o-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return s}function Cl(t){for(var o=[],r=0;r<t.length;++r)o.push(t.charCodeAt(r)&255);return o}function xl(t,o){for(var r,i,n,s=[],p=0;p<t.length&&!((o-=2)<0);++p)r=t.charCodeAt(p),i=r>>8,n=r%256,s.push(n),s.push(i);return s}function Ca(t){return Pi.toByteArray(ml(t))}function hr(t,o,r,i){for(var n=0;n<i&&!(n+r>=o.length||n>=t.length);++n)o[n+r]=t[n];return n}function Qt(t,o){return t instanceof o||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===o.name}function qi(t){return t!==t}var Sl=function(){for(var t="0123456789abcdef",o=new Array(256),r=0;r<16;++r)for(var i=r*16,n=0;n<16;++n)o[i+n]=t[r]+t[n];return o}()});var Sa=H(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.ReplicaRejectCode=void 0;var wl;(function(t){t[t.SysFatal=1]="SysFatal",t[t.SysTransient=2]="SysTransient",t[t.DestinationInvalid=3]="DestinationInvalid",t[t.CanisterReject=4]="CanisterReject",t[t.CanisterError=5]="CanisterError"})(wl=Uo.ReplicaRejectCode||(Uo.ReplicaRejectCode={}))});var wa=H(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.decode=Eo.encode=void 0;var Br="abcdefghijklmnopqrstuvwxyz234567",Bo=Object.create(null);for(let t=0;t<Br.length;t++)Bo[Br[t]]=t;Bo["0"]=Bo.o;Bo["1"]=Bo.i;function vl(t){let o=0,r=0,i="";function n(s){return o<0?r|=s>>-o:r=s<<o&248,o>3?(o-=8,1):(o<4&&(i+=Br[r>>3],o+=5),0)}for(let s=0;s<t.length;)s+=n(t[s]);return i+(o<0?Br[r>>3]:"")}Eo.encode=vl;function Rl(t){let o=0,r=0,i=new Uint8Array(t.length*4/3|0),n=0;function s(p){let u=Bo[p.toLowerCase()];if(u===void 0)throw new Error(`Invalid character: ${JSON.stringify(p)}`);u<<=3,r|=u>>>o,o+=5,o>=8&&(i[n++]=r,o-=8,o>0?r=u<<5-o&255:r=0)}for(let p of t)s(p);return i.slice(0,n)}Eo.decode=Rl});var va=H(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.getCrc32=void 0;var Ql=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function Fl(t){let o=new Uint8Array(t),r=-1;for(let i=0;i<o.length;i++){let s=(o[i]^r)&255;r=Ql[s]^r>>>8}return(r^-1)>>>0}Er.getCrc32=Fl});var Ra=H(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.sha224=void 0;var Tl=No();function Ml(t){let o=Tl.sha224.create();return o.update(t),new Uint8Array(o.array())}br.sha224=Ml});var Ft=H(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.Principal=void 0;var Qa=wa(),Ol=va(),Nl=Ra(),Gl=2,Fa=4,Pl=t=>{var o;return new Uint8Array(((o=t.match(/.{1,2}/g))!==null&&o!==void 0?o:[]).map(r=>parseInt(r,16)))},kl=t=>t.reduce((o,r)=>o+r.toString(16).padStart(2,"0"),""),jo=class{constructor(o){this._arr=o,this._isPrincipal=!0}static anonymous(){return new this(new Uint8Array([Fa]))}static selfAuthenticating(o){let r=Nl.sha224(o);return new this(new Uint8Array([...r,Gl]))}static from(o){if(typeof o=="string")return jo.fromText(o);if(typeof o=="object"&&o!==null&&o._isPrincipal===!0)return new jo(o._arr);throw new Error(`Impossible to convert ${JSON.stringify(o)} to Principal.`)}static fromHex(o){return new this(Pl(o))}static fromText(o){let r=o.toLowerCase().replace(/-/g,""),i=Qa.decode(r);i=i.slice(4,i.length);let n=new this(i);if(n.toText()!==o)throw new Error(`Principal "${n.toText()}" does not have a valid checksum (original value "${o}" may not be a valid Principal ID).`);return n}static fromUint8Array(o){return new this(o)}isAnonymous(){return this._arr.byteLength===1&&this._arr[0]===Fa}toUint8Array(){return this._arr}toHex(){return kl(this._arr).toUpperCase()}toText(){let o=new ArrayBuffer(4);new DataView(o).setUint32(0,Ol.getCrc32(this._arr));let i=new Uint8Array(o),n=Uint8Array.from(this._arr),s=new Uint8Array([...i,...n]),u=Qa.encode(s).match(/.{1,5}/g);if(!u)throw new Error;return u.join("-")}toString(){return this.toText()}};yr.Principal=jo});var Ir=H(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.AgentError=void 0;var Ta=class extends Error{};_r.AgentError=Ta});var Wi=H(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.PipeArrayBuffer=Tt.fromHexString=Tt.toHexString=Tt.concat=void 0;function Ul(...t){let o=new Uint8Array(t.reduce((i,n)=>i+n.byteLength,0)),r=0;for(let i of t)o.set(new Uint8Array(i),r),r+=i.byteLength;return o}Tt.concat=Ul;function jl(t){return new Uint8Array(t).reduce((o,r)=>o+r.toString(16).padStart(2,"0"),"")}Tt.toHexString=jl;function Dl(t){var o;return new Uint8Array(((o=t.match(/.{1,2}/g))!==null&&o!==void 0?o:[]).map(r=>parseInt(r,16)))}Tt.fromHexString=Dl;var Ma=class{constructor(o,r=(o==null?void 0:o.byteLength)||0){this._buffer=o||new ArrayBuffer(0),this._view=new Uint8Array(this._buffer,0,r)}get buffer(){return this._view.slice()}get byteLength(){return this._view.byteLength}read(o){let r=this._view.subarray(0,o);return this._view=this._view.subarray(o),r.slice().buffer}readUint8(){let o=this._view[0];return this._view=this._view.subarray(1),o}write(o){let r=new Uint8Array(o),i=this._view.byteLength;this._view.byteOffset+this._view.byteLength+r.byteLength>=this._buffer.byteLength?this.alloc(r.byteLength):this._view=new Uint8Array(this._buffer,this._view.byteOffset,this._view.byteLength+r.byteLength),this._view.set(r,i)}get end(){return this._view.byteLength===0}alloc(o){let r=new ArrayBuffer((this._buffer.byteLength+o)*1.2|0),i=new Uint8Array(r,0,this._view.byteLength+o);i.set(this._view),this._buffer=r,this._view=i}};Tt.PipeArrayBuffer=Ma});var Vi=H(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.idlLabelToId=void 0;function Hl(t){let r=new TextEncoder().encode(t),i=0;for(let n of r)i=(i*223+n)%2**32;return i}function ql(t){if(/^_\d+_$/.test(t)||/^_0x[0-9a-fA-F]+_$/.test(t)){let o=+t.slice(1,-1);if(Number.isSafeInteger(o)&&o>=0&&o<2**32)return o}return Hl(t)}mr.idlLabelToId=ql});var xr=H(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.readIntLE=Fe.readUIntLE=Fe.writeIntLE=Fe.writeUIntLE=Fe.slebDecode=Fe.slebEncode=Fe.lebDecode=Fe.lebEncode=Fe.safeReadUint8=Fe.safeRead=void 0;var Yi=Wi();function Oa(){throw new Error("unexpected end of buffer")}function Na(t,o){return t.byteLength<o&&Oa(),t.read(o)}Fe.safeRead=Na;function Cr(t){let o=t.readUint8();return o===void 0&&Oa(),o}Fe.safeReadUint8=Cr;function Wl(t){if(typeof t=="number"&&(t=BigInt(t)),t<BigInt(0))throw new Error("Cannot leb encode negative values.");let o=(t===BigInt(0)?0:Math.ceil(Math.log2(Number(t))))+1,r=new Yi.PipeArrayBuffer(new ArrayBuffer(o),0);for(;;){let i=Number(t&BigInt(127));if(t/=BigInt(128),t===BigInt(0)){r.write(new Uint8Array([i]));break}else r.write(new Uint8Array([i|128]))}return r.buffer}Fe.lebEncode=Wl;function Ga(t){let o=BigInt(1),r=BigInt(0),i;do i=Cr(t),r+=BigInt(i&127).valueOf()*o,o*=BigInt(128);while(i>=128);return r}Fe.lebDecode=Ga;function Vl(t){typeof t=="number"&&(t=BigInt(t));let o=t<BigInt(0);o&&(t=-t-BigInt(1));let r=(t===BigInt(0)?0:Math.ceil(Math.log2(Number(t))))+1,i=new Yi.PipeArrayBuffer(new ArrayBuffer(r),0);for(;;){let s=n(t);if(t/=BigInt(128),o&&t===BigInt(0)&&(s&64)!==0||!o&&t===BigInt(0)&&(s&64)===0){i.write(new Uint8Array([s]));break}else i.write(new Uint8Array([s|128]))}function n(s){let p=s%BigInt(128);return Number(o?BigInt(128)-p-BigInt(1):p)}return i.buffer}Fe.slebEncode=Vl;function Yl(t){let o=new Uint8Array(t.buffer),r=0;for(;r<o.byteLength;r++)if(o[r]<128){if((o[r]&64)===0)return Ga(t);break}let i=new Uint8Array(Na(t,r+1)),n=BigInt(0);for(let s=i.byteLength-1;s>=0;s--)n=n*BigInt(128)+BigInt(128-(i[s]&127)-1);return-n-BigInt(1)}Fe.slebDecode=Yl;function zl(t,o){if(BigInt(t)<BigInt(0))throw new Error("Cannot write negative values.");return Pa(t,o)}Fe.writeUIntLE=zl;function Pa(t,o){t=BigInt(t);let r=new Yi.PipeArrayBuffer(new ArrayBuffer(Math.min(1,o)),0),i=0,n=BigInt(256),s=BigInt(0),p=Number(t%n);for(r.write(new Uint8Array([p]));++i<o;)t<0&&s===BigInt(0)&&p!==0&&(s=BigInt(1)),p=Number((t/n-s)%BigInt(256)),r.write(new Uint8Array([p])),n*=BigInt(256);return r.buffer}Fe.writeIntLE=Pa;function ka(t,o){let r=BigInt(Cr(t)),i=BigInt(1),n=0;for(;++n<o;){i*=BigInt(256);let s=BigInt(Cr(t));r=r+i*s}return r}Fe.readUIntLE=ka;function Ll(t,o){let r=ka(t,o),i=BigInt(2)**(BigInt(8)*BigInt(o-1)+BigInt(7));return r>=i&&(r-=i*BigInt(2)),r}Fe.readIntLE=Ll});var rn=H(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.Func=M.Rec=M.Variant=M.Record=M.Opt=M.Vec=M.Tuple=M.Principal=M.Nat64=M.Nat32=M.Nat16=M.Nat8=M.Int64=M.Int32=M.Int16=M.Int8=M.Float64=M.Float32=M.Nat=M.Int=M.Text=M.Null=M.Bool=M.Reserved=M.Empty=M.decode=M.encode=M.ServiceClass=M.FuncClass=M.PrincipalClass=M.RecClass=M.VariantClass=M.TupleClass=M.RecordClass=M.OptClass=M.VecClass=M.FixedNatClass=M.FixedIntClass=M.FloatClass=M.NatClass=M.IntClass=M.TextClass=M.ReservedClass=M.NullClass=M.BoolClass=M.EmptyClass=M.ConstructType=M.PrimitiveType=M.Type=M.Visitor=void 0;M.Service=void 0;var Jl=Ft(),fe=Wi(),Et=Vi(),W=xr(),Sr=xr(),wr="DIDL";function Do(t,o,r){return t.map((i,n)=>r(i,o[n]))}var Ua=class{constructor(){this._typs=[],this._idx=new Map}has(o){return this._idx.has(o.name)}add(o,r){let i=this._typs.length;this._idx.set(o.name,i),this._typs.push(r)}merge(o,r){let i=this._idx.get(o.name),n=this._idx.get(r);if(i===void 0)throw new Error("Missing type index for "+o);if(n===void 0)throw new Error("Missing type index for "+r);this._typs[i]=this._typs[n],this._typs.splice(n,1),this._idx.delete(r)}encode(){let o=W.lebEncode(this._typs.length),r=fe.concat(...this._typs);return fe.concat(o,r)}indexOf(o){if(!this._idx.has(o))throw new Error("Missing type index for "+o);return W.slebEncode(this._idx.get(o)||0)}},ja=class{visitType(o,r){throw new Error("Not implemented")}visitPrimitive(o,r){return this.visitType(o,r)}visitEmpty(o,r){return this.visitPrimitive(o,r)}visitBool(o,r){return this.visitPrimitive(o,r)}visitNull(o,r){return this.visitPrimitive(o,r)}visitReserved(o,r){return this.visitPrimitive(o,r)}visitText(o,r){return this.visitPrimitive(o,r)}visitNumber(o,r){return this.visitPrimitive(o,r)}visitInt(o,r){return this.visitNumber(o,r)}visitNat(o,r){return this.visitNumber(o,r)}visitFloat(o,r){return this.visitPrimitive(o,r)}visitFixedInt(o,r){return this.visitNumber(o,r)}visitFixedNat(o,r){return this.visitNumber(o,r)}visitPrincipal(o,r){return this.visitPrimitive(o,r)}visitConstruct(o,r){return this.visitType(o,r)}visitVec(o,r,i){return this.visitConstruct(o,i)}visitOpt(o,r,i){return this.visitConstruct(o,i)}visitRecord(o,r,i){return this.visitConstruct(o,i)}visitTuple(o,r,i){let n=r.map((s,p)=>[`_${p}_`,s]);return this.visitRecord(o,n,i)}visitVariant(o,r,i){return this.visitConstruct(o,i)}visitRec(o,r,i){return this.visitConstruct(r,i)}visitFunc(o,r){return this.visitConstruct(o,r)}visitService(o,r){return this.visitConstruct(o,r)}};M.Visitor=ja;var vr=class{display(){return this.name}valueToString(o){return Da(o)}buildTypeTable(o){o.has(this)||this._buildTypeTableImpl(o)}};M.Type=vr;var At=class extends vr{checkType(o){if(this.name!==o.name)throw new Error(`type mismatch: type on the wire ${o.name}, expect type ${this.name}`);return o}_buildTypeTableImpl(o){}};M.PrimitiveType=At;var Wt=class extends vr{checkType(o){if(o instanceof ro){let r=o.getType();if(typeof r=="undefined")throw new Error("type mismatch with uninitialized type");return r}throw new Error(`type mismatch: type on the wire ${o.name}, expect type ${this.name}`)}encodeType(o){return o.indexOf(this.name)}};M.ConstructType=Wt;var zi=class extends At{accept(o,r){return o.visitEmpty(this,r)}covariant(o){return!1}encodeValue(){throw new Error("Empty cannot appear as a function argument")}valueToString(){throw new Error("Empty cannot appear as a value")}encodeType(){return W.slebEncode(-17)}decodeValue(){throw new Error("Empty cannot appear as an output")}get name(){return"empty"}};M.EmptyClass=zi;var Li=class extends At{accept(o,r){return o.visitBool(this,r)}covariant(o){return typeof o=="boolean"}encodeValue(o){return new Uint8Array([o?1:0])}encodeType(){return W.slebEncode(-2)}decodeValue(o,r){switch(this.checkType(r),W.safeReadUint8(o)){case 0:return!1;case 1:return!0;default:throw new Error("Boolean value out of range")}}get name(){return"bool"}};M.BoolClass=Li;var Ji=class extends At{accept(o,r){return o.visitNull(this,r)}covariant(o){return o===null}encodeValue(){return new ArrayBuffer(0)}encodeType(){return W.slebEncode(-1)}decodeValue(o,r){return this.checkType(r),null}get name(){return"null"}};M.NullClass=Ji;var Rr=class extends At{accept(o,r){return o.visitReserved(this,r)}covariant(o){return!0}encodeValue(){return new ArrayBuffer(0)}encodeType(){return W.slebEncode(-16)}decodeValue(o,r){return r.name!==this.name&&r.decodeValue(o,r),null}get name(){return"reserved"}};M.ReservedClass=Rr;var Ki=class extends At{accept(o,r){return o.visitText(this,r)}covariant(o){return typeof o=="string"}encodeValue(o){let r=new TextEncoder().encode(o),i=W.lebEncode(r.byteLength);return fe.concat(i,r)}encodeType(){return W.slebEncode(-15)}decodeValue(o,r){this.checkType(r);let i=W.lebDecode(o),n=W.safeRead(o,Number(i));return new TextDecoder("utf8",{fatal:!0}).decode(n)}get name(){return"text"}valueToString(o){return'"'+o+'"'}};M.TextClass=Ki;var Zi=class extends At{accept(o,r){return o.visitInt(this,r)}covariant(o){return typeof o=="bigint"||Number.isInteger(o)}encodeValue(o){return W.slebEncode(o)}encodeType(){return W.slebEncode(-4)}decodeValue(o,r){return this.checkType(r),W.slebDecode(o)}get name(){return"int"}valueToString(o){return o.toString()}};M.IntClass=Zi;var Xi=class extends At{accept(o,r){return o.visitNat(this,r)}covariant(o){return typeof o=="bigint"&&o>=BigInt(0)||Number.isInteger(o)&&o>=0}encodeValue(o){return W.lebEncode(o)}encodeType(){return W.slebEncode(-3)}decodeValue(o,r){return this.checkType(r),W.lebDecode(o)}get name(){return"nat"}valueToString(o){return o.toString()}};M.NatClass=Xi;var Qr=class extends At{constructor(o){super();if(this._bits=o,o!==32&&o!==64)throw new Error("not a valid float type")}accept(o,r){return o.visitFloat(this,r)}covariant(o){return typeof o=="number"||o instanceof Number}encodeValue(o){let r=new ArrayBuffer(this._bits/8),i=new DataView(r);return this._bits===32?i.setFloat32(0,o,!0):i.setFloat64(0,o,!0),r}encodeType(){let o=this._bits===32?-13:-14;return W.slebEncode(o)}decodeValue(o,r){this.checkType(r);let i=W.safeRead(o,this._bits/8),n=new DataView(i);return this._bits===32?n.getFloat32(0,!0):n.getFloat64(0,!0)}get name(){return"float"+this._bits}valueToString(o){return o.toString()}};M.FloatClass=Qr;var bo=class extends At{constructor(o){super();this._bits=o}accept(o,r){return o.visitFixedInt(this,r)}covariant(o){let r=BigInt(2)**BigInt(this._bits-1)*BigInt(-1),i=BigInt(2)**BigInt(this._bits-1)-BigInt(1);if(typeof o=="bigint")return o>=r&&o<=i;if(Number.isInteger(o)){let n=BigInt(o);return n>=r&&n<=i}else return!1}encodeValue(o){return Sr.writeIntLE(o,this._bits/8)}encodeType(){let o=Math.log2(this._bits)-3;return W.slebEncode(-9-o)}decodeValue(o,r){this.checkType(r);let i=Sr.readIntLE(o,this._bits/8);return this._bits<=32?Number(i):i}get name(){return`int${this._bits}`}valueToString(o){return o.toString()}};M.FixedIntClass=bo;var oo=class extends At{constructor(o){super();this.bits=o}accept(o,r){return o.visitFixedNat(this,r)}covariant(o){let r=BigInt(2)**BigInt(this.bits);return typeof o=="bigint"&&o>=BigInt(0)?o<r:Number.isInteger(o)&&o>=0?BigInt(o)<r:!1}encodeValue(o){return Sr.writeUIntLE(o,this.bits/8)}encodeType(){let o=Math.log2(this.bits)-3;return W.slebEncode(-5-o)}decodeValue(o,r){this.checkType(r);let i=Sr.readUIntLE(o,this.bits/8);return this.bits<=32?Number(i):i}get name(){return`nat${this.bits}`}valueToString(o){return o.toString()}};M.FixedNatClass=oo;var Ho=class extends Wt{constructor(o){super();this._type=o,this._blobOptimization=!1,o instanceof oo&&o.bits===8&&(this._blobOptimization=!0)}accept(o,r){return o.visitVec(this,this._type,r)}covariant(o){return Array.isArray(o)&&o.every(r=>this._type.covariant(r))}encodeValue(o){let r=W.lebEncode(o.length);return this._blobOptimization?fe.concat(r,new Uint8Array(o)):fe.concat(r,...o.map(i=>this._type.encodeValue(i)))}_buildTypeTableImpl(o){this._type.buildTypeTable(o);let r=W.slebEncode(-19),i=this._type.encodeType(o);o.add(this,fe.concat(r,i))}decodeValue(o,r){let i=this.checkType(r);if(!(i instanceof Ho))throw new Error("Not a vector type");let n=Number(W.lebDecode(o));if(this._blobOptimization)return[...new Uint8Array(o.read(n))];let s=[];for(let p=0;p<n;p++)s.push(this._type.decodeValue(o,i._type));return s}get name(){return`vec ${this._type.name}`}display(){return`vec ${this._type.display()}`}valueToString(o){let r=o.map(i=>this._type.valueToString(i));return"vec {"+r.join("; ")+"}"}};M.VecClass=Ho;var yo=class extends Wt{constructor(o){super();this._type=o}accept(o,r){return o.visitOpt(this,this._type,r)}covariant(o){return Array.isArray(o)&&(o.length===0||o.length===1&&this._type.covariant(o[0]))}encodeValue(o){return o.length===0?new Uint8Array([0]):fe.concat(new Uint8Array([1]),this._type.encodeValue(o[0]))}_buildTypeTableImpl(o){this._type.buildTypeTable(o);let r=W.slebEncode(-18),i=this._type.encodeType(o);o.add(this,fe.concat(r,i))}decodeValue(o,r){let i=this.checkType(r);if(!(i instanceof yo))throw new Error("Not an option type");switch(W.safeReadUint8(o)){case 0:return[];case 1:return[this._type.decodeValue(o,i._type)];default:throw new Error("Not an option value")}}get name(){return`opt ${this._type.name}`}display(){return`opt ${this._type.display()}`}valueToString(o){return o.length===0?"null":`opt ${this._type.valueToString(o[0])}`}};M.OptClass=yo;var _o=class extends Wt{constructor(o={}){super();this._fields=Object.entries(o).sort((r,i)=>Et.idlLabelToId(r[0])-Et.idlLabelToId(i[0]))}accept(o,r){return o.visitRecord(this,this._fields,r)}tryAsTuple(){let o=[];for(let r=0;r<this._fields.length;r++){let[i,n]=this._fields[r];if(i!==`_${r}_`)return null;o.push(n)}return o}covariant(o){return typeof o=="object"&&this._fields.every(([r,i])=>{if(!o.hasOwnProperty(r))throw new Error(`Record is missing key "${r}".`);return i.covariant(o[r])})}encodeValue(o){let r=this._fields.map(([n])=>o[n]),i=Do(this._fields,r,([,n],s)=>n.encodeValue(s));return fe.concat(...i)}_buildTypeTableImpl(o){this._fields.forEach(([s,p])=>p.buildTypeTable(o));let r=W.slebEncode(-20),i=W.lebEncode(this._fields.length),n=this._fields.map(([s,p])=>fe.concat(W.lebEncode(Et.idlLabelToId(s)),p.encodeType(o)));o.add(this,fe.concat(r,i,fe.concat(...n)))}decodeValue(o,r){let i=this.checkType(r);if(!(i instanceof _o))throw new Error("Not a record type");let n={},s=0;for(let[p,u]of i._fields){if(s>=this._fields.length||Et.idlLabelToId(this._fields[s][0])!==Et.idlLabelToId(p)){u.decodeValue(o,u);continue}let[h,w]=this._fields[s];n[h]=w.decodeValue(o,u),s++}for(let[p,u]of this._fields.slice(s))if(u instanceof yo||u instanceof Rr)n[p]=[];else throw new Error("Cannot find required field "+p);return n}get name(){return`record {${this._fields.map(([r,i])=>r+":"+i.name).join("; ")}}`}display(){return`record {${this._fields.map(([r,i])=>r+":"+i.display()).join("; ")}}`}valueToString(o){let r=this._fields.map(([n])=>o[n]);return`record {${Do(this._fields,r,([n,s],p)=>n+"="+s.valueToString(p)).join("; ")}}`}};M.RecordClass=_o;var qo=class extends _o{constructor(o){let r={};o.forEach((i,n)=>r["_"+n+"_"]=i);super(r);this._components=o}accept(o,r){return o.visitTuple(this,this._components,r)}covariant(o){return Array.isArray(o)&&o.length>=this._fields.length&&this._components.every((r,i)=>r.covariant(o[i]))}encodeValue(o){let r=Do(this._components,o,(i,n)=>i.encodeValue(n));return fe.concat(...r)}decodeValue(o,r){let i=this.checkType(r);if(!(i instanceof qo))throw new Error("not a tuple type");if(i._components.length<this._components.length)throw new Error("tuple mismatch");let n=[];for(let[s,p]of i._components.entries())s>=this._components.length?p.decodeValue(o,p):n.push(this._components[s].decodeValue(o,p));return n}display(){return`record {${this._components.map(r=>r.display()).join("; ")}}`}valueToString(o){return`record {${Do(this._components,o,(i,n)=>i.valueToString(n)).join("; ")}}`}};M.TupleClass=qo;var Wo=class extends Wt{constructor(o={}){super();this._fields=Object.entries(o).sort((r,i)=>Et.idlLabelToId(r[0])-Et.idlLabelToId(i[0]))}accept(o,r){return o.visitVariant(this,this._fields,r)}covariant(o){return typeof o=="object"&&Object.entries(o).length===1&&this._fields.every(([r,i])=>!o.hasOwnProperty(r)||i.covariant(o[r]))}encodeValue(o){for(let r=0;r<this._fields.length;r++){let[i,n]=this._fields[r];if(o.hasOwnProperty(i)){let s=W.lebEncode(r),p=n.encodeValue(o[i]);return fe.concat(s,p)}}throw Error("Variant has no data: "+o)}_buildTypeTableImpl(o){this._fields.forEach(([,s])=>{s.buildTypeTable(o)});let r=W.slebEncode(-21),i=W.lebEncode(this._fields.length),n=this._fields.map(([s,p])=>fe.concat(W.lebEncode(Et.idlLabelToId(s)),p.encodeType(o)));o.add(this,fe.concat(r,i,...n))}decodeValue(o,r){let i=this.checkType(r);if(!(i instanceof Wo))throw new Error("Not a variant type");let n=Number(W.lebDecode(o));if(n>=i._fields.length)throw Error("Invalid variant index: "+n);let[s,p]=i._fields[n];for(let[u,h]of this._fields)if(Et.idlLabelToId(s)===Et.idlLabelToId(u)){let w=h.decodeValue(o,p);return{[u]:w}}throw new Error("Cannot find field hash "+s)}get name(){return`variant {${this._fields.map(([r,i])=>r+":"+i.name).join("; ")}}`}display(){return`variant {${this._fields.map(([r,i])=>r+(i.name==="null"?"":`:${i.display()}`)).join("; ")}}`}valueToString(o){for(let[r,i]of this._fields)if(o.hasOwnProperty(r)){let n=i.valueToString(o[r]);return n==="null"?`variant {${r}}`:`variant {${r}=${n}}`}throw new Error("Variant has no data: "+o)}};M.VariantClass=Wo;var ro=class extends Wt{constructor(){super(...arguments);this._id=ro._counter++,this._type=void 0}accept(o,r){if(!this._type)throw Error("Recursive type uninitialized.");return o.visitRec(this,this._type,r)}fill(o){this._type=o}getType(){return this._type}covariant(o){return this._type?this._type.covariant(o):!1}encodeValue(o){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.encodeValue(o)}_buildTypeTableImpl(o){if(!this._type)throw Error("Recursive type uninitialized.");o.add(this,new Uint8Array([])),this._type.buildTypeTable(o),o.merge(this,this._type.name)}decodeValue(o,r){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.decodeValue(o,r)}get name(){return`rec_${this._id}`}display(){if(!this._type)throw Error("Recursive type uninitialized.");return`\u03BC${this.name}.${this._type.name}`}valueToString(o){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.valueToString(o)}};M.RecClass=ro;ro._counter=0;function $i(t){if(W.safeReadUint8(t)!==1)throw new Error("Cannot decode principal");let r=Number(W.lebDecode(t));return Jl.Principal.fromUint8Array(new Uint8Array(W.safeRead(t,r)))}var en=class extends At{accept(o,r){return o.visitPrincipal(this,r)}covariant(o){return o&&o._isPrincipal}encodeValue(o){let r=o.toUint8Array(),i=W.lebEncode(r.byteLength);return fe.concat(new Uint8Array([1]),i,r)}encodeType(){return W.slebEncode(-24)}decodeValue(o,r){return this.checkType(r),$i(o)}get name(){return"principal"}valueToString(o){return`${this.name} "${o.toText()}"`}};M.PrincipalClass=en;var tn=class extends Wt{constructor(o,r,i=[]){super();this.argTypes=o,this.retTypes=r,this.annotations=i}static argsToString(o,r){if(o.length!==r.length)throw new Error("arity mismatch");return"("+o.map((i,n)=>i.valueToString(r[n])).join(", ")+")"}accept(o,r){return o.visitFunc(this,r)}covariant(o){return Array.isArray(o)&&o.length===2&&o[0]&&o[0]._isPrincipal&&typeof o[1]=="string"}encodeValue([o,r]){let i=o.toUint8Array(),n=W.lebEncode(i.byteLength),s=fe.concat(new Uint8Array([1]),n,i),p=new TextEncoder().encode(r),u=W.lebEncode(p.byteLength);return fe.concat(new Uint8Array([1]),s,u,p)}_buildTypeTableImpl(o){this.argTypes.forEach(w=>w.buildTypeTable(o)),this.retTypes.forEach(w=>w.buildTypeTable(o));let r=W.slebEncode(-22),i=W.lebEncode(this.argTypes.length),n=fe.concat(...this.argTypes.map(w=>w.encodeType(o))),s=W.lebEncode(this.retTypes.length),p=fe.concat(...this.retTypes.map(w=>w.encodeType(o))),u=W.lebEncode(this.annotations.length),h=fe.concat(...this.annotations.map(w=>this.encodeAnnotation(w)));o.add(this,fe.concat(r,i,n,s,p,u,h))}decodeValue(o){if(W.safeReadUint8(o)!==1)throw new Error("Cannot decode function reference");let i=$i(o),n=Number(W.lebDecode(o)),s=W.safeRead(o,n),u=new TextDecoder("utf8",{fatal:!0}).decode(s);return[i,u]}get name(){let o=this.argTypes.map(n=>n.name).join(", "),r=this.retTypes.map(n=>n.name).join(", "),i=" "+this.annotations.join(" ");return`(${o}) -> (${r})${i}`}valueToString([o,r]){return`func "${o.toText()}".${r}`}display(){let o=this.argTypes.map(n=>n.display()).join(", "),r=this.retTypes.map(n=>n.display()).join(", "),i=" "+this.annotations.join(" ");return`(${o}) \u2192 (${r})${i}`}encodeAnnotation(o){if(o==="query")return new Uint8Array([1]);if(o==="oneway")return new Uint8Array([2]);throw new Error("Illeagal function annotation")}};M.FuncClass=tn;var on=class extends Wt{constructor(o){super();this._fields=Object.entries(o).sort((r,i)=>Et.idlLabelToId(r[0])-Et.idlLabelToId(i[0]))}accept(o,r){return o.visitService(this,r)}covariant(o){return o&&o._isPrincipal}encodeValue(o){let r=o.toUint8Array(),i=W.lebEncode(r.length);return fe.concat(new Uint8Array([1]),i,r)}_buildTypeTableImpl(o){this._fields.forEach(([s,p])=>p.buildTypeTable(o));let r=W.slebEncode(-23),i=W.lebEncode(this._fields.length),n=this._fields.map(([s,p])=>{let u=new TextEncoder().encode(s),h=W.lebEncode(u.length);return fe.concat(h,u,p.encodeType(o))});o.add(this,fe.concat(r,i,...n))}decodeValue(o){return $i(o)}get name(){return`service {${this._fields.map(([r,i])=>r+":"+i.name).join("; ")}}`}valueToString(o){return`service "${o.toText()}"`}};M.ServiceClass=on;function Da(t){return JSON.stringify(t,(o,r)=>typeof r=="bigint"?`BigInt(${r})`:r)}function Kl(t,o){if(o.length<t.length)throw Error("Wrong number of message arguments");let r=new Ua;t.forEach(h=>h.buildTypeTable(r));let i=new TextEncoder().encode(wr),n=r.encode(),s=W.lebEncode(o.length),p=fe.concat(...t.map(h=>h.encodeType(r))),u=fe.concat(...Do(t,o,(h,w)=>{if(!h.covariant(w))throw new Error(`Invalid ${h.display()} argument: ${Da(w)}`);return h.encodeValue(w)}));return fe.concat(i,n,s,p,u)}M.encode=Kl;function Zl(t,o){let r=new fe.PipeArrayBuffer(o);if(o.byteLength<wr.length)throw new Error("Message length smaller than magic number");let i=W.safeRead(r,wr.length),n=new TextDecoder().decode(i);if(n!==wr)throw new Error("Wrong magic number: "+JSON.stringify(n));function s(P){let L=[],ee=Number(W.lebDecode(P));for(let xe=0;xe<ee;xe++){let Ie=Number(W.slebDecode(P));switch(Ie){case-18:case-19:{let Se=Number(W.slebDecode(P));L.push([Ie,Se]);break}case-20:case-21:{let Se=[],X=Number(W.lebDecode(P)),Z;for(;X--;){let pe=Number(W.lebDecode(P));if(pe>=Math.pow(2,32))throw new Error("field id out of 32-bit range");if(typeof Z=="number"&&Z>=pe)throw new Error("field id collision or not sorted");Z=pe;let he=Number(W.slebDecode(P));Se.push([pe,he])}L.push([Ie,Se]);break}case-22:{for(let X=0;X<2;X++){let Z=Number(W.lebDecode(P));for(;Z--;)W.slebDecode(P)}let Se=Number(W.lebDecode(P));W.safeRead(P,Se),L.push([Ie,void 0]);break}case-23:{let Se=Number(W.lebDecode(P));for(;Se--;){let X=Number(W.lebDecode(P));W.safeRead(P,X),W.slebDecode(P)}L.push([Ie,void 0]);break}default:throw new Error("Illegal op_code: "+Ie)}}let le=[],te=Number(W.lebDecode(P));for(let xe=0;xe<te;xe++)le.push(Number(W.slebDecode(P)));return[L,le]}let[p,u]=s(r);if(u.length<t.length)throw new Error("Wrong number of return values");let h=p.map(P=>za());function w(P){if(P<-24)throw new Error("future value not supported");if(P<0)switch(P){case-1:return M.Null;case-2:return M.Bool;case-3:return M.Nat;case-4:return M.Int;case-5:return M.Nat8;case-6:return M.Nat16;case-7:return M.Nat32;case-8:return M.Nat64;case-9:return M.Int8;case-10:return M.Int16;case-11:return M.Int32;case-12:return M.Int64;case-13:return M.Float32;case-14:return M.Float64;case-15:return M.Text;case-16:return M.Reserved;case-17:return M.Empty;case-24:return M.Principal;default:throw new Error("Illegal op_code: "+P)}if(P>=p.length)throw new Error("type index out of range");return h[P]}function G(P){switch(P[0]){case-19:{let L=w(P[1]);return qa(L)}case-18:{let L=w(P[1]);return Wa(L)}case-20:{let L={};for(let[te,xe]of P[1]){let Ie=`_${te}_`;L[Ie]=w(xe)}let ee=Va(L),le=ee.tryAsTuple();return Array.isArray(le)?Ha(...le):ee}case-21:{let L={};for(let[ee,le]of P[1]){let te=`_${ee}_`;L[te]=w(le)}return Ya(L)}case-22:return La([],[],[]);case-23:return Ja({});default:throw new Error("Illegal op_code: "+P[0])}}p.forEach((P,L)=>{let ee=G(P);h[L].fill(ee)});let T=u.map(P=>w(P)),V=t.map((P,L)=>P.decodeValue(r,T[L]));for(let P=t.length;P<T.length;P++)T[P].decodeValue(r,T[P]);if(r.byteLength>0)throw new Error("decode: Left-over bytes");return V}M.decode=Zl;M.Empty=new zi;M.Reserved=new Rr;M.Bool=new Li;M.Null=new Ji;M.Text=new Ki;M.Int=new Zi;M.Nat=new Xi;M.Float32=new Qr(32);M.Float64=new Qr(64);M.Int8=new bo(8);M.Int16=new bo(16);M.Int32=new bo(32);M.Int64=new bo(64);M.Nat8=new oo(8);M.Nat16=new oo(16);M.Nat32=new oo(32);M.Nat64=new oo(64);M.Principal=new en;function Ha(...t){return new qo(t)}M.Tuple=Ha;function qa(t){return new Ho(t)}M.Vec=qa;function Wa(t){return new yo(t)}M.Opt=Wa;function Va(t){return new _o(t)}M.Record=Va;function Ya(t){return new Wo(t)}M.Variant=Ya;function za(){return new ro}M.Rec=za;function La(t,o,r=[]){return new tn(t,o,r)}M.Func=La;function Ja(t){return new on(t)}M.Service=Ja});var nn=H(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.VecForm=ot.OptionForm=ot.VariantForm=ot.TupleForm=ot.RecordForm=ot.InputForm=ot.InputBox=void 0;var Ka=class{constructor(o,r){this.idl=o,this.ui=r,this.label=null,this.value=void 0;let i=document.createElement("span");i.className="status",this.status=i,r.input&&(r.input.addEventListener("blur",()=>{r.input.value!==""&&this.parse()}),r.input.addEventListener("input",()=>{i.style.display="none",r.input.classList.remove("reject")}))}isRejected(){return this.value===void 0}parse(o={}){if(this.ui.form){let r=this.ui.form.parse(o);return this.value=r,r}if(this.ui.input){let r=this.ui.input;try{let i=this.ui.parse(this.idl,o,r.value);if(!this.idl.covariant(i))throw new Error(`${r.value} is not of type ${this.idl.display()}`);return this.status.style.display="none",this.value=i,i}catch(i){r.classList.add("reject"),this.status.style.display="block",this.status.innerHTML="InputError: "+i.message,this.value=void 0;return}}return null}render(o){let r=document.createElement("span");if(this.label){let i=document.createElement("label");i.innerText=this.label,r.appendChild(i)}this.ui.input&&(r.appendChild(this.ui.input),r.appendChild(this.status)),this.ui.form&&this.ui.form.render(r),o.appendChild(r)}};ot.InputBox=Ka;var io=class{constructor(o){this.ui=o,this.form=[]}renderForm(o){this.ui.container?(this.form.forEach(r=>r.render(this.ui.container)),o.appendChild(this.ui.container)):this.form.forEach(r=>r.render(o))}render(o){if(this.ui.open&&this.ui.event){o.appendChild(this.ui.open);let r=this;r.ui.open.addEventListener(r.ui.event,()=>{if(r.ui.container)r.ui.container.innerHTML="";else{let i=r.ui.open.nextElementSibling;i&&i.parentNode.removeChild(i)}r.generateForm(),r.renderForm(o)})}else this.generateForm(),this.renderForm(o)}};ot.InputForm=io;var Za=class extends io{constructor(o,r){super(r);this.fields=o,this.ui=r}generateForm(){this.form=this.fields.map(([o,r])=>{let i=this.ui.render(r);return this.ui.labelMap&&this.ui.labelMap.hasOwnProperty(o)?i.label=this.ui.labelMap[o]+" ":i.label=o+" ",i})}parse(o){let r={};if(this.fields.forEach(([i,n],s)=>{let p=this.form[s].parse(o);r[i]=p}),!this.form.some(i=>i.isRejected()))return r}};ot.RecordForm=Za;var Xa=class extends io{constructor(o,r){super(r);this.components=o,this.ui=r}generateForm(){this.form=this.components.map(o=>this.ui.render(o))}parse(o){let r=[];if(this.components.forEach((i,n)=>{let s=this.form[n].parse(o);r.push(s)}),!this.form.some(i=>i.isRejected()))return r}};ot.TupleForm=Xa;var $a=class extends io{constructor(o,r){super(r);this.fields=o,this.ui=r}generateForm(){let o=this.ui.open.selectedIndex,[r,i]=this.fields[o],n=this.ui.render(i);this.form=[n]}parse(o){let r=this.ui.open,i=r.options[r.selectedIndex].value,n=this.form[0].parse(o);if(n===void 0)return;let s={};return s[i]=n,s}};ot.VariantForm=$a;var eg=class extends io{constructor(o,r){super(r);this.ty=o,this.ui=r}generateForm(){if(this.ui.open.checked){let o=this.ui.render(this.ty);this.form=[o]}else this.form=[]}parse(o){if(this.form.length===0)return[];{let r=this.form[0].parse(o);return r===void 0?void 0:[r]}}};ot.OptionForm=eg;var tg=class extends io{constructor(o,r){super(r);this.ty=o,this.ui=r}generateForm(){let o=+this.ui.open.value;this.form=[];for(let r=0;r<o;r++){let i=this.ui.render(this.ty);this.form.push(i)}}parse(o){let r=this.form.map(i=>i.parse(o));if(!this.form.some(i=>i.isRejected()))return r}};ot.VecForm=tg});var sg=H(ne=>{"use strict";var Xl=ne&&ne.__createBinding||(Object.create?function(t,o,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,i){i===void 0&&(i=r),t[i]=o[r]}),$l=ne&&ne.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),og=ne&&ne.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xl(o,t,r);return $l(o,t),o};Object.defineProperty(ne,"__esModule",{value:!0});ne.renderValue=ne.renderInput=ne.Render=ne.vecForm=ne.optForm=ne.variantForm=ne.tupleForm=ne.recordForm=ne.inputBox=void 0;var Fr=og(rn()),sn=Ft(),Io=og(nn()),ec={parse:ac},Vo={render:gn},tc=(t,o)=>new Io.InputBox(t,Object.assign(Object.assign({},ec),o));ne.inputBox=tc;var oc=(t,o)=>new Io.RecordForm(t,Object.assign(Object.assign({},Vo),o));ne.recordForm=oc;var rc=(t,o)=>new Io.TupleForm(t,Object.assign(Object.assign({},Vo),o));ne.tupleForm=rc;var ic=(t,o)=>new Io.VariantForm(t,Object.assign(Object.assign({},Vo),o));ne.variantForm=ic;var nc=(t,o)=>new Io.OptionForm(t,Object.assign(Object.assign({},Vo),o));ne.optForm=nc;var sc=(t,o)=>new Io.VecForm(t,Object.assign(Object.assign({},Vo),o));ne.vecForm=sc;var an=class extends Fr.Visitor{visitType(o,r){let i=document.createElement("input");return i.classList.add("argument"),i.placeholder=o.display(),ne.inputBox(o,{input:i})}visitNull(o,r){return ne.inputBox(o,{})}visitRecord(o,r,i){let n={};if(r.length>1){let p=document.createElement("div");p.classList.add("popup-form"),n={container:p}}let s=ne.recordForm(r,n);return ne.inputBox(o,{form:s})}visitTuple(o,r,i){let n={};if(r.length>1){let p=document.createElement("div");p.classList.add("popup-form"),n={container:p}}let s=ne.tupleForm(r,n);return ne.inputBox(o,{form:s})}visitVariant(o,r,i){let n=document.createElement("select");for(let[u,h]of r){let w=new Option(u);n.add(w)}n.selectedIndex=-1,n.classList.add("open");let s={open:n,event:"change"},p=ne.variantForm(r,s);return ne.inputBox(o,{form:p})}visitOpt(o,r,i){let n=document.createElement("input");n.type="checkbox",n.classList.add("open");let s=ne.optForm(r,{open:n,event:"change"});return ne.inputBox(o,{form:s})}visitVec(o,r,i){let n=document.createElement("input");n.type="number",n.min="0",n.max="100",n.style.width="8rem",n.placeholder="len",n.classList.add("open");let s=document.createElement("div");s.classList.add("popup-form");let p=ne.vecForm(r,{open:n,event:"change",container:s});return ne.inputBox(o,{form:p})}visitRec(o,r,i){return gn(r)}};ne.Render=an;var rg=class extends Fr.Visitor{visitNull(o,r){return null}visitBool(o,r){if(r==="true")return!0;if(r==="false")return!1;throw new Error(`Cannot parse ${r} as boolean`)}visitText(o,r){return r}visitFloat(o,r){return parseFloat(r)}visitNumber(o,r){return BigInt(r)}visitPrincipal(o,r){return sn.Principal.fromText(r)}visitService(o,r){return sn.Principal.fromText(r)}visitFunc(o,r){let i=r.split(".",2);return[sn.Principal.fromText(i[0]),i[1]]}},ig=class extends Fr.Visitor{visitNull(o,r){return null}visitBool(o,r){return Math.random()<.5}visitText(o,r){return Math.random().toString(36).substring(6)}visitFloat(o,r){return Math.random()}visitInt(o,r){return BigInt(this.generateNumber(!0))}visitNat(o,r){return BigInt(this.generateNumber(!1))}visitFixedInt(o,r){return BigInt(this.generateNumber(!0))}visitFixedNat(o,r){return BigInt(this.generateNumber(!1))}generateNumber(o){let r=Math.floor(Math.random()*100);return o&&Math.random()<.5?-r:r}};function ac(t,o,r){return o.random&&r===""?t.accept(new ig,r):t.accept(new rg,r)}function gn(t){return t.accept(new an,null)}ne.renderInput=gn;function no(t,o,r){return t.accept(new ng,{input:o,value:r})}ne.renderValue=no;var ng=class extends Fr.Visitor{visitType(o,r){r.input.ui.input.value=o.valueToString(r.value)}visitNull(o,r){}visitText(o,r){r.input.ui.input.value=r.value}visitRec(o,r,i){no(r,i.input,i.value)}visitOpt(o,r,i){if(i.value.length!==0){let n=i.input.ui.form,s=n.ui.open;s.checked=!0,s.dispatchEvent(new Event(n.ui.event)),no(r,n.form[0],i.value[0])}}visitRecord(o,r,i){let n=i.input.ui.form;r.forEach(([s,p],u)=>{no(p,n.form[u],i.value[s])})}visitTuple(o,r,i){let n=i.input.ui.form;r.forEach((s,p)=>{no(s,n.form[p],i.value[p])})}visitVariant(o,r,i){let n=i.input.ui.form,s=Object.entries(i.value)[0];r.forEach(([p,u],h)=>{if(p===s[0]){let w=n.ui.open;w.selectedIndex=h,w.dispatchEvent(new Event(n.ui.event)),no(u,n.form[0],s[1])}})}visitVec(o,r,i){let n=i.input.ui.form,s=i.value.length,p=n.ui.open;p.value=s,p.dispatchEvent(new Event(n.ui.event)),i.value.forEach((u,h)=>{no(r,n.form[h],u)})}}});var gg=H(ag=>{"use strict";Object.defineProperty(ag,"__esModule",{value:!0})});var mo=H(Ke=>{"use strict";var pg=Ke&&Ke.__createBinding||(Object.create?function(t,o,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,i){i===void 0&&(i=r),t[i]=o[r]}),gc=Ke&&Ke.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),Yo=Ke&&Ke.__exportStar||function(t,o){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(o,r)&&pg(o,t,r)},pc=Ke&&Ke.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pg(o,t,r);return gc(o,t),o};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.IDL=void 0;Yo(sg(),Ke);Yo(nn(),Ke);Ke.IDL=pc(rn());Yo(Vi(),Ke);Yo(xr(),Ke);Yo(gg(),Ke)});var zo=H((Ag,Tr)=>{(function(t){"use strict";var o,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,n=Math.floor,s="[BigNumber Error] ",p=s+"Number primitive has more than 15 significant digits: ",u=1e14,h=14,w=9007199254740991,G=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],T=1e7,V=1e9;function P(X){var Z,pe,he,q=U.prototype={constructor:U,toString:null,valueOf:null},Be=new U(1),ce=20,de=4,ve=-7,Oe=21,$e=-1e7,Ue=1e7,it=!1,Re=1,et=0,Ut={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},dt="0123456789abcdefghijklmnopqrstuvwxyz",jt=!0;function U(l,B){var E,R,C,S,F,y,x,Q,v=this;if(!(v instanceof U))return new U(l,B);if(B==null){if(l&&l._isBigNumber===!0){v.s=l.s,!l.c||l.e>Ue?v.c=v.e=null:l.e<$e?v.c=[v.e=0]:(v.e=l.e,v.c=l.c.slice());return}if((y=typeof l=="number")&&l*0==0){if(v.s=1/l<0?(l=-l,-1):1,l===~~l){for(S=0,F=l;F>=10;F/=10,S++);S>Ue?v.c=v.e=null:(v.e=S,v.c=[l]);return}Q=String(l)}else{if(!r.test(Q=String(l)))return he(v,Q,y);v.s=Q.charCodeAt(0)==45?(Q=Q.slice(1),-1):1}(S=Q.indexOf("."))>-1&&(Q=Q.replace(".","")),(F=Q.search(/e/i))>0?(S<0&&(S=F),S+=+Q.slice(F+1),Q=Q.substring(0,F)):S<0&&(S=Q.length)}else{if(te(B,2,dt.length,"Base"),B==10&&jt)return v=new U(l),He(v,ce+v.e+1,de);if(Q=String(l),y=typeof l=="number"){if(l*0!=0)return he(v,Q,y,B);if(v.s=1/l<0?(Q=Q.slice(1),-1):1,U.DEBUG&&Q.replace(/^0\.0*|\./,"").length>15)throw Error(p+l)}else v.s=Q.charCodeAt(0)===45?(Q=Q.slice(1),-1):1;for(E=dt.slice(0,B),S=F=0,x=Q.length;F<x;F++)if(E.indexOf(R=Q.charAt(F))<0){if(R=="."){if(F>S){S=x;continue}}else if(!C&&(Q==Q.toUpperCase()&&(Q=Q.toLowerCase())||Q==Q.toLowerCase()&&(Q=Q.toUpperCase()))){C=!0,F=-1,S=0;continue}return he(v,String(l),y,B)}y=!1,Q=pe(Q,B,10,v.s),(S=Q.indexOf("."))>-1?Q=Q.replace(".",""):S=Q.length}for(F=0;Q.charCodeAt(F)===48;F++);for(x=Q.length;Q.charCodeAt(--x)===48;);if(Q=Q.slice(F,++x)){if(x-=F,y&&U.DEBUG&&x>15&&(l>w||l!==n(l)))throw Error(p+v.s*l);if((S=S-F-1)>Ue)v.c=v.e=null;else if(S<$e)v.c=[v.e=0];else{if(v.e=S,v.c=[],F=(S+1)%h,S<0&&(F+=h),F<x){for(F&&v.c.push(+Q.slice(0,F)),x-=h;F<x;)v.c.push(+Q.slice(F,F+=h));F=h-(Q=Q.slice(F)).length}else F-=x;for(;F--;Q+="0");v.c.push(+Q)}}else v.c=[v.e=0]}U.clone=P,U.ROUND_UP=0,U.ROUND_DOWN=1,U.ROUND_CEIL=2,U.ROUND_FLOOR=3,U.ROUND_HALF_UP=4,U.ROUND_HALF_DOWN=5,U.ROUND_HALF_EVEN=6,U.ROUND_HALF_CEIL=7,U.ROUND_HALF_FLOOR=8,U.EUCLID=9,U.config=U.set=function(l){var B,E;if(l!=null)if(typeof l=="object"){if(l.hasOwnProperty(B="DECIMAL_PLACES")&&(E=l[B],te(E,0,V,B),ce=E),l.hasOwnProperty(B="ROUNDING_MODE")&&(E=l[B],te(E,0,8,B),de=E),l.hasOwnProperty(B="EXPONENTIAL_AT")&&(E=l[B],E&&E.pop?(te(E[0],-V,0,B),te(E[1],0,V,B),ve=E[0],Oe=E[1]):(te(E,-V,V,B),ve=-(Oe=E<0?-E:E))),l.hasOwnProperty(B="RANGE"))if(E=l[B],E&&E.pop)te(E[0],-V,-1,B),te(E[1],1,V,B),$e=E[0],Ue=E[1];else if(te(E,-V,V,B),E)$e=-(Ue=E<0?-E:E);else throw Error(s+B+" cannot be zero: "+E);if(l.hasOwnProperty(B="CRYPTO"))if(E=l[B],E===!!E)if(E)if(typeof crypto!="undefined"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))it=E;else throw it=!E,Error(s+"crypto unavailable");else it=E;else throw Error(s+B+" not true or false: "+E);if(l.hasOwnProperty(B="MODULO_MODE")&&(E=l[B],te(E,0,9,B),Re=E),l.hasOwnProperty(B="POW_PRECISION")&&(E=l[B],te(E,0,V,B),et=E),l.hasOwnProperty(B="FORMAT"))if(E=l[B],typeof E=="object")Ut=E;else throw Error(s+B+" not an object: "+E);if(l.hasOwnProperty(B="ALPHABET"))if(E=l[B],typeof E=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(E))jt=E.slice(0,10)=="0123456789",dt=E;else throw Error(s+B+" invalid: "+E)}else throw Error(s+"Object expected: "+l);return{DECIMAL_PLACES:ce,ROUNDING_MODE:de,EXPONENTIAL_AT:[ve,Oe],RANGE:[$e,Ue],CRYPTO:it,MODULO_MODE:Re,POW_PRECISION:et,FORMAT:Ut,ALPHABET:dt}},U.isBigNumber=function(l){if(!l||l._isBigNumber!==!0)return!1;if(!U.DEBUG)return!0;var B,E,R=l.c,C=l.e,S=l.s;e:if({}.toString.call(R)=="[object Array]"){if((S===1||S===-1)&&C>=-V&&C<=V&&C===n(C)){if(R[0]===0){if(C===0&&R.length===1)return!0;break e}if(B=(C+1)%h,B<1&&(B+=h),String(R[0]).length==B){for(B=0;B<R.length;B++)if(E=R[B],E<0||E>=u||E!==n(E))break e;if(E!==0)return!0}}}else if(R===null&&C===null&&(S===null||S===1||S===-1))return!0;throw Error(s+"Invalid BigNumber: "+l)},U.maximum=U.max=function(){return wt(arguments,q.lt)},U.minimum=U.min=function(){return wt(arguments,q.gt)},U.random=function(){var l=9007199254740992,B=Math.random()*l&2097151?function(){return n(Math.random()*l)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(E){var R,C,S,F,y,x=0,Q=[],v=new U(Be);if(E==null?E=ce:te(E,0,V),F=i(E/h),it)if(crypto.getRandomValues){for(R=crypto.getRandomValues(new Uint32Array(F*=2));x<F;)y=R[x]*131072+(R[x+1]>>>11),y>=9e15?(C=crypto.getRandomValues(new Uint32Array(2)),R[x]=C[0],R[x+1]=C[1]):(Q.push(y%1e14),x+=2);x=F/2}else if(crypto.randomBytes){for(R=crypto.randomBytes(F*=7);x<F;)y=(R[x]&31)*281474976710656+R[x+1]*1099511627776+R[x+2]*4294967296+R[x+3]*16777216+(R[x+4]<<16)+(R[x+5]<<8)+R[x+6],y>=9e15?crypto.randomBytes(7).copy(R,x):(Q.push(y%1e14),x+=7);x=F/7}else throw it=!1,Error(s+"crypto unavailable");if(!it)for(;x<F;)y=B(),y<9e15&&(Q[x++]=y%1e14);for(F=Q[--x],E%=h,F&&E&&(y=G[h-E],Q[x]=n(F/y)*y);Q[x]===0;Q.pop(),x--);if(x<0)Q=[S=0];else{for(S=-1;Q[0]===0;Q.splice(0,1),S-=h);for(x=1,y=Q[0];y>=10;y/=10,x++);x<h&&(S-=h-x)}return v.e=S,v.c=Q,v}}(),U.sum=function(){for(var l=1,B=arguments,E=new U(B[0]);l<B.length;)E=E.plus(B[l++]);return E},pe=function(){var l="0123456789";function B(E,R,C,S){for(var F,y=[0],x,Q=0,v=E.length;Q<v;){for(x=y.length;x--;y[x]*=R);for(y[0]+=S.indexOf(E.charAt(Q++)),F=0;F<y.length;F++)y[F]>C-1&&(y[F+1]==null&&(y[F+1]=0),y[F+1]+=y[F]/C|0,y[F]%=C)}return y.reverse()}return function(E,R,C,S,F){var y,x,Q,v,N,D,J,re,Ee=E.indexOf("."),me=ce,oe=de;for(Ee>=0&&(v=et,et=0,E=E.replace(".",""),re=new U(R),D=re.pow(E.length-Ee),et=v,re.c=B(Se(ee(D.c),D.e,"0"),10,C,l),re.e=re.c.length),J=B(E,R,C,F?(y=dt,l):(y=l,dt)),Q=v=J.length;J[--v]==0;J.pop());if(!J[0])return y.charAt(0);if(Ee<0?--Q:(D.c=J,D.e=Q,D.s=S,D=Z(D,re,me,oe,C),J=D.c,N=D.r,Q=D.e),x=Q+me+1,Ee=J[x],v=C/2,N=N||x<0||J[x+1]!=null,N=oe<4?(Ee!=null||N)&&(oe==0||oe==(D.s<0?3:2)):Ee>v||Ee==v&&(oe==4||N||oe==6&&J[x-1]&1||oe==(D.s<0?8:7)),x<1||!J[0])E=N?Se(y.charAt(1),-me,y.charAt(0)):y.charAt(0);else{if(J.length=x,N)for(--C;++J[--x]>C;)J[x]=0,x||(++Q,J=[1].concat(J));for(v=J.length;!J[--v];);for(Ee=0,E="";Ee<=v;E+=y.charAt(J[Ee++]));E=Se(E,Q,y.charAt(0))}return E}}(),Z=function(){function l(R,C,S){var F,y,x,Q,v=0,N=R.length,D=C%T,J=C/T|0;for(R=R.slice();N--;)x=R[N]%T,Q=R[N]/T|0,F=J*x+Q*D,y=D*x+F%T*T+v,v=(y/S|0)+(F/T|0)+J*Q,R[N]=y%S;return v&&(R=[v].concat(R)),R}function B(R,C,S,F){var y,x;if(S!=F)x=S>F?1:-1;else for(y=x=0;y<S;y++)if(R[y]!=C[y]){x=R[y]>C[y]?1:-1;break}return x}function E(R,C,S,F){for(var y=0;S--;)R[S]-=y,y=R[S]<C[S]?1:0,R[S]=y*F+R[S]-C[S];for(;!R[0]&&R.length>1;R.splice(0,1));}return function(R,C,S,F,y){var x,Q,v,N,D,J,re,Ee,me,oe,z,Qe,vt,Dt,Ht,tt,ie,qe=R.s==C.s?1:-1,Ne=R.c,be=C.c;if(!Ne||!Ne[0]||!be||!be[0])return new U(!R.s||!C.s||(Ne?be&&Ne[0]==be[0]:!be)?NaN:Ne&&Ne[0]==0||!be?qe*0:qe/0);for(Ee=new U(qe),me=Ee.c=[],Q=R.e-C.e,qe=S+Q+1,y||(y=u,Q=L(R.e/h)-L(C.e/h),qe=qe/h|0),v=0;be[v]==(Ne[v]||0);v++);if(be[v]>(Ne[v]||0)&&Q--,qe<0)me.push(1),N=!0;else{for(Dt=Ne.length,tt=be.length,v=0,qe+=2,D=n(y/(be[0]+1)),D>1&&(be=l(be,D,y),Ne=l(Ne,D,y),tt=be.length,Dt=Ne.length),vt=tt,oe=Ne.slice(0,tt),z=oe.length;z<tt;oe[z++]=0);ie=be.slice(),ie=[0].concat(ie),Ht=be[0],be[1]>=y/2&&Ht++;do{if(D=0,x=B(be,oe,tt,z),x<0){if(Qe=oe[0],tt!=z&&(Qe=Qe*y+(oe[1]||0)),D=n(Qe/Ht),D>1)for(D>=y&&(D=y-1),J=l(be,D,y),re=J.length,z=oe.length;B(J,oe,re,z)==1;)D--,E(J,tt<re?ie:be,re,y),re=J.length,x=1;else D==0&&(x=D=1),J=be.slice(),re=J.length;if(re<z&&(J=[0].concat(J)),E(oe,J,z,y),z=oe.length,x==-1)for(;B(be,oe,tt,z)<1;)D++,E(oe,tt<z?ie:be,z,y),z=oe.length}else x===0&&(D++,oe=[0]);me[v++]=D,oe[0]?oe[z++]=Ne[vt]||0:(oe=[Ne[vt]],z=1)}while((vt++<Dt||oe[0]!=null)&&qe--);N=oe[0]!=null,me[0]||me.splice(0,1)}if(y==u){for(v=1,qe=me[0];qe>=10;qe/=10,v++);He(Ee,S+(Ee.e=v+Q*h-1)+1,F,N)}else Ee.e=Q,Ee.r=+N;return Ee}}();function I(l,B,E,R){var C,S,F,y,x;if(E==null?E=de:te(E,0,8),!l.c)return l.toString();if(C=l.c[0],F=l.e,B==null)x=ee(l.c),x=R==1||R==2&&(F<=ve||F>=Oe)?Ie(x,F):Se(x,F,"0");else if(l=He(new U(l),B,E),S=l.e,x=ee(l.c),y=x.length,R==1||R==2&&(B<=S||S<=ve)){for(;y<B;x+="0",y++);x=Ie(x,S)}else if(B-=F,x=Se(x,S,"0"),S+1>y){if(--B>0)for(x+=".";B--;x+="0");}else if(B+=S-y,B>0)for(S+1==y&&(x+=".");B--;x+="0");return l.s<0&&C?"-"+x:x}function wt(l,B){for(var E,R=1,C=new U(l[0]);R<l.length;R++)if(E=new U(l[R]),E.s)B.call(C,E)&&(C=E);else{C=E;break}return C}function gt(l,B,E){for(var R=1,C=B.length;!B[--C];B.pop());for(C=B[0];C>=10;C/=10,R++);return(E=R+E*h-1)>Ue?l.c=l.e=null:E<$e?l.c=[l.e=0]:(l.e=E,l.c=B),l}he=function(){var l=/^(-?)0([xbo])(?=\w[\w.]*$)/i,B=/^([^.]+)\.$/,E=/^\.([^.]+)$/,R=/^-?(Infinity|NaN)$/,C=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(S,F,y,x){var Q,v=y?F:F.replace(C,"");if(R.test(v))S.s=isNaN(v)?null:v<0?-1:1;else{if(!y&&(v=v.replace(l,function(N,D,J){return Q=(J=J.toLowerCase())=="x"?16:J=="b"?2:8,!x||x==Q?D:N}),x&&(Q=x,v=v.replace(B,"$1").replace(E,"0.$1")),F!=v))return new U(v,Q);if(U.DEBUG)throw Error(s+"Not a"+(x?" base "+x:"")+" number: "+F);S.s=null}S.c=S.e=null}}();function He(l,B,E,R){var C,S,F,y,x,Q,v,N=l.c,D=G;if(N){e:{for(C=1,y=N[0];y>=10;y/=10,C++);if(S=B-C,S<0)S+=h,F=B,x=N[Q=0],v=x/D[C-F-1]%10|0;else if(Q=i((S+1)/h),Q>=N.length)if(R){for(;N.length<=Q;N.push(0));x=v=0,C=1,S%=h,F=S-h+1}else break e;else{for(x=y=N[Q],C=1;y>=10;y/=10,C++);S%=h,F=S-h+C,v=F<0?0:x/D[C-F-1]%10|0}if(R=R||B<0||N[Q+1]!=null||(F<0?x:x%D[C-F-1]),R=E<4?(v||R)&&(E==0||E==(l.s<0?3:2)):v>5||v==5&&(E==4||R||E==6&&(S>0?F>0?x/D[C-F]:0:N[Q-1])%10&1||E==(l.s<0?8:7)),B<1||!N[0])return N.length=0,R?(B-=l.e+1,N[0]=D[(h-B%h)%h],l.e=-B||0):N[0]=l.e=0,l;if(S==0?(N.length=Q,y=1,Q--):(N.length=Q+1,y=D[h-S],N[Q]=F>0?n(x/D[C-F]%D[F])*y:0),R)for(;;)if(Q==0){for(S=1,F=N[0];F>=10;F/=10,S++);for(F=N[0]+=y,y=1;F>=10;F/=10,y++);S!=y&&(l.e++,N[0]==u&&(N[0]=1));break}else{if(N[Q]+=y,N[Q]!=u)break;N[Q--]=0,y=1}for(S=N.length;N[--S]===0;N.pop());}l.e>Ue?l.c=l.e=null:l.e<$e&&(l.c=[l.e=0])}return l}function $(l){var B,E=l.e;return E===null?l.toString():(B=ee(l.c),B=E<=ve||E>=Oe?Ie(B,E):Se(B,E,"0"),l.s<0?"-"+B:B)}return q.absoluteValue=q.abs=function(){var l=new U(this);return l.s<0&&(l.s=1),l},q.comparedTo=function(l,B){return le(this,new U(l,B))},q.decimalPlaces=q.dp=function(l,B){var E,R,C,S=this;if(l!=null)return te(l,0,V),B==null?B=de:te(B,0,8),He(new U(S),l+S.e+1,B);if(!(E=S.c))return null;if(R=((C=E.length-1)-L(this.e/h))*h,C=E[C])for(;C%10==0;C/=10,R--);return R<0&&(R=0),R},q.dividedBy=q.div=function(l,B){return Z(this,new U(l,B),ce,de)},q.dividedToIntegerBy=q.idiv=function(l,B){return Z(this,new U(l,B),0,1)},q.exponentiatedBy=q.pow=function(l,B){var E,R,C,S,F,y,x,Q,v,N=this;if(l=new U(l),l.c&&!l.isInteger())throw Error(s+"Exponent not an integer: "+$(l));if(B!=null&&(B=new U(B)),y=l.e>14,!N.c||!N.c[0]||N.c[0]==1&&!N.e&&N.c.length==1||!l.c||!l.c[0])return v=new U(Math.pow(+$(N),y?2-xe(l):+$(l))),B?v.mod(B):v;if(x=l.s<0,B){if(B.c?!B.c[0]:!B.s)return new U(NaN);R=!x&&N.isInteger()&&B.isInteger(),R&&(N=N.mod(B))}else{if(l.e>9&&(N.e>0||N.e<-1||(N.e==0?N.c[0]>1||y&&N.c[1]>=24e7:N.c[0]<8e13||y&&N.c[0]<=9999975e7)))return S=N.s<0&&xe(l)?-0:0,N.e>-1&&(S=1/S),new U(x?1/S:S);et&&(S=i(et/h+2))}for(y?(E=new U(.5),x&&(l.s=1),Q=xe(l)):(C=Math.abs(+$(l)),Q=C%2),v=new U(Be);;){if(Q){if(v=v.times(N),!v.c)break;S?v.c.length>S&&(v.c.length=S):R&&(v=v.mod(B))}if(C){if(C=n(C/2),C===0)break;Q=C%2}else if(l=l.times(E),He(l,l.e+1,1),l.e>14)Q=xe(l);else{if(C=+$(l),C===0)break;Q=C%2}N=N.times(N),S?N.c&&N.c.length>S&&(N.c.length=S):R&&(N=N.mod(B))}return R?v:(x&&(v=Be.div(v)),B?v.mod(B):S?He(v,et,de,F):v)},q.integerValue=function(l){var B=new U(this);return l==null?l=de:te(l,0,8),He(B,B.e+1,l)},q.isEqualTo=q.eq=function(l,B){return le(this,new U(l,B))===0},q.isFinite=function(){return!!this.c},q.isGreaterThan=q.gt=function(l,B){return le(this,new U(l,B))>0},q.isGreaterThanOrEqualTo=q.gte=function(l,B){return(B=le(this,new U(l,B)))===1||B===0},q.isInteger=function(){return!!this.c&&L(this.e/h)>this.c.length-2},q.isLessThan=q.lt=function(l,B){return le(this,new U(l,B))<0},q.isLessThanOrEqualTo=q.lte=function(l,B){return(B=le(this,new U(l,B)))===-1||B===0},q.isNaN=function(){return!this.s},q.isNegative=function(){return this.s<0},q.isPositive=function(){return this.s>0},q.isZero=function(){return!!this.c&&this.c[0]==0},q.minus=function(l,B){var E,R,C,S,F=this,y=F.s;if(l=new U(l,B),B=l.s,!y||!B)return new U(NaN);if(y!=B)return l.s=-B,F.plus(l);var x=F.e/h,Q=l.e/h,v=F.c,N=l.c;if(!x||!Q){if(!v||!N)return v?(l.s=-B,l):new U(N?F:NaN);if(!v[0]||!N[0])return N[0]?(l.s=-B,l):new U(v[0]?F:de==3?-0:0)}if(x=L(x),Q=L(Q),v=v.slice(),y=x-Q){for((S=y<0)?(y=-y,C=v):(Q=x,C=N),C.reverse(),B=y;B--;C.push(0));C.reverse()}else for(R=(S=(y=v.length)<(B=N.length))?y:B,y=B=0;B<R;B++)if(v[B]!=N[B]){S=v[B]<N[B];break}if(S&&(C=v,v=N,N=C,l.s=-l.s),B=(R=N.length)-(E=v.length),B>0)for(;B--;v[E++]=0);for(B=u-1;R>y;){if(v[--R]<N[R]){for(E=R;E&&!v[--E];v[E]=B);--v[E],v[R]+=u}v[R]-=N[R]}for(;v[0]==0;v.splice(0,1),--Q);return v[0]?gt(l,v,Q):(l.s=de==3?-1:1,l.c=[l.e=0],l)},q.modulo=q.mod=function(l,B){var E,R,C=this;return l=new U(l,B),!C.c||!l.s||l.c&&!l.c[0]?new U(NaN):!l.c||C.c&&!C.c[0]?new U(C):(Re==9?(R=l.s,l.s=1,E=Z(C,l,0,3),l.s=R,E.s*=R):E=Z(C,l,0,Re),l=C.minus(E.times(l)),!l.c[0]&&Re==1&&(l.s=C.s),l)},q.multipliedBy=q.times=function(l,B){var E,R,C,S,F,y,x,Q,v,N,D,J,re,Ee,me,oe=this,z=oe.c,Qe=(l=new U(l,B)).c;if(!z||!Qe||!z[0]||!Qe[0])return!oe.s||!l.s||z&&!z[0]&&!Qe||Qe&&!Qe[0]&&!z?l.c=l.e=l.s=null:(l.s*=oe.s,!z||!Qe?l.c=l.e=null:(l.c=[0],l.e=0)),l;for(R=L(oe.e/h)+L(l.e/h),l.s*=oe.s,x=z.length,N=Qe.length,x<N&&(re=z,z=Qe,Qe=re,C=x,x=N,N=C),C=x+N,re=[];C--;re.push(0));for(Ee=u,me=T,C=N;--C>=0;){for(E=0,D=Qe[C]%me,J=Qe[C]/me|0,F=x,S=C+F;S>C;)Q=z[--F]%me,v=z[F]/me|0,y=J*Q+v*D,Q=D*Q+y%me*me+re[S]+E,E=(Q/Ee|0)+(y/me|0)+J*v,re[S--]=Q%Ee;re[S]=E}return E?++R:re.splice(0,1),gt(l,re,R)},q.negated=function(){var l=new U(this);return l.s=-l.s||null,l},q.plus=function(l,B){var E,R=this,C=R.s;if(l=new U(l,B),B=l.s,!C||!B)return new U(NaN);if(C!=B)return l.s=-B,R.minus(l);var S=R.e/h,F=l.e/h,y=R.c,x=l.c;if(!S||!F){if(!y||!x)return new U(C/0);if(!y[0]||!x[0])return x[0]?l:new U(y[0]?R:C*0)}if(S=L(S),F=L(F),y=y.slice(),C=S-F){for(C>0?(F=S,E=x):(C=-C,E=y),E.reverse();C--;E.push(0));E.reverse()}for(C=y.length,B=x.length,C-B<0&&(E=x,x=y,y=E,B=C),C=0;B;)C=(y[--B]=y[B]+x[B]+C)/u|0,y[B]=u===y[B]?0:y[B]%u;return C&&(y=[C].concat(y),++F),gt(l,y,F)},q.precision=q.sd=function(l,B){var E,R,C,S=this;if(l!=null&&l!==!!l)return te(l,1,V),B==null?B=de:te(B,0,8),He(new U(S),l,B);if(!(E=S.c))return null;if(C=E.length-1,R=C*h+1,C=E[C]){for(;C%10==0;C/=10,R--);for(C=E[0];C>=10;C/=10,R++);}return l&&S.e+1>R&&(R=S.e+1),R},q.shiftedBy=function(l){return te(l,-w,w),this.times("1e"+l)},q.squareRoot=q.sqrt=function(){var l,B,E,R,C,S=this,F=S.c,y=S.s,x=S.e,Q=ce+4,v=new U("0.5");if(y!==1||!F||!F[0])return new U(!y||y<0&&(!F||F[0])?NaN:F?S:1/0);if(y=Math.sqrt(+$(S)),y==0||y==1/0?(B=ee(F),(B.length+x)%2==0&&(B+="0"),y=Math.sqrt(+B),x=L((x+1)/2)-(x<0||x%2),y==1/0?B="5e"+x:(B=y.toExponential(),B=B.slice(0,B.indexOf("e")+1)+x),E=new U(B)):E=new U(y+""),E.c[0]){for(x=E.e,y=x+Q,y<3&&(y=0);;)if(C=E,E=v.times(C.plus(Z(S,C,Q,1))),ee(C.c).slice(0,y)===(B=ee(E.c)).slice(0,y))if(E.e<x&&--y,B=B.slice(y-3,y+1),B=="9999"||!R&&B=="4999"){if(!R&&(He(C,C.e+ce+2,0),C.times(C).eq(S))){E=C;break}Q+=4,y+=4,R=1}else{(!+B||!+B.slice(1)&&B.charAt(0)=="5")&&(He(E,E.e+ce+2,1),l=!E.times(E).eq(S));break}}return He(E,E.e+ce+1,de,l)},q.toExponential=function(l,B){return l!=null&&(te(l,0,V),l++),I(this,l,B,1)},q.toFixed=function(l,B){return l!=null&&(te(l,0,V),l=l+this.e+1),I(this,l,B)},q.toFormat=function(l,B,E){var R,C=this;if(E==null)l!=null&&B&&typeof B=="object"?(E=B,B=null):l&&typeof l=="object"?(E=l,l=B=null):E=Ut;else if(typeof E!="object")throw Error(s+"Argument not an object: "+E);if(R=C.toFixed(l,B),C.c){var S,F=R.split("."),y=+E.groupSize,x=+E.secondaryGroupSize,Q=E.groupSeparator||"",v=F[0],N=F[1],D=C.s<0,J=D?v.slice(1):v,re=J.length;if(x&&(S=y,y=x,x=S,re-=S),y>0&&re>0){for(S=re%y||y,v=J.substr(0,S);S<re;S+=y)v+=Q+J.substr(S,y);x>0&&(v+=Q+J.slice(S)),D&&(v="-"+v)}R=N?v+(E.decimalSeparator||"")+((x=+E.fractionGroupSize)?N.replace(new RegExp("\\d{"+x+"}\\B","g"),"$&"+(E.fractionGroupSeparator||"")):N):v}return(E.prefix||"")+R+(E.suffix||"")},q.toFraction=function(l){var B,E,R,C,S,F,y,x,Q,v,N,D,J=this,re=J.c;if(l!=null&&(y=new U(l),!y.isInteger()&&(y.c||y.s!==1)||y.lt(Be)))throw Error(s+"Argument "+(y.isInteger()?"out of range: ":"not an integer: ")+$(y));if(!re)return new U(J);for(B=new U(Be),Q=E=new U(Be),R=x=new U(Be),D=ee(re),S=B.e=D.length-J.e-1,B.c[0]=G[(F=S%h)<0?h+F:F],l=!l||y.comparedTo(B)>0?S>0?B:Q:y,F=Ue,Ue=1/0,y=new U(D),x.c[0]=0;v=Z(y,B,0,1),C=E.plus(v.times(R)),C.comparedTo(l)!=1;)E=R,R=C,Q=x.plus(v.times(C=Q)),x=C,B=y.minus(v.times(C=B)),y=C;return C=Z(l.minus(E),R,0,1),x=x.plus(C.times(Q)),E=E.plus(C.times(R)),x.s=Q.s=J.s,S=S*2,N=Z(Q,R,S,de).minus(J).abs().comparedTo(Z(x,E,S,de).minus(J).abs())<1?[Q,R]:[x,E],Ue=F,N},q.toNumber=function(){return+$(this)},q.toPrecision=function(l,B){return l!=null&&te(l,1,V),I(this,l,B,2)},q.toString=function(l){var B,E=this,R=E.s,C=E.e;return C===null?R?(B="Infinity",R<0&&(B="-"+B)):B="NaN":(l==null?B=C<=ve||C>=Oe?Ie(ee(E.c),C):Se(ee(E.c),C,"0"):l===10&&jt?(E=He(new U(E),ce+C+1,de),B=Se(ee(E.c),E.e,"0")):(te(l,2,dt.length,"Base"),B=pe(Se(ee(E.c),C,"0"),10,l,R,!0)),R<0&&E.c[0]&&(B="-"+B)),B},q.valueOf=q.toJSON=function(){return $(this)},q._isBigNumber=!0,X!=null&&U.set(X),U}function L(X){var Z=X|0;return X>0||X===Z?Z:Z-1}function ee(X){for(var Z,pe,he=1,q=X.length,Be=X[0]+"";he<q;){for(Z=X[he++]+"",pe=h-Z.length;pe--;Z="0"+Z);Be+=Z}for(q=Be.length;Be.charCodeAt(--q)===48;);return Be.slice(0,q+1||1)}function le(X,Z){var pe,he,q=X.c,Be=Z.c,ce=X.s,de=Z.s,ve=X.e,Oe=Z.e;if(!ce||!de)return null;if(pe=q&&!q[0],he=Be&&!Be[0],pe||he)return pe?he?0:-de:ce;if(ce!=de)return ce;if(pe=ce<0,he=ve==Oe,!q||!Be)return he?0:!q^pe?1:-1;if(!he)return ve>Oe^pe?1:-1;for(de=(ve=q.length)<(Oe=Be.length)?ve:Oe,ce=0;ce<de;ce++)if(q[ce]!=Be[ce])return q[ce]>Be[ce]^pe?1:-1;return ve==Oe?0:ve>Oe^pe?1:-1}function te(X,Z,pe,he){if(X<Z||X>pe||X!==n(X))throw Error(s+(he||"Argument")+(typeof X=="number"?X<Z||X>pe?" out of range: ":" not an integer: ":" not a primitive number: ")+String(X))}function xe(X){var Z=X.c.length-1;return L(X.e/h)==Z&&X.c[Z]%2!=0}function Ie(X,Z){return(X.length>1?X.charAt(0)+"."+X.slice(1):X)+(Z<0?"e":"e+")+Z}function Se(X,Z,pe){var he,q;if(Z<0){for(q=pe+".";++Z;q+=pe);X=q+X}else if(he=X.length,++Z>he){for(q=pe,Z-=he;--Z;q+=pe);X+=q}else Z<he&&(X=X.slice(0,Z)+"."+X.slice(Z));return X}o=P(),o.default=o.BigNumber=o,typeof define=="function"&&define.amd?define(function(){return o}):typeof Tr!="undefined"&&Tr.exports?Tr.exports=o:(t||(t=typeof self!="undefined"&&self?self:window),t.BigNumber=o)})(Ag)});var lg=H((u0,ug)=>{ug.exports=function(o,r,i){var n=new o.Uint8Array(i),s=r.pushInt,p=r.pushInt32,u=r.pushInt32Neg,h=r.pushInt64,w=r.pushInt64Neg,G=r.pushFloat,T=r.pushFloatSingle,V=r.pushFloatDouble,P=r.pushTrue,L=r.pushFalse,ee=r.pushUndefined,le=r.pushNull,te=r.pushInfinity,xe=r.pushInfinityNeg,Ie=r.pushNaN,Se=r.pushNaNNeg,X=r.pushArrayStart,Z=r.pushArrayStartFixed,pe=r.pushArrayStartFixed32,he=r.pushArrayStartFixed64,q=r.pushObjectStart,Be=r.pushObjectStartFixed,ce=r.pushObjectStartFixed32,de=r.pushObjectStartFixed64,ve=r.pushByteString,Oe=r.pushByteStringStart,$e=r.pushUtf8String,Ue=r.pushUtf8StringStart,it=r.pushSimpleUnassigned,Re=r.pushTagStart,et=r.pushTagStart4,Ut=r.pushTagStart8,dt=r.pushTagUnassigned,jt=r.pushBreak,U=o.Math.pow,I=0,wt=0,gt=0;function He(_){for(_=_|0,I=0,wt=_;(I|0)<(wt|0)&&(gt=QA[n[I]&255](n[I]|0)|0,!((gt|0)>0)););return gt|0}function $(_){return _=_|0,((I|0)+(_|0)|0)<(wt|0)?0:1}function l(_){return _=_|0,n[_|0]<<8|n[_+1|0]|0}function B(_){return _=_|0,n[_|0]<<24|n[_+1|0]<<16|n[_+2|0]<<8|n[_+3|0]|0}function E(_){return _=_|0,s(_|0),I=I+1|0,0}function R(_){return _=_|0,$(1)|0?1:(s(n[I+1|0]|0),I=I+2|0,0)}function C(_){return _=_|0,$(2)|0?1:(s(l(I+1|0)|0),I=I+3|0,0)}function S(_){return _=_|0,$(4)|0?1:(p(l(I+1|0)|0,l(I+3|0)|0),I=I+5|0,0)}function F(_){return _=_|0,$(8)|0?1:(h(l(I+1|0)|0,l(I+3|0)|0,l(I+5|0)|0,l(I+7|0)|0),I=I+9|0,0)}function y(_){return _=_|0,s(-1-(_-32|0)|0),I=I+1|0,0}function x(_){return _=_|0,$(1)|0?1:(s(-1-(n[I+1|0]|0)|0),I=I+2|0,0)}function Q(_){_=_|0;var ae=0;return $(2)|0?1:(ae=l(I+1|0)|0,s(-1-(ae|0)|0),I=I+3|0,0)}function v(_){return _=_|0,$(4)|0?1:(u(l(I+1|0)|0,l(I+3|0)|0),I=I+5|0,0)}function N(_){return _=_|0,$(8)|0?1:(w(l(I+1|0)|0,l(I+3|0)|0,l(I+5|0)|0,l(I+7|0)|0),I=I+9|0,0)}function D(_){_=_|0;var ae=0,Ae=0,se=0;return se=_-64|0,$(se|0)|0?1:(ae=I+1|0,Ae=(I+1|0)+(se|0)|0,ve(ae|0,Ae|0),I=Ae|0,0)}function J(_){_=_|0;var ae=0,Ae=0,se=0;return $(1)|0||(se=n[I+1|0]|0,ae=I+2|0,Ae=(I+2|0)+(se|0)|0,$(se+1|0)|0)?1:(ve(ae|0,Ae|0),I=Ae|0,0)}function re(_){_=_|0;var ae=0,Ae=0,se=0;return $(2)|0||(se=l(I+1|0)|0,ae=I+3|0,Ae=(I+3|0)+(se|0)|0,$(se+2|0)|0)?1:(ve(ae|0,Ae|0),I=Ae|0,0)}function Ee(_){_=_|0;var ae=0,Ae=0,se=0;return $(4)|0||(se=B(I+1|0)|0,ae=I+5|0,Ae=(I+5|0)+(se|0)|0,$(se+4|0)|0)?1:(ve(ae|0,Ae|0),I=Ae|0,0)}function me(_){return _=_|0,1}function oe(_){return _=_|0,Oe(),I=I+1|0,0}function z(_){_=_|0;var ae=0,Ae=0,se=0;return se=_-96|0,$(se|0)|0?1:(ae=I+1|0,Ae=(I+1|0)+(se|0)|0,$e(ae|0,Ae|0),I=Ae|0,0)}function Qe(_){_=_|0;var ae=0,Ae=0,se=0;return $(1)|0||(se=n[I+1|0]|0,ae=I+2|0,Ae=(I+2|0)+(se|0)|0,$(se+1|0)|0)?1:($e(ae|0,Ae|0),I=Ae|0,0)}function vt(_){_=_|0;var ae=0,Ae=0,se=0;return $(2)|0||(se=l(I+1|0)|0,ae=I+3|0,Ae=(I+3|0)+(se|0)|0,$(se+2|0)|0)?1:($e(ae|0,Ae|0),I=Ae|0,0)}function Dt(_){_=_|0;var ae=0,Ae=0,se=0;return $(4)|0||(se=B(I+1|0)|0,ae=I+5|0,Ae=(I+5|0)+(se|0)|0,$(se+4|0)|0)?1:($e(ae|0,Ae|0),I=Ae|0,0)}function Ht(_){return _=_|0,1}function tt(_){return _=_|0,Ue(),I=I+1|0,0}function ie(_){return _=_|0,Z(_-128|0),I=I+1|0,0}function qe(_){return _=_|0,$(1)|0?1:(Z(n[I+1|0]|0),I=I+2|0,0)}function Ne(_){return _=_|0,$(2)|0?1:(Z(l(I+1|0)|0),I=I+3|0,0)}function be(_){return _=_|0,$(4)|0?1:(pe(l(I+1|0)|0,l(I+3|0)|0),I=I+5|0,0)}function Fo(_){return _=_|0,$(8)|0?1:(he(l(I+1|0)|0,l(I+3|0)|0,l(I+5|0)|0,l(I+7|0)|0),I=I+9|0,0)}function To(_){return _=_|0,X(),I=I+1|0,0}function ye(_){_=_|0;var ae=0;return ae=_-160|0,$(ae|0)|0?1:(Be(ae|0),I=I+1|0,0)}function Mo(_){return _=_|0,$(1)|0?1:(Be(n[I+1|0]|0),I=I+2|0,0)}function cA(_){return _=_|0,$(2)|0?1:(Be(l(I+1|0)|0),I=I+3|0,0)}function dA(_){return _=_|0,$(4)|0?1:(ce(l(I+1|0)|0,l(I+3|0)|0),I=I+5|0,0)}function fA(_){return _=_|0,$(8)|0?1:(de(l(I+1|0)|0,l(I+3|0)|0,l(I+5|0)|0,l(I+7|0)|0),I=I+9|0,0)}function hA(_){return _=_|0,q(),I=I+1|0,0}function uo(_){return _=_|0,Re(_-192|0|0),I=I+1|0,0}function th(_){return _=_|0,Re(_|0),I=I+1|0,0}function oh(_){return _=_|0,Re(_|0),I=I+1|0,0}function rh(_){return _=_|0,Re(_|0),I=I+1|0,0}function ih(_){return _=_|0,Re(_|0),I=I+1|0,0}function We(_){return _=_|0,Re(_-192|0|0),I=I+1|0,0}function nh(_){return _=_|0,Re(_|0),I=I+1|0,0}function sh(_){return _=_|0,Re(_|0),I=I+1|0,0}function ah(_){return _=_|0,Re(_|0),I=I+1|0,0}function BA(_){return _=_|0,$(1)|0?1:(Re(n[I+1|0]|0),I=I+2|0,0)}function EA(_){return _=_|0,$(2)|0?1:(Re(l(I+1|0)|0),I=I+3|0,0)}function bA(_){return _=_|0,$(4)|0?1:(et(l(I+1|0)|0,l(I+3|0)|0),I=I+5|0,0)}function yA(_){return _=_|0,$(8)|0?1:(Ut(l(I+1|0)|0,l(I+3|0)|0,l(I+5|0)|0,l(I+7|0)|0),I=I+9|0,0)}function Pe(_){return _=_|0,it((_|0)-224|0),I=I+1|0,0}function _A(_){return _=_|0,L(),I=I+1|0,0}function IA(_){return _=_|0,P(),I=I+1|0,0}function mA(_){return _=_|0,le(),I=I+1|0,0}function CA(_){return _=_|0,ee(),I=I+1|0,0}function xA(_){return _=_|0,$(1)|0?1:(it(n[I+1|0]|0),I=I+2|0,0)}function SA(_){_=_|0;var ae=0,Ae=0,se=1,gr=0,Oo=0,gh=0;return $(2)|0?1:(ae=n[I+1|0]|0,Ae=n[I+2|0]|0,(ae|0)&128&&(se=-1),gr=+(((ae|0)&124)>>2),Oo=+(((ae|0)&3)<<8|Ae),+gr==0?G(+(+se*5960464477539063e-23*+Oo)):+gr==31?+se==1?+Oo>0?Ie():te():+Oo>0?Se():xe():G(+(+se*U(2,+(+gr-25))*+(1024+Oo))),I=I+3|0,0)}function wA(_){return _=_|0,$(4)|0?1:(T(n[I+1|0]|0,n[I+2|0]|0,n[I+3|0]|0,n[I+4|0]|0),I=I+5|0,0)}function vA(_){return _=_|0,$(8)|0?1:(V(n[I+1|0]|0,n[I+2|0]|0,n[I+3|0]|0,n[I+4|0]|0,n[I+5|0]|0,n[I+6|0]|0,n[I+7|0]|0,n[I+8|0]|0),I=I+9|0,0)}function Ce(_){return _=_|0,1}function RA(_){return _=_|0,jt(),I=I+1|0,0}var QA=[E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,R,C,S,F,Ce,Ce,Ce,Ce,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,x,Q,v,N,Ce,Ce,Ce,Ce,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,J,re,Ee,me,Ce,Ce,Ce,oe,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,Qe,vt,Dt,Ht,Ce,Ce,Ce,tt,ie,ie,ie,ie,ie,ie,ie,ie,ie,ie,ie,ie,ie,ie,ie,ie,ie,ie,ie,ie,ie,ie,ie,ie,qe,Ne,be,Fo,Ce,Ce,Ce,To,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,Mo,cA,dA,fA,Ce,Ce,Ce,hA,uo,uo,uo,uo,uo,uo,We,We,We,We,We,We,We,We,We,We,We,We,We,We,We,We,We,We,BA,EA,bA,yA,Ce,Ce,Ce,Ce,Pe,Pe,Pe,Pe,Pe,Pe,Pe,Pe,Pe,Pe,Pe,Pe,Pe,Pe,Pe,Pe,Pe,Pe,Pe,Pe,_A,IA,mA,CA,xA,SA,wA,vA,Ce,Ce,Ce,RA];return{parse:He}}});var Lo=H(ut=>{"use strict";var pn=zo().BigNumber;ut.MT={POS_INT:0,NEG_INT:1,BYTE_STRING:2,UTF8_STRING:3,ARRAY:4,MAP:5,TAG:6,SIMPLE_FLOAT:7};ut.TAG={DATE_STRING:0,DATE_EPOCH:1,POS_BIGINT:2,NEG_BIGINT:3,DECIMAL_FRAC:4,BIGFLOAT:5,BASE64URL_EXPECTED:21,BASE64_EXPECTED:22,BASE16_EXPECTED:23,CBOR:24,URI:32,BASE64URL:33,BASE64:34,REGEXP:35,MIME:36};ut.NUMBYTES={ZERO:0,ONE:24,TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31};ut.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23};ut.SYMS={NULL:Symbol("null"),UNDEFINED:Symbol("undef"),PARENT:Symbol("parent"),BREAK:Symbol("break"),STREAM:Symbol("stream")};ut.SHIFT32=Math.pow(2,32);ut.SHIFT16=Math.pow(2,16);ut.MAX_SAFE_HIGH=2097151;ut.NEG_ONE=new pn(-1);ut.TEN=new pn(10);ut.TWO=new pn(2);ut.PARENT={ARRAY:0,OBJECT:1,MAP:2,TAG:3,BYTE_STRING:4,UTF8_STRING:5}});var Mr=H(bt=>{"use strict";var{Buffer:Ac}=require("buffer"),cg=zo().BigNumber,dg=Lo(),fg=dg.SHIFT32,uc=dg.SHIFT16,lc=2097151;bt.parseHalf=function(o){var r,i,n;return n=o[0]&128?-1:1,r=(o[0]&124)>>2,i=(o[0]&3)<<8|o[1],r?r===31?n*(i?0/0:1/0):n*Math.pow(2,r-25)*(1024+i):n*5960464477539063e-23*i};function cc(t){return t<16?"0"+t.toString(16):t.toString(16)}bt.arrayBufferToBignumber=function(t){let o=t.byteLength,r="";for(let i=0;i<o;i++)r+=cc(t[i]);return new cg(r,16)};bt.buildMap=t=>{let o=new Map,r=Object.keys(t),i=r.length;for(let n=0;n<i;n++)o.set(r[n],t[r[n]]);return o};bt.buildInt32=(t,o)=>t*uc+o;bt.buildInt64=(t,o,r,i)=>{let n=bt.buildInt32(t,o),s=bt.buildInt32(r,i);return n>lc?new cg(n).times(fg).plus(s):n*fg+s};bt.writeHalf=function(o,r){let i=Ac.allocUnsafe(4);i.writeFloatBE(r,0);let n=i.readUInt32BE(0);if((n&8191)!==0)return!1;var s=n>>16&32768;let p=n>>23&255,u=n&8388607;if(p>=113&&p<=142)s+=(p-112<<10)+(u>>13);else if(p>=103&&p<113){if(u&(1<<126-p)-1)return!1;s+=u+8388608>>126-p}else return!1;return o.writeUInt16BE(s,0),!0};bt.keySorter=function(t,o){var r=t[0].byteLength,i=o[0].byteLength;return r>i?1:i>r?-1:t[0].compare(o[0])};bt.isNegativeZero=t=>t===0&&1/t<0;bt.nextPowerOf2=t=>{let o=0;if(t&&!(t&t-1))return t;for(;t!==0;)t>>=1,o+=1;return 1<<o}});var ln=H((d0,hg)=>{"use strict";var An=Lo(),dc=An.MT,Or=An.SIMPLE,un=An.SYMS,Jo=class{constructor(o){if(typeof o!="number")throw new Error("Invalid Simple type: "+typeof o);if(o<0||o>255||(o|0)!==o)throw new Error("value must be a small positive integer: "+o);this.value=o}toString(){return"simple("+this.value+")"}inspect(){return"simple("+this.value+")"}encodeCBOR(o){return o._pushInt(this.value,dc.SIMPLE_FLOAT)}static isSimple(o){return o instanceof Jo}static decode(o,r){switch(r==null&&(r=!0),o){case Or.FALSE:return!1;case Or.TRUE:return!0;case Or.NULL:return r?null:un.NULL;case Or.UNDEFINED:return r?void 0:un.UNDEFINED;case-1:if(!r)throw new Error("Invalid BREAK");return un.BREAK;default:return new Jo(o)}}};hg.exports=Jo});var cn=H((f0,Bg)=>{"use strict";var Ko=class{constructor(o,r,i){if(this.tag=o,this.value=r,this.err=i,typeof this.tag!="number")throw new Error("Invalid tag type ("+typeof this.tag+")");if(this.tag<0||(this.tag|0)!==this.tag)throw new Error("Tag must be a positive integer: "+this.tag)}toString(){return`${this.tag}(${JSON.stringify(this.value)})`}encodeCBOR(o){return o._pushTag(this.tag),o.pushAny(this.value)}convert(o){var r,i;if(i=o!=null?o[this.tag]:void 0,typeof i!="function"&&(i=Ko["_tag"+this.tag],typeof i!="function"))return this;try{return i.call(Ko,this.value)}catch(n){return r=n,this.err=r,this}}};Bg.exports=Ko});var dn=H((h0,yg)=>{"use strict";var{URL:fc,URLSearchParams:hc,format:Bc}=require("url"),Eg="http://localhost",bg=class extends fc{constructor(o="",r=Eg){super(o,r);this.path=this.pathname+this.search,this.auth=this.username&&this.password?this.username+":"+this.password:null,this.query=this.search&&this.search.startsWith("?")?this.search.slice(1):null}format(){return this.toString()}};yg.exports={URLWithLegacySupport:bg,URLSearchParams:hc,format:Bc,defaultBase:Eg}});var mg=H((B0,Ig)=>{"use strict";var{URLWithLegacySupport:_g,format:Ec}=dn();Ig.exports=(t,o={},r={},i)=>{let n=o.protocol?o.protocol.replace(":",""):"http";n=(r[n]||i||n)+":";let s;try{s=new _g(t)}catch{s={}}let p=Object.assign({},o,{protocol:n||s.protocol,host:o.host||s.host});return new _g(t,Ec(p)).toString()}});var fn=H((E0,Cg)=>{"use strict";var{URLWithLegacySupport:bc,format:yc,URLSearchParams:_c,defaultBase:Ic}=dn(),mc=mg();Cg.exports={URL:bc,URLSearchParams:_c,format:yc,relative:mc,defaultBase:Ic}});var hn=H((b0,Sg)=>{"use strict";var{Buffer:Co}=require("buffer"),xg=Gi(),Cc=zo().BigNumber,xc=lg(),rt=Mr(),_e=Lo(),Sc=ln(),wc=cn(),{URL:vc}=fn(),so=class{constructor(o){o=o||{},!o.size||o.size<65536?o.size=65536:o.size=rt.nextPowerOf2(o.size),this._heap=new ArrayBuffer(o.size),this._heap8=new Uint8Array(this._heap),this._buffer=Co.from(this._heap),this._reset(),this._knownTags=Object.assign({0:r=>new Date(r),1:r=>new Date(r*1e3),2:r=>rt.arrayBufferToBignumber(r),3:r=>_e.NEG_ONE.minus(rt.arrayBufferToBignumber(r)),4:r=>_e.TEN.pow(r[0]).times(r[1]),5:r=>_e.TWO.pow(r[0]).times(r[1]),32:r=>new vc(r),35:r=>new RegExp(r)},o.tags),this.parser=xc(global,{log:console.log.bind(console),pushInt:this.pushInt.bind(this),pushInt32:this.pushInt32.bind(this),pushInt32Neg:this.pushInt32Neg.bind(this),pushInt64:this.pushInt64.bind(this),pushInt64Neg:this.pushInt64Neg.bind(this),pushFloat:this.pushFloat.bind(this),pushFloatSingle:this.pushFloatSingle.bind(this),pushFloatDouble:this.pushFloatDouble.bind(this),pushTrue:this.pushTrue.bind(this),pushFalse:this.pushFalse.bind(this),pushUndefined:this.pushUndefined.bind(this),pushNull:this.pushNull.bind(this),pushInfinity:this.pushInfinity.bind(this),pushInfinityNeg:this.pushInfinityNeg.bind(this),pushNaN:this.pushNaN.bind(this),pushNaNNeg:this.pushNaNNeg.bind(this),pushArrayStart:this.pushArrayStart.bind(this),pushArrayStartFixed:this.pushArrayStartFixed.bind(this),pushArrayStartFixed32:this.pushArrayStartFixed32.bind(this),pushArrayStartFixed64:this.pushArrayStartFixed64.bind(this),pushObjectStart:this.pushObjectStart.bind(this),pushObjectStartFixed:this.pushObjectStartFixed.bind(this),pushObjectStartFixed32:this.pushObjectStartFixed32.bind(this),pushObjectStartFixed64:this.pushObjectStartFixed64.bind(this),pushByteString:this.pushByteString.bind(this),pushByteStringStart:this.pushByteStringStart.bind(this),pushUtf8String:this.pushUtf8String.bind(this),pushUtf8StringStart:this.pushUtf8StringStart.bind(this),pushSimpleUnassigned:this.pushSimpleUnassigned.bind(this),pushTagUnassigned:this.pushTagUnassigned.bind(this),pushTagStart:this.pushTagStart.bind(this),pushTagStart4:this.pushTagStart4.bind(this),pushTagStart8:this.pushTagStart8.bind(this),pushBreak:this.pushBreak.bind(this)},this._heap)}get _depth(){return this._parents.length}get _currentParent(){return this._parents[this._depth-1]}get _ref(){return this._currentParent.ref}_closeParent(){var o=this._parents.pop();if(o.length>0)throw new Error(`Missing ${o.length} elements`);switch(o.type){case _e.PARENT.TAG:this._push(this.createTag(o.ref[0],o.ref[1]));break;case _e.PARENT.BYTE_STRING:this._push(this.createByteString(o.ref,o.length));break;case _e.PARENT.UTF8_STRING:this._push(this.createUtf8String(o.ref,o.length));break;case _e.PARENT.MAP:if(o.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createMap(o.ref,o.length));break;case _e.PARENT.OBJECT:if(o.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createObject(o.ref,o.length));break;case _e.PARENT.ARRAY:this._push(this.createArray(o.ref,o.length));break;default:break}this._currentParent&&this._currentParent.type===_e.PARENT.TAG&&this._dec()}_dec(){let o=this._currentParent;o.length<0||(o.length--,o.length===0&&this._closeParent())}_push(o,r){let i=this._currentParent;switch(i.values++,i.type){case _e.PARENT.ARRAY:case _e.PARENT.BYTE_STRING:case _e.PARENT.UTF8_STRING:i.length>-1?this._ref[this._ref.length-i.length]=o:this._ref.push(o),this._dec();break;case _e.PARENT.OBJECT:i.tmpKey!=null?(this._ref[i.tmpKey]=o,i.tmpKey=null,this._dec()):(i.tmpKey=o,typeof i.tmpKey!="string"&&(i.type=_e.PARENT.MAP,i.ref=rt.buildMap(i.ref)));break;case _e.PARENT.MAP:i.tmpKey!=null?(this._ref.set(i.tmpKey,o),i.tmpKey=null,this._dec()):i.tmpKey=o;break;case _e.PARENT.TAG:this._ref.push(o),r||this._dec();break;default:throw new Error("Unknown parent type")}}_createParent(o,r,i){this._parents[this._depth]={type:r,length:i,ref:o,values:0,tmpKey:null}}_reset(){this._res=[],this._parents=[{type:_e.PARENT.ARRAY,length:-1,ref:this._res,values:0,tmpKey:null}]}createTag(o,r){let i=this._knownTags[o];return i?i(r):new wc(o,r)}createMap(o,r){return o}createObject(o,r){return o}createArray(o,r){return o}createByteString(o,r){return Co.concat(o)}createByteStringFromHeap(o,r){return o===r?Co.alloc(0):Co.from(this._heap.slice(o,r))}createInt(o){return o}createInt32(o,r){return rt.buildInt32(o,r)}createInt64(o,r,i,n){return rt.buildInt64(o,r,i,n)}createFloat(o){return o}createFloatSingle(o,r,i,n){return xg.read([o,r,i,n],0,!1,23,4)}createFloatDouble(o,r,i,n,s,p,u,h){return xg.read([o,r,i,n,s,p,u,h],0,!1,52,8)}createInt32Neg(o,r){return-1-rt.buildInt32(o,r)}createInt64Neg(o,r,i,n){let s=rt.buildInt32(o,r),p=rt.buildInt32(i,n);return s>_e.MAX_SAFE_HIGH?_e.NEG_ONE.minus(new Cc(s).times(_e.SHIFT32).plus(p)):-1-(s*_e.SHIFT32+p)}createTrue(){return!0}createFalse(){return!1}createNull(){return null}createUndefined(){}createInfinity(){return 1/0}createInfinityNeg(){return-1/0}createNaN(){return NaN}createNaNNeg(){return NaN}createUtf8String(o,r){return o.join("")}createUtf8StringFromHeap(o,r){return o===r?"":this._buffer.toString("utf8",o,r)}createSimpleUnassigned(o){return new Sc(o)}pushInt(o){this._push(this.createInt(o))}pushInt32(o,r){this._push(this.createInt32(o,r))}pushInt64(o,r,i,n){this._push(this.createInt64(o,r,i,n))}pushFloat(o){this._push(this.createFloat(o))}pushFloatSingle(o,r,i,n){this._push(this.createFloatSingle(o,r,i,n))}pushFloatDouble(o,r,i,n,s,p,u,h){this._push(this.createFloatDouble(o,r,i,n,s,p,u,h))}pushInt32Neg(o,r){this._push(this.createInt32Neg(o,r))}pushInt64Neg(o,r,i,n){this._push(this.createInt64Neg(o,r,i,n))}pushTrue(){this._push(this.createTrue())}pushFalse(){this._push(this.createFalse())}pushNull(){this._push(this.createNull())}pushUndefined(){this._push(this.createUndefined())}pushInfinity(){this._push(this.createInfinity())}pushInfinityNeg(){this._push(this.createInfinityNeg())}pushNaN(){this._push(this.createNaN())}pushNaNNeg(){this._push(this.createNaNNeg())}pushArrayStart(){this._createParent([],_e.PARENT.ARRAY,-1)}pushArrayStartFixed(o){this._createArrayStartFixed(o)}pushArrayStartFixed32(o,r){let i=rt.buildInt32(o,r);this._createArrayStartFixed(i)}pushArrayStartFixed64(o,r,i,n){let s=rt.buildInt64(o,r,i,n);this._createArrayStartFixed(s)}pushObjectStart(){this._createObjectStartFixed(-1)}pushObjectStartFixed(o){this._createObjectStartFixed(o)}pushObjectStartFixed32(o,r){let i=rt.buildInt32(o,r);this._createObjectStartFixed(i)}pushObjectStartFixed64(o,r,i,n){let s=rt.buildInt64(o,r,i,n);this._createObjectStartFixed(s)}pushByteStringStart(){this._parents[this._depth]={type:_e.PARENT.BYTE_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushByteString(o,r){this._push(this.createByteStringFromHeap(o,r))}pushUtf8StringStart(){this._parents[this._depth]={type:_e.PARENT.UTF8_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushUtf8String(o,r){this._push(this.createUtf8StringFromHeap(o,r))}pushSimpleUnassigned(o){this._push(this.createSimpleUnassigned(o))}pushTagStart(o){this._parents[this._depth]={type:_e.PARENT.TAG,length:1,ref:[o]}}pushTagStart4(o,r){this.pushTagStart(rt.buildInt32(o,r))}pushTagStart8(o,r,i,n){this.pushTagStart(rt.buildInt64(o,r,i,n))}pushTagUnassigned(o){this._push(this.createTag(o))}pushBreak(){if(this._currentParent.length>-1)throw new Error("Unexpected break");this._closeParent()}_createObjectStartFixed(o){if(o===0){this._push(this.createObject({}));return}this._createParent({},_e.PARENT.OBJECT,o)}_createArrayStartFixed(o){if(o===0){this._push(this.createArray([]));return}this._createParent(new Array(o),_e.PARENT.ARRAY,o)}_decode(o){if(o.byteLength===0)throw new Error("Input too short");this._reset(),this._heap8.set(o);let r=this.parser.parse(o.byteLength);if(this._depth>1){for(;this._currentParent.length===0;)this._closeParent();if(this._depth>1)throw new Error("Undeterminated nesting")}if(r>0)throw new Error("Failed to parse");if(this._res.length===0)throw new Error("No valid result")}decodeFirst(o){return this._decode(o),this._res[0]}decodeAll(o){return this._decode(o),this._res}static decode(o,r){return typeof o=="string"&&(o=Co.from(o,r||"hex")),new so({size:o.length}).decodeFirst(o)}static decodeAll(o,r){return typeof o=="string"&&(o=Co.from(o,r||"hex")),new so({size:o.length}).decodeAll(o)}};so.decodeFirst=so.decode;Sg.exports=so});var Rg=H((y0,vg)=>{"use strict";var{Buffer:Bn}=require("buffer"),Rc=hn(),Qc=Mr(),Nr=class extends Rc{createTag(o,r){return`${o}(${r})`}createInt(o){return super.createInt(o).toString()}createInt32(o,r){return super.createInt32(o,r).toString()}createInt64(o,r,i,n){return super.createInt64(o,r,i,n).toString()}createInt32Neg(o,r){return super.createInt32Neg(o,r).toString()}createInt64Neg(o,r,i,n){return super.createInt64Neg(o,r,i,n).toString()}createTrue(){return"true"}createFalse(){return"false"}createFloat(o){let r=super.createFloat(o);return Qc.isNegativeZero(o)?"-0_1":`${r}_1`}createFloatSingle(o,r,i,n){return`${super.createFloatSingle(o,r,i,n)}_2`}createFloatDouble(o,r,i,n,s,p,u,h){return`${super.createFloatDouble(o,r,i,n,s,p,u,h)}_3`}createByteString(o,r){let i=o.join(", ");return r===-1?`(_ ${i})`:`h'${i}`}createByteStringFromHeap(o,r){return`h'${Bn.from(super.createByteStringFromHeap(o,r)).toString("hex")}'`}createInfinity(){return"Infinity_1"}createInfinityNeg(){return"-Infinity_1"}createNaN(){return"NaN_1"}createNaNNeg(){return"-NaN_1"}createNull(){return"null"}createUndefined(){return"undefined"}createSimpleUnassigned(o){return`simple(${o})`}createArray(o,r){let i=super.createArray(o,r);return r===-1?`[_ ${i.join(", ")}]`:`[${i.join(", ")}]`}createMap(o,r){let i=super.createMap(o),n=Array.from(i.keys()).reduce(wg(i),"");return r===-1?`{_ ${n}}`:`{${n}}`}createObject(o,r){let i=super.createObject(o),n=Object.keys(i).reduce(wg(i),"");return r===-1?`{_ ${n}}`:`{${n}}`}createUtf8String(o,r){let i=o.join(", ");return r===-1?`(_ ${i})`:`"${i}"`}createUtf8StringFromHeap(o,r){return`"${Bn.from(super.createUtf8StringFromHeap(o,r)).toString("utf8")}"`}static diagnose(o,r){return typeof o=="string"&&(o=Bn.from(o,r||"hex")),new Nr().decodeFirst(o)}};vg.exports=Nr;function wg(t){return(o,r)=>o?`${o}, ${r}: ${t[r]}`:`${r}: ${t[r]}`}});var Og=H((_0,Mg)=>{"use strict";var{Buffer:Mt}=require("buffer"),{URL:Fc}=fn(),En=zo().BigNumber,bn=Mr(),je=Lo(),mt=je.MT,Gr=je.NUMBYTES,Qg=je.SHIFT32,Fg=je.SYMS,xo=je.TAG,Tc=je.MT.SIMPLE_FLOAT<<5|je.NUMBYTES.TWO,Mc=je.MT.SIMPLE_FLOAT<<5|je.NUMBYTES.FOUR,Oc=je.MT.SIMPLE_FLOAT<<5|je.NUMBYTES.EIGHT,Nc=je.MT.SIMPLE_FLOAT<<5|je.SIMPLE.TRUE,Gc=je.MT.SIMPLE_FLOAT<<5|je.SIMPLE.FALSE,Pc=je.MT.SIMPLE_FLOAT<<5|je.SIMPLE.UNDEFINED,Tg=je.MT.SIMPLE_FLOAT<<5|je.SIMPLE.NULL,kc=new En("0x20000000000000"),Uc=Mt.from("f97e00","hex"),jc=Mt.from("f9fc00","hex"),Dc=Mt.from("f97c00","hex");function Hc(t){return{}.toString.call(t).slice(8,-1)}var Zo=class{constructor(o){o=o||{},this.streaming=typeof o.stream=="function",this.onData=o.stream,this.semanticTypes=[[Fc,this._pushUrl],[En,this._pushBigNumber]];let r=o.genTypes||[],i=r.length;for(let n=0;n<i;n++)this.addSemanticType(r[n][0],r[n][1]);this._reset()}addSemanticType(o,r){let i=this.semanticTypes.length;for(let n=0;n<i;n++)if(this.semanticTypes[n][0]===o){let p=this.semanticTypes[n][1];return this.semanticTypes[n][1]=r,p}return this.semanticTypes.push([o,r]),null}push(o){return o&&(this.result[this.offset]=o,this.resultMethod[this.offset]=0,this.resultLength[this.offset]=o.length,this.offset++,this.streaming&&this.onData(this.finalize())),!0}pushWrite(o,r,i){return this.result[this.offset]=o,this.resultMethod[this.offset]=r,this.resultLength[this.offset]=i,this.offset++,this.streaming&&this.onData(this.finalize()),!0}_pushUInt8(o){return this.pushWrite(o,1,1)}_pushUInt16BE(o){return this.pushWrite(o,2,2)}_pushUInt32BE(o){return this.pushWrite(o,3,4)}_pushDoubleBE(o){return this.pushWrite(o,4,8)}_pushNaN(){return this.push(Uc)}_pushInfinity(o){let r=o<0?jc:Dc;return this.push(r)}_pushFloat(o){let r=Mt.allocUnsafe(2);if(bn.writeHalf(r,o)&&bn.parseHalf(r)===o)return this._pushUInt8(Tc)&&this.push(r);let i=Mt.allocUnsafe(4);return i.writeFloatBE(o,0),i.readFloatBE(0)===o?this._pushUInt8(Mc)&&this.push(i):this._pushUInt8(Oc)&&this._pushDoubleBE(o)}_pushInt(o,r,i){let n=r<<5;return o<24?this._pushUInt8(n|o):o<=255?this._pushUInt8(n|Gr.ONE)&&this._pushUInt8(o):o<=65535?this._pushUInt8(n|Gr.TWO)&&this._pushUInt16BE(o):o<=4294967295?this._pushUInt8(n|Gr.FOUR)&&this._pushUInt32BE(o):o<=Number.MAX_SAFE_INTEGER?this._pushUInt8(n|Gr.EIGHT)&&this._pushUInt32BE(Math.floor(o/Qg))&&this._pushUInt32BE(o%Qg):r===mt.NEG_INT?this._pushFloat(i):this._pushFloat(o)}_pushIntNum(o){return o<0?this._pushInt(-o-1,mt.NEG_INT,o):this._pushInt(o,mt.POS_INT)}_pushNumber(o){switch(!1){case o===o:return this._pushNaN(o);case isFinite(o):return this._pushInfinity(o);case o%1!==0:return this._pushIntNum(o);default:return this._pushFloat(o)}}_pushString(o){let r=Mt.byteLength(o,"utf8");return this._pushInt(r,mt.UTF8_STRING)&&this.pushWrite(o,5,r)}_pushBoolean(o){return this._pushUInt8(o?Nc:Gc)}_pushUndefined(o){return this._pushUInt8(Pc)}_pushArray(o,r){let i=r.length;if(!o._pushInt(i,mt.ARRAY))return!1;for(let n=0;n<i;n++)if(!o.pushAny(r[n]))return!1;return!0}_pushTag(o){return this._pushInt(o,mt.TAG)}_pushDate(o,r){return o._pushTag(xo.DATE_EPOCH)&&o.pushAny(Math.round(r/1e3))}_pushBuffer(o,r){return o._pushInt(r.length,mt.BYTE_STRING)&&o.push(r)}_pushNoFilter(o,r){return o._pushBuffer(o,r.slice())}_pushRegexp(o,r){return o._pushTag(xo.REGEXP)&&o.pushAny(r.source)}_pushSet(o,r){if(!o._pushInt(r.size,mt.ARRAY))return!1;for(let i of r)if(!o.pushAny(i))return!1;return!0}_pushUrl(o,r){return o._pushTag(xo.URI)&&o.pushAny(r.format())}_pushBigint(o){let r=xo.POS_BIGINT;o.isNegative()&&(o=o.negated().minus(1),r=xo.NEG_BIGINT);let i=o.toString(16);i.length%2&&(i="0"+i);let n=Mt.from(i,"hex");return this._pushTag(r)&&this._pushBuffer(this,n)}_pushBigNumber(o,r){if(r.isNaN())return o._pushNaN();if(!r.isFinite())return o._pushInfinity(r.isNegative()?-1/0:1/0);if(r.isInteger())return o._pushBigint(r);if(!(o._pushTag(xo.DECIMAL_FRAC)&&o._pushInt(2,mt.ARRAY)))return!1;let i=r.decimalPlaces(),n=r.multipliedBy(new En(10).pow(i));return o._pushIntNum(-i)?n.abs().isLessThan(kc)?o._pushIntNum(n.toNumber()):o._pushBigint(n):!1}_pushMap(o,r){return o._pushInt(r.size,mt.MAP)?this._pushRawMap(r.size,Array.from(r)):!1}_pushObject(o){if(!o)return this._pushUInt8(Tg);for(var r=this.semanticTypes.length,i=0;i<r;i++)if(o instanceof this.semanticTypes[i][0])return this.semanticTypes[i][1].call(o,this,o);var n=o.encodeCBOR;if(typeof n=="function")return n.call(o,this);var s=Object.keys(o),p=s.length;return this._pushInt(p,mt.MAP)?this._pushRawMap(p,s.map(u=>[u,o[u]])):!1}_pushRawMap(o,r){r=r.map(function(n){return n[0]=Zo.encode(n[0]),n}).sort(bn.keySorter);for(var i=0;i<o;i++)if(!this.push(r[i][0])||!this.pushAny(r[i][1]))return!1;return!0}write(o){return this.pushAny(o)}pushAny(o){var r=Hc(o);switch(r){case"Number":return this._pushNumber(o);case"String":return this._pushString(o);case"Boolean":return this._pushBoolean(o);case"Object":return this._pushObject(o);case"Array":return this._pushArray(this,o);case"Uint8Array":return this._pushBuffer(this,Mt.isBuffer(o)?o:Mt.from(o));case"Null":return this._pushUInt8(Tg);case"Undefined":return this._pushUndefined(o);case"Map":return this._pushMap(this,o);case"Set":return this._pushSet(this,o);case"URL":return this._pushUrl(this,o);case"BigNumber":return this._pushBigNumber(this,o);case"Date":return this._pushDate(this,o);case"RegExp":return this._pushRegexp(this,o);case"Symbol":switch(o){case Fg.NULL:return this._pushObject(null);case Fg.UNDEFINED:return this._pushUndefined(void 0);default:throw new Error("Unknown symbol: "+o.toString())}default:throw new Error("Unknown type: "+typeof o+", "+(o?o.toString():""))}}finalize(){if(this.offset===0)return null;for(var o=this.result,r=this.resultLength,i=this.resultMethod,n=this.offset,s=0,p=0;p<n;p++)s+=r[p];var u=Mt.allocUnsafe(s),h=0,w=0;for(p=0;p<n;p++){switch(w=r[p],i[p]){case 0:o[p].copy(u,h);break;case 1:u.writeUInt8(o[p],h,!0);break;case 2:u.writeUInt16BE(o[p],h,!0);break;case 3:u.writeUInt32BE(o[p],h,!0);break;case 4:u.writeDoubleBE(o[p],h,!0);break;case 5:u.write(o[p],h,w,"utf8");break;default:throw new Error("unkown method")}h+=w}var G=u;return this._reset(),G}_reset(){this.result=[],this.resultMethod=[],this.resultLength=[],this.offset=0}static encode(o){let r=new Zo;if(!r.pushAny(o))throw new Error("Failed to encode input");return r.finalize()}};Mg.exports=Zo});var yn=H(De=>{"use strict";De.Diagnose=Rg();De.Decoder=hn();De.Encoder=Og();De.Simple=ln();De.Tagged=cn();De.decodeAll=De.Decoder.decodeAll;De.decodeFirst=De.Decoder.decodeFirst;De.diagnose=De.Diagnose.diagnose;De.encode=De.Encoder.encode;De.decode=De.Decoder.decode;De.leveldb={decode:De.Decoder.decodeAll,encode:De.Encoder.encode,buffer:!0,name:"cbor"}});var Vt=H(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.compare=Ot.fromHex=Ot.toHex=Ot.concat=void 0;function qc(...t){let o=new Uint8Array(t.reduce((i,n)=>i+n.byteLength,0)),r=0;for(let i of t)o.set(new Uint8Array(i),r),r+=i.byteLength;return o.buffer}Ot.concat=qc;function Wc(t){return[...new Uint8Array(t)].map(o=>o.toString(16).padStart(2,"0")).join("")}Ot.toHex=Wc;var Vc=/^([0-9A-F]{2})*$/i.compile();function Yc(t){if(!Vc.test(t))throw new Error("Invalid hexadecimal string.");let o=[...t].reduce((r,i,n)=>(r[n/2|0]=(r[n/2|0]||"")+i,r),[]).map(r=>Number.parseInt(r,16));return new Uint8Array(o).buffer}Ot.fromHex=Yc;function zc(t,o){if(t.byteLength!==o.byteLength)return t.byteLength-o.byteLength;let r=new Uint8Array(t),i=new Uint8Array(o);for(let n=0;n<r.length;n++)if(r[n]!==i[n])return r[n]-i[n];return 0}Ot.compare=zc});var $o=H(Nt=>{"use strict";var Lc=Nt&&Nt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.requestIdOf=Nt.hashValue=Nt.hash=void 0;var Ng=mo(),Jc=Lc(yn()),Kc=No(),Pr=Vt();function Kt(t){return Kc.sha256.create().update(new Uint8Array(t)).arrayBuffer()}Nt.hash=Kt;function Xo(t){if(t instanceof Jc.default.Tagged)return Xo(t.value);if(typeof t=="string")return Gg(t);if(typeof t=="number")return Kt(Ng.lebEncode(t));if(t instanceof ArrayBuffer||ArrayBuffer.isView(t))return Kt(t);if(Array.isArray(t)){let o=t.map(Xo);return Kt(Pr.concat(...o))}else{if(t&&typeof t=="object"&&t._isPrincipal)return Kt(t.toUint8Array());if(typeof t=="object"&&t!==null&&typeof t.toHash=="function")return Xo(t.toHash());if(typeof t=="bigint")return Kt(Ng.lebEncode(t))}throw Object.assign(new Error(`Attempt to hash a value of unsupported type: ${t}`),{value:t})}Nt.hashValue=Xo;var Gg=t=>{let o=new TextEncoder().encode(t);return Kt(o)};function Zc(t){let i=Object.entries(t).filter(([,p])=>p!==void 0).map(([p,u])=>{let h=Gg(p),w=Xo(u);return[h,w]}).sort(([p],[u])=>Pr.compare(p,u)),n=Pr.concat(...i.map(p=>Pr.concat(...p)));return Kt(n)}Nt.requestIdOf=Zc});var _n=H(Gt=>{"use strict";var Xc=Gt&&Gt.__rest||function(t,o){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&o.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(t);n<i.length;n++)o.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]]);return r};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.createIdentityDescriptor=Gt.AnonymousIdentity=Gt.SignIdentity=void 0;var Pg=Ft(),$c=$o(),kg=Vt(),ed=new TextEncoder().encode(`
|
|
14
|
+
ic-request`),Ug=class{getPrincipal(){return this._principal||(this._principal=Pg.Principal.selfAuthenticating(new Uint8Array(this.getPublicKey().toDer()))),this._principal}async transformRequest(o){let{body:r}=o,i=Xc(o,["body"]),n=await $c.requestIdOf(r);return Object.assign(Object.assign({},i),{body:{content:r,sender_pubkey:this.getPublicKey().toDer(),sender_sig:await this.sign(kg.concat(ed,n))}})}};Gt.SignIdentity=Ug;var jg=class{getPrincipal(){return Pg.Principal.anonymous()}async transformRequest(o){return Object.assign(Object.assign({},o),{body:{content:o.body}})}};Gt.AnonymousIdentity=jg;function td(t){return"getPublicKey"in t?{type:"PublicKeyIdentity",publicKey:kg.toHex(t.getPublicKey().toDer())}:{type:"AnonymousIdentity"}}Gt.createIdentityDescriptor=td});var Cn=H(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});var od=9007199254740992;function Yt(t,...o){let r=new Uint8Array(t.byteLength+o.reduce((n,s)=>n+s.byteLength,0));r.set(new Uint8Array(t),0);let i=t.byteLength;for(let n of o)r.set(new Uint8Array(n),i),i+=n.byteLength;return r.buffer}function Ct(t,o,r){r=r.replace(/[^0-9a-fA-F]/g,"");let i=2**(o-24);r=r.slice(-i*2).padStart(i*2,"0");let n=[(t<<5)+o].concat(r.match(/../g).map(s=>parseInt(s,16)));return new Uint8Array(n).buffer}function kr(t,o){if(o<24)return new Uint8Array([(t<<5)+o]).buffer;{let r=o<=255?24:o<=65535?25:o<=4294967295?26:27;return Ct(t,r,o.toString(16))}}function Dg(t){let o=[];for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i<128?o.push(i):i<2048?o.push(192|i>>6,128|i&63):i<55296||i>=57344?o.push(224|i>>12,128|i>>6&63,128|i&63):(r++,i=(i&1023)<<10|t.charCodeAt(r)&1023,o.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|i&63))}return Yt(new Uint8Array(kr(3,t.length)),new Uint8Array(o))}function rd(t,o){if(t==14277111)return Yt(new Uint8Array([217,217,247]),o);if(t<24)return Yt(new Uint8Array([(6<<5)+t]),o);{let r=t<=255?24:t<=65535?25:t<=4294967295?26:27,i=2**(r-24),n=t.toString(16).slice(-i*2).padStart(i*2,"0"),s=[(6<<5)+r].concat(n.match(/../g).map(p=>parseInt(p,16)));return new Uint8Array(s).buffer}}we.tagged=rd;function er(t){return new Uint8Array(t).buffer}we.raw=er;function In(t){if(isNaN(t))throw new RangeError("Invalid number.");t=Math.min(Math.max(0,t),23);let o=[(0<<5)+t];return new Uint8Array(o).buffer}we.uSmall=In;function Hg(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,t),255),t=t.toString(16),Ct(0,24,t)}we.u8=Hg;function qg(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,t),65535),t=t.toString(16),Ct(0,25,t)}we.u16=qg;function Wg(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,t),4294967295),t=t.toString(16),Ct(0,26,t)}we.u32=Wg;function mn(t,o){if(typeof t=="string"&&o==16){if(t.match(/[^0-9a-fA-F]/))throw new RangeError("Invalid number.");return Ct(0,27,t)}if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,t),od),t=t.toString(16),Ct(0,27,t)}we.u64=mn;function Vg(t){if(isNaN(t))throw new RangeError("Invalid number.");if(t===0)return In(0);t=Math.min(Math.max(0,-t),24)-1;let o=[(1<<5)+t];return new Uint8Array(o).buffer}we.iSmall=Vg;function Yg(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,-t-1),255),t=t.toString(16),Ct(1,24,t)}we.i8=Yg;function zg(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,-t-1),65535),t=t.toString(16),Ct(1,25,t)}we.i16=zg;function Lg(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,-t-1),4294967295),t=t.toString(16),Ct(1,26,t)}we.i32=Lg;function Jg(t,o){if(typeof t=="string"&&o==16){if(t.startsWith("-")?t=t.slice(1):t="0",t.match(/[^0-9a-fA-F]/)||t.length>16)throw new RangeError("Invalid number.");let r=!1,i=t.split("").reduceRight((n,s)=>{if(r)return s+n;let p=parseInt(s,16)-1;return p>=0?(r=!0,p.toString(16)+n):"f"+n},"");return r?Ct(1,27,i):mn(0)}if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,-t-1),9007199254740992),t=t.toString(16),Ct(1,27,t)}we.i64=Jg;function id(t){return t>=0?t<24?In(t):t<=255?Hg(t):t<=65535?qg(t):t<=4294967295?Wg(t):mn(t):t>=-24?Vg(t):t>=-255?Yg(t):t>=-65535?zg(t):t>=-4294967295?Lg(t):Jg(t)}we.number=id;function nd(t){return Yt(kr(2,t.byteLength),t)}we.bytes=nd;function sd(t){return Dg(t)}we.string=sd;function ad(t){return Yt(kr(4,t.length),...t)}we.array=ad;function gd(t,o=!1){t instanceof Map||(t=new Map(Object.entries(t)));let r=Array.from(t.entries());return o&&(r=r.sort(([i],[n])=>i.localeCompare(n))),Yt(kr(5,t.size),...r.map(([i,n])=>Yt(Dg(i),n)))}we.map=gd;function pd(t){let o=new Float32Array([t]);return Yt(new Uint8Array([(7<<5)+26]),new Uint8Array(o.buffer))}we.singleFloat=pd;function Ad(t){let o=new Float64Array([t]);return Yt(new Uint8Array([(7<<5)+27]),new Uint8Array(o.buffer))}we.doubleFloat=Ad;function ud(t){return t?Kg():Zg()}we.bool=ud;function Kg(){return er(new Uint8Array([(7<<5)+21]))}we.true_=Kg;function Zg(){return er(new Uint8Array([(7<<5)+20]))}we.false_=Zg;function ld(){return er(new Uint8Array([(7<<5)+22]))}we.null_=ld;function cd(){return er(new Uint8Array([(7<<5)+23]))}we.undefined_=cd});var $g=H(Zt=>{"use strict";var dd=Zt&&Zt.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(o[r]=t[r]);return o.default=t,o};Object.defineProperty(Zt,"__esModule",{value:!0});var xt=dd(Cn()),fd=[ArrayBuffer,Uint8Array,Uint16Array,Uint32Array,Int8Array,Int16Array,Int32Array,Float32Array,Float64Array],xn=class{constructor(o,r=!1){this._serializer=o,this._stable=r,this.name="jsonDefault",this.priority=-100}match(o){return["undefined","boolean","number","string","object"].indexOf(typeof o)!=-1}encode(o){switch(typeof o){case"undefined":return xt.undefined_();case"boolean":return xt.bool(o);case"number":return Math.floor(o)===o?xt.number(o):xt.doubleFloat(o);case"string":return xt.string(o);case"object":if(o===null)return xt.null_();if(Array.isArray(o))return xt.array(o.map(r=>this._serializer.serializeValue(r)));if(fd.find(r=>o instanceof r))return xt.bytes(o.buffer);if(Object.getOwnPropertyNames(o).indexOf("toJSON")!==-1)return this.encode(o.toJSON());if(o instanceof Map){let r=new Map;for(let[i,n]of o.entries())r.set(i,this._serializer.serializeValue(n));return xt.map(r,this._stable)}else{let r=new Map;for(let[i,n]of Object.entries(o))r.set(i,this._serializer.serializeValue(n));return xt.map(r,this._stable)}default:throw new Error("Invalid value.")}}};Zt.JsonDefaultCborEncoder=xn;var Sn=class{constructor(){this.name="cborEncoder",this.priority=-90}match(o){return typeof o=="object"&&typeof o.toCBOR=="function"}encode(o){return o.toCBOR()}};Zt.ToCborEncoder=Sn;var wn=class{constructor(){this._encoders=new Set}static withDefaultEncoders(o=!1){let r=new this;return r.addEncoder(new xn(r,o)),r.addEncoder(new Sn),r}removeEncoder(o){for(let r of this._encoders.values())r.name==o&&this._encoders.delete(r)}addEncoder(o){this._encoders.add(o)}getEncoderFor(o){let r=null;for(let i of this._encoders)(!r||i.priority>r.priority)&&i.match(o)&&(r=i);if(r===null)throw new Error("Could not find an encoder for value.");return r}serializeValue(o){return this.getEncoderFor(o).encode(o)}serialize(o){return this.serializeValue(o)}};Zt.CborSerializer=wn;var Xg=class extends wn{serialize(o){return xt.raw(new Uint8Array([...new Uint8Array([217,217,247]),...new Uint8Array(super.serializeValue(o))]))}};Zt.SelfDescribeCborSerializer=Xg});var Ur=H(ao=>{"use strict";function hd(t){for(var o in t)ao.hasOwnProperty(o)||(ao[o]=t[o])}var Bd=ao&&ao.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(o[r]=t[r]);return o.default=t,o};Object.defineProperty(ao,"__esModule",{value:!0});hd($g());var Ed=Bd(Cn());ao.value=Ed});var Dr=H(Ze=>{"use strict";var bd=Ze&&Ze.__createBinding||(Object.create?function(t,o,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,i){i===void 0&&(i=r),t[i]=o[r]}),yd=Ze&&Ze.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),_d=Ze&&Ze.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&bd(o,t,r);return yd(o,t),o},Id=Ze&&Ze.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.decode=Ze.encode=Ze.CborTag=void 0;var md=Id(yn()),So=_d(Ur()),Cd=Ur(),vn=Vt(),ep=class{get name(){return"Principal"}get priority(){return 0}match(o){return o&&o._isPrincipal===!0}encode(o){return So.value.bytes(o.toUint8Array())}},tp=class{get name(){return"Buffer"}get priority(){return 1}match(o){return o instanceof ArrayBuffer||ArrayBuffer.isView(o)}encode(o){return So.value.bytes(new Uint8Array(o))}},op=class{get name(){return"BigInt"}get priority(){return 1}match(o){return typeof o=="bigint"}encode(o){return o>BigInt(0)?So.value.tagged(2,So.value.bytes(vn.fromHex(o.toString(16)))):So.value.tagged(3,So.value.bytes(vn.fromHex((BigInt("-1")*o).toString(16))))}},jr=Cd.SelfDescribeCborSerializer.withDefaultEncoders(!0);jr.addEncoder(new ep);jr.addEncoder(new tp);jr.addEncoder(new op);var rp;(function(t){t[t.Uint64LittleEndian=71]="Uint64LittleEndian",t[t.Semantic=55799]="Semantic"})(rp=Ze.CborTag||(Ze.CborTag={}));function xd(t){return jr.serialize(t)}Ze.encode=xd;function ip(t){let o=t.byteLength,r=BigInt(0);for(let i=0;i<o;i++)r=r*BigInt(256)+BigInt(t[i]);return r}var np=class extends md.default.Decoder{createByteString(o){return vn.concat(...o)}createByteStringFromHeap(o,r){return o===r?new ArrayBuffer(0):new Uint8Array(this._heap.slice(o,r))}};function Sd(t){let o=new Uint8Array(t);return new np({size:o.byteLength,tags:{2:i=>ip(i),3:i=>-ip(i),[rp.Semantic]:i=>i}}).decodeFirst(o)}Ze.decode=Sd});var tr=H(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.makeNonce=go.SubmitRequestType=void 0;var wd;(function(t){t.Call="call"})(wd=go.SubmitRequestType||(go.SubmitRequestType={}));function vd(){let t=new ArrayBuffer(16),o=new DataView(t),r=BigInt(+Date.now())*BigInt(1e5)+BigInt(Math.floor(Math.random()*1e5));return o.setBigUint64(0,r),o.setBigUint64(1,r>>BigInt(64)),t}go.makeNonce=vd});var Hr=H(st=>{"use strict";var Rd=st&&st.__createBinding||(Object.create?function(t,o,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,i){i===void 0&&(i=r),t[i]=o[r]}),Qd=st&&st.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),Fd=st&&st.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Rd(o,t,r);return Qd(o,t),o};Object.defineProperty(st,"__esModule",{value:!0});st.makeExpiryTransform=st.makeNonceTransform=st.Expiry=void 0;var Td=mo(),Md=Fd(Ur()),Od=tr(),Nd=BigInt(1e6),Gd=BigInt(60*1e3),Rn=class{constructor(o){this._value=(BigInt(Date.now())+BigInt(o)-Gd)*Nd}toCBOR(){return Md.value.u64(this._value.toString(16),16)}toHash(){return Td.lebEncode(this._value)}};st.Expiry=Rn;function Pd(t=Od.makeNonce){return async o=>{o.endpoint==="call"&&(o.body.nonce=t())}}st.makeNonceTransform=Pd;function kd(t){return async o=>{o.body.ingress_expiry=new Rn(t)}}st.makeExpiryTransform=kd});var ap=H(Xe=>{"use strict";var sp=Xe&&Xe.__createBinding||(Object.create?function(t,o,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,i){i===void 0&&(i=r),t[i]=o[r]}),Ud=Xe&&Xe.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),jd=Xe&&Xe.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&sp(o,t,r);return Ud(o,t),o},Dd=Xe&&Xe.__exportStar||function(t,o){for(var r in t)r!=="default"&&!o.hasOwnProperty(r)&&sp(o,t,r)};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.HttpAgent=Xe.RequestStatusResponseStatus=void 0;var po=Ft(),Hd=Ir(),qd=_n(),wo=jd(Dr()),Wd=$o(),Vd=Vt(),Qn=Hr(),Yd=tr();Dd(Hr(),Xe);var zd=tr();Object.defineProperty(Xe,"makeNonce",{enumerable:!0,get:function(){return zd.makeNonce}});var Ld;(function(t){t.Received="received",t.Processing="processing",t.Replied="replied",t.Rejected="rejected",t.Unknown="unknown",t.Done="done"})(Ld=Xe.RequestStatusResponseStatus||(Xe.RequestStatusResponseStatus={}));var Fn=5*60*1e3,Jd="308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100814c0e6ec71fab583b08bd81373c255c3c371b2e84863c98a4f1e08b74235d14fb5d9c0cd546d9685f913a0c0b2cc5341583bf4b4392e467db96d65b9bb4cb717112f8472e0d5a4d14505ffd7484b01291091c5f87b98883463f98091a0baaae",Kd="ic0.app",Zd=".ic0.app",qr=class extends Hd.AgentError{constructor(o){super(o);this.message=o}};function Xd(){let t;if(typeof window!="undefined")if(window.fetch)t=window.fetch.bind(window);else throw new qr("Fetch implementation was not available. You appear to be in a browser context, but window.fetch was not present.");else if(typeof global!="undefined")if(global.fetch)t=global.fetch;else throw new qr("Fetch implementation was not available. You appear to be in a Node.js context, but global.fetch was not available.");else typeof self!="undefined"&&self.fetch&&(t=self.fetch);if(t)return t;throw new qr("Fetch implementation was not available. Please provide fetch to the HttpAgent constructor, or ensure it is available in the window or global context.")}var Wr=class{constructor(o={}){if(this.rootKey=Vd.fromHex(Jd),this._pipeline=[],this._rootKeyFetched=!1,o.source){if(!(o.source instanceof Wr))throw new Error("An Agent's source can only be another HttpAgent");this._pipeline=[...o.source._pipeline],this._identity=o.source._identity,this._fetch=o.source._fetch,this._host=o.source._host,this._credentials=o.source._credentials}else this._fetch=o.fetch||Xd()||fetch.bind(global);if(o.host!==void 0)!o.host.match(/^[a-z]+:/)&&typeof window!="undefined"?this._host=new URL(window.location.protocol+"//"+o.host):this._host=new URL(o.host);else if(o.source!==void 0)this._host=o.source._host;else{let r=typeof window!="undefined"?window.location:void 0;if(!r)throw new Error("Must specify a host to connect to.");this._host=new URL(r+"")}if(this._host.hostname.endsWith(Zd)&&(this._host.hostname=Kd),o.credentials){let{name:r,password:i}=o.credentials;this._credentials=`${r}${i?":"+i:""}`}this._identity=Promise.resolve(o.identity||new qd.AnonymousIdentity)}addTransform(o,r=o.priority||0){let i=this._pipeline.findIndex(n=>(n.priority||0)<r);this._pipeline.splice(i>=0?i:this._pipeline.length,0,Object.assign(o,{priority:r}))}async getPrincipal(){return(await this._identity).getPrincipal()}async call(o,r,i){let n=await(i!==void 0?await i:await this._identity),s=po.Principal.from(o),p=r.effectiveCanisterId?po.Principal.from(r.effectiveCanisterId):s,u=n.getPrincipal()||po.Principal.anonymous(),h={request_type:Yd.SubmitRequestType.Call,canister_id:s,method_name:r.methodName,arg:r.arg,sender:u,ingress_expiry:new Qn.Expiry(Fn)},w=await this._transform({request:{body:null,method:"POST",headers:Object.assign({"Content-Type":"application/cbor"},this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{})},endpoint:"call",body:h});w=await n.transformRequest(w);let G=wo.encode(w.body),[T,V]=await Promise.all([this._fetch(""+new URL(`/api/v2/canister/${p.toText()}/call`,this._host),Object.assign(Object.assign({},w.request),{body:G})),Wd.requestIdOf(h)]);if(!T.ok)throw new Error(`Server returned an error:
|
|
15
15
|
Code: ${T.status} (${T.statusText})
|
|
16
16
|
Body: ${await T.text()}
|
|
17
|
-
`);return{requestId:V,response:{ok:T.ok,status:T.status,statusText:T.statusText}}}async query(o,r,
|
|
17
|
+
`);return{requestId:V,response:{ok:T.ok,status:T.status,statusText:T.statusText}}}async query(o,r,i){let n=await(i!==void 0?await i:await this._identity),s=typeof o=="string"?po.Principal.fromText(o):o,p=(n==null?void 0:n.getPrincipal())||po.Principal.anonymous(),u={request_type:"query",canister_id:s,method_name:r.methodName,arg:r.arg,sender:p,ingress_expiry:new Qn.Expiry(Fn)},h=await this._transform({request:{method:"POST",headers:Object.assign({"Content-Type":"application/cbor"},this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{})},endpoint:"read",body:u});h=await n.transformRequest(h);let w=wo.encode(h.body),G=await this._fetch(""+new URL(`/api/v2/canister/${s.toText()}/query`,this._host),Object.assign(Object.assign({},h.request),{body:w}));if(!G.ok)throw new Error(`Server returned an error:
|
|
18
18
|
Code: ${G.status} (${G.statusText})
|
|
19
19
|
Body: ${await G.text()}
|
|
20
|
-
`);return wo.decode(await G.arrayBuffer())}async readState(o,r,
|
|
20
|
+
`);return wo.decode(await G.arrayBuffer())}async readState(o,r,i){let n=typeof o=="string"?po.Principal.fromText(o):o,s=await(i!==void 0?await i:await this._identity),p=(s==null?void 0:s.getPrincipal())||po.Principal.anonymous(),u=await this._transform({request:{method:"POST",headers:Object.assign({"Content-Type":"application/cbor"},this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{})},endpoint:"read_state",body:{request_type:"read_state",paths:r.paths,sender:p,ingress_expiry:new Qn.Expiry(Fn)}});u=await s.transformRequest(u);let h=wo.encode(u.body),w=await this._fetch(""+new URL(`/api/v2/canister/${n}/read_state`,this._host),Object.assign(Object.assign({},u.request),{body:h}));if(!w.ok)throw new Error(`Server returned an error:
|
|
21
21
|
Code: ${w.status} (${w.statusText})
|
|
22
22
|
Body: ${await w.text()}
|
|
23
23
|
`);return wo.decode(await w.arrayBuffer())}async status(){let o=this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{},r=await this._fetch(""+new URL("/api/v2/status",this._host),{headers:o});if(!r.ok)throw new Error(`Server returned an error:
|
|
24
24
|
Code: ${r.status} (${r.statusText})
|
|
25
25
|
Body: ${await r.text()}
|
|
26
|
-
`);return wo.decode(await r.arrayBuffer())}async fetchRootKey(){return this._rootKeyFetched||(this.rootKey=(await this.status()).root_key,this._rootKeyFetched=!0),this.rootKey}_transform(o){let r=Promise.resolve(o);for(let
|
|
26
|
+
`);return wo.decode(await r.arrayBuffer())}async fetchRootKey(){return this._rootKeyFetched||(this.rootKey=(await this.status()).root_key,this._rootKeyFetched=!0),this.rootKey}_transform(o){let r=Promise.resolve(o);for(let i of this._pipeline)r=r.then(n=>i(n).then(s=>s||n));return r}};Xe.HttpAgent=Wr});var Ap=H(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.ProxyAgent=zt.ProxyStubAgent=zt.ProxyMessageKind=void 0;var $d=Ft(),Te;(function(t){t.Error="err",t.GetPrincipal="gp",t.GetPrincipalResponse="gpr",t.Query="q",t.QueryResponse="qr",t.Call="c",t.CallResponse="cr",t.ReadState="rs",t.ReadStateResponse="rsr",t.Status="s",t.StatusResponse="sr"})(Te=zt.ProxyMessageKind||(zt.ProxyMessageKind={}));var gp=class{constructor(o,r){this._frontend=o,this._agent=r}onmessage(o){switch(o.type){case Te.GetPrincipal:this._agent.getPrincipal().then(r=>{this._frontend({id:o.id,type:Te.GetPrincipalResponse,response:r.toText()})});break;case Te.Query:this._agent.query(...o.args).then(r=>{this._frontend({id:o.id,type:Te.QueryResponse,response:r})});break;case Te.Call:this._agent.call(...o.args).then(r=>{this._frontend({id:o.id,type:Te.CallResponse,response:r})});break;case Te.ReadState:this._agent.readState(...o.args).then(r=>{this._frontend({id:o.id,type:Te.ReadStateResponse,response:r})});break;case Te.Status:this._agent.status().then(r=>{this._frontend({id:o.id,type:Te.StatusResponse,response:r})});break;default:throw new Error(`Invalid message received: ${JSON.stringify(o)}`)}}};zt.ProxyStubAgent=gp;var pp=class{constructor(o){this._backend=o,this._nextId=0,this._pendingCalls=new Map,this.rootKey=null}onmessage(o){let r=o.id,i=this._pendingCalls.get(r);if(!i)throw new Error("A proxy get the same message twice...");this._pendingCalls.delete(r);let[n,s]=i;switch(o.type){case Te.Error:return s(o.error);case Te.GetPrincipalResponse:case Te.CallResponse:case Te.QueryResponse:case Te.ReadStateResponse:case Te.StatusResponse:return n(o.response);default:throw new Error(`Invalid message being sent to ProxyAgent: ${JSON.stringify(o)}`)}}async getPrincipal(){return this._sendAndWait({id:this._nextId++,type:Te.GetPrincipal}).then(o=>{if(typeof o!="string")throw new Error("Invalid principal received.");return $d.Principal.fromText(o)})}readState(o,r){return this._sendAndWait({id:this._nextId++,type:Te.ReadState,args:[o.toString(),r]})}call(o,r){return this._sendAndWait({id:this._nextId++,type:Te.Call,args:[o.toString(),r]})}status(){return this._sendAndWait({id:this._nextId++,type:Te.Status})}query(o,r){return this._sendAndWait({id:this._nextId++,type:Te.Query,args:[o.toString(),r]})}async _sendAndWait(o){return new Promise((r,i)=>{this._pendingCalls.set(o.id,[r,i]),this._backend(o)})}async fetchRootKey(){let o=(await this.status()).root_key;return this.rootKey=o,o}};zt.ProxyAgent=pp});var or=H(St=>{"use strict";var ef=St&&St.__createBinding||(Object.create?function(t,o,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,i){i===void 0&&(i=r),t[i]=o[r]}),Tn=St&&St.__exportStar||function(t,o){for(var r in t)r!=="default"&&!o.hasOwnProperty(r)&&ef(o,t,r)};Object.defineProperty(St,"__esModule",{value:!0});St.getDefaultAgent=void 0;Tn(Sa(),St);Tn(ap(),St);Tn(Ap(),St);function tf(){let t=typeof window=="undefined"?typeof global=="undefined"?typeof self=="undefined"?void 0:self.ic.agent:global.ic.agent:window.ic.agent;if(!t)throw new Error("No Agent could be found.");return t}St.getDefaultAgent=tf});var up=H(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.default=({IDL:t})=>{let o=t.Principal,r=t.Vec(t.Nat8),i=t.Record({compute_allocation:t.Opt(t.Nat),memory_allocation:t.Opt(t.Nat)});return t.Service({provisional_create_canister_with_cycles:t.Func([t.Record({amount:t.Opt(t.Nat),settings:t.Opt(i)})],[t.Record({canister_id:o})],[]),create_canister:t.Func([],[t.Record({canister_id:o})],[]),install_code:t.Func([t.Record({mode:t.Variant({install:t.Null,reinstall:t.Null,upgrade:t.Null}),canister_id:o,wasm_module:r,arg:t.Vec(t.Nat8)})],[],[]),set_controller:t.Func([t.Record({canister_id:o,new_controller:t.Principal})],[],[])})}});var Nn=H(vo=>{"use strict";var of=vo&&vo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vo,"__esModule",{value:!0});vo.getManagementCanister=void 0;var rf=Vr(),On=Ft(),nf=of(up());function sf(t){function o(r,i,n){let s=i[0],p=On.Principal.fromHex("");return s&&typeof s=="object"&&s.canister_id&&(p=On.Principal.from(s.canister_id)),{effectiveCanisterId:p}}return rf.Actor.createActor(nf.default,Object.assign(Object.assign(Object.assign({},t),{canisterId:On.Principal.fromHex("")}),{callTransform:o,queryTransform:o}))}vo.getManagementCanister=sf});var lp=H(Gn=>{(function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=new Uint8Array(256),r=0;r<t.length;r++)o[t.charCodeAt(r)]=r;Gn.encode=function(i){var n=new Uint8Array(i),s,p=n.length,u="";for(s=0;s<p;s+=3)u+=t[n[s]>>2],u+=t[(n[s]&3)<<4|n[s+1]>>4],u+=t[(n[s+1]&15)<<2|n[s+2]>>6],u+=t[n[s+2]&63];return p%3===2?u=u.substring(0,u.length-1)+"=":p%3===1&&(u=u.substring(0,u.length-2)+"=="),u},Gn.decode=function(i){var n=i.length*.75,s=i.length,p,u=0,h,w,G,T;i[i.length-1]==="="&&(n--,i[i.length-2]==="="&&n--);var V=new ArrayBuffer(n),P=new Uint8Array(V);for(p=0;p<s;p+=4)h=o[i.charCodeAt(p)],w=o[i.charCodeAt(p+1)],G=o[i.charCodeAt(p+2)],T=o[i.charCodeAt(p+3)],P[u++]=h<<2|w>>4,P[u++]=(w&15)<<4|G>>2,P[u++]=(G&3)<<6|T&63;return V}})()});var dp=H(lt=>{"use strict";var af=lt&<.__createBinding||(Object.create?function(t,o,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,i){i===void 0&&(i=r),t[i]=o[r]}),gf=lt&<.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),pf=lt&<.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&af(o,t,r);return gf(o,t),o};Object.defineProperty(lt,"__esModule",{value:!0});lt.bls_verify=lt.bls_init=void 0;var Af=pf(lp()),Lt,uf=`
|
|
27
27
|
AGFzbQEAAAABXg9gAn9/AGABfwBgA39/fwBgAn9/AX9gAX8Bf2ADf39/AX9gBH9/f38AYAV/f39/fwBgBn9/f39/fwF/
|
|
28
28
|
YAAAYAZ/f39/f38AYAV/fn5+fgBgAAF/YAF/AX5gAn9/AX4DvAG6AQgEAAEAAAABAgEDAAAMAAACAQEKAQAHBgEAAQEA
|
|
29
29
|
AgcCAgABAgAGAAgOBAEBBAAAAQALAQkAAwMAAQQBAAICAAIBAQEBAQEGAQACAQEEAAECAQEABQMBAQMEAwQCAwAAAAEA
|
|
@@ -820,37 +820,37 @@ ic-request`),Ug=class{getPrincipal(){return this._principal||(this._principal=Pg
|
|
|
820
820
|
EACwEBAEHItMEACwEBAEGItcEACwEBAEHItcEACwEBAHsJcHJvZHVjZXJzAghsYW5ndWFnZQEEUnVzdAAMcHJvY2Vzc2V
|
|
821
821
|
kLWJ5AwVydXN0Yx0xLjQ5LjAgKGUxODg0YThlMyAyMDIwLTEyLTI5KQZ3YWxydXMGMC4xOC4wDHdhc20tYmluZGdlbhIw
|
|
822
822
|
LjIuNzAgKGI2MzU1YzI3MCk=
|
|
823
|
-
`.replace(/[^0-9a-zA-Z/+]/g,""),lf=Af.decode(uf);function cf(){return Lt.bls_init()}lt.bls_init=cf;var Yr=null;function df(){return(Yr===null||Yr.buffer!==Lt.memory.buffer)&&(Yr=new Uint8Array(Lt.memory.buffer)),Yr}function
|
|
824
|
-
`).map(
|
|
825
|
-
`);function r(
|
|
823
|
+
`.replace(/[^0-9a-zA-Z/+]/g,""),lf=Af.decode(uf);function cf(){return Lt.bls_init()}lt.bls_init=cf;var Yr=null;function df(){return(Yr===null||Yr.buffer!==Lt.memory.buffer)&&(Yr=new Uint8Array(Lt.memory.buffer)),Yr}function Pn(t,o){let r=o(t.length*1);return df().set(t,r/1),[r,t.length]}function ff(t,o,r){let[i,n]=Pn(t,Lt.__wbindgen_malloc),[s,p]=Pn(o,Lt.__wbindgen_malloc),[u,h]=Pn(r,Lt.__wbindgen_malloc);return Lt.bls_verify(i,n,s,p,u,h)}lt.bls_verify=ff;async function hf(t,o){if(typeof Response=="function"&&t instanceof Response){let r=await t.arrayBuffer();return await WebAssembly.instantiate(r,o)}else{let r=await WebAssembly.instantiate(t,o);return r instanceof WebAssembly.Instance?{instance:r,module:t}:r}}async function cp(){let t={},{instance:o,module:r}=await hf(lf,t);return Lt=o.exports,cp.__wbindgen_wasm_module=r,Lt}lt.default=cp});var Un=H(at=>{"use strict";var Bf=at&&at.__createBinding||(Object.create?function(t,o,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,i){i===void 0&&(i=r),t[i]=o[r]}),Ef=at&&at.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),bf=at&&at.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Bf(o,t,r);return Ef(o,t),o};Object.defineProperty(at,"__esModule",{value:!0});at.blsVerify=at.verify=void 0;var kn=bf(dp());async function yf(t,o,r){if(!at.verify){if(await kn.default(),kn.bls_init()!==0)throw new Error("Cannot initialize BLS");at.verify=(i,n,s)=>kn.bls_verify(n,s,i)===0}return at.verify(t,o,r)}at.blsVerify=yf});var qn=H(Ye=>{"use strict";var _f=Ye&&Ye.__createBinding||(Object.create?function(t,o,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,i){i===void 0&&(i=r),t[i]=o[r]}),If=Ye&&Ye.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),mf=Ye&&Ye.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&_f(o,t,r);return If(o,t),o};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.lookup_path=Ye.reconstruct=Ye.Certificate=Ye.hashTreeToString=Ye.UnverifiedCertificateError=void 0;var Cf=or(),xf=mf(Dr()),Sf=Ir(),zr=$o(),wf=Un(),Xt=Vt(),jn=class extends Sf.AgentError{constructor(){super("Cannot lookup unverified certificate. Call 'verify()' first.")}};Ye.UnverifiedCertificateError=jn;function Lr(t){let o=i=>i.split(`
|
|
824
|
+
`).map(n=>" "+n).join(`
|
|
825
|
+
`);function r(i){let n=new TextDecoder(void 0,{fatal:!0});try{return JSON.stringify(n.decode(i))}catch{return`data(...${i.byteLength} bytes)`}}switch(t[0]){case 0:return"()";case 1:{let i=Lr(t[1]),n=Lr(t[2]);return`sub(
|
|
826
826
|
left:
|
|
827
|
-
${o(
|
|
827
|
+
${o(i)}
|
|
828
828
|
---
|
|
829
829
|
right:
|
|
830
|
-
${o(i)}
|
|
831
|
-
)`}case 2:{let n=r(t[1]),i=Lr(t[2]);return`label(
|
|
832
|
-
label:
|
|
833
830
|
${o(n)}
|
|
834
|
-
|
|
831
|
+
)`}case 2:{let i=r(t[1]),n=Lr(t[2]);return`label(
|
|
832
|
+
label:
|
|
835
833
|
${o(i)}
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
Request
|
|
841
|
-
|
|
842
|
-
|
|
834
|
+
sub:
|
|
835
|
+
${o(n)}
|
|
836
|
+
)`}case 3:return`leaf(...${t[1].byteLength} bytes)`;case 4:return`pruned(${Xt.toHex(new Uint8Array(t[1]))}`;default:return`unknown(${JSON.stringify(t[0])})`}}Ye.hashTreeToString=Lr;function fp(t,o){if(t.byteLength!==o.byteLength)return!1;let r=new Uint8Array(t),i=new Uint8Array(o);for(let n=0;n<r.length;n++)if(r[n]!==i[n])return!1;return!0}var Jr=class{constructor(o,r=Cf.getDefaultAgent()){this._agent=r,this.verified=!1,this._rootKey=null,this.cert=xf.decode(new Uint8Array(o.certificate))}lookup(o){return this.checkState(),Dn(o,this.cert.tree)}async verify(){let o=await ir(this.cert.tree),r=await this._checkDelegation(this.cert.delegation),i=this.cert.signature,n=Rf(r),s=Xt.concat(nr("ic-state-root"),o),p=await wf.blsVerify(new Uint8Array(n),new Uint8Array(i),new Uint8Array(s));return this.verified=p,p}checkState(){if(!this.verified)throw new jn}async _checkDelegation(o){if(!o){if(!this._rootKey){if(this._agent.rootKey)return this._rootKey=this._agent.rootKey,this._rootKey;throw new Error("Agent does not have a rootKey. Do you need to call 'fetchRootKey'?")}return this._rootKey}let r=new Jr(o,this._agent);if(!await r.verify())throw new Error("fail to verify delegation certificate");let i=r.lookup(["subnet",o.subnet_id,"public_key"]);if(!i)throw new Error(`Could not find subnet key for subnet 0x${Xt.toHex(o.subnet_id)}`);return i}};Ye.Certificate=Jr;var rr=Xt.fromHex("308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100"),vf=96;function Rf(t){let o=rr.byteLength+vf;if(t.byteLength!==o)throw new TypeError(`BLS DER-encoded public key must be ${o} bytes long`);let r=t.slice(0,rr.byteLength);if(!fp(r,rr))throw new TypeError(`BLS DER-encoded public key is invalid. Expect the following prefix: ${rr}, but get ${r}`);return t.slice(rr.byteLength)}async function ir(t){switch(t[0]){case 0:return zr.hash(nr("ic-hashtree-empty"));case 4:return t[1];case 3:return zr.hash(Xt.concat(nr("ic-hashtree-leaf"),t[1]));case 2:return zr.hash(Xt.concat(nr("ic-hashtree-labeled"),t[1],await ir(t[2])));case 1:return zr.hash(Xt.concat(nr("ic-hashtree-fork"),await ir(t[1]),await ir(t[2])));default:throw new Error("unreachable")}}Ye.reconstruct=ir;function nr(t){let o=new Uint8Array([t.length]),r=new TextEncoder().encode(t);return Xt.concat(o,r)}function Dn(t,o){if(t.length===0)switch(o[0]){case 3:return new Uint8Array(o[1]).buffer;default:return}let r=typeof t[0]=="string"?new TextEncoder().encode(t[0]):t[0],i=Qf(r,Hn(o));if(i)return Dn(t.slice(1),i)}Ye.lookup_path=Dn;function Hn(t){switch(t[0]){case 0:return[];case 1:return Hn(t[1]).concat(Hn(t[2]));default:return[t]}}function Qf(t,o){if(o.length!==0){for(let r of o)if(r[0]===2){let i=r[1];if(fp(t,i))return r[2]}}}});var Wn=H(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.chain=ze.backoff=ze.timeout=ze.throttle=ze.maxAttempts=ze.conditionalDelay=ze.once=ze.defaultStrategy=void 0;var hp=Vt(),Ff=5*60*1e3;function Tf(){return _p(Ep(Bp(),1e3),yp(1e3,1.2),bp(Ff))}ze.defaultStrategy=Tf;function Bp(){let t=!0;return async()=>t?(t=!1,!0):!1}ze.once=Bp;function Ep(t,o){return async(r,i,n)=>{if(await t(r,i,n))return new Promise(s=>setTimeout(s,o))}}ze.conditionalDelay=Ep;function Mf(t){let o=t;return async(r,i,n)=>{if(--o<=0)throw new Error(`Failed to retrieve a reply for request after ${t} attempts:
|
|
837
|
+
Request ID: ${hp.toHex(i)}
|
|
838
|
+
Request status: ${n}
|
|
839
|
+
`)}}ze.maxAttempts=Mf;function Of(t){return()=>new Promise(o=>setTimeout(o,t))}ze.throttle=Of;function bp(t){let o=Date.now()+t;return async(r,i,n)=>{if(Date.now()>o)throw new Error(`Request timed out after ${t} msec:
|
|
840
|
+
Request ID: ${hp.toHex(i)}
|
|
841
|
+
Request status: ${n}
|
|
842
|
+
`)}}ze.timeout=bp;function yp(t,o){let r=t;return()=>new Promise(i=>setTimeout(()=>{r*=o,i()},r))}ze.backoff=yp;function _p(...t){return async(o,r,i)=>{for(let n of t)await n(o,r,i)}}ze.chain=_p});var Vn=H(yt=>{"use strict";var Nf=yt&&yt.__createBinding||(Object.create?function(t,o,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,i){i===void 0&&(i=r),t[i]=o[r]}),Gf=yt&&yt.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),Pf=yt&&yt.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Nf(o,t,r);return Gf(o,t),o};Object.defineProperty(yt,"__esModule",{value:!0});yt.pollForResponse=void 0;var Ao=or(),kf=qn(),Ip=Vt();yt.strategy=Pf(Wn());var Uf=Wn();Object.defineProperty(yt,"defaultStrategy",{enumerable:!0,get:function(){return Uf.defaultStrategy}});async function mp(t,o,r,i){let n=[new TextEncoder().encode("request_status"),r],s=await t.readState(o,{paths:[n]}),p=new kf.Certificate(s,t);if(!await p.verify())throw new Error("Fail to verify certificate");let h=p.lookup([...n,new TextEncoder().encode("status")]),w;switch(typeof h=="undefined"?w=Ao.RequestStatusResponseStatus.Unknown:w=new TextDecoder().decode(h),w){case Ao.RequestStatusResponseStatus.Replied:return p.lookup([...n,"reply"]);case Ao.RequestStatusResponseStatus.Received:case Ao.RequestStatusResponseStatus.Unknown:case Ao.RequestStatusResponseStatus.Processing:return await i(o,r,w),mp(t,o,r,i);case Ao.RequestStatusResponseStatus.Rejected:{let G=new Uint8Array(p.lookup([...n,"reject_code"]))[0],T=new TextDecoder().decode(p.lookup([...n,"reject_message"]));throw new Error(`Call was rejected:
|
|
843
843
|
Request ID: ${Ip.toHex(r)}
|
|
844
844
|
Reject code: ${G}
|
|
845
845
|
Reject text: ${T}
|
|
846
846
|
`)}case Ao.RequestStatusResponseStatus.Done:throw new Error(`Call was marked as done but we never saw the reply:
|
|
847
847
|
Request ID: ${Ip.toHex(r)}
|
|
848
|
-
`)}throw new Error("unreachable")}yt.pollForResponse=mp});var Vr=H(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.Actor=ct.CanisterInstallMode=ct.UpdateCallRejectedError=ct.QueryCallRejectedError=ct.ActorCallError=void 0;var jf=xa(),
|
|
849
|
-
`));this.canisterId=o,this.methodName=r,this.type=
|
|
850
|
-
account-id`),
|
|
851
|
-
account-id`),i=ga.sha224.create();i.update([...n,...o.toUint8Array(),...r.toUint8Array()]);let s=new Uint8Array(i.array()),p=On(s),u=new Uint8Array([...p,...s]);return new co(u)}toProto(){let o=new pa.AccountIdentifier;return o.setHash(this.bytes),o}toHex(){return Mn(this.bytes)}},Uo=class{constructor(o){this.bytes=o}static fromBytes(o){return o.length!=32?Error("Subaccount length must be 32-bytes"):new Uo(o)}static fromPrincipal(o){let r=new Uint8Array(32).fill(0),n=o.toUint8Array();r[0]=n.length;for(let i=0;i<n.length;i++)r[1+i]=n[i];return new Uo(r)}toUint8Array(){return this.bytes}},ko=Uo;ko.ZERO=new Uo(new Uint8Array(32).fill(0));var $i=pt($r());var Mp=({IDL:t})=>{let o=t.Rec(),r=t.Record({id:t.Nat64}),n=t.Record({followees:t.Vec(r)}),i=t.Record({not_dissolving_neurons_e8s_buckets:t.Vec(t.Tuple(t.Nat64,t.Float64)),garbage_collectable_neurons_count:t.Nat64,neurons_with_invalid_stake_count:t.Nat64,not_dissolving_neurons_count_buckets:t.Vec(t.Tuple(t.Nat64,t.Nat64)),total_supply_icp:t.Nat64,neurons_with_less_than_6_months_dissolve_delay_count:t.Nat64,dissolved_neurons_count:t.Nat64,total_staked_e8s:t.Nat64,not_dissolving_neurons_count:t.Nat64,dissolved_neurons_e8s:t.Nat64,neurons_with_less_than_6_months_dissolve_delay_e8s:t.Nat64,dissolving_neurons_count_buckets:t.Vec(t.Tuple(t.Nat64,t.Nat64)),dissolving_neurons_count:t.Nat64,dissolving_neurons_e8s_buckets:t.Vec(t.Tuple(t.Nat64,t.Float64)),community_fund_total_staked_e8s:t.Nat64,timestamp_seconds:t.Nat64}),s=t.Record({hash:t.Vec(t.Nat8)}),p=t.Record({id:t.Opt(t.Principal),reward_account:t.Opt(s)}),u=t.Record({neuron_minimum_stake_e8s:t.Nat64,max_proposals_to_keep_per_topic:t.Nat32,neuron_management_fee_per_proposal_e8s:t.Nat64,reject_cost_e8s:t.Nat64,transaction_fee_e8s:t.Nat64,neuron_spawn_dissolve_delay_seconds:t.Nat64,minimum_icp_xdr_rate:t.Nat64,maximum_node_provider_rewards_e8s:t.Nat64}),h=t.Record({day_after_genesis:t.Nat64,actual_timestamp_seconds:t.Nat64,distributed_e8s_equivalent:t.Nat64,settled_proposals:t.Vec(r)}),w=t.Record({to_subaccount:t.Vec(t.Nat8),neuron_stake_e8s:t.Nat64,from:t.Opt(t.Principal),memo:t.Nat64,from_subaccount:t.Vec(t.Nat8),transfer_timestamp:t.Nat64,block_height:t.Nat64}),G=t.Record({error_message:t.Text,error_type:t.Int32}),T=t.Record({vote:t.Int32,voting_power:t.Nat64}),V=t.Record({no:t.Nat64,yes:t.Nat64,total:t.Nat64,timestamp_seconds:t.Nat64}),P=t.Record({name:t.Text,description:t.Opt(t.Text)}),L=t.Record({id:t.Opt(r),known_neuron_data:t.Opt(P)}),ee=t.Record({new_controller:t.Opt(t.Principal),nonce:t.Opt(t.Nat64)}),le=t.Record({amount_e8s:t.Nat64}),te=t.Record({topic:t.Int32,followees:t.Vec(r)}),xe=t.Record({controller:t.Opt(t.Principal),memo:t.Nat64}),Ie=t.Variant({NeuronIdOrSubaccount:t.Record({}),MemoAndController:xe,Memo:t.Nat64}),Se=t.Record({by:t.Opt(Ie)}),X=t.Record({hot_key_to_remove:t.Opt(t.Principal)}),Z=t.Record({new_hot_key:t.Opt(t.Principal)}),Ae=t.Record({additional_dissolve_delay_seconds:t.Nat32}),he=t.Record({dissolve_timestamp_seconds:t.Nat64}),q=t.Variant({RemoveHotKey:X,AddHotKey:Z,StopDissolving:t.Record({}),StartDissolving:t.Record({}),IncreaseDissolveDelay:Ae,JoinCommunityFund:t.Record({}),SetDissolveTimestamp:he}),Be=t.Record({operation:t.Opt(q)}),ce=t.Record({vote:t.Int32,proposal:t.Opt(r)}),de=t.Record({source_neuron_id:t.Opt(r)}),ve=t.Record({dissolve_delay_seconds:t.Nat64,kyc_verified:t.Bool,amount_e8s:t.Nat64,new_controller:t.Opt(t.Principal),nonce:t.Nat64}),Ne=t.Record({percentage_to_merge:t.Nat32}),$e=t.Record({e8s:t.Nat64}),Ue=t.Record({to_account:t.Opt(s),amount:t.Opt($e)}),nt=t.Variant({Spawn:ee,Split:le,Follow:te,ClaimOrRefresh:Se,Configure:Be,RegisterVote:ce,Merge:de,DisburseToNeuron:ve,MakeProposal:o,MergeMaturity:Ne,Disburse:Ue}),Re=t.Variant({Subaccount:t.Vec(t.Nat8),NeuronId:r}),et=t.Record({id:t.Opt(r),command:t.Opt(nt),neuron_id_or_subaccount:t.Opt(Re)}),Ut=t.Record({nns_function:t.Int32,payload:t.Vec(t.Nat8)}),dt=t.Record({dissolve_delay_seconds:t.Nat64}),jt=t.Record({to_account:t.Opt(s)}),U=t.Variant({RewardToNeuron:dt,RewardToAccount:jt}),I=t.Record({node_provider:t.Opt(p),reward_mode:t.Opt(U),amount_e8s:t.Nat64}),wt=t.Record({default_followees:t.Vec(t.Tuple(t.Int32,n))}),gt=t.Record({rewards:t.Vec(I)}),He=t.Record({principals:t.Vec(t.Principal)}),$=t.Variant({ToRemove:p,ToAdd:p}),l=t.Record({change:t.Opt($)}),B=t.Record({motion_text:t.Text}),E=t.Variant({RegisterKnownNeuron:L,ManageNeuron:et,ExecuteNnsFunction:Ut,RewardNodeProvider:I,SetDefaultFollowees:wt,RewardNodeProviders:gt,ManageNetworkEconomics:u,ApproveGenesisKyc:He,AddOrRemoveNodeProvider:l,Motion:B});o.fill(t.Record({url:t.Text,title:t.Opt(t.Text),action:t.Opt(E),summary:t.Text}));let R=t.Record({current_deadline_timestamp_seconds:t.Nat64}),C=t.Record({id:t.Opt(r),failure_reason:t.Opt(G),ballots:t.Vec(t.Tuple(t.Nat64,T)),proposal_timestamp_seconds:t.Nat64,reward_event_round:t.Nat64,failed_timestamp_seconds:t.Nat64,reject_cost_e8s:t.Nat64,latest_tally:t.Opt(V),decided_timestamp_seconds:t.Nat64,proposal:t.Opt(o),proposer:t.Opt(r),wait_for_quiet_state:t.Opt(R),executed_timestamp_seconds:t.Nat64}),S=t.Variant({Spawn:ee,Split:le,Configure:Be,Merge:de,DisburseToNeuron:ve,ClaimOrRefreshNeuron:Se,MergeMaturity:Ne,Disburse:Ue}),F=t.Record({command:t.Opt(S),timestamp:t.Nat64}),y=t.Record({vote:t.Int32,proposal_id:t.Opt(r)}),x=t.Variant({DissolveDelaySeconds:t.Nat64,WhenDissolvedTimestampSeconds:t.Nat64}),Q=t.Record({id:t.Opt(r),controller:t.Opt(t.Principal),recent_ballots:t.Vec(y),kyc_verified:t.Bool,not_for_profit:t.Bool,maturity_e8s_equivalent:t.Nat64,cached_neuron_stake_e8s:t.Nat64,created_timestamp_seconds:t.Nat64,aging_since_timestamp_seconds:t.Nat64,hot_keys:t.Vec(t.Principal),account:t.Vec(t.Nat8),joined_community_fund_timestamp_seconds:t.Opt(t.Nat64),dissolve_state:t.Opt(x),followees:t.Vec(t.Tuple(t.Int32,n)),neuron_fees_e8s:t.Nat64,transfer:t.Opt(w),known_neuron_data:t.Opt(P)}),v=t.Record({default_followees:t.Vec(t.Tuple(t.Int32,n)),wait_for_quiet_threshold_seconds:t.Nat64,metrics:t.Opt(i),node_providers:t.Vec(p),economics:t.Opt(u),latest_reward_event:t.Opt(h),to_claim_transfers:t.Vec(w),short_voting_period_seconds:t.Nat64,proposals:t.Vec(t.Tuple(t.Nat64,C)),in_flight_commands:t.Vec(t.Tuple(t.Nat64,F)),neurons:t.Vec(t.Tuple(t.Nat64,Q)),genesis_timestamp_seconds:t.Nat64}),N=t.Variant({Ok:t.Null,Err:G}),D=t.Variant({Error:G,NeuronId:r}),J=t.Record({result:t.Opt(D)}),re=t.Variant({Ok:Q,Err:G}),Ee=t.Variant({Ok:gt,Err:G}),me=t.Record({dissolve_delay_seconds:t.Nat64,recent_ballots:t.Vec(y),created_timestamp_seconds:t.Nat64,state:t.Int32,stake_e8s:t.Nat64,joined_community_fund_timestamp_seconds:t.Opt(t.Nat64),retrieved_at_timestamp_seconds:t.Nat64,known_neuron_data:t.Opt(P),voting_power:t.Nat64,age_seconds:t.Nat64}),oe=t.Variant({Ok:me,Err:G}),z=t.Record({id:t.Opt(r),status:t.Int32,topic:t.Int32,failure_reason:t.Opt(G),ballots:t.Vec(t.Tuple(t.Nat64,T)),proposal_timestamp_seconds:t.Nat64,reward_event_round:t.Nat64,deadline_timestamp_seconds:t.Opt(t.Nat64),failed_timestamp_seconds:t.Nat64,reject_cost_e8s:t.Nat64,latest_tally:t.Opt(V),reward_status:t.Int32,decided_timestamp_seconds:t.Nat64,proposal:t.Opt(o),proposer:t.Opt(r),executed_timestamp_seconds:t.Nat64}),Qe=t.Record({known_neurons:t.Vec(L)}),vt=t.Record({neuron_ids:t.Vec(t.Nat64),include_neurons_readable_by_caller:t.Bool}),Dt=t.Record({neuron_infos:t.Vec(t.Tuple(t.Nat64,me)),full_neurons:t.Vec(Q)}),Ht=t.Record({include_reward_status:t.Vec(t.Int32),before_proposal:t.Opt(r),limit:t.Nat32,exclude_topic:t.Vec(t.Int32),include_status:t.Vec(t.Int32)}),tt=t.Record({proposal_info:t.Vec(z)}),ne=t.Record({created_neuron_id:t.Opt(r)}),qe=t.Record({refreshed_neuron_id:t.Opt(r)}),Ge=t.Record({proposal_id:t.Opt(r)}),be=t.Record({merged_maturity_e8s:t.Nat64,new_stake_e8s:t.Nat64}),Fo=t.Record({transfer_block_height:t.Nat64}),To=t.Variant({Error:G,Spawn:ne,Split:ne,Follow:t.Record({}),ClaimOrRefresh:qe,Configure:t.Record({}),RegisterVote:t.Record({}),Merge:t.Record({}),DisburseToNeuron:ne,MakeProposal:Ge,MergeMaturity:be,Disburse:Fo}),ye=t.Record({command:t.Opt(To)}),Mo=t.Record({reward_account:t.Opt(s)});return t.Service({claim_gtc_neurons:t.Func([t.Principal,t.Vec(r)],[N],[]),claim_or_refresh_neuron_from_account:t.Func([xe],[J],[]),get_build_metadata:t.Func([],[t.Text],[]),get_full_neuron:t.Func([t.Nat64],[re],[]),get_full_neuron_by_id_or_subaccount:t.Func([Re],[re],[]),get_monthly_node_provider_rewards:t.Func([],[Ee],[]),get_neuron_ids:t.Func([],[t.Vec(t.Nat64)],[]),get_neuron_info:t.Func([t.Nat64],[oe],[]),get_neuron_info_by_id_or_subaccount:t.Func([Re],[oe],[]),get_pending_proposals:t.Func([],[t.Vec(z)],[]),get_proposal_info:t.Func([t.Nat64],[t.Opt(z)],[]),list_known_neurons:t.Func([],[Qe],[]),list_neurons:t.Func([vt],[Dt],[]),list_proposals:t.Func([Ht],[tt],[]),manage_neuron:t.Func([et],[ye],[]),transfer_gtc_neuron:t.Func([r,r],[N],[]),update_node_provider:t.Func([Mo],[N],[])})};var Op=({IDL:t})=>{let o=t.Rec(),r=t.Record({id:t.Nat64}),n=t.Record({followees:t.Vec(r)}),i=t.Record({not_dissolving_neurons_e8s_buckets:t.Vec(t.Tuple(t.Nat64,t.Float64)),garbage_collectable_neurons_count:t.Nat64,neurons_with_invalid_stake_count:t.Nat64,not_dissolving_neurons_count_buckets:t.Vec(t.Tuple(t.Nat64,t.Nat64)),total_supply_icp:t.Nat64,neurons_with_less_than_6_months_dissolve_delay_count:t.Nat64,dissolved_neurons_count:t.Nat64,total_staked_e8s:t.Nat64,not_dissolving_neurons_count:t.Nat64,dissolved_neurons_e8s:t.Nat64,neurons_with_less_than_6_months_dissolve_delay_e8s:t.Nat64,dissolving_neurons_count_buckets:t.Vec(t.Tuple(t.Nat64,t.Nat64)),dissolving_neurons_count:t.Nat64,dissolving_neurons_e8s_buckets:t.Vec(t.Tuple(t.Nat64,t.Float64)),community_fund_total_staked_e8s:t.Nat64,timestamp_seconds:t.Nat64}),s=t.Record({hash:t.Vec(t.Nat8)}),p=t.Record({id:t.Opt(t.Principal),reward_account:t.Opt(s)}),u=t.Record({neuron_minimum_stake_e8s:t.Nat64,max_proposals_to_keep_per_topic:t.Nat32,neuron_management_fee_per_proposal_e8s:t.Nat64,reject_cost_e8s:t.Nat64,transaction_fee_e8s:t.Nat64,neuron_spawn_dissolve_delay_seconds:t.Nat64,minimum_icp_xdr_rate:t.Nat64,maximum_node_provider_rewards_e8s:t.Nat64}),h=t.Record({day_after_genesis:t.Nat64,actual_timestamp_seconds:t.Nat64,distributed_e8s_equivalent:t.Nat64,settled_proposals:t.Vec(r)}),w=t.Record({to_subaccount:t.Vec(t.Nat8),neuron_stake_e8s:t.Nat64,from:t.Opt(t.Principal),memo:t.Nat64,from_subaccount:t.Vec(t.Nat8),transfer_timestamp:t.Nat64,block_height:t.Nat64}),G=t.Record({error_message:t.Text,error_type:t.Int32}),T=t.Record({vote:t.Int32,voting_power:t.Nat64}),V=t.Record({no:t.Nat64,yes:t.Nat64,total:t.Nat64,timestamp_seconds:t.Nat64}),P=t.Record({name:t.Text,description:t.Opt(t.Text)}),L=t.Record({id:t.Opt(r),known_neuron_data:t.Opt(P)}),ee=t.Record({new_controller:t.Opt(t.Principal),nonce:t.Opt(t.Nat64)}),le=t.Record({amount_e8s:t.Nat64}),te=t.Record({topic:t.Int32,followees:t.Vec(r)}),xe=t.Record({controller:t.Opt(t.Principal),memo:t.Nat64}),Ie=t.Variant({NeuronIdOrSubaccount:t.Record({}),MemoAndController:xe,Memo:t.Nat64}),Se=t.Record({by:t.Opt(Ie)}),X=t.Record({hot_key_to_remove:t.Opt(t.Principal)}),Z=t.Record({new_hot_key:t.Opt(t.Principal)}),Ae=t.Record({additional_dissolve_delay_seconds:t.Nat32}),he=t.Record({dissolve_timestamp_seconds:t.Nat64}),q=t.Variant({RemoveHotKey:X,AddHotKey:Z,StopDissolving:t.Record({}),StartDissolving:t.Record({}),IncreaseDissolveDelay:Ae,JoinCommunityFund:t.Record({}),SetDissolveTimestamp:he}),Be=t.Record({operation:t.Opt(q)}),ce=t.Record({vote:t.Int32,proposal:t.Opt(r)}),de=t.Record({source_neuron_id:t.Opt(r)}),ve=t.Record({dissolve_delay_seconds:t.Nat64,kyc_verified:t.Bool,amount_e8s:t.Nat64,new_controller:t.Opt(t.Principal),nonce:t.Nat64}),Ne=t.Record({percentage_to_merge:t.Nat32}),$e=t.Record({e8s:t.Nat64}),Ue=t.Record({to_account:t.Opt(s),amount:t.Opt($e)}),nt=t.Variant({Spawn:ee,Split:le,Follow:te,ClaimOrRefresh:Se,Configure:Be,RegisterVote:ce,Merge:de,DisburseToNeuron:ve,MakeProposal:o,MergeMaturity:Ne,Disburse:Ue}),Re=t.Variant({Subaccount:t.Vec(t.Nat8),NeuronId:r}),et=t.Record({id:t.Opt(r),command:t.Opt(nt),neuron_id_or_subaccount:t.Opt(Re)}),Ut=t.Record({nns_function:t.Int32,payload:t.Vec(t.Nat8)}),dt=t.Record({dissolve_delay_seconds:t.Nat64}),jt=t.Record({to_account:t.Opt(s)}),U=t.Variant({RewardToNeuron:dt,RewardToAccount:jt}),I=t.Record({node_provider:t.Opt(p),reward_mode:t.Opt(U),amount_e8s:t.Nat64}),wt=t.Record({default_followees:t.Vec(t.Tuple(t.Int32,n))}),gt=t.Record({rewards:t.Vec(I)}),He=t.Record({principals:t.Vec(t.Principal)}),$=t.Variant({ToRemove:p,ToAdd:p}),l=t.Record({change:t.Opt($)}),B=t.Record({motion_text:t.Text}),E=t.Variant({RegisterKnownNeuron:L,ManageNeuron:et,ExecuteNnsFunction:Ut,RewardNodeProvider:I,SetDefaultFollowees:wt,RewardNodeProviders:gt,ManageNetworkEconomics:u,ApproveGenesisKyc:He,AddOrRemoveNodeProvider:l,Motion:B});o.fill(t.Record({url:t.Text,title:t.Opt(t.Text),action:t.Opt(E),summary:t.Text}));let R=t.Record({current_deadline_timestamp_seconds:t.Nat64}),C=t.Record({id:t.Opt(r),failure_reason:t.Opt(G),ballots:t.Vec(t.Tuple(t.Nat64,T)),proposal_timestamp_seconds:t.Nat64,reward_event_round:t.Nat64,failed_timestamp_seconds:t.Nat64,reject_cost_e8s:t.Nat64,latest_tally:t.Opt(V),decided_timestamp_seconds:t.Nat64,proposal:t.Opt(o),proposer:t.Opt(r),wait_for_quiet_state:t.Opt(R),executed_timestamp_seconds:t.Nat64}),S=t.Variant({Spawn:ee,Split:le,Configure:Be,Merge:de,DisburseToNeuron:ve,ClaimOrRefreshNeuron:Se,MergeMaturity:Ne,Disburse:Ue}),F=t.Record({command:t.Opt(S),timestamp:t.Nat64}),y=t.Record({vote:t.Int32,proposal_id:t.Opt(r)}),x=t.Variant({DissolveDelaySeconds:t.Nat64,WhenDissolvedTimestampSeconds:t.Nat64}),Q=t.Record({id:t.Opt(r),controller:t.Opt(t.Principal),recent_ballots:t.Vec(y),kyc_verified:t.Bool,not_for_profit:t.Bool,maturity_e8s_equivalent:t.Nat64,cached_neuron_stake_e8s:t.Nat64,created_timestamp_seconds:t.Nat64,aging_since_timestamp_seconds:t.Nat64,hot_keys:t.Vec(t.Principal),account:t.Vec(t.Nat8),joined_community_fund_timestamp_seconds:t.Opt(t.Nat64),dissolve_state:t.Opt(x),followees:t.Vec(t.Tuple(t.Int32,n)),neuron_fees_e8s:t.Nat64,transfer:t.Opt(w),known_neuron_data:t.Opt(P)}),v=t.Record({default_followees:t.Vec(t.Tuple(t.Int32,n)),wait_for_quiet_threshold_seconds:t.Nat64,metrics:t.Opt(i),node_providers:t.Vec(p),economics:t.Opt(u),latest_reward_event:t.Opt(h),to_claim_transfers:t.Vec(w),short_voting_period_seconds:t.Nat64,proposals:t.Vec(t.Tuple(t.Nat64,C)),in_flight_commands:t.Vec(t.Tuple(t.Nat64,F)),neurons:t.Vec(t.Tuple(t.Nat64,Q)),genesis_timestamp_seconds:t.Nat64}),N=t.Variant({Ok:t.Null,Err:G}),D=t.Variant({Error:G,NeuronId:r}),J=t.Record({result:t.Opt(D)}),re=t.Variant({Ok:Q,Err:G}),Ee=t.Variant({Ok:gt,Err:G}),me=t.Record({dissolve_delay_seconds:t.Nat64,recent_ballots:t.Vec(y),created_timestamp_seconds:t.Nat64,state:t.Int32,stake_e8s:t.Nat64,joined_community_fund_timestamp_seconds:t.Opt(t.Nat64),retrieved_at_timestamp_seconds:t.Nat64,known_neuron_data:t.Opt(P),voting_power:t.Nat64,age_seconds:t.Nat64}),oe=t.Variant({Ok:me,Err:G}),z=t.Record({id:t.Opt(r),status:t.Int32,topic:t.Int32,failure_reason:t.Opt(G),ballots:t.Vec(t.Tuple(t.Nat64,T)),proposal_timestamp_seconds:t.Nat64,reward_event_round:t.Nat64,deadline_timestamp_seconds:t.Opt(t.Nat64),failed_timestamp_seconds:t.Nat64,reject_cost_e8s:t.Nat64,latest_tally:t.Opt(V),reward_status:t.Int32,decided_timestamp_seconds:t.Nat64,proposal:t.Opt(o),proposer:t.Opt(r),executed_timestamp_seconds:t.Nat64}),Qe=t.Record({known_neurons:t.Vec(L)}),vt=t.Record({neuron_ids:t.Vec(t.Nat64),include_neurons_readable_by_caller:t.Bool}),Dt=t.Record({neuron_infos:t.Vec(t.Tuple(t.Nat64,me)),full_neurons:t.Vec(Q)}),Ht=t.Record({include_reward_status:t.Vec(t.Int32),before_proposal:t.Opt(r),limit:t.Nat32,exclude_topic:t.Vec(t.Int32),include_status:t.Vec(t.Int32)}),tt=t.Record({proposal_info:t.Vec(z)}),ne=t.Record({created_neuron_id:t.Opt(r)}),qe=t.Record({refreshed_neuron_id:t.Opt(r)}),Ge=t.Record({proposal_id:t.Opt(r)}),be=t.Record({merged_maturity_e8s:t.Nat64,new_stake_e8s:t.Nat64}),Fo=t.Record({transfer_block_height:t.Nat64}),To=t.Variant({Error:G,Spawn:ne,Split:ne,Follow:t.Record({}),ClaimOrRefresh:qe,Configure:t.Record({}),RegisterVote:t.Record({}),Merge:t.Record({}),DisburseToNeuron:ne,MakeProposal:Ge,MergeMaturity:be,Disburse:Fo}),ye=t.Record({command:t.Opt(To)}),Mo=t.Record({reward_account:t.Opt(s)});return t.Service({claim_gtc_neurons:t.Func([t.Principal,t.Vec(r)],[N],[]),claim_or_refresh_neuron_from_account:t.Func([xe],[J],[]),get_build_metadata:t.Func([],[t.Text],["query"]),get_full_neuron:t.Func([t.Nat64],[re],["query"]),get_full_neuron_by_id_or_subaccount:t.Func([Re],[re],["query"]),get_monthly_node_provider_rewards:t.Func([],[Ee],[]),get_neuron_ids:t.Func([],[t.Vec(t.Nat64)],["query"]),get_neuron_info:t.Func([t.Nat64],[oe],["query"]),get_neuron_info_by_id_or_subaccount:t.Func([Re],[oe],["query"]),get_pending_proposals:t.Func([],[t.Vec(z)],["query"]),get_proposal_info:t.Func([t.Nat64],[t.Opt(z)],["query"]),list_known_neurons:t.Func([],[Qe],["query"]),list_neurons:t.Func([vt],[Dt],["query"]),list_proposals:t.Func([Ht],[tt],["query"]),manage_neuron:t.Func([et],[ye],[]),transfer_gtc_neuron:t.Func([r,r],[N],[]),update_node_provider:t.Func([Mo],[N],["query"])})};var $t=pt(Ft());var Np=(i=>(i[i.UNSPECIFIED=0]="UNSPECIFIED",i[i.LOCKED=1]="LOCKED",i[i.DISSOLVING=2]="DISSOLVING",i[i.DISSOLVED=3]="DISSOLVED",i))(Np||{}),Gp=(s=>(s[s.PROPOSAL_REWARD_STATUS_UNKNOWN=0]="PROPOSAL_REWARD_STATUS_UNKNOWN",s[s.PROPOSAL_REWARD_STATUS_ACCEPT_VOTES=1]="PROPOSAL_REWARD_STATUS_ACCEPT_VOTES",s[s.PROPOSAL_REWARD_STATUS_READY_TO_SETTLE=2]="PROPOSAL_REWARD_STATUS_READY_TO_SETTLE",s[s.PROPOSAL_REWARD_STATUS_SETTLED=3]="PROPOSAL_REWARD_STATUS_SETTLED",s[s.PROPOSAL_REWARD_STATUS_INELIGIBLE=4]="PROPOSAL_REWARD_STATUS_INELIGIBLE",s))(Gp||{}),Pp=(p=>(p[p.PROPOSAL_STATUS_UNKNOWN=0]="PROPOSAL_STATUS_UNKNOWN",p[p.PROPOSAL_STATUS_OPEN=1]="PROPOSAL_STATUS_OPEN",p[p.PROPOSAL_STATUS_REJECTED=2]="PROPOSAL_STATUS_REJECTED",p[p.PROPOSAL_STATUS_ACCEPTED=3]="PROPOSAL_STATUS_ACCEPTED",p[p.PROPOSAL_STATUS_EXECUTED=4]="PROPOSAL_STATUS_EXECUTED",p[p.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",p))(Pp||{}),kp=(n=>(n[n.UNSPECIFIED=0]="UNSPECIFIED",n[n.YES=1]="YES",n[n.NO=2]="NO",n))(kp||{}),Up=(T=>(T[T.Unspecified=0]="Unspecified",T[T.ManageNeuron=1]="ManageNeuron",T[T.ExchangeRate=2]="ExchangeRate",T[T.NetworkEconomics=3]="NetworkEconomics",T[T.Governance=4]="Governance",T[T.NodeAdmin=5]="NodeAdmin",T[T.ParticipantManagement=6]="ParticipantManagement",T[T.SubnetManagement=7]="SubnetManagement",T[T.NetworkCanisterManagement=8]="NetworkCanisterManagement",T[T.Kyc=9]="Kyc",T[T.NodeProviderRewards=10]="NodeProviderRewards",T))(Up||{}),Le=class extends Error{constructor(o){super("Unsupported value: "+o)}};var Ki=class{constructor(){this.fromListNeurons=o=>({neuron_ids:o??[],include_neurons_readable_by_caller:!o});this.fromManageNeuron=o=>({id:o.id?[this.fromNeuronId(o.id)]:[],command:o.command?[this.fromCommand(o.command)]:[],neuron_id_or_subaccount:o.neuronIdOrSubaccount?[this.fromNeuronIdOrSubaccount(o.neuronIdOrSubaccount)]:[]});this.fromClaimNeuronRequest=o=>[cr(o.publicKey),o.nonce,o.dissolveDelayInSecs];this.fromListProposalsRequest=o=>({include_reward_status:o.includeRewardStatus,before_proposal:o.beforeProposal?[this.fromProposalId(o.beforeProposal)]:[],limit:o.limit,exclude_topic:o.excludeTopic,include_status:o.includeStatus});this.fromClaimOrRefreshNeuronRequest=o=>({id:[],command:[{ClaimOrRefresh:{by:[{NeuronIdOrSubaccount:{}}]}}],neuron_id_or_subaccount:[{NeuronId:{id:o.neuronId}}]});this.fromSplitRequest=o=>{let r={Split:{amount_e8s:o.amount}};return{id:[],command:[r],neuron_id_or_subaccount:[{NeuronId:{id:o.neuronId}}]}};this.fromDisburseToNeuronRequest=o=>{let r={DisburseToNeuron:{dissolve_delay_seconds:o.dissolveDelaySeconds,kyc_verified:o.kycVerified,amount_e8s:o.amount,new_controller:o.newController!=null?[$t.Principal.fromText(o.newController)]:[],nonce:o.nonce}};return{id:[],command:[r],neuron_id_or_subaccount:[{NeuronId:{id:o.neuronId}}]}};this.fromMakeProposalRequest=o=>{let r={MakeProposal:{url:o.url,title:o.title!=null?[o.title]:[],summary:o.summary,action:[this.fromAction(o.action)]}};return{id:[],command:[r],neuron_id_or_subaccount:[{NeuronId:{id:o.neuronId}}]}};this.fromNeuronId=o=>({id:o});this.fromNeuronIdOrSubaccount=o=>{if("NeuronId"in o)return{NeuronId:{id:o.NeuronId}};if("Subaccount"in o)return{Subaccount:o.Subaccount};throw new Le(o)};this.fromProposalId=o=>({id:o});this.fromAction=o=>{if("ExecuteNnsFunction"in o){let r=o.ExecuteNnsFunction;return{ExecuteNnsFunction:{nns_function:r.nnsFunctionId,payload:cr(r.payloadBytes)}}}if("ManageNeuron"in o){let r=o.ManageNeuron;return{ManageNeuron:this.fromManageNeuron(r)}}if("ApproveGenesisKyc"in o)return{ApproveGenesisKyc:{principals:o.ApproveGenesisKyc.principals.map($t.Principal.fromText)}};if("ManageNetworkEconomics"in o){let r=o.ManageNetworkEconomics;return{ManageNetworkEconomics:{neuron_minimum_stake_e8s:r.neuronMinimumStake,max_proposals_to_keep_per_topic:r.maxProposalsToKeepPerTopic,neuron_management_fee_per_proposal_e8s:r.neuronManagementFeePerProposal,reject_cost_e8s:r.rejectCost,transaction_fee_e8s:r.transactionFee,neuron_spawn_dissolve_delay_seconds:r.neuronSpawnDissolveDelaySeconds,minimum_icp_xdr_rate:r.minimumIcpXdrRate,maximum_node_provider_rewards_e8s:r.maximumNodeProviderRewards}}}if("RewardNodeProvider"in o){let r=o.RewardNodeProvider;return{RewardNodeProvider:{node_provider:r.nodeProvider?[this.fromNodeProvider(r.nodeProvider)]:[],amount_e8s:r.amountE8s,reward_mode:r.rewardMode!=null?[this.fromRewardMode(r.rewardMode)]:[]}}}if("RewardNodeProviders"in o)return{RewardNodeProviders:{rewards:o.RewardNodeProviders.rewards.map(n=>({node_provider:n.nodeProvider?[this.fromNodeProvider(n.nodeProvider)]:[],amount_e8s:n.amountE8s,reward_mode:n.rewardMode!=null?[this.fromRewardMode(n.rewardMode)]:[]}))}};if("AddOrRemoveNodeProvider"in o){let r=o.AddOrRemoveNodeProvider;return{AddOrRemoveNodeProvider:{change:r.change?[this.fromChange(r.change)]:[]}}}if("Motion"in o)return{Motion:{motion_text:o.Motion.motionText}};if("SetDefaultFollowees"in o)return{SetDefaultFollowees:{default_followees:o.SetDefaultFollowees.defaultFollowees.map(n=>[n.topic,this.fromFollowees(n.followees)])}};if("RegisterKnownNeuron"in o){let r=o.RegisterKnownNeuron;return{RegisterKnownNeuron:{id:[{id:r.id}],known_neuron_data:[{name:r.name,description:r.description!==void 0?[r.description]:[]}]}}}throw new Le(o)};this.fromCommand=o=>{if("Split"in o)return{Split:{amount_e8s:o.Split.amount}};if("Follow"in o){let r=o.Follow;return{Follow:{topic:r.topic,followees:r.followees.map(this.fromNeuronId)}}}if("ClaimOrRefresh"in o){let r=o.ClaimOrRefresh;return{ClaimOrRefresh:{by:r.by?[this.fromClaimOrRefreshBy(r.by)]:[]}}}if("Configure"in o){let r=o.Configure;return{Configure:{operation:r.operation?[this.fromOperation(r.operation)]:[]}}}if("RegisterVote"in o){let r=o.RegisterVote;return{RegisterVote:{vote:r.vote,proposal:r.proposal?[this.fromProposalId(r.proposal)]:[]}}}if("DisburseToNeuron"in o){let r=o.DisburseToNeuron;return{DisburseToNeuron:{dissolve_delay_seconds:r.dissolveDelaySeconds,kyc_verified:r.kycVerified,amount_e8s:r.amount,new_controller:r.newController?[$t.Principal.fromText(r.newController)]:[],nonce:r.nonce}}}if("MergeMaturity"in o)return{MergeMaturity:{percentage_to_merge:o.MergeMaturity.percentageToMerge}};if("MakeProposal"in o){let r=o.MakeProposal;return{MakeProposal:{url:r.url,title:[],action:r.action?[this.fromAction(r.action)]:[],summary:r.summary}}}if("Disburse"in o){let r=o.Disburse;return{Disburse:{to_account:r.toAccountId?[this.fromAccountIdentifier(r.toAccountId)]:[],amount:r.amount?[this.fromAmount(r.amount)]:[]}}}if("Spawn"in o){let r=o.Spawn;return{Spawn:{new_controller:r.newController?[$t.Principal.fromText(r.newController)]:[],nonce:[]}}}if("Merge"in o){let r=o.Merge;return{Merge:{source_neuron_id:r.sourceNeuronId?[{id:r.sourceNeuronId}]:[]}}}throw new Le(o)};this.fromOperation=o=>{if("RemoveHotKey"in o){let r=o.RemoveHotKey;return{RemoveHotKey:{hot_key_to_remove:r.hotKeyToRemove!=null?[$t.Principal.fromText(r.hotKeyToRemove)]:[]}}}if("AddHotKey"in o){let r=o.AddHotKey;return{AddHotKey:{new_hot_key:r.newHotKey?[$t.Principal.fromText(r.newHotKey)]:[]}}}if("StopDissolving"in o)return{StopDissolving:{}};if("StartDissolving"in o)return{StartDissolving:{}};if("IncreaseDissolveDelay"in o)return{IncreaseDissolveDelay:{additional_dissolve_delay_seconds:o.IncreaseDissolveDelay.additionalDissolveDelaySeconds}};if("JoinCommunityFund"in o)return o;if("SetDissolveTimestamp"in o)return{SetDissolveTimestamp:{dissolve_timestamp_seconds:o.SetDissolveTimestamp.dissolveTimestampSeconds}};throw new Le(o)};this.fromChange=o=>{if("ToRemove"in o)return{ToRemove:this.fromNodeProvider(o.ToRemove)};if("ToAdd"in o)return{ToAdd:this.fromNodeProvider(o.ToAdd)};throw new Le(o)};this.fromNodeProvider=o=>({id:o.id!=null?[$t.Principal.fromText(o.id)]:[],reward_account:o.rewardAccount!=null?[this.fromAccountIdentifier(o.rewardAccount)]:[]})}fromFollowees(o){return{followees:o.map(this.fromNeuronId)}}fromAmount(o){return{e8s:o}}fromAccountIdentifier(o){let r=ia(o);return{hash:cr(r)}}fromRewardMode(o){if("RewardToNeuron"in o)return{RewardToNeuron:{dissolve_delay_seconds:o.RewardToNeuron.dissolveDelaySeconds}};if("RewardToAccount"in o)return{RewardToAccount:{to_account:o.RewardToAccount.toAccount!=null?[this.fromAccountIdentifier(o.RewardToAccount.toAccount)]:[]}};throw new Le(o)}fromClaimOrRefreshBy(o){if("NeuronIdOrSubaccount"in o)return{NeuronIdOrSubaccount:{}};if("Memo"in o)return{Memo:o.Memo};if("MemoAndController"in o)return{MemoAndController:{memo:o.MemoAndController.memo,controller:o.MemoAndController.controller?[o.MemoAndController.controller]:[]}};throw new Le(o)}};var en=pt(Ft()),jp=en.Principal.fromText("rrkah-fqaaa-aaaaa-aaaaq-cai"),Dp=en.Principal.fromText("rrkah-fqaaa-aaaaa-aaaaq-cai"),Hp=en.Principal.fromText("ryjl3-tyaaa-aaaaa-aaaba-cai");var Je=pt(mo()),sA=require("buffer");var m=pt(mo()),qp=m.IDL.Record({node_operator_principal_id:m.IDL.Opt(m.IDL.Principal),node_allowance:m.IDL.Nat64,node_provider_principal_id:m.IDL.Opt(m.IDL.Principal)}),Wp=m.IDL.Record({subnet_id:m.IDL.Principal,node_ids:m.IDL.Vec(m.IDL.Principal)}),Jf=m.IDL.Record({latitude:m.IDL.Float32,longitude:m.IDL.Float32}),Kf=m.IDL.Record({id:m.IDL.Text,gps:m.IDL.Opt(Jf),region:m.IDL.Text,owner:m.IDL.Text}),Vp=m.IDL.Record({data_centers_to_add:m.IDL.Vec(Kf),data_centers_to_remove:m.IDL.Vec(m.IDL.Text)}),Yp=m.IDL.Record({node_manager_sha256_hex:m.IDL.Text,release_package_url:m.IDL.Text,sha256_hex:m.IDL.Text,replica_version_id:m.IDL.Text,release_package_sha256_hex:m.IDL.Text,node_manager_binary_url:m.IDL.Text,binary_url:m.IDL.Text}),zp=m.IDL.Record({ecdsa_signatures:m.IDL.Bool}),Lp=m.IDL.Variant({application:m.IDL.Null,verified_application:m.IDL.Null,system:m.IDL.Null}),Jp=m.IDL.Record({unit_delay_millis:m.IDL.Nat64,max_instructions_per_round:m.IDL.Nat64,features:zp,max_instructions_per_message:m.IDL.Nat64,gossip_registry_poll_period_ms:m.IDL.Nat32,max_ingress_bytes_per_message:m.IDL.Nat64,dkg_dealings_per_block:m.IDL.Nat64,max_block_payload_size:m.IDL.Nat64,max_instructions_per_install_code:m.IDL.Nat64,start_as_nns:m.IDL.Bool,is_halted:m.IDL.Bool,gossip_pfn_evaluation_period_ms:m.IDL.Nat32,max_ingress_messages_per_block:m.IDL.Nat64,gossip_max_artifact_streams_per_peer:m.IDL.Nat32,replica_version_id:m.IDL.Text,gossip_max_duplicity:m.IDL.Nat32,gossip_max_chunk_wait_ms:m.IDL.Nat32,dkg_interval_length:m.IDL.Nat64,subnet_id_override:m.IDL.Opt(m.IDL.Principal),ingress_bytes_per_block_soft_cap:m.IDL.Nat64,initial_notary_delay_millis:m.IDL.Nat64,gossip_max_chunk_size:m.IDL.Nat32,subnet_type:Lp,gossip_retransmission_request_ms:m.IDL.Nat32,gossip_receive_check_cache_size:m.IDL.Nat32,node_ids:m.IDL.Vec(m.IDL.Principal)}),Kp=m.IDL.Record({height:m.IDL.Nat64,replacement_nodes:m.IDL.Opt(m.IDL.Vec(m.IDL.Principal)),subnet_id:m.IDL.Principal,registry_store_uri:m.IDL.Opt(m.IDL.Tuple(m.IDL.Text,m.IDL.Text,m.IDL.Nat64)),state_hash:m.IDL.Vec(m.IDL.Nat8),time_ns:m.IDL.Nat64}),hB=m.IDL.Record({node_operators_to_remove:m.IDL.Vec(m.IDL.Vec(m.IDL.Nat8))}),Zi=m.IDL.Record({node_ids:m.IDL.Vec(m.IDL.Principal)}),BB=m.IDL.Record({range_end_inclusive:m.IDL.Principal,range_start_inclusive:m.IDL.Principal,destination_subnet:m.IDL.Principal}),Zp=m.IDL.Record({who:m.IDL.Opt(m.IDL.Principal),subnets:m.IDL.Vec(m.IDL.Principal)}),Xp=m.IDL.Record({ipv4_prefixes:m.IDL.Vec(m.IDL.Text),firewall_config:m.IDL.Text,ipv6_prefixes:m.IDL.Vec(m.IDL.Text)}),Zf=m.IDL.Variant({Start:m.IDL.Null,Stop:m.IDL.Null}),$p=m.IDL.Record({action:Zf,canister_id:m.IDL.Principal}),eA=m.IDL.Record({data_source:m.IDL.Text,xdr_permyriad_per_icp:m.IDL.Nat64,timestamp_seconds:m.IDL.Nat64}),tA=m.IDL.Record({node_operator_id:m.IDL.Opt(m.IDL.Principal),node_allowance:m.IDL.Opt(m.IDL.Nat64),rewardable_nodes:m.IDL.Vec(m.IDL.Tuple(m.IDL.Text,m.IDL.Nat32)),dc_id:m.IDL.Opt(m.IDL.Text)}),Xf=m.IDL.Record({xdr_permyriad_per_node_per_month:m.IDL.Nat64}),$f=m.IDL.Record({rates:m.IDL.Vec(m.IDL.Tuple(m.IDL.Text,Xf))}),oA=m.IDL.Record({new_entries:m.IDL.Vec(m.IDL.Tuple(m.IDL.Text,$f))}),rA=m.IDL.Record({unit_delay_millis:m.IDL.Opt(m.IDL.Nat64),max_duplicity:m.IDL.Opt(m.IDL.Nat32),max_instructions_per_round:m.IDL.Opt(m.IDL.Nat64),features:m.IDL.Opt(zp),set_gossip_config_to_default:m.IDL.Bool,max_instructions_per_message:m.IDL.Opt(m.IDL.Nat64),pfn_evaluation_period_ms:m.IDL.Opt(m.IDL.Nat32),subnet_id:m.IDL.Principal,max_ingress_bytes_per_message:m.IDL.Opt(m.IDL.Nat64),dkg_dealings_per_block:m.IDL.Opt(m.IDL.Nat64),max_block_payload_size:m.IDL.Opt(m.IDL.Nat64),max_instructions_per_install_code:m.IDL.Opt(m.IDL.Nat64),start_as_nns:m.IDL.Opt(m.IDL.Bool),is_halted:m.IDL.Opt(m.IDL.Bool),max_number_of_canisters:m.IDL.Opt(m.IDL.Nat64),advert_best_effort_percentage:m.IDL.Opt(m.IDL.Nat32),retransmission_request_ms:m.IDL.Opt(m.IDL.Nat32),dkg_interval_length:m.IDL.Opt(m.IDL.Nat64),registry_poll_period_ms:m.IDL.Opt(m.IDL.Nat32),max_chunk_wait_ms:m.IDL.Opt(m.IDL.Nat32),receive_check_cache_size:m.IDL.Opt(m.IDL.Nat32),ssh_backup_access:m.IDL.Opt(m.IDL.Vec(m.IDL.Text)),ingress_bytes_per_block_soft_cap:m.IDL.Opt(m.IDL.Nat64),max_chunk_size:m.IDL.Opt(m.IDL.Nat32),initial_notary_delay_millis:m.IDL.Opt(m.IDL.Nat64),max_artifact_streams_per_peer:m.IDL.Opt(m.IDL.Nat32),subnet_type:m.IDL.Opt(Lp),ssh_readonly_access:m.IDL.Opt(m.IDL.Vec(m.IDL.Text))}),nA=m.IDL.Record({subnet_id:m.IDL.Principal,replica_version_id:m.IDL.Text}),iA=m.IDL.Record({replica_version:m.IDL.Opt(m.IDL.Text),ssh_readonly_access:m.IDL.Opt(m.IDL.Vec(m.IDL.Text))});var aA=t=>{switch(t){case 1:return"Create subnet";case 2:return"Add nodes to subnet";case 3:return"Install NNS canister";case 4:return"Upgrade NNS canister";case 5:return"Bless replica version";case 6:return"Recover subnet";case 7:return"Update subnet config";case 8:return"Assign node operator Id";case 9:return"Update NNS root canister";case 10:return"Update ICP/XDR conversion rate";case 11:return"Update subnet replica version";case 12:return"Clear provisional whitelist";case 13:return"Remove nodes from subnet";case 14:return"Set authorized subnetworks";case 15:return"Change firewall config";case 16:return"Update node operator config";case 17:return"Start or stop NNS canister";case 18:return"Remove nodes from registry";case 19:return"Uninstall code from canister";case 20:return"Update the node rewards table";case 21:return"Add or remove data centers";case 22:return"Update unassigned nodes config";default:return"--Unknown--"}},gA=(t,o)=>{let r=new sA.Buffer(o);try{switch(t){case 1:return Je.IDL.decode([Jp],r)[0];case 2:return Je.IDL.decode([Wp],r)[0];case 3:return{"Unable to display payload":"Payload too large"};case 4:return{"Unable to display payload":"Payload too large"};case 5:return Je.IDL.decode([Yp],r)[0];case 6:return Je.IDL.decode([Kp],r)[0];case 7:return Je.IDL.decode([rA],r)[0];case 8:return Je.IDL.decode([qp],r)[0];case 9:return{"Unable to display payload":"Payload too large"};case 10:return Je.IDL.decode([eA],r)[0];case 11:return Je.IDL.decode([nA],r)[0];case 12:return{};case 13:return Je.IDL.decode([Zi],r)[0];case 14:return Je.IDL.decode([Zp],r)[0];case 15:return Je.IDL.decode([Xp],r)[0];case 16:return Je.IDL.decode([tA],r)[0];case 17:return Je.IDL.decode([$p],r)[0];case 18:return Je.IDL.decode([Zi],r)[0];case 20:return Je.IDL.decode([oA],r)[0];case 21:return Je.IDL.decode([Vp],r)[0];case 22:return Je.IDL.decode([iA],r)[0];default:return}}catch(n){return console.log("Unable to deserialize payload. NNS function: "+t),console.log(n),{error:"Unable to deserialize payload"}}};var Xi=class{constructor(){this.toProposalInfo=o=>({id:o.id.length?this.toNeuronId(o.id[0]):void 0,ballots:o.ballots.map(r=>this.toBallot(r[0],r[1])),rejectCost:o.reject_cost_e8s,proposalTimestampSeconds:o.proposal_timestamp_seconds,rewardEventRound:o.reward_event_round,failedTimestampSeconds:o.failed_timestamp_seconds,decidedTimestampSeconds:o.decided_timestamp_seconds,proposal:o.proposal.length?this.toProposal(o.proposal[0]):void 0,proposer:o.proposer.length?this.toNeuronId(o.proposer[0]):void 0,latestTally:o.latest_tally.length?this.toTally(o.latest_tally[0]):void 0,executedTimestampSeconds:o.executed_timestamp_seconds,topic:o.topic,status:o.status,rewardStatus:o.reward_status});this.toArrayOfNeuronInfo=(o,r)=>{let n=r.toString();return o.neuron_infos.map(([i,s])=>this.toNeuronInfo(i,n,s,o.full_neurons.find(p=>p.id.length&&p.id[0].id===i)))};this.toListProposalsResponse=o=>({proposals:o.proposal_info.map(this.toProposalInfo)});this.toKnownNeuron=o=>{var r,n,i;return{id:((r=o.id[0])==null?void 0:r.id)??BigInt(0),name:((n=o.known_neuron_data[0])==null?void 0:n.name)??"",description:((i=o.known_neuron_data[0])==null?void 0:i.description[0])??""}};this.toSplitResponse=o=>{let r=o.command.length?o.command[0]:void 0;if(r&&"Split"in r){let n=r.Split.created_neuron_id;if(n.length)return n[0].id}throw this.throwUnrecognisedTypeError("response",o)};this.toDisburseToNeuronResult=o=>{let r=o.command;if(r.length&&"Spawn"in r[0]&&r[0].Spawn.created_neuron_id.length)return{createdNeuronId:r[0].Spawn.created_neuron_id[0].id};throw this.throwUnrecognisedTypeError("response",o)};this.toClaimOrRefreshNeuronResponse=o=>{let r=o.command;if(r.length&&"ClaimOrRefresh"in r[0])return r[0].ClaimOrRefresh.refreshed_neuron_id.length?r[0].ClaimOrRefresh.refreshed_neuron_id[0].id:void 0;throw this.throwUnrecognisedTypeError("response",o)};this.toMakeProposalResponse=o=>{let r=o.command;if(r.length&&"MakeProposal"in r[0]&&r[0].MakeProposal.proposal_id.length)return{proposalId:r[0].MakeProposal.proposal_id[0].id};throw this.throwUnrecognisedTypeError("response",o)};this.toNeuron=(o,r)=>({id:o.id.length?this.toNeuronId(o.id[0]):void 0,isCurrentUserController:o.controller.length?o.controller[0].toString()===r:void 0,controller:o.controller.length?o.controller[0].toString():void 0,recentBallots:o.recent_ballots.map(this.toBallotInfo),kycVerified:o.kyc_verified,notForProfit:o.not_for_profit,cachedNeuronStake:o.cached_neuron_stake_e8s,createdTimestampSeconds:o.created_timestamp_seconds,maturityE8sEquivalent:o.maturity_e8s_equivalent,agingSinceTimestampSeconds:o.aging_since_timestamp_seconds,neuronFees:o.neuron_fees_e8s,hotKeys:o.hot_keys.map(n=>n.toString()),accountIdentifier:aa(jp,Fn(o.account)),joinedCommunityFundTimestampSeconds:o.joined_community_fund_timestamp_seconds.length?o.joined_community_fund_timestamp_seconds[0]:void 0,dissolveState:o.dissolve_state.length?this.toDissolveState(o.dissolve_state[0]):void 0,followees:o.followees.map(([n,i])=>this.toFollowees(n,i))});this.toBallotInfo=o=>({vote:o.vote,proposalId:o.proposal_id.length?this.toNeuronId(o.proposal_id[0]):void 0});this.toDissolveState=o=>"DissolveDelaySeconds"in o?{DissolveDelaySeconds:o.DissolveDelaySeconds}:{WhenDissolvedTimestampSeconds:o.WhenDissolvedTimestampSeconds};this.toFollowees=(o,r)=>({topic:o,followees:r.followees.map(this.toNeuronId)});this.toNeuronId=o=>o.id;this.toNeuronIdOrSubaccount=o=>{if("NeuronId"in o)return{NeuronId:o.NeuronId.id};if("Subaccount"in o)return{Subaccount:o.Subaccount};throw new Le(o)};this.toBallot=(o,r)=>({neuronId:o,vote:r.vote,votingPower:r.voting_power});this.toProposal=o=>({title:o.title.length?o.title[0]:void 0,url:o.url,action:o.action.length?this.toAction(o.action[0]):void 0,summary:o.summary});this.toAction=o=>{if("ExecuteNnsFunction"in o){let r=o.ExecuteNnsFunction,n=na(r.payload),i=n.byteLength?gA(r.nns_function,n):void 0;return{ExecuteNnsFunction:{nnsFunctionId:r.nns_function,nnsFunctionName:aA(r.nns_function),payload:i,payloadBytes:n}}}if("ManageNeuron"in o){let r=o.ManageNeuron;return{ManageNeuron:{id:r.id.length?this.toNeuronId(r.id[0]):void 0,command:r.command.length?this.toCommand(r.command[0]):void 0,neuronIdOrSubaccount:r.neuron_id_or_subaccount.length?this.toNeuronIdOrSubaccount(r.neuron_id_or_subaccount[0]):void 0}}}if("ApproveGenesisKyc"in o)return{ApproveGenesisKyc:{principals:o.ApproveGenesisKyc.principals.map(n=>n.toString())}};if("ManageNetworkEconomics"in o){let r=o.ManageNetworkEconomics;return{ManageNetworkEconomics:{neuronMinimumStake:r.neuron_minimum_stake_e8s,maxProposalsToKeepPerTopic:r.max_proposals_to_keep_per_topic,neuronManagementFeePerProposal:r.neuron_management_fee_per_proposal_e8s,rejectCost:r.reject_cost_e8s,transactionFee:r.transaction_fee_e8s,neuronSpawnDissolveDelaySeconds:r.neuron_spawn_dissolve_delay_seconds,minimumIcpXdrRate:r.minimum_icp_xdr_rate,maximumNodeProviderRewards:r.maximum_node_provider_rewards_e8s}}}if("RewardNodeProvider"in o){let r=o.RewardNodeProvider;return{RewardNodeProvider:{nodeProvider:r.node_provider.length?this.toNodeProvider(r.node_provider[0]):void 0,amountE8s:r.amount_e8s,rewardMode:r.reward_mode.length?this.toRewardMode(r.reward_mode[0]):void 0}}}if("RewardNodeProviders"in o)return{RewardNodeProviders:{rewards:o.RewardNodeProviders.rewards.map(n=>({nodeProvider:n.node_provider.length?this.toNodeProvider(n.node_provider[0]):void 0,amountE8s:n.amount_e8s,rewardMode:n.reward_mode.length?this.toRewardMode(n.reward_mode[0]):void 0}))}};if("AddOrRemoveNodeProvider"in o){let r=o.AddOrRemoveNodeProvider;return{AddOrRemoveNodeProvider:{change:r.change.length?this.toChange(r.change[0]):void 0}}}if("Motion"in o)return{Motion:{motionText:o.Motion.motion_text}};if("SetDefaultFollowees"in o)return{SetDefaultFollowees:{defaultFollowees:o.SetDefaultFollowees.default_followees.map(([n,i])=>this.toFollowees(n,i))}};if("RegisterKnownNeuron"in o){let r=o.RegisterKnownNeuron;return{RegisterKnownNeuron:this.toKnownNeuron(r)}}throw new Le(o)};this.toTally=o=>({no:o.no,yes:o.yes,total:o.total,timestampSeconds:o.timestamp_seconds});this.toCommand=o=>{if("Spawn"in o){let r=o.Spawn;return{Spawn:{newController:r.new_controller.length?r.new_controller[0].toString():void 0}}}if("Split"in o)return{Split:{amount:o.Split.amount_e8s}};if("Follow"in o){let r=o.Follow;return{Follow:{topic:r.topic,followees:r.followees.map(this.toNeuronId)}}}if("ClaimOrRefresh"in o){let r=o.ClaimOrRefresh;return{ClaimOrRefresh:{by:r.by.length?this.toClaimOrRefreshBy(r.by[0]):void 0}}}if("Configure"in o){let r=o.Configure;return{Configure:{operation:r.operation.length?this.toOperation(r.operation[0]):void 0}}}if("RegisterVote"in o){let r=o.RegisterVote;return{RegisterVote:{vote:r.vote,proposal:r.proposal.length?this.toNeuronId(r.proposal[0]):void 0}}}if("DisburseToNeuron"in o){let r=o.DisburseToNeuron;return{DisburseToNeuron:{dissolveDelaySeconds:r.dissolve_delay_seconds,kycVerified:r.kyc_verified,amount:r.amount_e8s,newController:r.new_controller.length?r.new_controller[0].toString():void 0,nonce:r.nonce}}}if("MergeMaturity"in o)return{MergeMaturity:{percentageToMerge:o.MergeMaturity.percentage_to_merge}};if("MakeProposal"in o){let r=o.MakeProposal;return{MakeProposal:{title:r.title.length?r.title[0]:void 0,url:r.url,action:r.action.length?this.toAction(r.action[0]):void 0,summary:r.summary}}}if("Disburse"in o){let r=o.Disburse;return{Disburse:{toAccountId:r.to_account.length?this.toAccountIdentifier(r.to_account[0]):void 0,amount:r.amount.length?this.toAmount(r.amount[0]):void 0}}}if("Merge"in o){let r=o.Merge;return{Merge:{sourceNeuronId:r.source_neuron_id.length?r.source_neuron_id[0].id:void 0}}}throw new Le(o)};this.toOperation=o=>{if("RemoveHotKey"in o){let r=o.RemoveHotKey;return{RemoveHotKey:{hotKeyToRemove:r.hot_key_to_remove.length?r.hot_key_to_remove[0].toString():void 0}}}if("AddHotKey"in o){let r=o.AddHotKey;return{AddHotKey:{newHotKey:r.new_hot_key.length?r.new_hot_key[0].toString():void 0}}}if("StopDissolving"in o)return{StopDissolving:{}};if("StartDissolving"in o)return{StartDissolving:{}};if("IncreaseDissolveDelay"in o)return{IncreaseDissolveDelay:{additionalDissolveDelaySeconds:o.IncreaseDissolveDelay.additional_dissolve_delay_seconds}};if("JoinCommunityFund"in o)return o;if("SetDissolveTimestamp"in o)return{SetDissolveTimestamp:{dissolveTimestampSeconds:o.SetDissolveTimestamp.dissolve_timestamp_seconds}};throw new Le(o)};this.toChange=o=>{if("ToRemove"in o)return{ToRemove:this.toNodeProvider(o.ToRemove)};if("ToAdd"in o)return{ToAdd:this.toNodeProvider(o.ToAdd)};throw new Le(o)};this.toNodeProvider=o=>({id:o.id.length?o.id[0].toString():void 0,rewardAccount:o.reward_account.length?this.toAccountIdentifier(o.reward_account[0]):void 0});this.toAmount=o=>o.e8s}toNeuronInfo(o,r,n,i){let s=i?this.toNeuron(i,r):void 0;return{neuronId:o,dissolveDelaySeconds:n.dissolve_delay_seconds,recentBallots:n.recent_ballots.map(this.toBallotInfo),createdTimestampSeconds:n.created_timestamp_seconds,state:n.state,joinedCommunityFundTimestampSeconds:n.joined_community_fund_timestamp_seconds.length?n.joined_community_fund_timestamp_seconds[0]:void 0,retrievedAtTimestampSeconds:n.retrieved_at_timestamp_seconds,votingPower:n.voting_power,ageSeconds:n.age_seconds,fullNeuron:s}}toAccountIdentifier(o){return sa(new Uint8Array(o.hash))}toRewardMode(o){if("RewardToNeuron"in o)return{RewardToNeuron:{dissolveDelaySeconds:o.RewardToNeuron.dissolve_delay_seconds}};if("RewardToAccount"in o)return{RewardToAccount:{toAccount:o.RewardToAccount.to_account!=null&&o.RewardToAccount.to_account.length?this.toAccountIdentifier(o.RewardToAccount.to_account[0]):void 0}};throw new Le(o)}toClaimOrRefreshBy(o){if("NeuronIdOrSubaccount"in o)return{NeuronIdOrSubaccount:{}};if("Memo"in o)return{Memo:o.Memo};if("MemoAndController"in o)return{MemoAndController:{memo:o.MemoAndController.memo,controller:o.MemoAndController.controller.length?o.MemoAndController.controller[0]:void 0}};throw new Le(o)}throwUnrecognisedTypeError(o,r){return new Error(`Unrecognised ${o} type - ${JSON.stringify(r)}`)}};var tn=pt($r()),on=()=>new tn.HttpAgent({host:"https://ic0.app",identity:new tn.AnonymousIdentity});var ar=class{constructor(o,r,n,i,s){this.service=o;this.certifiedService=r;this.requestConverters=n;this.responseConverters=i;this.myPrincipal=s;this.getNeurons=async({certified:o=!0,neuronIds:r})=>{if(this.myPrincipal===void 0)return new Promise(()=>[]);let n=this.myPrincipal,i=this.requestConverters.fromListNeurons(r),p=await(o?this.certifiedService:this.service).list_neurons(i);return this.responseConverters.toArrayOfNeuronInfo(p,n)};this.listKnownNeurons=async(o=!0)=>(await(o?this.certifiedService:this.service).list_known_neurons()).known_neurons.map(i=>{var s,p,u;return{id:((s=i.id[0])==null?void 0:s.id)??BigInt(0),name:((p=i.known_neuron_data[0])==null?void 0:p.name)??"",description:(u=i.known_neuron_data[0])==null?void 0:u.description[0]}});this.listProposals=async({request:o,certified:r=!0})=>{let n=this.requestConverters.fromListProposalsRequest(o),s=await(r?this.certifiedService:this.service).list_proposals(n);return this.responseConverters.toListProposalsResponse(s)};this.service=o,this.certifiedService=r,this.requestConverters=n,this.responseConverters=i,this.myPrincipal=s}static create(o={}){let r=o.agent??on(),n=o.canisterId??Dp,i=o.serviceOverride??$i.Actor.createActor(Op,{agent:r,canisterId:n}),s=o.certifiedServiceOverride??$i.Actor.createActor(Mp,{agent:r,canisterId:n}),p=new Ki,u=new Xi;return new ar(i,s,p,u)}};var pA=pt(lr());var es=(r=>(r[r.FRACTIONAL_MORE_THAN_8_DECIMALS=0]="FRACTIONAL_MORE_THAN_8_DECIMALS",r[r.INVALID_FORMAT=1]="INVALID_FORMAT",r))(es||{});var kt=class{constructor(o){this.e8s=o}static fromE8s(o){return new kt(o)}static fromString(o){o=o.trim().replace(/[,']/g,"");let r=o.match(/\d*(\.\d*)?/);if(!r||r[0]!==o)return 1;let[n,i]=o.split("."),s=BigInt(0);if(n)try{s+=BigInt(n)*ta}catch{return 1}if(i){if(i.length>8)return 0;try{s+=BigInt(i.padEnd(8,"0"))}catch{return 1}}return new kt(s)}toE8s(){return this.e8s}toProto(){let o=new pA.ICPTs;return o.setE8s(this.e8s.toString()),o}};var It=pt(lr());var rn=class{},AA=class{},nn=class{constructor(o){this.balance=o}},sn=class{constructor(o){this.allowed_window_secs=o}},an=class{},gn=class{constructor(o){this.duplicateOf=o}};var ts=pt($r()),uA=async(t,o,r,n)=>{let i=await t.call(o,{methodName:r,arg:n,effectiveCanisterId:o});if(!i.response.ok)return Error(["Call failed:",` Method: ${r}`,` Canister ID: ${o}`,` Request ID: ${i.requestId}`,` HTTP status code: ${i.response.status}`,` HTTP status text: ${i.response.statusText}`].join(`
|
|
852
|
-
`));try{let s=await ts.polling.pollForResponse(t,o,
|
|
853
|
-
`)):new Uint8Array(
|
|
848
|
+
`)}throw new Error("unreachable")}yt.pollForResponse=mp});var Vr=H(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.Actor=ct.CanisterInstallMode=ct.UpdateCallRejectedError=ct.QueryCallRejectedError=ct.ActorCallError=void 0;var jf=xa(),Yn=or(),Cp=Nn(),Df=Ir(),Kr=mo(),xp=Vn(),Ro=Ft(),Hf=Vt(),Zr=class extends Df.AgentError{constructor(o,r,i,n){super(["Call failed:",` Canister: ${o.toText()}`,` Method: ${r} (${i})`,...Object.getOwnPropertyNames(n).map(s=>` "${s}": ${JSON.stringify(n[s])}`)].join(`
|
|
849
|
+
`));this.canisterId=o,this.methodName=r,this.type=i,this.props=n}};ct.ActorCallError=Zr;var zn=class extends Zr{constructor(o,r,i){var n;super(o,r,"query",{Status:i.status,Code:(n=Yn.ReplicaRejectCode[i.reject_code])!==null&&n!==void 0?n:`Unknown Code "${i.reject_code}"`,Message:i.reject_message});this.result=i}};ct.QueryCallRejectedError=zn;var Ln=class extends Zr{constructor(o,r,i,n){super(o,r,"update",{"Request ID":Hf.toHex(i),"HTTP status code":n.status.toString(),"HTTP status text":n.statusText});this.requestId=i,this.response=n}};ct.UpdateCallRejectedError=Ln;var Sp;(function(t){t.Install="install",t.Reinstall="reinstall",t.Upgrade="upgrade"})(Sp=ct.CanisterInstallMode||(ct.CanisterInstallMode={}));var _t=Symbol.for("ic-agent-metadata"),Xr=class{constructor(o){this[_t]=Object.freeze(o)}static agentOf(o){return o[_t].config.agent}static interfaceOf(o){return o[_t].service}static canisterIdOf(o){return Ro.Principal.from(o[_t].config.canisterId)}static async install(o,r){let i=o.mode===void 0?Sp.Install:o.mode,n=o.arg?[...new Uint8Array(o.arg)]:[],s=[...new Uint8Array(o.module)],p=typeof r.canisterId=="string"?Ro.Principal.fromText(r.canisterId):r.canisterId;await Cp.getManagementCanister(r).install_code({mode:{[i]:null},arg:n,wasm_module:s,canister_id:p})}static async createCanister(o){let{canister_id:r}=await Cp.getManagementCanister(o||{}).provisional_create_canister_with_cycles({amount:[],settings:[]});return r}static async createAndInstallCanister(o,r,i){let n=await this.createCanister(i);return await this.install(Object.assign({},r),Object.assign(Object.assign({},i),{canisterId:n})),this.createActor(o,Object.assign(Object.assign({},i),{canisterId:n}))}static createActorClass(o){let r=o({IDL:Kr.IDL});class i extends Xr{constructor(s){let p=typeof s.canisterId=="string"?Ro.Principal.fromText(s.canisterId):s.canisterId;super({config:Object.assign(Object.assign(Object.assign({},vp),s),{canisterId:p}),service:r});for(let[u,h]of r._fields)this[u]=qf(this,u,h)}}return i}static createActor(o,r){return new(this.createActorClass(o))(r)}};ct.Actor=Xr;function wp(t,o){let r=Kr.IDL.decode(t,jf.Buffer.from(o));switch(r.length){case 0:return;case 1:return r[0];default:return r}}var vp={pollingStrategyFactory:xp.strategy.defaultStrategy};function qf(t,o,r){let i;r.annotations.includes("query")?i=async(s,...p)=>{var u,h;s=Object.assign(Object.assign({},s),(h=(u=t[_t].config).queryTransform)===null||h===void 0?void 0:h.call(u,o,p,Object.assign(Object.assign({},t[_t].config),s)));let w=s.agent||t[_t].config.agent||Yn.getDefaultAgent(),G=Ro.Principal.from(s.canisterId||t[_t].config.canisterId),T=Kr.IDL.encode(r.argTypes,p),V=await w.query(G,{methodName:o,arg:T});switch(V.status){case"rejected":throw new zn(G,o,V);case"replied":return wp(r.retTypes,V.reply.arg)}}:i=async(s,...p)=>{var u,h;s=Object.assign(Object.assign({},s),(h=(u=t[_t].config).callTransform)===null||h===void 0?void 0:h.call(u,o,p,Object.assign(Object.assign({},t[_t].config),s)));let w=s.agent||t[_t].config.agent||Yn.getDefaultAgent(),{canisterId:G,effectiveCanisterId:T,pollingStrategyFactory:V}=Object.assign(Object.assign(Object.assign({},vp),t[_t].config),s),P=Ro.Principal.from(G),L=T!==void 0?Ro.Principal.from(T):P,ee=Kr.IDL.encode(r.argTypes,p),{requestId:le,response:te}=await w.call(P,{methodName:o,arg:ee,effectiveCanisterId:L});if(!te.ok)throw new Ln(P,o,le,te);let xe=V(),Ie=await xp.pollForResponse(w,L,le,xe);if(Ie!==void 0)return wp(r.retTypes,Ie);if(r.retTypes.length===0)return;throw new Error(`Call was returned undefined, but type [${r.retTypes.join(",")}].`)};let n=(...s)=>i({},...s);return n.withOptions=s=>(...p)=>i(s,...p),n}});var Rp=H(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.default=({IDL:t})=>t.Service({retrieve:t.Func([t.Text],[t.Vec(t.Nat8)],["query"]),store:t.Func([t.Text,t.Vec(t.Nat8)],[],[])})});var Qp=H(Qo=>{"use strict";var Wf=Qo&&Qo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qo,"__esModule",{value:!0});Qo.createAssetCanisterActor=void 0;var Vf=Vr(),Yf=Wf(Rp());function zf(t){return Vf.Actor.createActor(Yf.default,t)}Qo.createAssetCanisterActor=zf});var $r=H(Me=>{"use strict";var Fp=Me&&Me.__createBinding||(Object.create?function(t,o,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,i){i===void 0&&(i=r),t[i]=o[r]}),Lf=Me&&Me.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),Pt=Me&&Me.__exportStar||function(t,o){for(var r in t)r!=="default"&&!o.hasOwnProperty(r)&&Fp(o,t,r)},Tp=Me&&Me.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Fp(o,t,r);return Lf(o,t),o};Object.defineProperty(Me,"__esModule",{value:!0});Pt(Vr(),Me);Pt(or(),Me);Pt(_n(),Me);Pt(qn(),Me);Pt(Hr(),Me);Pt(tr(),Me);Pt(Qp(),Me);Pt(Nn(),Me);Pt($o(),Me);Pt(Un(),Me);Me.polling=Tp(Vn());Me.Cbor=Tp(Dr())});var eh={};GA(eh,{AccountIdentifier:()=>co,BadFee:()=>AA,FromICPStringError:()=>es,GovernanceCanister:()=>sr,ICP:()=>kt,InsufficientFunds:()=>ii,InvalidSender:()=>ri,LedgerCanister:()=>ar,NeuronState:()=>Np,ProposalRewardStatus:()=>Gp,ProposalStatus:()=>Pp,SubAccount:()=>Po,Topic:()=>Up,TxCreatedInFuture:()=>si,TxDuplicate:()=>ai,TxTooOld:()=>ni,UnsupportedValueError:()=>Le,Vote:()=>kp});var ga=pt(No()),pa=pt(lr());var Go=require("buffer"),oa=pt(ea()),ra=pt(No());var kh=BigInt(1095062083),Uh=BigInt(1347768404),jh=BigInt(1e4),ta=BigInt(1e8);var Wh=BigInt(1)<<BigInt(32);var cr=t=>{let o=new Uint8Array(t);return Array.from(o)},Qi=t=>new Uint8Array(t),ia=t=>Qi(t).buffer;var Fi=t=>Array.from(t).map(o=>o.charCodeAt(0));var na=t=>Uint8Array.from(Go.Buffer.from(t,"hex")).subarray(4),sa=t=>Go.Buffer.from(t).toString("hex"),aa=(t,o)=>{let r=Fi(`
|
|
850
|
+
account-id`),i=ra.sha224.create();i.update([...r,...t.toUint8Array(),...o??Array(32).fill(0)]);let n=new Uint8Array(i.array()),s=Mi(n),p=new Uint8Array([...s,...n]);return Ti(p)};var Ti=t=>t.reduce((o,r)=>o+r.toString(16).padStart(2,"0"),""),Mi=t=>{let o=new ArrayBuffer(4);return new DataView(o).setUint32(0,oa.default.crc32(Go.Buffer.from(t)),!1),Go.Buffer.from(o)};var co=class{constructor(o){this.bytes=o}static fromHex(o){return new co(Uint8Array.from(Buffer.from(o,"hex")))}static fromPrincipal({principal:o,subAccount:r=Po.ZERO}){let i=Fi(`
|
|
851
|
+
account-id`),n=ga.sha224.create();n.update([...i,...o.toUint8Array(),...r.toUint8Array()]);let s=new Uint8Array(n.array()),p=Mi(s),u=new Uint8Array([...p,...s]);return new co(u)}toProto(){let o=new pa.AccountIdentifier;return o.setHash(this.bytes),o}toHex(){return Ti(this.bytes)}},ko=class{constructor(o){this.bytes=o}static fromBytes(o){return o.length!=32?Error("Subaccount length must be 32-bytes"):new ko(o)}static fromPrincipal(o){let r=new Uint8Array(32).fill(0),i=o.toUint8Array();r[0]=i.length;for(let n=0;n<i.length;n++)r[1+n]=i[n];return new ko(r)}toUint8Array(){return this.bytes}},Po=ko;Po.ZERO=new ko(new Uint8Array(32).fill(0));var $n=pt($r());var Mp=({IDL:t})=>{let o=t.Rec(),r=t.Record({id:t.Nat64}),i=t.Record({followees:t.Vec(r)}),n=t.Record({not_dissolving_neurons_e8s_buckets:t.Vec(t.Tuple(t.Nat64,t.Float64)),garbage_collectable_neurons_count:t.Nat64,neurons_with_invalid_stake_count:t.Nat64,not_dissolving_neurons_count_buckets:t.Vec(t.Tuple(t.Nat64,t.Nat64)),total_supply_icp:t.Nat64,neurons_with_less_than_6_months_dissolve_delay_count:t.Nat64,dissolved_neurons_count:t.Nat64,total_staked_e8s:t.Nat64,not_dissolving_neurons_count:t.Nat64,dissolved_neurons_e8s:t.Nat64,neurons_with_less_than_6_months_dissolve_delay_e8s:t.Nat64,dissolving_neurons_count_buckets:t.Vec(t.Tuple(t.Nat64,t.Nat64)),dissolving_neurons_count:t.Nat64,dissolving_neurons_e8s_buckets:t.Vec(t.Tuple(t.Nat64,t.Float64)),community_fund_total_staked_e8s:t.Nat64,timestamp_seconds:t.Nat64}),s=t.Record({hash:t.Vec(t.Nat8)}),p=t.Record({id:t.Opt(t.Principal),reward_account:t.Opt(s)}),u=t.Record({neuron_minimum_stake_e8s:t.Nat64,max_proposals_to_keep_per_topic:t.Nat32,neuron_management_fee_per_proposal_e8s:t.Nat64,reject_cost_e8s:t.Nat64,transaction_fee_e8s:t.Nat64,neuron_spawn_dissolve_delay_seconds:t.Nat64,minimum_icp_xdr_rate:t.Nat64,maximum_node_provider_rewards_e8s:t.Nat64}),h=t.Record({day_after_genesis:t.Nat64,actual_timestamp_seconds:t.Nat64,distributed_e8s_equivalent:t.Nat64,settled_proposals:t.Vec(r)}),w=t.Record({to_subaccount:t.Vec(t.Nat8),neuron_stake_e8s:t.Nat64,from:t.Opt(t.Principal),memo:t.Nat64,from_subaccount:t.Vec(t.Nat8),transfer_timestamp:t.Nat64,block_height:t.Nat64}),G=t.Record({error_message:t.Text,error_type:t.Int32}),T=t.Record({vote:t.Int32,voting_power:t.Nat64}),V=t.Record({no:t.Nat64,yes:t.Nat64,total:t.Nat64,timestamp_seconds:t.Nat64}),P=t.Record({name:t.Text,description:t.Opt(t.Text)}),L=t.Record({id:t.Opt(r),known_neuron_data:t.Opt(P)}),ee=t.Record({new_controller:t.Opt(t.Principal),nonce:t.Opt(t.Nat64)}),le=t.Record({amount_e8s:t.Nat64}),te=t.Record({topic:t.Int32,followees:t.Vec(r)}),xe=t.Record({controller:t.Opt(t.Principal),memo:t.Nat64}),Ie=t.Variant({NeuronIdOrSubaccount:t.Record({}),MemoAndController:xe,Memo:t.Nat64}),Se=t.Record({by:t.Opt(Ie)}),X=t.Record({hot_key_to_remove:t.Opt(t.Principal)}),Z=t.Record({new_hot_key:t.Opt(t.Principal)}),pe=t.Record({additional_dissolve_delay_seconds:t.Nat32}),he=t.Record({dissolve_timestamp_seconds:t.Nat64}),q=t.Variant({RemoveHotKey:X,AddHotKey:Z,StopDissolving:t.Record({}),StartDissolving:t.Record({}),IncreaseDissolveDelay:pe,JoinCommunityFund:t.Record({}),SetDissolveTimestamp:he}),Be=t.Record({operation:t.Opt(q)}),ce=t.Record({vote:t.Int32,proposal:t.Opt(r)}),de=t.Record({source_neuron_id:t.Opt(r)}),ve=t.Record({dissolve_delay_seconds:t.Nat64,kyc_verified:t.Bool,amount_e8s:t.Nat64,new_controller:t.Opt(t.Principal),nonce:t.Nat64}),Oe=t.Record({percentage_to_merge:t.Nat32}),$e=t.Record({e8s:t.Nat64}),Ue=t.Record({to_account:t.Opt(s),amount:t.Opt($e)}),it=t.Variant({Spawn:ee,Split:le,Follow:te,ClaimOrRefresh:Se,Configure:Be,RegisterVote:ce,Merge:de,DisburseToNeuron:ve,MakeProposal:o,MergeMaturity:Oe,Disburse:Ue}),Re=t.Variant({Subaccount:t.Vec(t.Nat8),NeuronId:r}),et=t.Record({id:t.Opt(r),command:t.Opt(it),neuron_id_or_subaccount:t.Opt(Re)}),Ut=t.Record({nns_function:t.Int32,payload:t.Vec(t.Nat8)}),dt=t.Record({dissolve_delay_seconds:t.Nat64}),jt=t.Record({to_account:t.Opt(s)}),U=t.Variant({RewardToNeuron:dt,RewardToAccount:jt}),I=t.Record({node_provider:t.Opt(p),reward_mode:t.Opt(U),amount_e8s:t.Nat64}),wt=t.Record({default_followees:t.Vec(t.Tuple(t.Int32,i))}),gt=t.Record({rewards:t.Vec(I)}),He=t.Record({principals:t.Vec(t.Principal)}),$=t.Variant({ToRemove:p,ToAdd:p}),l=t.Record({change:t.Opt($)}),B=t.Record({motion_text:t.Text}),E=t.Variant({RegisterKnownNeuron:L,ManageNeuron:et,ExecuteNnsFunction:Ut,RewardNodeProvider:I,SetDefaultFollowees:wt,RewardNodeProviders:gt,ManageNetworkEconomics:u,ApproveGenesisKyc:He,AddOrRemoveNodeProvider:l,Motion:B});o.fill(t.Record({url:t.Text,title:t.Opt(t.Text),action:t.Opt(E),summary:t.Text}));let R=t.Record({current_deadline_timestamp_seconds:t.Nat64}),C=t.Record({id:t.Opt(r),failure_reason:t.Opt(G),ballots:t.Vec(t.Tuple(t.Nat64,T)),proposal_timestamp_seconds:t.Nat64,reward_event_round:t.Nat64,failed_timestamp_seconds:t.Nat64,reject_cost_e8s:t.Nat64,latest_tally:t.Opt(V),decided_timestamp_seconds:t.Nat64,proposal:t.Opt(o),proposer:t.Opt(r),wait_for_quiet_state:t.Opt(R),executed_timestamp_seconds:t.Nat64}),S=t.Variant({Spawn:ee,Split:le,Configure:Be,Merge:de,DisburseToNeuron:ve,ClaimOrRefreshNeuron:Se,MergeMaturity:Oe,Disburse:Ue}),F=t.Record({command:t.Opt(S),timestamp:t.Nat64}),y=t.Record({vote:t.Int32,proposal_id:t.Opt(r)}),x=t.Variant({DissolveDelaySeconds:t.Nat64,WhenDissolvedTimestampSeconds:t.Nat64}),Q=t.Record({id:t.Opt(r),controller:t.Opt(t.Principal),recent_ballots:t.Vec(y),kyc_verified:t.Bool,not_for_profit:t.Bool,maturity_e8s_equivalent:t.Nat64,cached_neuron_stake_e8s:t.Nat64,created_timestamp_seconds:t.Nat64,aging_since_timestamp_seconds:t.Nat64,hot_keys:t.Vec(t.Principal),account:t.Vec(t.Nat8),joined_community_fund_timestamp_seconds:t.Opt(t.Nat64),dissolve_state:t.Opt(x),followees:t.Vec(t.Tuple(t.Int32,i)),neuron_fees_e8s:t.Nat64,transfer:t.Opt(w),known_neuron_data:t.Opt(P)}),v=t.Record({default_followees:t.Vec(t.Tuple(t.Int32,i)),wait_for_quiet_threshold_seconds:t.Nat64,metrics:t.Opt(n),node_providers:t.Vec(p),economics:t.Opt(u),latest_reward_event:t.Opt(h),to_claim_transfers:t.Vec(w),short_voting_period_seconds:t.Nat64,proposals:t.Vec(t.Tuple(t.Nat64,C)),in_flight_commands:t.Vec(t.Tuple(t.Nat64,F)),neurons:t.Vec(t.Tuple(t.Nat64,Q)),genesis_timestamp_seconds:t.Nat64}),N=t.Variant({Ok:t.Null,Err:G}),D=t.Variant({Error:G,NeuronId:r}),J=t.Record({result:t.Opt(D)}),re=t.Variant({Ok:Q,Err:G}),Ee=t.Variant({Ok:gt,Err:G}),me=t.Record({dissolve_delay_seconds:t.Nat64,recent_ballots:t.Vec(y),created_timestamp_seconds:t.Nat64,state:t.Int32,stake_e8s:t.Nat64,joined_community_fund_timestamp_seconds:t.Opt(t.Nat64),retrieved_at_timestamp_seconds:t.Nat64,known_neuron_data:t.Opt(P),voting_power:t.Nat64,age_seconds:t.Nat64}),oe=t.Variant({Ok:me,Err:G}),z=t.Record({id:t.Opt(r),status:t.Int32,topic:t.Int32,failure_reason:t.Opt(G),ballots:t.Vec(t.Tuple(t.Nat64,T)),proposal_timestamp_seconds:t.Nat64,reward_event_round:t.Nat64,deadline_timestamp_seconds:t.Opt(t.Nat64),failed_timestamp_seconds:t.Nat64,reject_cost_e8s:t.Nat64,latest_tally:t.Opt(V),reward_status:t.Int32,decided_timestamp_seconds:t.Nat64,proposal:t.Opt(o),proposer:t.Opt(r),executed_timestamp_seconds:t.Nat64}),Qe=t.Record({known_neurons:t.Vec(L)}),vt=t.Record({neuron_ids:t.Vec(t.Nat64),include_neurons_readable_by_caller:t.Bool}),Dt=t.Record({neuron_infos:t.Vec(t.Tuple(t.Nat64,me)),full_neurons:t.Vec(Q)}),Ht=t.Record({include_reward_status:t.Vec(t.Int32),before_proposal:t.Opt(r),limit:t.Nat32,exclude_topic:t.Vec(t.Int32),include_status:t.Vec(t.Int32)}),tt=t.Record({proposal_info:t.Vec(z)}),ie=t.Record({created_neuron_id:t.Opt(r)}),qe=t.Record({refreshed_neuron_id:t.Opt(r)}),Ne=t.Record({proposal_id:t.Opt(r)}),be=t.Record({merged_maturity_e8s:t.Nat64,new_stake_e8s:t.Nat64}),Fo=t.Record({transfer_block_height:t.Nat64}),To=t.Variant({Error:G,Spawn:ie,Split:ie,Follow:t.Record({}),ClaimOrRefresh:qe,Configure:t.Record({}),RegisterVote:t.Record({}),Merge:t.Record({}),DisburseToNeuron:ie,MakeProposal:Ne,MergeMaturity:be,Disburse:Fo}),ye=t.Record({command:t.Opt(To)}),Mo=t.Record({reward_account:t.Opt(s)});return t.Service({claim_gtc_neurons:t.Func([t.Principal,t.Vec(r)],[N],[]),claim_or_refresh_neuron_from_account:t.Func([xe],[J],[]),get_build_metadata:t.Func([],[t.Text],[]),get_full_neuron:t.Func([t.Nat64],[re],[]),get_full_neuron_by_id_or_subaccount:t.Func([Re],[re],[]),get_monthly_node_provider_rewards:t.Func([],[Ee],[]),get_neuron_ids:t.Func([],[t.Vec(t.Nat64)],[]),get_neuron_info:t.Func([t.Nat64],[oe],[]),get_neuron_info_by_id_or_subaccount:t.Func([Re],[oe],[]),get_pending_proposals:t.Func([],[t.Vec(z)],[]),get_proposal_info:t.Func([t.Nat64],[t.Opt(z)],[]),list_known_neurons:t.Func([],[Qe],[]),list_neurons:t.Func([vt],[Dt],[]),list_proposals:t.Func([Ht],[tt],[]),manage_neuron:t.Func([et],[ye],[]),transfer_gtc_neuron:t.Func([r,r],[N],[]),update_node_provider:t.Func([Mo],[N],[])})};var Op=({IDL:t})=>{let o=t.Rec(),r=t.Record({id:t.Nat64}),i=t.Record({followees:t.Vec(r)}),n=t.Record({not_dissolving_neurons_e8s_buckets:t.Vec(t.Tuple(t.Nat64,t.Float64)),garbage_collectable_neurons_count:t.Nat64,neurons_with_invalid_stake_count:t.Nat64,not_dissolving_neurons_count_buckets:t.Vec(t.Tuple(t.Nat64,t.Nat64)),total_supply_icp:t.Nat64,neurons_with_less_than_6_months_dissolve_delay_count:t.Nat64,dissolved_neurons_count:t.Nat64,total_staked_e8s:t.Nat64,not_dissolving_neurons_count:t.Nat64,dissolved_neurons_e8s:t.Nat64,neurons_with_less_than_6_months_dissolve_delay_e8s:t.Nat64,dissolving_neurons_count_buckets:t.Vec(t.Tuple(t.Nat64,t.Nat64)),dissolving_neurons_count:t.Nat64,dissolving_neurons_e8s_buckets:t.Vec(t.Tuple(t.Nat64,t.Float64)),community_fund_total_staked_e8s:t.Nat64,timestamp_seconds:t.Nat64}),s=t.Record({hash:t.Vec(t.Nat8)}),p=t.Record({id:t.Opt(t.Principal),reward_account:t.Opt(s)}),u=t.Record({neuron_minimum_stake_e8s:t.Nat64,max_proposals_to_keep_per_topic:t.Nat32,neuron_management_fee_per_proposal_e8s:t.Nat64,reject_cost_e8s:t.Nat64,transaction_fee_e8s:t.Nat64,neuron_spawn_dissolve_delay_seconds:t.Nat64,minimum_icp_xdr_rate:t.Nat64,maximum_node_provider_rewards_e8s:t.Nat64}),h=t.Record({day_after_genesis:t.Nat64,actual_timestamp_seconds:t.Nat64,distributed_e8s_equivalent:t.Nat64,settled_proposals:t.Vec(r)}),w=t.Record({to_subaccount:t.Vec(t.Nat8),neuron_stake_e8s:t.Nat64,from:t.Opt(t.Principal),memo:t.Nat64,from_subaccount:t.Vec(t.Nat8),transfer_timestamp:t.Nat64,block_height:t.Nat64}),G=t.Record({error_message:t.Text,error_type:t.Int32}),T=t.Record({vote:t.Int32,voting_power:t.Nat64}),V=t.Record({no:t.Nat64,yes:t.Nat64,total:t.Nat64,timestamp_seconds:t.Nat64}),P=t.Record({name:t.Text,description:t.Opt(t.Text)}),L=t.Record({id:t.Opt(r),known_neuron_data:t.Opt(P)}),ee=t.Record({new_controller:t.Opt(t.Principal),nonce:t.Opt(t.Nat64)}),le=t.Record({amount_e8s:t.Nat64}),te=t.Record({topic:t.Int32,followees:t.Vec(r)}),xe=t.Record({controller:t.Opt(t.Principal),memo:t.Nat64}),Ie=t.Variant({NeuronIdOrSubaccount:t.Record({}),MemoAndController:xe,Memo:t.Nat64}),Se=t.Record({by:t.Opt(Ie)}),X=t.Record({hot_key_to_remove:t.Opt(t.Principal)}),Z=t.Record({new_hot_key:t.Opt(t.Principal)}),pe=t.Record({additional_dissolve_delay_seconds:t.Nat32}),he=t.Record({dissolve_timestamp_seconds:t.Nat64}),q=t.Variant({RemoveHotKey:X,AddHotKey:Z,StopDissolving:t.Record({}),StartDissolving:t.Record({}),IncreaseDissolveDelay:pe,JoinCommunityFund:t.Record({}),SetDissolveTimestamp:he}),Be=t.Record({operation:t.Opt(q)}),ce=t.Record({vote:t.Int32,proposal:t.Opt(r)}),de=t.Record({source_neuron_id:t.Opt(r)}),ve=t.Record({dissolve_delay_seconds:t.Nat64,kyc_verified:t.Bool,amount_e8s:t.Nat64,new_controller:t.Opt(t.Principal),nonce:t.Nat64}),Oe=t.Record({percentage_to_merge:t.Nat32}),$e=t.Record({e8s:t.Nat64}),Ue=t.Record({to_account:t.Opt(s),amount:t.Opt($e)}),it=t.Variant({Spawn:ee,Split:le,Follow:te,ClaimOrRefresh:Se,Configure:Be,RegisterVote:ce,Merge:de,DisburseToNeuron:ve,MakeProposal:o,MergeMaturity:Oe,Disburse:Ue}),Re=t.Variant({Subaccount:t.Vec(t.Nat8),NeuronId:r}),et=t.Record({id:t.Opt(r),command:t.Opt(it),neuron_id_or_subaccount:t.Opt(Re)}),Ut=t.Record({nns_function:t.Int32,payload:t.Vec(t.Nat8)}),dt=t.Record({dissolve_delay_seconds:t.Nat64}),jt=t.Record({to_account:t.Opt(s)}),U=t.Variant({RewardToNeuron:dt,RewardToAccount:jt}),I=t.Record({node_provider:t.Opt(p),reward_mode:t.Opt(U),amount_e8s:t.Nat64}),wt=t.Record({default_followees:t.Vec(t.Tuple(t.Int32,i))}),gt=t.Record({rewards:t.Vec(I)}),He=t.Record({principals:t.Vec(t.Principal)}),$=t.Variant({ToRemove:p,ToAdd:p}),l=t.Record({change:t.Opt($)}),B=t.Record({motion_text:t.Text}),E=t.Variant({RegisterKnownNeuron:L,ManageNeuron:et,ExecuteNnsFunction:Ut,RewardNodeProvider:I,SetDefaultFollowees:wt,RewardNodeProviders:gt,ManageNetworkEconomics:u,ApproveGenesisKyc:He,AddOrRemoveNodeProvider:l,Motion:B});o.fill(t.Record({url:t.Text,title:t.Opt(t.Text),action:t.Opt(E),summary:t.Text}));let R=t.Record({current_deadline_timestamp_seconds:t.Nat64}),C=t.Record({id:t.Opt(r),failure_reason:t.Opt(G),ballots:t.Vec(t.Tuple(t.Nat64,T)),proposal_timestamp_seconds:t.Nat64,reward_event_round:t.Nat64,failed_timestamp_seconds:t.Nat64,reject_cost_e8s:t.Nat64,latest_tally:t.Opt(V),decided_timestamp_seconds:t.Nat64,proposal:t.Opt(o),proposer:t.Opt(r),wait_for_quiet_state:t.Opt(R),executed_timestamp_seconds:t.Nat64}),S=t.Variant({Spawn:ee,Split:le,Configure:Be,Merge:de,DisburseToNeuron:ve,ClaimOrRefreshNeuron:Se,MergeMaturity:Oe,Disburse:Ue}),F=t.Record({command:t.Opt(S),timestamp:t.Nat64}),y=t.Record({vote:t.Int32,proposal_id:t.Opt(r)}),x=t.Variant({DissolveDelaySeconds:t.Nat64,WhenDissolvedTimestampSeconds:t.Nat64}),Q=t.Record({id:t.Opt(r),controller:t.Opt(t.Principal),recent_ballots:t.Vec(y),kyc_verified:t.Bool,not_for_profit:t.Bool,maturity_e8s_equivalent:t.Nat64,cached_neuron_stake_e8s:t.Nat64,created_timestamp_seconds:t.Nat64,aging_since_timestamp_seconds:t.Nat64,hot_keys:t.Vec(t.Principal),account:t.Vec(t.Nat8),joined_community_fund_timestamp_seconds:t.Opt(t.Nat64),dissolve_state:t.Opt(x),followees:t.Vec(t.Tuple(t.Int32,i)),neuron_fees_e8s:t.Nat64,transfer:t.Opt(w),known_neuron_data:t.Opt(P)}),v=t.Record({default_followees:t.Vec(t.Tuple(t.Int32,i)),wait_for_quiet_threshold_seconds:t.Nat64,metrics:t.Opt(n),node_providers:t.Vec(p),economics:t.Opt(u),latest_reward_event:t.Opt(h),to_claim_transfers:t.Vec(w),short_voting_period_seconds:t.Nat64,proposals:t.Vec(t.Tuple(t.Nat64,C)),in_flight_commands:t.Vec(t.Tuple(t.Nat64,F)),neurons:t.Vec(t.Tuple(t.Nat64,Q)),genesis_timestamp_seconds:t.Nat64}),N=t.Variant({Ok:t.Null,Err:G}),D=t.Variant({Error:G,NeuronId:r}),J=t.Record({result:t.Opt(D)}),re=t.Variant({Ok:Q,Err:G}),Ee=t.Variant({Ok:gt,Err:G}),me=t.Record({dissolve_delay_seconds:t.Nat64,recent_ballots:t.Vec(y),created_timestamp_seconds:t.Nat64,state:t.Int32,stake_e8s:t.Nat64,joined_community_fund_timestamp_seconds:t.Opt(t.Nat64),retrieved_at_timestamp_seconds:t.Nat64,known_neuron_data:t.Opt(P),voting_power:t.Nat64,age_seconds:t.Nat64}),oe=t.Variant({Ok:me,Err:G}),z=t.Record({id:t.Opt(r),status:t.Int32,topic:t.Int32,failure_reason:t.Opt(G),ballots:t.Vec(t.Tuple(t.Nat64,T)),proposal_timestamp_seconds:t.Nat64,reward_event_round:t.Nat64,deadline_timestamp_seconds:t.Opt(t.Nat64),failed_timestamp_seconds:t.Nat64,reject_cost_e8s:t.Nat64,latest_tally:t.Opt(V),reward_status:t.Int32,decided_timestamp_seconds:t.Nat64,proposal:t.Opt(o),proposer:t.Opt(r),executed_timestamp_seconds:t.Nat64}),Qe=t.Record({known_neurons:t.Vec(L)}),vt=t.Record({neuron_ids:t.Vec(t.Nat64),include_neurons_readable_by_caller:t.Bool}),Dt=t.Record({neuron_infos:t.Vec(t.Tuple(t.Nat64,me)),full_neurons:t.Vec(Q)}),Ht=t.Record({include_reward_status:t.Vec(t.Int32),before_proposal:t.Opt(r),limit:t.Nat32,exclude_topic:t.Vec(t.Int32),include_status:t.Vec(t.Int32)}),tt=t.Record({proposal_info:t.Vec(z)}),ie=t.Record({created_neuron_id:t.Opt(r)}),qe=t.Record({refreshed_neuron_id:t.Opt(r)}),Ne=t.Record({proposal_id:t.Opt(r)}),be=t.Record({merged_maturity_e8s:t.Nat64,new_stake_e8s:t.Nat64}),Fo=t.Record({transfer_block_height:t.Nat64}),To=t.Variant({Error:G,Spawn:ie,Split:ie,Follow:t.Record({}),ClaimOrRefresh:qe,Configure:t.Record({}),RegisterVote:t.Record({}),Merge:t.Record({}),DisburseToNeuron:ie,MakeProposal:Ne,MergeMaturity:be,Disburse:Fo}),ye=t.Record({command:t.Opt(To)}),Mo=t.Record({reward_account:t.Opt(s)});return t.Service({claim_gtc_neurons:t.Func([t.Principal,t.Vec(r)],[N],[]),claim_or_refresh_neuron_from_account:t.Func([xe],[J],[]),get_build_metadata:t.Func([],[t.Text],["query"]),get_full_neuron:t.Func([t.Nat64],[re],["query"]),get_full_neuron_by_id_or_subaccount:t.Func([Re],[re],["query"]),get_monthly_node_provider_rewards:t.Func([],[Ee],[]),get_neuron_ids:t.Func([],[t.Vec(t.Nat64)],["query"]),get_neuron_info:t.Func([t.Nat64],[oe],["query"]),get_neuron_info_by_id_or_subaccount:t.Func([Re],[oe],["query"]),get_pending_proposals:t.Func([],[t.Vec(z)],["query"]),get_proposal_info:t.Func([t.Nat64],[t.Opt(z)],["query"]),list_known_neurons:t.Func([],[Qe],["query"]),list_neurons:t.Func([vt],[Dt],["query"]),list_proposals:t.Func([Ht],[tt],["query"]),manage_neuron:t.Func([et],[ye],[]),transfer_gtc_neuron:t.Func([r,r],[N],[]),update_node_provider:t.Func([Mo],[N],["query"])})};var $t=pt(Ft());var Np=(n=>(n[n.UNSPECIFIED=0]="UNSPECIFIED",n[n.LOCKED=1]="LOCKED",n[n.DISSOLVING=2]="DISSOLVING",n[n.DISSOLVED=3]="DISSOLVED",n))(Np||{}),Gp=(s=>(s[s.PROPOSAL_REWARD_STATUS_UNKNOWN=0]="PROPOSAL_REWARD_STATUS_UNKNOWN",s[s.PROPOSAL_REWARD_STATUS_ACCEPT_VOTES=1]="PROPOSAL_REWARD_STATUS_ACCEPT_VOTES",s[s.PROPOSAL_REWARD_STATUS_READY_TO_SETTLE=2]="PROPOSAL_REWARD_STATUS_READY_TO_SETTLE",s[s.PROPOSAL_REWARD_STATUS_SETTLED=3]="PROPOSAL_REWARD_STATUS_SETTLED",s[s.PROPOSAL_REWARD_STATUS_INELIGIBLE=4]="PROPOSAL_REWARD_STATUS_INELIGIBLE",s))(Gp||{}),Pp=(p=>(p[p.PROPOSAL_STATUS_UNKNOWN=0]="PROPOSAL_STATUS_UNKNOWN",p[p.PROPOSAL_STATUS_OPEN=1]="PROPOSAL_STATUS_OPEN",p[p.PROPOSAL_STATUS_REJECTED=2]="PROPOSAL_STATUS_REJECTED",p[p.PROPOSAL_STATUS_ACCEPTED=3]="PROPOSAL_STATUS_ACCEPTED",p[p.PROPOSAL_STATUS_EXECUTED=4]="PROPOSAL_STATUS_EXECUTED",p[p.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",p))(Pp||{}),kp=(i=>(i[i.UNSPECIFIED=0]="UNSPECIFIED",i[i.YES=1]="YES",i[i.NO=2]="NO",i))(kp||{}),Up=(T=>(T[T.Unspecified=0]="Unspecified",T[T.ManageNeuron=1]="ManageNeuron",T[T.ExchangeRate=2]="ExchangeRate",T[T.NetworkEconomics=3]="NetworkEconomics",T[T.Governance=4]="Governance",T[T.NodeAdmin=5]="NodeAdmin",T[T.ParticipantManagement=6]="ParticipantManagement",T[T.SubnetManagement=7]="SubnetManagement",T[T.NetworkCanisterManagement=8]="NetworkCanisterManagement",T[T.Kyc=9]="Kyc",T[T.NodeProviderRewards=10]="NodeProviderRewards",T))(Up||{}),Le=class extends Error{constructor(o){super("Unsupported value: "+o)}};var Kn=class{constructor(){this.fromListNeurons=o=>({neuron_ids:o??[],include_neurons_readable_by_caller:!o});this.fromManageNeuron=o=>({id:o.id?[this.fromNeuronId(o.id)]:[],command:o.command?[this.fromCommand(o.command)]:[],neuron_id_or_subaccount:o.neuronIdOrSubaccount?[this.fromNeuronIdOrSubaccount(o.neuronIdOrSubaccount)]:[]});this.fromClaimNeuronRequest=o=>[cr(o.publicKey),o.nonce,o.dissolveDelayInSecs];this.fromListProposalsRequest=o=>({include_reward_status:o.includeRewardStatus,before_proposal:o.beforeProposal?[this.fromProposalId(o.beforeProposal)]:[],limit:o.limit,exclude_topic:o.excludeTopic,include_status:o.includeStatus});this.fromClaimOrRefreshNeuronRequest=o=>({id:[],command:[{ClaimOrRefresh:{by:[{NeuronIdOrSubaccount:{}}]}}],neuron_id_or_subaccount:[{NeuronId:{id:o.neuronId}}]});this.fromSplitRequest=o=>{let r={Split:{amount_e8s:o.amount}};return{id:[],command:[r],neuron_id_or_subaccount:[{NeuronId:{id:o.neuronId}}]}};this.fromDisburseToNeuronRequest=o=>{let r={DisburseToNeuron:{dissolve_delay_seconds:o.dissolveDelaySeconds,kyc_verified:o.kycVerified,amount_e8s:o.amount,new_controller:o.newController!=null?[$t.Principal.fromText(o.newController)]:[],nonce:o.nonce}};return{id:[],command:[r],neuron_id_or_subaccount:[{NeuronId:{id:o.neuronId}}]}};this.fromMakeProposalRequest=o=>{let r={MakeProposal:{url:o.url,title:o.title!=null?[o.title]:[],summary:o.summary,action:[this.fromAction(o.action)]}};return{id:[],command:[r],neuron_id_or_subaccount:[{NeuronId:{id:o.neuronId}}]}};this.fromNeuronId=o=>({id:o});this.fromNeuronIdOrSubaccount=o=>{if("NeuronId"in o)return{NeuronId:{id:o.NeuronId}};if("Subaccount"in o)return{Subaccount:o.Subaccount};throw new Le(o)};this.fromProposalId=o=>({id:o});this.fromAction=o=>{if("ExecuteNnsFunction"in o){let r=o.ExecuteNnsFunction;return{ExecuteNnsFunction:{nns_function:r.nnsFunctionId,payload:cr(r.payloadBytes)}}}if("ManageNeuron"in o){let r=o.ManageNeuron;return{ManageNeuron:this.fromManageNeuron(r)}}if("ApproveGenesisKyc"in o)return{ApproveGenesisKyc:{principals:o.ApproveGenesisKyc.principals.map($t.Principal.fromText)}};if("ManageNetworkEconomics"in o){let r=o.ManageNetworkEconomics;return{ManageNetworkEconomics:{neuron_minimum_stake_e8s:r.neuronMinimumStake,max_proposals_to_keep_per_topic:r.maxProposalsToKeepPerTopic,neuron_management_fee_per_proposal_e8s:r.neuronManagementFeePerProposal,reject_cost_e8s:r.rejectCost,transaction_fee_e8s:r.transactionFee,neuron_spawn_dissolve_delay_seconds:r.neuronSpawnDissolveDelaySeconds,minimum_icp_xdr_rate:r.minimumIcpXdrRate,maximum_node_provider_rewards_e8s:r.maximumNodeProviderRewards}}}if("RewardNodeProvider"in o){let r=o.RewardNodeProvider;return{RewardNodeProvider:{node_provider:r.nodeProvider?[this.fromNodeProvider(r.nodeProvider)]:[],amount_e8s:r.amountE8s,reward_mode:r.rewardMode!=null?[this.fromRewardMode(r.rewardMode)]:[]}}}if("RewardNodeProviders"in o)return{RewardNodeProviders:{rewards:o.RewardNodeProviders.rewards.map(i=>({node_provider:i.nodeProvider?[this.fromNodeProvider(i.nodeProvider)]:[],amount_e8s:i.amountE8s,reward_mode:i.rewardMode!=null?[this.fromRewardMode(i.rewardMode)]:[]}))}};if("AddOrRemoveNodeProvider"in o){let r=o.AddOrRemoveNodeProvider;return{AddOrRemoveNodeProvider:{change:r.change?[this.fromChange(r.change)]:[]}}}if("Motion"in o)return{Motion:{motion_text:o.Motion.motionText}};if("SetDefaultFollowees"in o)return{SetDefaultFollowees:{default_followees:o.SetDefaultFollowees.defaultFollowees.map(i=>[i.topic,this.fromFollowees(i.followees)])}};if("RegisterKnownNeuron"in o){let r=o.RegisterKnownNeuron;return{RegisterKnownNeuron:{id:[{id:r.id}],known_neuron_data:[{name:r.name,description:r.description!==void 0?[r.description]:[]}]}}}throw new Le(o)};this.fromCommand=o=>{if("Split"in o)return{Split:{amount_e8s:o.Split.amount}};if("Follow"in o){let r=o.Follow;return{Follow:{topic:r.topic,followees:r.followees.map(this.fromNeuronId)}}}if("ClaimOrRefresh"in o){let r=o.ClaimOrRefresh;return{ClaimOrRefresh:{by:r.by?[this.fromClaimOrRefreshBy(r.by)]:[]}}}if("Configure"in o){let r=o.Configure;return{Configure:{operation:r.operation?[this.fromOperation(r.operation)]:[]}}}if("RegisterVote"in o){let r=o.RegisterVote;return{RegisterVote:{vote:r.vote,proposal:r.proposal?[this.fromProposalId(r.proposal)]:[]}}}if("DisburseToNeuron"in o){let r=o.DisburseToNeuron;return{DisburseToNeuron:{dissolve_delay_seconds:r.dissolveDelaySeconds,kyc_verified:r.kycVerified,amount_e8s:r.amount,new_controller:r.newController?[$t.Principal.fromText(r.newController)]:[],nonce:r.nonce}}}if("MergeMaturity"in o)return{MergeMaturity:{percentage_to_merge:o.MergeMaturity.percentageToMerge}};if("MakeProposal"in o){let r=o.MakeProposal;return{MakeProposal:{url:r.url,title:[],action:r.action?[this.fromAction(r.action)]:[],summary:r.summary}}}if("Disburse"in o){let r=o.Disburse;return{Disburse:{to_account:r.toAccountId?[this.fromAccountIdentifier(r.toAccountId)]:[],amount:r.amount?[this.fromAmount(r.amount)]:[]}}}if("Spawn"in o){let r=o.Spawn;return{Spawn:{new_controller:r.newController?[$t.Principal.fromText(r.newController)]:[],nonce:[]}}}if("Merge"in o){let r=o.Merge;return{Merge:{source_neuron_id:r.sourceNeuronId?[{id:r.sourceNeuronId}]:[]}}}throw new Le(o)};this.fromOperation=o=>{if("RemoveHotKey"in o){let r=o.RemoveHotKey;return{RemoveHotKey:{hot_key_to_remove:r.hotKeyToRemove!=null?[$t.Principal.fromText(r.hotKeyToRemove)]:[]}}}if("AddHotKey"in o){let r=o.AddHotKey;return{AddHotKey:{new_hot_key:r.newHotKey?[$t.Principal.fromText(r.newHotKey)]:[]}}}if("StopDissolving"in o)return{StopDissolving:{}};if("StartDissolving"in o)return{StartDissolving:{}};if("IncreaseDissolveDelay"in o)return{IncreaseDissolveDelay:{additional_dissolve_delay_seconds:o.IncreaseDissolveDelay.additionalDissolveDelaySeconds}};if("JoinCommunityFund"in o)return o;if("SetDissolveTimestamp"in o)return{SetDissolveTimestamp:{dissolve_timestamp_seconds:o.SetDissolveTimestamp.dissolveTimestampSeconds}};throw new Le(o)};this.fromChange=o=>{if("ToRemove"in o)return{ToRemove:this.fromNodeProvider(o.ToRemove)};if("ToAdd"in o)return{ToAdd:this.fromNodeProvider(o.ToAdd)};throw new Le(o)};this.fromNodeProvider=o=>({id:o.id!=null?[$t.Principal.fromText(o.id)]:[],reward_account:o.rewardAccount!=null?[this.fromAccountIdentifier(o.rewardAccount)]:[]})}fromFollowees(o){return{followees:o.map(this.fromNeuronId)}}fromAmount(o){return{e8s:o}}fromAccountIdentifier(o){let r=na(o);return{hash:cr(r)}}fromRewardMode(o){if("RewardToNeuron"in o)return{RewardToNeuron:{dissolve_delay_seconds:o.RewardToNeuron.dissolveDelaySeconds}};if("RewardToAccount"in o)return{RewardToAccount:{to_account:o.RewardToAccount.toAccount!=null?[this.fromAccountIdentifier(o.RewardToAccount.toAccount)]:[]}};throw new Le(o)}fromClaimOrRefreshBy(o){if("NeuronIdOrSubaccount"in o)return{NeuronIdOrSubaccount:{}};if("Memo"in o)return{Memo:o.Memo};if("MemoAndController"in o)return{MemoAndController:{memo:o.MemoAndController.memo,controller:o.MemoAndController.controller?[o.MemoAndController.controller]:[]}};throw new Le(o)}};var ei=pt(Ft()),jp=ei.Principal.fromText("rrkah-fqaaa-aaaaa-aaaaq-cai"),Dp=ei.Principal.fromText("rrkah-fqaaa-aaaaa-aaaaq-cai"),Hp=ei.Principal.fromText("ryjl3-tyaaa-aaaaa-aaaba-cai");var Je=pt(mo()),sA=require("buffer");var m=pt(mo()),qp=m.IDL.Record({node_operator_principal_id:m.IDL.Opt(m.IDL.Principal),node_allowance:m.IDL.Nat64,node_provider_principal_id:m.IDL.Opt(m.IDL.Principal)}),Wp=m.IDL.Record({subnet_id:m.IDL.Principal,node_ids:m.IDL.Vec(m.IDL.Principal)}),Jf=m.IDL.Record({latitude:m.IDL.Float32,longitude:m.IDL.Float32}),Kf=m.IDL.Record({id:m.IDL.Text,gps:m.IDL.Opt(Jf),region:m.IDL.Text,owner:m.IDL.Text}),Vp=m.IDL.Record({data_centers_to_add:m.IDL.Vec(Kf),data_centers_to_remove:m.IDL.Vec(m.IDL.Text)}),Yp=m.IDL.Record({node_manager_sha256_hex:m.IDL.Text,release_package_url:m.IDL.Text,sha256_hex:m.IDL.Text,replica_version_id:m.IDL.Text,release_package_sha256_hex:m.IDL.Text,node_manager_binary_url:m.IDL.Text,binary_url:m.IDL.Text}),zp=m.IDL.Record({ecdsa_signatures:m.IDL.Bool}),Lp=m.IDL.Variant({application:m.IDL.Null,verified_application:m.IDL.Null,system:m.IDL.Null}),Jp=m.IDL.Record({unit_delay_millis:m.IDL.Nat64,max_instructions_per_round:m.IDL.Nat64,features:zp,max_instructions_per_message:m.IDL.Nat64,gossip_registry_poll_period_ms:m.IDL.Nat32,max_ingress_bytes_per_message:m.IDL.Nat64,dkg_dealings_per_block:m.IDL.Nat64,max_block_payload_size:m.IDL.Nat64,max_instructions_per_install_code:m.IDL.Nat64,start_as_nns:m.IDL.Bool,is_halted:m.IDL.Bool,gossip_pfn_evaluation_period_ms:m.IDL.Nat32,max_ingress_messages_per_block:m.IDL.Nat64,gossip_max_artifact_streams_per_peer:m.IDL.Nat32,replica_version_id:m.IDL.Text,gossip_max_duplicity:m.IDL.Nat32,gossip_max_chunk_wait_ms:m.IDL.Nat32,dkg_interval_length:m.IDL.Nat64,subnet_id_override:m.IDL.Opt(m.IDL.Principal),ingress_bytes_per_block_soft_cap:m.IDL.Nat64,initial_notary_delay_millis:m.IDL.Nat64,gossip_max_chunk_size:m.IDL.Nat32,subnet_type:Lp,gossip_retransmission_request_ms:m.IDL.Nat32,gossip_receive_check_cache_size:m.IDL.Nat32,node_ids:m.IDL.Vec(m.IDL.Principal)}),Kp=m.IDL.Record({height:m.IDL.Nat64,replacement_nodes:m.IDL.Opt(m.IDL.Vec(m.IDL.Principal)),subnet_id:m.IDL.Principal,registry_store_uri:m.IDL.Opt(m.IDL.Tuple(m.IDL.Text,m.IDL.Text,m.IDL.Nat64)),state_hash:m.IDL.Vec(m.IDL.Nat8),time_ns:m.IDL.Nat64}),hB=m.IDL.Record({node_operators_to_remove:m.IDL.Vec(m.IDL.Vec(m.IDL.Nat8))}),Zn=m.IDL.Record({node_ids:m.IDL.Vec(m.IDL.Principal)}),BB=m.IDL.Record({range_end_inclusive:m.IDL.Principal,range_start_inclusive:m.IDL.Principal,destination_subnet:m.IDL.Principal}),Zp=m.IDL.Record({who:m.IDL.Opt(m.IDL.Principal),subnets:m.IDL.Vec(m.IDL.Principal)}),Xp=m.IDL.Record({ipv4_prefixes:m.IDL.Vec(m.IDL.Text),firewall_config:m.IDL.Text,ipv6_prefixes:m.IDL.Vec(m.IDL.Text)}),Zf=m.IDL.Variant({Start:m.IDL.Null,Stop:m.IDL.Null}),$p=m.IDL.Record({action:Zf,canister_id:m.IDL.Principal}),eA=m.IDL.Record({data_source:m.IDL.Text,xdr_permyriad_per_icp:m.IDL.Nat64,timestamp_seconds:m.IDL.Nat64}),tA=m.IDL.Record({node_operator_id:m.IDL.Opt(m.IDL.Principal),node_allowance:m.IDL.Opt(m.IDL.Nat64),rewardable_nodes:m.IDL.Vec(m.IDL.Tuple(m.IDL.Text,m.IDL.Nat32)),dc_id:m.IDL.Opt(m.IDL.Text)}),Xf=m.IDL.Record({xdr_permyriad_per_node_per_month:m.IDL.Nat64}),$f=m.IDL.Record({rates:m.IDL.Vec(m.IDL.Tuple(m.IDL.Text,Xf))}),oA=m.IDL.Record({new_entries:m.IDL.Vec(m.IDL.Tuple(m.IDL.Text,$f))}),rA=m.IDL.Record({unit_delay_millis:m.IDL.Opt(m.IDL.Nat64),max_duplicity:m.IDL.Opt(m.IDL.Nat32),max_instructions_per_round:m.IDL.Opt(m.IDL.Nat64),features:m.IDL.Opt(zp),set_gossip_config_to_default:m.IDL.Bool,max_instructions_per_message:m.IDL.Opt(m.IDL.Nat64),pfn_evaluation_period_ms:m.IDL.Opt(m.IDL.Nat32),subnet_id:m.IDL.Principal,max_ingress_bytes_per_message:m.IDL.Opt(m.IDL.Nat64),dkg_dealings_per_block:m.IDL.Opt(m.IDL.Nat64),max_block_payload_size:m.IDL.Opt(m.IDL.Nat64),max_instructions_per_install_code:m.IDL.Opt(m.IDL.Nat64),start_as_nns:m.IDL.Opt(m.IDL.Bool),is_halted:m.IDL.Opt(m.IDL.Bool),max_number_of_canisters:m.IDL.Opt(m.IDL.Nat64),advert_best_effort_percentage:m.IDL.Opt(m.IDL.Nat32),retransmission_request_ms:m.IDL.Opt(m.IDL.Nat32),dkg_interval_length:m.IDL.Opt(m.IDL.Nat64),registry_poll_period_ms:m.IDL.Opt(m.IDL.Nat32),max_chunk_wait_ms:m.IDL.Opt(m.IDL.Nat32),receive_check_cache_size:m.IDL.Opt(m.IDL.Nat32),ssh_backup_access:m.IDL.Opt(m.IDL.Vec(m.IDL.Text)),ingress_bytes_per_block_soft_cap:m.IDL.Opt(m.IDL.Nat64),max_chunk_size:m.IDL.Opt(m.IDL.Nat32),initial_notary_delay_millis:m.IDL.Opt(m.IDL.Nat64),max_artifact_streams_per_peer:m.IDL.Opt(m.IDL.Nat32),subnet_type:m.IDL.Opt(Lp),ssh_readonly_access:m.IDL.Opt(m.IDL.Vec(m.IDL.Text))}),iA=m.IDL.Record({subnet_id:m.IDL.Principal,replica_version_id:m.IDL.Text}),nA=m.IDL.Record({replica_version:m.IDL.Opt(m.IDL.Text),ssh_readonly_access:m.IDL.Opt(m.IDL.Vec(m.IDL.Text))});var aA=t=>{switch(t){case 1:return"Create subnet";case 2:return"Add nodes to subnet";case 3:return"Install NNS canister";case 4:return"Upgrade NNS canister";case 5:return"Bless replica version";case 6:return"Recover subnet";case 7:return"Update subnet config";case 8:return"Assign node operator Id";case 9:return"Update NNS root canister";case 10:return"Update ICP/XDR conversion rate";case 11:return"Update subnet replica version";case 12:return"Clear provisional whitelist";case 13:return"Remove nodes from subnet";case 14:return"Set authorized subnetworks";case 15:return"Change firewall config";case 16:return"Update node operator config";case 17:return"Start or stop NNS canister";case 18:return"Remove nodes from registry";case 19:return"Uninstall code from canister";case 20:return"Update the node rewards table";case 21:return"Add or remove data centers";case 22:return"Update unassigned nodes config";default:return"--Unknown--"}},gA=(t,o)=>{let r=new sA.Buffer(o);try{switch(t){case 1:return Je.IDL.decode([Jp],r)[0];case 2:return Je.IDL.decode([Wp],r)[0];case 3:return{"Unable to display payload":"Payload too large"};case 4:return{"Unable to display payload":"Payload too large"};case 5:return Je.IDL.decode([Yp],r)[0];case 6:return Je.IDL.decode([Kp],r)[0];case 7:return Je.IDL.decode([rA],r)[0];case 8:return Je.IDL.decode([qp],r)[0];case 9:return{"Unable to display payload":"Payload too large"};case 10:return Je.IDL.decode([eA],r)[0];case 11:return Je.IDL.decode([iA],r)[0];case 12:return{};case 13:return Je.IDL.decode([Zn],r)[0];case 14:return Je.IDL.decode([Zp],r)[0];case 15:return Je.IDL.decode([Xp],r)[0];case 16:return Je.IDL.decode([tA],r)[0];case 17:return Je.IDL.decode([$p],r)[0];case 18:return Je.IDL.decode([Zn],r)[0];case 20:return Je.IDL.decode([oA],r)[0];case 21:return Je.IDL.decode([Vp],r)[0];case 22:return Je.IDL.decode([nA],r)[0];default:return}}catch(i){return console.log("Unable to deserialize payload. NNS function: "+t),console.log(i),{error:"Unable to deserialize payload"}}};var Xn=class{constructor(){this.toProposalInfo=o=>({id:o.id.length?this.toNeuronId(o.id[0]):void 0,ballots:o.ballots.map(r=>this.toBallot(r[0],r[1])),rejectCost:o.reject_cost_e8s,proposalTimestampSeconds:o.proposal_timestamp_seconds,rewardEventRound:o.reward_event_round,failedTimestampSeconds:o.failed_timestamp_seconds,decidedTimestampSeconds:o.decided_timestamp_seconds,proposal:o.proposal.length?this.toProposal(o.proposal[0]):void 0,proposer:o.proposer.length?this.toNeuronId(o.proposer[0]):void 0,latestTally:o.latest_tally.length?this.toTally(o.latest_tally[0]):void 0,executedTimestampSeconds:o.executed_timestamp_seconds,topic:o.topic,status:o.status,rewardStatus:o.reward_status});this.toArrayOfNeuronInfo=(o,r)=>{let i=r.toString();return o.neuron_infos.map(([n,s])=>this.toNeuronInfo(n,i,s,o.full_neurons.find(p=>p.id.length&&p.id[0].id===n)))};this.toListProposalsResponse=o=>({proposals:o.proposal_info.map(this.toProposalInfo)});this.toKnownNeuron=o=>{var r,i,n;return{id:((r=o.id[0])==null?void 0:r.id)??BigInt(0),name:((i=o.known_neuron_data[0])==null?void 0:i.name)??"",description:((n=o.known_neuron_data[0])==null?void 0:n.description[0])??""}};this.toSplitResponse=o=>{let r=o.command.length?o.command[0]:void 0;if(r&&"Split"in r){let i=r.Split.created_neuron_id;if(i.length)return i[0].id}throw this.throwUnrecognisedTypeError("response",o)};this.toDisburseToNeuronResult=o=>{let r=o.command;if(r.length&&"Spawn"in r[0]&&r[0].Spawn.created_neuron_id.length)return{createdNeuronId:r[0].Spawn.created_neuron_id[0].id};throw this.throwUnrecognisedTypeError("response",o)};this.toClaimOrRefreshNeuronResponse=o=>{let r=o.command;if(r.length&&"ClaimOrRefresh"in r[0])return r[0].ClaimOrRefresh.refreshed_neuron_id.length?r[0].ClaimOrRefresh.refreshed_neuron_id[0].id:void 0;throw this.throwUnrecognisedTypeError("response",o)};this.toMakeProposalResponse=o=>{let r=o.command;if(r.length&&"MakeProposal"in r[0]&&r[0].MakeProposal.proposal_id.length)return{proposalId:r[0].MakeProposal.proposal_id[0].id};throw this.throwUnrecognisedTypeError("response",o)};this.toNeuron=(o,r)=>({id:o.id.length?this.toNeuronId(o.id[0]):void 0,isCurrentUserController:o.controller.length?o.controller[0].toString()===r:void 0,controller:o.controller.length?o.controller[0].toString():void 0,recentBallots:o.recent_ballots.map(this.toBallotInfo),kycVerified:o.kyc_verified,notForProfit:o.not_for_profit,cachedNeuronStake:o.cached_neuron_stake_e8s,createdTimestampSeconds:o.created_timestamp_seconds,maturityE8sEquivalent:o.maturity_e8s_equivalent,agingSinceTimestampSeconds:o.aging_since_timestamp_seconds,neuronFees:o.neuron_fees_e8s,hotKeys:o.hot_keys.map(i=>i.toString()),accountIdentifier:aa(jp,Qi(o.account)),joinedCommunityFundTimestampSeconds:o.joined_community_fund_timestamp_seconds.length?o.joined_community_fund_timestamp_seconds[0]:void 0,dissolveState:o.dissolve_state.length?this.toDissolveState(o.dissolve_state[0]):void 0,followees:o.followees.map(([i,n])=>this.toFollowees(i,n))});this.toBallotInfo=o=>({vote:o.vote,proposalId:o.proposal_id.length?this.toNeuronId(o.proposal_id[0]):void 0});this.toDissolveState=o=>"DissolveDelaySeconds"in o?{DissolveDelaySeconds:o.DissolveDelaySeconds}:{WhenDissolvedTimestampSeconds:o.WhenDissolvedTimestampSeconds};this.toFollowees=(o,r)=>({topic:o,followees:r.followees.map(this.toNeuronId)});this.toNeuronId=o=>o.id;this.toNeuronIdOrSubaccount=o=>{if("NeuronId"in o)return{NeuronId:o.NeuronId.id};if("Subaccount"in o)return{Subaccount:o.Subaccount};throw new Le(o)};this.toBallot=(o,r)=>({neuronId:o,vote:r.vote,votingPower:r.voting_power});this.toProposal=o=>({title:o.title.length?o.title[0]:void 0,url:o.url,action:o.action.length?this.toAction(o.action[0]):void 0,summary:o.summary});this.toAction=o=>{if("ExecuteNnsFunction"in o){let r=o.ExecuteNnsFunction,i=ia(r.payload),n=i.byteLength?gA(r.nns_function,i):void 0;return{ExecuteNnsFunction:{nnsFunctionId:r.nns_function,nnsFunctionName:aA(r.nns_function),payload:n,payloadBytes:i}}}if("ManageNeuron"in o){let r=o.ManageNeuron;return{ManageNeuron:{id:r.id.length?this.toNeuronId(r.id[0]):void 0,command:r.command.length?this.toCommand(r.command[0]):void 0,neuronIdOrSubaccount:r.neuron_id_or_subaccount.length?this.toNeuronIdOrSubaccount(r.neuron_id_or_subaccount[0]):void 0}}}if("ApproveGenesisKyc"in o)return{ApproveGenesisKyc:{principals:o.ApproveGenesisKyc.principals.map(i=>i.toString())}};if("ManageNetworkEconomics"in o){let r=o.ManageNetworkEconomics;return{ManageNetworkEconomics:{neuronMinimumStake:r.neuron_minimum_stake_e8s,maxProposalsToKeepPerTopic:r.max_proposals_to_keep_per_topic,neuronManagementFeePerProposal:r.neuron_management_fee_per_proposal_e8s,rejectCost:r.reject_cost_e8s,transactionFee:r.transaction_fee_e8s,neuronSpawnDissolveDelaySeconds:r.neuron_spawn_dissolve_delay_seconds,minimumIcpXdrRate:r.minimum_icp_xdr_rate,maximumNodeProviderRewards:r.maximum_node_provider_rewards_e8s}}}if("RewardNodeProvider"in o){let r=o.RewardNodeProvider;return{RewardNodeProvider:{nodeProvider:r.node_provider.length?this.toNodeProvider(r.node_provider[0]):void 0,amountE8s:r.amount_e8s,rewardMode:r.reward_mode.length?this.toRewardMode(r.reward_mode[0]):void 0}}}if("RewardNodeProviders"in o)return{RewardNodeProviders:{rewards:o.RewardNodeProviders.rewards.map(i=>({nodeProvider:i.node_provider.length?this.toNodeProvider(i.node_provider[0]):void 0,amountE8s:i.amount_e8s,rewardMode:i.reward_mode.length?this.toRewardMode(i.reward_mode[0]):void 0}))}};if("AddOrRemoveNodeProvider"in o){let r=o.AddOrRemoveNodeProvider;return{AddOrRemoveNodeProvider:{change:r.change.length?this.toChange(r.change[0]):void 0}}}if("Motion"in o)return{Motion:{motionText:o.Motion.motion_text}};if("SetDefaultFollowees"in o)return{SetDefaultFollowees:{defaultFollowees:o.SetDefaultFollowees.default_followees.map(([i,n])=>this.toFollowees(i,n))}};if("RegisterKnownNeuron"in o){let r=o.RegisterKnownNeuron;return{RegisterKnownNeuron:this.toKnownNeuron(r)}}throw new Le(o)};this.toTally=o=>({no:o.no,yes:o.yes,total:o.total,timestampSeconds:o.timestamp_seconds});this.toCommand=o=>{if("Spawn"in o){let r=o.Spawn;return{Spawn:{newController:r.new_controller.length?r.new_controller[0].toString():void 0}}}if("Split"in o)return{Split:{amount:o.Split.amount_e8s}};if("Follow"in o){let r=o.Follow;return{Follow:{topic:r.topic,followees:r.followees.map(this.toNeuronId)}}}if("ClaimOrRefresh"in o){let r=o.ClaimOrRefresh;return{ClaimOrRefresh:{by:r.by.length?this.toClaimOrRefreshBy(r.by[0]):void 0}}}if("Configure"in o){let r=o.Configure;return{Configure:{operation:r.operation.length?this.toOperation(r.operation[0]):void 0}}}if("RegisterVote"in o){let r=o.RegisterVote;return{RegisterVote:{vote:r.vote,proposal:r.proposal.length?this.toNeuronId(r.proposal[0]):void 0}}}if("DisburseToNeuron"in o){let r=o.DisburseToNeuron;return{DisburseToNeuron:{dissolveDelaySeconds:r.dissolve_delay_seconds,kycVerified:r.kyc_verified,amount:r.amount_e8s,newController:r.new_controller.length?r.new_controller[0].toString():void 0,nonce:r.nonce}}}if("MergeMaturity"in o)return{MergeMaturity:{percentageToMerge:o.MergeMaturity.percentage_to_merge}};if("MakeProposal"in o){let r=o.MakeProposal;return{MakeProposal:{title:r.title.length?r.title[0]:void 0,url:r.url,action:r.action.length?this.toAction(r.action[0]):void 0,summary:r.summary}}}if("Disburse"in o){let r=o.Disburse;return{Disburse:{toAccountId:r.to_account.length?this.toAccountIdentifier(r.to_account[0]):void 0,amount:r.amount.length?this.toAmount(r.amount[0]):void 0}}}if("Merge"in o){let r=o.Merge;return{Merge:{sourceNeuronId:r.source_neuron_id.length?r.source_neuron_id[0].id:void 0}}}throw new Le(o)};this.toOperation=o=>{if("RemoveHotKey"in o){let r=o.RemoveHotKey;return{RemoveHotKey:{hotKeyToRemove:r.hot_key_to_remove.length?r.hot_key_to_remove[0].toString():void 0}}}if("AddHotKey"in o){let r=o.AddHotKey;return{AddHotKey:{newHotKey:r.new_hot_key.length?r.new_hot_key[0].toString():void 0}}}if("StopDissolving"in o)return{StopDissolving:{}};if("StartDissolving"in o)return{StartDissolving:{}};if("IncreaseDissolveDelay"in o)return{IncreaseDissolveDelay:{additionalDissolveDelaySeconds:o.IncreaseDissolveDelay.additional_dissolve_delay_seconds}};if("JoinCommunityFund"in o)return o;if("SetDissolveTimestamp"in o)return{SetDissolveTimestamp:{dissolveTimestampSeconds:o.SetDissolveTimestamp.dissolve_timestamp_seconds}};throw new Le(o)};this.toChange=o=>{if("ToRemove"in o)return{ToRemove:this.toNodeProvider(o.ToRemove)};if("ToAdd"in o)return{ToAdd:this.toNodeProvider(o.ToAdd)};throw new Le(o)};this.toNodeProvider=o=>({id:o.id.length?o.id[0].toString():void 0,rewardAccount:o.reward_account.length?this.toAccountIdentifier(o.reward_account[0]):void 0});this.toAmount=o=>o.e8s}toNeuronInfo(o,r,i,n){let s=n?this.toNeuron(n,r):void 0;return{neuronId:o,dissolveDelaySeconds:i.dissolve_delay_seconds,recentBallots:i.recent_ballots.map(this.toBallotInfo),createdTimestampSeconds:i.created_timestamp_seconds,state:i.state,joinedCommunityFundTimestampSeconds:i.joined_community_fund_timestamp_seconds.length?i.joined_community_fund_timestamp_seconds[0]:void 0,retrievedAtTimestampSeconds:i.retrieved_at_timestamp_seconds,votingPower:i.voting_power,ageSeconds:i.age_seconds,fullNeuron:s}}toAccountIdentifier(o){return sa(new Uint8Array(o.hash))}toRewardMode(o){if("RewardToNeuron"in o)return{RewardToNeuron:{dissolveDelaySeconds:o.RewardToNeuron.dissolve_delay_seconds}};if("RewardToAccount"in o)return{RewardToAccount:{toAccount:o.RewardToAccount.to_account!=null&&o.RewardToAccount.to_account.length?this.toAccountIdentifier(o.RewardToAccount.to_account[0]):void 0}};throw new Le(o)}toClaimOrRefreshBy(o){if("NeuronIdOrSubaccount"in o)return{NeuronIdOrSubaccount:{}};if("Memo"in o)return{Memo:o.Memo};if("MemoAndController"in o)return{MemoAndController:{memo:o.MemoAndController.memo,controller:o.MemoAndController.controller.length?o.MemoAndController.controller[0]:void 0}};throw new Le(o)}throwUnrecognisedTypeError(o,r){return new Error(`Unrecognised ${o} type - ${JSON.stringify(r)}`)}};var ti=pt($r()),oi=()=>new ti.HttpAgent({host:"https://ic0.app",identity:new ti.AnonymousIdentity});var sr=class{constructor(o,r,i,n,s){this.service=o;this.certifiedService=r;this.requestConverters=i;this.responseConverters=n;this.myPrincipal=s;this.getNeurons=async({certified:o=!0,neuronIds:r})=>{if(this.myPrincipal===void 0)return new Promise(()=>[]);let i=this.myPrincipal,n=this.requestConverters.fromListNeurons(r),p=await(o?this.certifiedService:this.service).list_neurons(n);return this.responseConverters.toArrayOfNeuronInfo(p,i)};this.listKnownNeurons=async(o=!0)=>(await(o?this.certifiedService:this.service).list_known_neurons()).known_neurons.map(n=>{var s,p,u;return{id:((s=n.id[0])==null?void 0:s.id)??BigInt(0),name:((p=n.known_neuron_data[0])==null?void 0:p.name)??"",description:(u=n.known_neuron_data[0])==null?void 0:u.description[0]}});this.listProposals=async({request:o,certified:r=!0})=>{let i=this.requestConverters.fromListProposalsRequest(o),s=await(r?this.certifiedService:this.service).list_proposals(i);return this.responseConverters.toListProposalsResponse(s)};this.claimOrRefreshNeuronFromAccount=async o=>{let n=(await this.certifiedService.claim_or_refresh_neuron_from_account({controller:o.controller?[o.controller]:[],memo:o.memo})).result;if(n.length&&"NeuronId"in n[0])return n[0].NeuronId.id;throw new Error(`Error claiming/refreshing neuron: ${JSON.stringify(n)}`)};this.service=o,this.certifiedService=r,this.requestConverters=i,this.responseConverters=n,this.myPrincipal=s}static create(o={}){let r=o.agent??oi(),i=o.canisterId??Dp,n=o.serviceOverride??$n.Actor.createActor(Op,{agent:r,canisterId:i}),s=o.certifiedServiceOverride??$n.Actor.createActor(Mp,{agent:r,canisterId:i}),p=new Kn,u=new Xn;return new sr(n,s,p,u)}};var pA=pt(lr());var es=(r=>(r[r.FRACTIONAL_MORE_THAN_8_DECIMALS=0]="FRACTIONAL_MORE_THAN_8_DECIMALS",r[r.INVALID_FORMAT=1]="INVALID_FORMAT",r))(es||{});var kt=class{constructor(o){this.e8s=o}static fromE8s(o){return new kt(o)}static fromString(o){o=o.trim().replace(/[,']/g,"");let r=o.match(/\d*(\.\d*)?/);if(!r||r[0]!==o)return 1;let[i,n]=o.split("."),s=BigInt(0);if(i)try{s+=BigInt(i)*ta}catch{return 1}if(n){if(n.length>8)return 0;try{s+=BigInt(n.padEnd(8,"0"))}catch{return 1}}return new kt(s)}toE8s(){return this.e8s}toProto(){let o=new pA.ICPTs;return o.setE8s(this.e8s.toString()),o}};var It=pt(lr());var ri=class{},AA=class{},ii=class{constructor(o){this.balance=o}},ni=class{constructor(o){this.allowed_window_secs=o}},si=class{},ai=class{constructor(o){this.duplicateOf=o}};var ts=pt($r()),uA=async(t,o,r,i)=>{let n=await t.call(o,{methodName:r,arg:i,effectiveCanisterId:o});if(!n.response.ok)return Error(["Call failed:",` Method: ${r}`,` Canister ID: ${o}`,` Request ID: ${n.requestId}`,` HTTP status code: ${n.response.status}`,` HTTP status text: ${n.response.statusText}`].join(`
|
|
852
|
+
`));try{let s=await ts.polling.pollForResponse(t,o,n.requestId,ts.polling.defaultStrategy());return new Uint8Array(s)}catch(s){if(s instanceof Error)return s;throw s}},lA=async(t,o,r,i)=>{let n=await t.query(o,{methodName:r,arg:i});return n.status=="rejected"?new Error(["Call failed:",` Method: ${r}`,` Canister ID: ${o}`,` HTTP status code: ${n.reject_code}`,` HTTP status text: ${n.reject_message}`].join(`
|
|
853
|
+
`)):new Uint8Array(n.reply.arg)};var ar=class{constructor(o,r,i,n){this.agent=o;this.canisterId=r;this.updateFetcher=i;this.queryFetcher=n;this.accountBalance=async({accountIdentifier:o,certified:r=!0})=>{let i=r?this.updateFetcher:this.queryFetcher,n=new It.AccountBalanceRequest;n.setAccount(o.toProto());let s=await i(this.agent,this.canisterId,"account_balance_pb",n.serializeBinary());if(s instanceof Error)throw Error;return kt.fromE8s(BigInt(It.ICPTs.deserializeBinary(new Uint8Array(s)).getE8s()))};this.transfer=async({to:o,amount:r,memo:i})=>{let n=new It.SendRequest;n.setTo(o.toProto());let s=new It.Payment;if(s.setReceiverGets(r.toProto()),n.setPayment(s),i){let u=new It.Memo;u.setMemo(u.toString()),n.setMemo(u)}let p=await this.updateFetcher(this.agent,this.canisterId,"send_pb",n.serializeBinary());if(p instanceof Error){if(p.message.includes("Reject code: 5")){if(p.message.match(/Sending from (.*) is not allowed/))return new ri;{let u=p.message.match(/transaction.*duplicate.* in block (\d+)/);if(u&&u.length>1)return new ai(BigInt(u[1]))}{let u=p.message.match(/debit account.*, current balance: (\d*(\.\d*)?)/);if(u&&u.length>1){let h=kt.fromString(u[1]);if(h instanceof kt)return new ii(h)}}if(p.message.includes("is in future"))return new si;{let u=p.message.match(/older than (\d+)/);if(u&&u.length>1)return new ni(Number.parseInt(u[1]))}}throw p}return BigInt(It.BlockHeight.deserializeBinary(p).getHeight())}}static create(o={}){return new ar(o.agent??oi(),o.canisterId??Hp,o.updateCallOverride??uA,o.queryCallOverride??lA)}};module.exports=PA(eh);0&&(module.exports={AccountIdentifier,BadFee,FromICPStringError,GovernanceCanister,ICP,InsufficientFunds,InvalidSender,LedgerCanister,NeuronState,ProposalRewardStatus,ProposalStatus,SubAccount,Topic,TxCreatedInFuture,TxDuplicate,TxTooOld,UnsupportedValueError,Vote});
|
|
854
854
|
/*!
|
|
855
855
|
* The buffer module from node.js, for the browser.
|
|
856
856
|
*
|